[antlr-interest] Need help with rewrite rules
Mark Wright
markwright at internode.on.net
Wed Mar 24 06:32:28 PDT 2010
Hi Stefan,
This is described in chapter 9 (in particular starting at section 9.5 on)
of the ANTLR book (The Definitive ANTLR Reference). One way that
is described in the book (which is highly recommended) which
would probably be easier for your situation is to use:
options { /* other options you need */
rewrite = true; }
if this is supported by the ANTLR runtime target you are using,
and whatever the equivalent of TokenRewriteStream is for that
target (it could be called something completely different).
Regards, Mark
More information about the antlr-interest
mailing list