[antlr-interest] if-then-else - Grammar generates faulty parser code

Terence Parr parrt at cs.usfca.edu
Thu Apr 22 11:48:24 PDT 2004


On Apr 22, 2004, at 11:15 AM, Monty Zukowski wrote:

> Jeff,
> 	You have a unique situation in that your tree parser actions are your
> runtime and you call them to "execute" the script you have parsed.
> Actually that's pretty clever -- (NOTE TO TERENCE) we (ahem, as I
> recall) haven't given much thought to how to create interpreters with
> ANTLR beyond "do it in the actions."  This merits attention at the next
> ANTLR Cabal to refine ANTLR 3 designs.

You'll note that this is precisely what StringTemplate does.  It parses 
and "compiles" templates down into ASTs, which are executed via eval.g 
tree walker. :)  Super kewl. :)

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