Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/fl/abstract/emf/xsd/extracted
Source used for this grammar: Vadim Zaytsev, generated from fl.xsd, fl.ecore
, 28 May 2009 [GitHub]
Apply
, Argument
, Binary
, Expr
, Function
, IfThenElse
, Literal
, Ops
, ProgramType
), 0 root (—), 1 top (ProgramType
), 0 bottom (—).[name]
3, [arg]
2, [ops]
, [left]
, [right]
, [rhs]
, [ifExpr]
, [thenExpr]
, [elseExpr]
, [info]
, [Equal]
, [Plus]
, [Minus]
, [function]
.Apply ::=
[name]::string [arg]::Expr
Argument ::= [name]::string
Binary ::= [ops]::Ops [left]::Expr [right]::Expr
Expr ::= Apply Argument Binary IfThenElse Literal
Function ::=
[name]::string [arg]::string
[rhs]::ExprIfThenElse ::= [ifExpr]::Expr [thenExpr]::Expr [elseExpr]::Expr
Literal ::= [info]::integer
Ops ::= [Equal]::ε [Plus]::ε [Minus]::ε
ProgramType ::=
[function]::Function