[antlr-interest] Emit two Tokens in one Lexer Rule
Alexander Gängel
alexander at gaengel.de
Tue Feb 12 05:16:36 PST 2008
All I know is that I can't emit 2 Tokens in one Lexer Rule.
My problem it that I have to decide if I have an Float like 1.1 or an
Int DOT Identifiert lik 5.max
My workaround would be to emit just the first an restart lexing from the
last correct charterer. So I would Just emit 5 as Int and reparse from
the Dot.
Thanks for your Help
Alexander
More information about the antlr-interest
mailing list