[antlr-interest] Re: A way to find all subtrees of a particular type?

rustydstone rustydstone at yahoo.com
Wed May 21 10:55:57 PDT 2003


--- In antlr-interest at yahoogroups.com, Terence Parr <parrt at j...> wrote:
> Won't that find all single nodes?

Not sure I understand.

Let me rephrase the question: I have a somewhat complex tree, some
nodes of that tree are multiplication nodes (e.g. 4 * 5). I'd like to
be able to find ALL multiplication nodes of the tree. I can obviously
manually walk the tree and look for the nodes of certain type but I
was hoping there would be a simpler way.

Thanks



 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




More information about the antlr-interest mailing list