lean2/tests/lean/lua6.lean
Leonardo de Moura 8190d4fed5 feat(lua): allow Lua scripts to update 'global' options
Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
2013-11-12 15:38:00 -08:00

19 lines
308 B
Text

Variable x : Int
Set pp::notation false
{{
print(get_options())
}}
Check x + 2
{{
o = get_options()
o = o:update(name('lean', 'pp', 'notation'), true)
set_options(o)
print(get_options())
}}
Check x + 2
{{
set_option(name('lean', 'pp', 'notation'), false)
print(get_options())
}}
Variable y : Int
Check x + y