Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: meta/syntax/bgf/v4.1-adt/extracted
Source used for this grammar: Vadim Zaytsev, Software Language Processing Suite (SLPS), shared/rascal/src/XBGFSyntax.rsc
, 31 May 2012 [Explore]
BGFProduction
, BGFExpression
, BGFValue
), 0 root (—), 1 top (BGFProduction
), 0 bottom (—).[label]
, [lhs]
, [rhs]
, [production]
, [epsilon]
, [empty]
, [v]
, [val]
, [anything]
, [t]
2, [terminal]
, [nonterminal]
, [selector]
, [expr]
7, [selectable]
, [exprs]
2, [sequence]
, [choice]
, [marked]
, [optional]
, [plus]
, [star]
, [sep]
2, [starsepplus]
, [starsepstar]
, [string]
, [integer]
.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]::BGFExpression [choice]::[exprs]::BGFExpression [marked]::[expr]::BGFExpression [optional]::[expr]::BGFExpression [plus]::[expr]::BGFExpression [star]::[expr]::BGFExpression [starsepplus]:: [expr]::BGFExpression [sep]::BGFExpression [starsepstar]:: [expr]::BGFExpression [sep]::BGFExpression
BGFValue ::= [string]::ε [integer]::ε