Browsable FL Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/fl/abstract/emf/ecore/extracted
Source used for this grammar: Guido Wachsmuth, Vadim Zaytsev, fl.ecore, 26 June 2008 – 28 May 2009 [GitHub]

Summary

Syntax

Program ::=
	[function]::Function+
Function ::=
	[name]::string [argument]::Argument+ [definition]::Exp
Argument ::=
	[name]::string
Exp ::=
	LiteralExp
	ArgumentExp
	IfThenElseExp
	ApplyExp
	BinaryExp
LiteralExp ::=
	[value]::integer
ArgumentExp ::=
	[argument]::Argument
IfThenElseExp ::=
	[if]::Exp [then]::Exp [else]::Exp
ApplyExp ::=
	[function]::Function [argument]::Exp+
BinaryExp ::=
	PlusExp
	MinusExp
	EqualExp
PlusExp ::=
	[left]::Exp [right]::Exp
MinusExp ::=
	[left]::Exp [right]::Exp
EqualExp ::=
	[left]::Exp [right]::Exp

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