2014-01-05 12:05:08 -08:00
|
|
|
import Int.
|
|
|
|
variables i j : Int
|
|
|
|
variable p : Bool
|
2013-11-16 18:21:42 -08:00
|
|
|
|
2014-01-05 10:32:47 -08:00
|
|
|
(*
|
2013-11-16 18:21:42 -08:00
|
|
|
local env = get_environment()
|
2013-11-27 12:19:54 -08:00
|
|
|
ok, ex = pcall(
|
2013-11-16 18:21:42 -08:00
|
|
|
function()
|
|
|
|
print(parse_lean("i + p"))
|
|
|
|
end)
|
|
|
|
assert(not ok)
|
2013-11-27 12:19:54 -08:00
|
|
|
assert(is_exception(ex))
|
|
|
|
print(ex:what())
|
|
|
|
ex:rethrow()
|
2014-01-05 10:32:47 -08:00
|
|
|
*)
|