[antlr-interest] Re: A way to find all subtrees of a particular type?
Terence Parr
parrt at jguru.com
Wed May 21 11:10:31 PDT 2003
If you find all single MULT nodes have you not found precisely what
you're looking for?
Ter
On Wednesday, May 21, 2003, at 10:55 AM, rustydstone wrote:
> --- 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/
>
>
>
--
Co-founder, http://www.jguru.com
Creator, ANTLR Parser Generator: http://www.antlr.org
Co-founder, http://www.peerscope.com link sharing, pure-n-simple
Lecturer in Comp. Sci., University of San Francisco
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
More information about the antlr-interest
mailing list