[antlr-interest] insert token in lexer?
Erik.Putrycz at nrc-cnrc.gc.ca
Tue May 30 11:30:08 PDT 2006
Is it possible to insert a token in a lexer rule?
On a specific rule, I'd like to change the type of the token with a
$setType(...) and I'd also would like to insert another token.
I know I could do that with a TokenStream but I'd rather avoid writing
that in Java if possible...
Erik Putrycz, Ph.D - Research Associate /
<mailto:erik.putrycz at nrc-cnrc.gc.ca> erik.putrycz at nrc-cnrc.gc.ca / (613)
Institute for Information Technology - Software Engineering Group
National Research Council, Canada - Building M-50, 1200 Montreal Road
Ottawa, Ontario, CANADA K1A 0R6
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the antlr-interest