dd72269b13
It is not nice to have Set as a reserved keyword. See example examples/lean/set.lean Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>
19 lines
320 B
Text
19 lines
320 B
Text
Variable x : Int
|
|
SetOption 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
|