[antlr-interest] Newbie ANTLR question

Terence Parr parrt at cs.usfca.edu
Tue Dec 14 13:47:16 PST 2004



On Dec 14, 2004, at 12:05 PM, inyoursadmachine wrote:
> ast:
>  ( = $name1 "batman" ) ( = $name2 "robin" ) ( if ( ==
> $name1 "catwoman" ) ( COMPOUND_STATEMENT { ( = $name3 "the
> joker" ) } ) )
>
> My question is how do I process a statement at a time from the AST?
> Or is this even the correct approach?  Can I do this from my tree
> parser or do I need custom code for this?

Hi Matt,

You should do it with actions in your tree parser :)

Ter

--
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