[antlr-interest] tree grammar question: how to say "anything"
Andy Tripp
antlr at jazillian.com
Fri Aug 17 09:15:19 PDT 2007
If I have the following parser rule, with no rewrite:
guid:
'{' ~('}')* '}'
;
...and assume I have some other parser rule:
otherRule:
'A' ^(GUID guid) 'B'
;
What would my tree grammar rule for guid look like?
I need Something like:
myGuidTreeRule:
GUID blah*
;
...where I want "blah" to mean "any AST whatsoever" (or I guess
actually "any AST other than a StringLiteral with text '}')
Does the treegrammar grammar have any such construct? If not,
can I do it "by hand" somehow?
More information about the antlr-interest
mailing list