[antlr-interest] Parser question
Terence Parr
parrt at cs.usfca.edu
Thu May 27 09:44:33 PDT 2004
On May 27, 2004, at 8:34 AM, Dima Suliman wrote:
> Hello Terence,
>
> I've tried:
> statement: (equation)+;
> equation: EQ^ expr expr;
> (the mathematical expression are in prefix form: e.g., + a b)
>
> It didn't work. Printing the AST you see only the first equation....
Oh, sorry. THen the solution is to use .toStringList() not
toStringTree() or toString() :)
Terence
--
Professor Comp. Sci., University of San Francisco
Creator, ANTLR Parser Generator, http://www.antlr.org
Cofounder, http://www.jguru.com
Cofounder, http://www.knowspam.net enjoy email again!
Cofounder, http://www.peerscope.com pure link sharing
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/antlr-interest/
<*> To unsubscribe from this group, send an email to:
antlr-interest-unsubscribe at yahoogroups.com
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list