Browsable FL Grammar

CC-BY

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]

Summary

Syntax

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]::ε

GrammarLabMaintained by Dr. Vadim Zaytsev a.k.a. @grammarware. Last updated in September 2015. []