2014-01-05 20:05:08 +00:00
|
|
|
import Int.
|
|
|
|
variables i j : Int
|
|
|
|
variable p : Bool
|
2013-11-17 02:21:42 +00:00
|
|
|
|
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
|
|
|
*)
|