Grammar extracted by Vadim Zaytsev, see the Grammar Zoo entry for details: §wip/metasyntax/lll-ldta/extracted
Source used for this grammar: Jan Kort, Ralf Lämmel, Chris Verhoef, The LLL grammar format, April 2002, GDK System Demo, page 2
grammar
, rule
, alts
, alts-tail
, alt
, term
, basis
, repetition
), 1 root (grammar
), 0 top (—), 2 bottom (sort
2, literal
).grammar ::=
rule
rule ::= sort ":" alts ";"
alts ::=
alt alts-tail
alts-tail ::=
"|" alt
alt ::=
term
term ::=
basis repetition
basis ::= literal sort
repetition ::= "*" "+" "?"