Browsable FL Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/fl/abstract/xsd/extracted
Source used for this grammar: Ralf Lämmel, fl.xsd, 20 May – 29 July 2008 [GitHub]

Summary

Syntax

Program ::=
	[function]::Function+
Fragment ::=
	Expr
Function ::=
	[name]::string [arg]::string+ [rhs]::Expr
Expr ::=
	Literal
	Argument
	Binary
	IfThenElse
	Apply
Literal ::=
	[info]::integer
Argument ::=
	[name]::string
Binary ::=
	[ops]::Ops [left]::Expr [right]::Expr
Ops ::=
	[Equal]::ε
	[Plus]::ε
	[Minus]::ε
IfThenElse ::=
	[ifExpr]::Expr [thenExpr]::Expr [elseExpr]::Expr
Apply ::=
	[name]::string [arg]::Expr+

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