[antlr-interest] sneak preview of ANTLR v3.2 (book release version)

Oliver Zeigermann oliver.zeigermann at gmail.com
Sat Nov 29 13:30:50 PST 2008


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 <parrt at antlr.org>:
> 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/mailman/listinfo/antlr-interest
> Unsubscribe: http://www.antlr.org/mailman/options/antlr-interest/your-email-address
>
>


More information about the antlr-interest mailing list