2014-01-05 20:05:08 +00:00
|
|
|
import Int.
|
2013-12-30 21:35:37 +00:00
|
|
|
|
2014-01-05 18:32:47 +00:00
|
|
|
(*
|
2013-11-16 06:01:06 +00:00
|
|
|
function add_paren(code)
|
2014-01-05 18:32:47 +00:00
|
|
|
return "(" .. "* " .. code .. " *" .. ")"
|
2013-11-16 06:01:06 +00:00
|
|
|
end
|
|
|
|
parse_lean_cmds(add_paren([[
|
|
|
|
local env = get_environment()
|
|
|
|
env:add_var("x", Const("Int"))
|
|
|
|
print(env:find_object("x"))
|
|
|
|
]]))
|
|
|
|
print("done")
|
2014-01-05 18:32:47 +00:00
|
|
|
*)
|