[antlr-interest] Is it possible to do rewriting for lexer?
Mu Qiao
qiaomuf at gmail.com
Sun Jul 24 05:43:38 PDT 2011
I have some token rules like:
SINGLE_QUOTED_STRING: SQUOTE (~SQUOTE)* SQUOTE;
I'd like to hide the first SQUOTE token and the last SQUOTE token from
the parser grammar. Is there any way to do that? I've tried the hidden
channel and the skip() method, but they work for the whole rule, not
just for the tokens I need to hide.
--
Best wishes,
Mu Qiao
GnuPG fingerprint: 92B1 B0C4 8D14 F8C4 EFA5 3ACC 30B3 0DE4 17B1 57E9
More information about the antlr-interest
mailing list