lean2/src/frontends/lean
Leonardo de Moura 98897b467d feat(frontends/lean/parser): add support for Lua expression code blocks
In expression code blocks, we do not have to write a "return".
After this commit, the argument of an apply command is a Lua expression instead of a Lua block of code. That is, we can now write

apply (** REPEAT(ORELSE(imp_tactic, conj_tactic, conj_hyp_tactic, assumption_tactic)) **)

instead of

apply (** return REPEAT(ORELSE(imp_tactic, conj_tactic, conj_hyp_tactic, assumption_tactic)) **)

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-29 10:21:24 -08:00
..
CMakeLists.txt refactor(frontends/lua): rename leanlua_state to script_state, and move it to util 2013-11-27 14:57:36 -08:00
coercion.h Rename lean frontend files. The prefix lean_ is not necessary anymore. 2013-09-12 20:09:35 -07:00
frontend.cpp refactor(library/state): rename Lean state object to io_state 2013-11-21 17:29:06 -08:00
frontend.h refactor(library/state): rename Lean state object to io_state 2013-11-21 17:29:06 -08:00
frontend_elaborator.cpp feat(frontends/lean/parser): add basic tactic support in the frontend 2013-11-28 21:08:12 -08:00
frontend_elaborator.h feat(frontends/lean/parser): add basic tactic support in the frontend 2013-11-28 21:08:12 -08:00
notation.cpp feat(kernel/environment): track which modules were already imported 2013-11-17 18:15:44 -08: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(frontends/lean/parser): add support for Lua expression code blocks 2013-11-29 10:21:24 -08:00
parser.h refactor(frontends/lua): rename leanlua_state to script_state, and move it to util 2013-11-27 14:57:36 -08:00
pp.cpp refactor(kernel): add find_fn, replace for_each_fn with find_fn when appropriate, remove unnecessary function has_cached_type 2013-11-19 13:03:46 -08:00
pp.h refactor(kernel): move printer and formatter objects to the kernel 2013-10-22 08:15:36 -07:00
register_module.cpp refactor(util/script_state): replace std::recursive_mutex with std::mutex, and use unlock_guard 2013-11-27 15:40:41 -08:00
register_module.h refactor(frontends/lua): rename leanlua_state to script_state, and move it to util 2013-11-27 14:57:36 -08: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