Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/fl/concrete/txl/extracted
Source used for this grammar: Vadim Zaytsev, FL.Txl
, 6–7 Jul 2009 [Explore]
program
, fun
, expression
, op
), 1 root (program
), 0 top (—), 3 bottom (id
4, newline
, number
).program ::=
fun
fun ::= id id"=" expression newline
expression ::= expression op expression id expression"if" expression "then" expression "else" expression "(" expression ")" id number
op ::= "+" "-" "=="