Browsable BTF Grammar

CC-BY

Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: meta/syntax/terms/btf/extracted
Source used for this grammar: Ralf Lämmel, Software Language Processing Suite (SLPS), shared/xsd/btf.xsd, 2008 [Explore]

Summary

Syntax

root ::=
	grammar tree
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
tree ::=
	[epsilon]::ε
	[any]::α
	[terminal]::terminal
	[nonterminal]::(production tree)
	[selectable]::([selector]::selector tree)
	[value]::([int]::integer | [string]::string)
	[sequence]::tree*
	[choice]::(expression tree)
	[optional]::tree?
	[plus]::tree+
	[star]::tree*

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