output "1:{{a b} {c}}";
s ::= ids
- ids ::= id (" " ids &~ id [~]*) => "1"
- | id ( ids &~ id [~]*) => "2"
+ ids ::= id (" " ids &~ id ~[]*) => "1"
+ | id ( ids &~ id ~[]*) => "2"
| id
id ::= [a-z]++
}
indent !::= ww
outdent !::= " " outdent " "
- | " " ([~]*) "\n"
+ | " " (~[]*) "\n"
-any !::= [~]*
+any !::= ~[]*
s ::= any "\n\n" ww statement ww "\n\n" any => smt
ww !::= sp*
ws !::= sp**
sp ::= " "
block ::= "\n" indent blockBody
- &~ "\n" outdent [~\ ] [~]*
+ &~ "\n" outdent ~[\ ] ~[]*
blockBody ::= statement
> statement blockBody /ws => "sbb"