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
|
|
|
|
|
|
|
|
(**
|
|
|
|
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()
|
2013-11-17 02:21:42 +00:00
|
|
|
**)
|