lean2/tests/lean/lua13.lean
Leonardo de Moura 8525e8534b feat(lua): expose parse_expr and parse_commands from frontends/lean in the Lua API
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-15 16:11:26 -08:00

13 lines
278 B
Text

Variables x y z : Int
Variable f : Int -> Int -> Int
(**
local t = parse_lean("fun w, f w (f y 0)")
print(t)
assert(t:closed())
local n, d, b = t:fields()
print(b)
assert(not b:closed())
local env = get_environment()
assert(d == env:find_object("Int"):get_value())
**)