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"
16 Sequence ::= Quoted => "qprod"
19 | psx ^"=>" ("()"|word|Quoted) /ws
24 Range ::= ec => "range"
27 e ::= word => "nonTerminal"
30 | ^"{" Sequence "}" /ws
43 | "^" Quoted /ws => caret
49 word ::= [a-zA-Z0-9_]++
50 Quoted ::= "\"" ((~[\"\\] | escaped)+) "\""
52 escaped ::= "\\n" => "\n"
57 w ::= " " | "\n" | "\r"
59 | w** "//" ~[\n]* "\n" ws => ()