Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: §wip/metasyntax/lll-kort/extracted
Source used for this grammar: Jan Kort, The LLL grammar format, May 2003, GDK Reference Manual, Chapter 3, page 3
specification
, rule
, disjunction
, conjunction
, term
, basis
, repetition
, alternation
, group
), 1 root (specification
), 0 top (—), 2 bottom (ident
2, literal
).specification ::=
rule
rule ::= ident ":" disjunction ";"
disjunction ::= "|"conjunction
conjunction ::=
term
term ::=
basis repetition
basis ::=
ident
literal
"%epsilon"
alternation
group
repetition ::= "+" "*" "?"
alternation ::= "{" basis basis "}" repetition
group ::= "(" disjunction ")"