| ^"!" e /ws
| e ^"?" /ws
| ^"^" Quoted
- | "(" Word ^")" /ws
> ^"(" RHS ")" /ws
| ^"~" e
- > "^^":: "^" e
NonTerminalReference = Word
-Literal = Quoted
-Word = [a-zA-Z0-9_]++
-Quoted = "\"" ((~[\"\\] | escaped)+) "\""
- | "":: "\"\""
+Literal = Quoted
+Word = [a-zA-Z0-9_]++
+Quoted = "\"" ((~[\"\\] | escaped)+) "\""
+ | "":: "\"\""
+
escaped = "\n":: "\\n"
| "\r":: "\\r"
| "\\" ~[nr]