[antlr-interest] insert token in lexer?
Putrycz, Erik
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...
Thanks,
Erik Putrycz, Ph.D - Research Associate /
<mailto:erik.putrycz at nrc-cnrc.gc.ca> erik.putrycz at nrc-cnrc.gc.ca / (613)
990 0681
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...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20060530/5e320112/attachment.html
More information about the antlr-interest
mailing list