[antlr-interest] Re: Translators Should Use Tree Grammars

atripp54321 atripp at comcast.net
Tue Nov 23 07:16:04 PST 2004




> > I don't want to "walk the tree", I want to "search the tree for
patterns
> > and make replacements".
> 
> That's exactly what a tree walker gives you.

But only matching at a particular point in the walking of the
tree, right? In other words, I can't just say "match this pattern
anywhere in the AST", I have to put the pattern at a particular
place in the grammar (or put that action at each and every
node in the grammar). Or Am I missing something?

> 
> Take care,
> 	John





 
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