[antlr-interest] Re: Adding parenthesis to the calc grammer

=?gb2312?B?us6zrA==?= hc7750 at 163.com
Sun Feb 20 20:51:51 PST 2005


expr: mexpr (PLUS^ mexpr)* SEMI!
;
mexpr
: atom (STAR^ atom)*
;
atom: INT | LP expr RP
;



...

LP: '(';
RP: ')';
...
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20050221/8d006879/attachment.html


More information about the antlr-interest mailing list