[antlr-interest] Catch the rest
Michael Mosmann
michael at mosmann.de
Thu Sep 6 09:14:43 PDT 2007
Hello,
maybe there is an easy way. Currently i read the ANTLR Reference Book.
But i think i am on a wrong way.
I have following text:
----------------------
Some text an then ${varname.Property} and text.
----------------------
what i want is
--Text
|
-${ reference }
| |
| -varname.Property
|
-Text
Is it possible to get this result without a treeparser? Is there
something like
------------------------------
block:
(text | reference)+;
reference:
('a'.. .. . ..'Z'|'.')+;
text: <get this, if nobody wants it>;
------------------------------
?
Thanks..
Michael Mosmann
More information about the antlr-interest
mailing list