[antlr-interest] Not generating parts of AST (argh!)

Terence Parr parrt at cs.usfca.edu
Sun Oct 24 12:01:39 PDT 2004


On Oct 24, 2004, at 10:43 AM, Paul J. Lucas wrote:
> 	As part of my grammar, I have:
>
> 		additiveExpr
> 		    : mulExpr ( (PLUS^ | MINUS^) mulExpr )*
> 		    ;
>
> 	The children of '+' are always null.  Why?  (This is driving me
> 	nuts!)

Argh...  Hmm... well, can you send the output code real quick?  I can 
look to see if there is a bug.  Note that that is a very common rule; 
it looks correct.

Ter
>
> 	- Paul
>
>
>
>
> Yahoo! Groups Links
>
>
>
>
>
>
>
>
--
CS Professor & Grad Director, 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!





 
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