[antlr-interest] Modifying token type within parser

Jeff Dahl jddahl at micron.com
Tue Jul 12 14:07:15 PDT 2005


Is it possible to modify the token type within the parser?

I tried:

    parser_rule:  t:TOKEN {t.setType(OTHER_TOKEN);}

but, the actual token passed up is still of type TOKEN.

Thanks,
Jeff


More information about the antlr-interest mailing list