python-lambda-interpreter/betarules.rules
2022-09-27 17:17:59 +02:00

5 lines
233 B
Text

term := Var | "\\" Var "." term @ label="abstraction" | term " " term @ label="application" | "(" term ")" @ hidden=True
simple_type := Var | simple_type "->" simple_type @ label="arrow"
assoc "application" left
assoc "arrow" right