[antlr-interest] Help with simple parser?
Chris Bergstresser
chris at subtlety.com
Sun Jan 26 11:52:49 PST 2003
> Have you tried:
>
> expr : sumExpr;
> atom : INT | STAT | ( LPAREN! expr RPAREN! );
Doesn't work. It keeps me from needing to wrap whole expressions with
parentheses (as in "1+2" rather than "(1+2)") but doesn't fix the "if(1,
2+3, 4)" problem -- it wants the center bit to be wrapped as well, and it
shouldn't *need* to be.
-- Chris
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list