That's pretty cool and exactly what I need.

My trick to transform partial trees only was to have a rule like that

treee
        : ^(. treee* )
        ;

which would walk a complete tree in ANTLR 2 as a starting point. For
each subtree to match you then add an alternative into that rule.
That's why I wanted to have this work in ANTLR 3 as well.

Oliver

2008/11/29 Terence Parr <[EMAIL PROTECTED]>:
> tree pattern matching for ANTLR v3.2 (it lives in my dev branch!).
> super cool.
>
> http://tinyurl.com/5axpt2
>
> Need it for the book.
>
> Ter
>
> List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
> Unsubscribe: 
> http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address
>
>

List: http://www.antlr.org:8080/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org:8080/mailman/options/antlr-interest/your-email-address


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to