Elements = e*/ws
-PreSequence = PS
+PreSequence = Elements
| (Quoted|Word) ^"::" PreSequence /ws
> PreSequence ^"/" e /ws
| PreSequence ^"->" e /ws
-PS = Elements
Sequence = psx:: PreSequence
- | Sequence ^"&" PS /ws
- | Sequence ^"&~" PS /ws
+ | Sequence ^"&" Elements /ws
+ | Sequence ^"&~" Elements /ws
ec = ~[\-\]\\]
| escaped
Literal = Quoted
Word = [a-zA-Z0-9_]++
Quoted = "\"" ((~[\"\\] | escaped)+) "\""
- | "":: "\"\""
+ | EmptyString
+EmptyString = "\"\""
escaped = "\n":: "\\n"
| "\r":: "\\r"