[antlr-interest] [v3] A Nit-Pick: ! and ? together
John B. Brodie
jbb at acm.org
Thu Sep 14 13:19:13 PDT 2006
Greetings :-
I have a situation where the semicolon at the end of a particular
statement is optional. I do not need/want that semicolon in the tree
(it is just syntactic sugar).
Given that now in v3 the ()'s are no longer required for the ?, *, and
+ on single items; I tried:
foo1 : bar1 ';'!? ; // error
foo2 : bar2 ';'?! ; // error
foo3 : bar3 (';'!)? ; // works!
foo4 : bar4 (';'?)! ; // did not try this one...
an extremely small issue....
-jbb
More information about the antlr-interest
mailing list