[antlr-interest] Match any node/subtree

Thomas Vial tvial at octo.com
Sat Jul 5 08:06:58 PDT 2008


Hi,

Is there a way to have a rule, in a tree grammar, match any node/subtree
whatever it is (like a wildcard)? Something like:

rule:
   ^(NODE child) { doSomething($child); }   // child is any subtree, no
subrule to match it explicitely


Thanks,

Thomas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20080705/b6d4502e/attachment.html 


More information about the antlr-interest mailing list