1 s ::= !ws Grammar ws => "gram"
2 Grammar ::= NonTerminal +/ ws => "grammar"
3 NonTerminal ::= word ^"::=" RHS /ws
5 RHS ::= (Conjuncts +/ (!ws "|" !ws)) +/ (!ws ">" !ws)
8 | Sequence ^"&" Elements /ws
9 | Sequence ^"&~" Elements /ws
12 psy ::= Elements => "ps"
15 | psy ^"=>" ("[]"|"()"|word|Quoted) /ws
16 Sequence ::= Quoted => "qprod"
22 Range ::= ec => "range"
25 e ::= word => "nonTerminal"
28 | ^"{" Sequence "}" /ws
47 word ::= [a-zA-Z0-9_]++
48 Quoted ::= "\"" ((~[\"\\] | escaped)+) "\""
50 escaped ::= "\\n" => "\n"
55 w ::= " " | "\n" | "\r"
57 | w** "//" ~[\n]* "\n" ws => ()