Browsable BGF Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: meta/syntax/bgf/v5.2-xsd/extracted
Source used for this grammar: Ralf Lämmel, Vadim Zaytsev, Software Language Processing Suite (SLPS), shared/xsd/bgf.xsd, 18 December 2011 [Explore]

Summary

Syntax

grammar ::=
	[root]::nonterminal* production*
nonterminal ::=
	string
production ::=
	[label]::label? [nonterminal]::nonterminal expression
label ::=
	string
expression ::=
	[epsilon]::ε
	[empty]::ε
	[value]::value
	[any]::ε
	[terminal]::terminal
	[nonterminal]::nonterminal
	[selectable]::([selector]::selector expression)
	[marked]::expression
	[sequence]::expression+
	[choice]::expression+
	[allof]::expression+
	[not]::expression
	[optional]::expression
	[plus]::expression
	[star]::expression
	[seplistplus]::(expression expression)
	[sepliststar]::(expression expression)
value ::=
	[int]::ε
	[string]::ε
terminal ::=
	string
selector ::=
	string

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