[antlr-interest] beginner's question
Terence Parr
parrt at cs.usfca.edu
Tue May 24 16:40:18 PDT 2005
On May 24, 2005, at 8:30 AM, Yuxiao Hu wrote:
> class CalcTreeWalker extends TreeParser;
>
> expr : # (PLUS expr expr)
> | # (STAR expr expr)
> | INT
expr : #(PLUS expr expr)
| #(STAR expr expr)
| INT
;
remove spaces. :)
T
--
CS Professor & Grad Director, University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
More information about the antlr-interest
mailing list