Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/fl/abstract/rascal/extracted
Source used for this grammar: Vadim Zaytsev, Abstract.rsc
, Jun 2012 [GitHub]
FLPrg
, FLFun
, FLExpr
, FLOp
), 0 root (—), 1 top (FLPrg
), 1 bottom (str
).[fs]
, [prg]
, [f]
2, [args]
, [body]
, [fun]
, [e1]
, [op]
, [e2]
, [binary]
, [vargs]
, [apply]
, [c]
, [t]
, [e]
, [ifThenElse]
, [a]
, [argument]
, [i]
, [literal]
, [minus]
, [plus]
, [equal]
.FLPrg ::=
[prg]::[fs]::FLFun
FLFun ::= [fun]::[f]::string [args]::str [body]::FLExpr
FLExpr ::= [binary]::[e1]::FLExpr [op]::FLOp [e2]::FLExpr [apply]:: [f]::string [vargs]::FLExpr [ifThenElse]:: [c]::FLExpr [t]::FLExpr [e]::FLExpr [argument]::[a]::string [literal]::[i]::integer
FLOp ::= [minus]::ε [plus]::ε [equal]::ε