Browsable FL Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: toy/fl/abstract/java/om/extracted
Source used for this grammar: Ralf Lämmel, ..., Program.java, Function.java, 17 May – 28 July 2008 [GitHub]

Summary

Syntax

Apply ::=
	[name]::string [args]::Expr*
Argument ::=
	[name]::string
Binary ::=
	[ops]::Ops [left]::Expr [right]::Expr
Expr ::=
	Apply
	Argument
	Binary
	IfThenElse
	Literal
Function ::=
	[name]::string [args]::string* [rhs]::Expr
IfThenElse ::=
	[ifExpr]::Expr [thenExpr]::Expr [elseExpr]::Expr
Literal ::=
	[info]::integer
Ops ::=
	[Equal]::ε
	[Plus]::ε
	[Minus]::ε
Program ::=
	[functions]::Function*
Visitor ::=
	φ

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