[antlr-interest] [v3] Trouble with rewrite...
Mark Mandel
mark.mandel at gmail.com
Sun Jun 3 18:18:39 PDT 2007
Heya, I can't work out how to rewrite this tree..
The rule looks like this:
startTag
:
START_TAG_OPEN^ START_TAG_CLOSE
tag* (endTag | EOF)
;
Basically, all I ever want is that structure, but without the EOF taken.
Do I need to do a rewrite, depending on whether I am at endTag | EOF?
Would that be right?
Thanks in advance,
Mark
--
E: mark.mandel at gmail.com
W: www.compoundtheory.com
More information about the antlr-interest
mailing list