[antlr-interest] Tree parser eats up DOWN node when navigating optional child node

Junkman j at junkwallah.org
Wed Aug 4 15:41:21 PDT 2010


Thanks for the replies, Jim & Gerald.

Your responses and some more testing suggests the following to me:

1. I cannot nest a tree parser rule ("inner rule") in another rule
("outer rule"), and try to have the outer rule match additional nodes in
the subtree matched by the inner rule.

2. Consequently, the set of trees generated by rewrite expression does
not necessarily match the set of trees matched by the same rewrite
expression in the tree parser.

Am I in the ballpark here?

Jay


More information about the antlr-interest mailing list