Browsable BGF Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: meta/syntax/bgf/v3.0-xsd/extracted
Source used for this grammar: Ralf Lämmel, Vadim Zaytsev, Software Language Processing Suite (SLPS), shared/xsd/bgf.xsd, 4 February 2009 [Explore]

Summary

Syntax

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

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