Browsable BGF Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: meta/syntax/bgf/v4.3-adt/extracted
Source used for this grammar: Vadim Zaytsev, Software Language Processing Suite (SLPS), shared/rascal/src/syntax/BGF.rsc, 3 July 2012 [Explore]

Summary

Syntax

BGFProdList ::=
	BGFProduction*
BGFExprList ::=
	BGFExpression*
BGFGrammar ::=
	[grammar]::([roots]::string* [prods]::BGFProdList)
BGFProduction ::=
	[production]::([label]::string [lhs]::string [rhs]::BGFExpression)
BGFExpression ::=
	[epsilon]::ε
	[empty]::ε
	[val]::[v]::BGFValue
	[anything]::ε
	[terminal]::[t]::string
	[nonterminal]::[t]::string
	[selectable]::([selector]::string [expr]::BGFExpression)
	[sequence]::[exprs]::BGFExprList
	[choice]::[exprs]::BGFExprList
	[marked]::[expr]::BGFExpression
	[optional]::[expr]::BGFExpression
	[plus]::[expr]::BGFExpression
	[star]::[expr]::BGFExpression
	[seplistplus]::([expr]::BGFExpression [sep]::BGFExpression)
	[sepliststar]::([expr]::BGFExpression [sep]::BGFExpression)
BGFValue ::=
	[string]::ε
	[integer]::ε

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