2014-01-01 21:52:25 +00:00
|
|
|
Import Int.
|
2013-11-17 02:21:42 +00:00
|
|
|
Variables i j : Int
|
|
|
|
Variable p : Bool
|
|
|
|
|
2014-01-05 18:32:47 +00:00
|
|
|
(*
|
2013-11-17 02:21:42 +00:00
|
|
|
local env = get_environment()
|
2013-11-27 20:19:54 +00:00
|
|
|
ok, ex = pcall(
|
2013-11-17 02:21:42 +00:00
|
|
|
function()
|
|
|
|
print(parse_lean("i + p"))
|
|
|
|
end)
|
|
|
|
assert(not ok)
|
2013-11-27 20:19:54 +00:00
|
|
|
assert(is_exception(ex))
|
|
|
|
print(ex:what())
|
|
|
|
ex:rethrow()
|
2014-01-05 18:32:47 +00:00
|
|
|
*)
|