lean2/src/frontends/lean
Leonardo de Moura 9a5f86fce6 feat(lua): use (** ... **) instead of {{ ... }} for nested Lua scripts
The token }} is a bad delimiter for blocks of Lua script code nested in Lean files.
The problem is that the sequence }} occurs very often in Lua code because Lua uses { and } to build tables/lists/arrays.
Here is an example of Lua code that contains the sequence }}
     t = {{1, 2}, {2, 3}, {3, 4}}

In Lean, (* ... *) is used to create comments. Thus, (** ... **) code blocks will not affect
valid Lean files. It also looks reasonably good.

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-12 16:05:49 -08:00
..
CMakeLists.txt refactor(frontends/lean/elaborator): delete old_elaborator, and create frontend_elaborator class that will be based on library/elaborator/elaborator 2013-10-24 10:45:59 -07:00
coercion.h Rename lean frontend files. The prefix lean_ is not necessary anymore. 2013-09-12 20:09:35 -07:00
frontend.cpp fix(kernel/environment): add weak reference to environment objects 2013-11-07 11:29:08 -08:00
frontend.h fix(kernel/environment): add weak reference to environment objects 2013-11-07 11:29:08 -08:00
frontend_elaborator.cpp feat(frontends/lean/elaborator): solve easy overloads at preprocessing time 2013-10-29 10:07:15 -07:00
frontend_elaborator.h feat(frontends/lean): hook new elaborator in the default frontend 2013-10-24 15:14:29 -07:00
notation.cpp feat(frontends/lean): make the 'expression template' argument in Subst implicit because higher-order matching can infer it. 2013-10-30 10:45:43 -07:00
notation.h Rename lean frontend files. The prefix lean_ is not necessary anymore. 2013-09-12 20:09:35 -07:00
operator_info.cpp chore(*): add LCOV_EXCL_LINE to lean_unreachable statements 2013-11-11 09:19:38 -08:00
operator_info.h Use fullpath in #include directives, add missing STL headers 2013-09-13 03:35:29 -07:00
parser.cpp feat(lua): allow Lua scripts to update 'global' options 2013-11-12 15:38:00 -08:00
parser.h feat(frontends/lean): add support for embedded Lua scripts in Lean files 2013-11-07 13:56:04 -08:00
pp.cpp chore(*): add LCOV_EXCL_LINE to lean_unreachable statements 2013-11-11 09:19:38 -08:00
pp.h refactor(kernel): move printer and formatter objects to the kernel 2013-10-22 08:15:36 -07:00
scanner.cpp feat(lua): use (** ... **) instead of {{ ... }} for nested Lua scripts 2013-11-12 16:05:49 -08:00
scanner.h feat(lua): add lua_exception for wrapping lua errors, and improve Lua error messages in the Lean frontend 2013-11-07 15:19:26 -08:00