Browsable FL Grammar

CC-BY

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]

Summary

Syntax

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]::Expr
IfThenElse ::=
	[ifExpr]::Expr [thenExpr]::Expr [elseExpr]::Expr
Literal ::=
	[info]::integer
Ops ::=
	[Equal]::ε
	[Plus]::ε
	[Minus]::ε
ProgramType ::=
	[function]::Function+

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