[antlr-interest] Tokens vs. Characters in Lexer/MismatchedTokenException
Rick Mann
rmann at latencyzero.com
Sun Jan 18 12:38:29 PST 2009
As I'm working on my language target, I see that Lexer.match(int c) in
the Java target can create a MismatchedTokenException(), passing c in
to its constructor.
The exception class seems to treat that int as a token. I wouldn't
have thought Tokens and Characters to be interchangeable. What am I
missing?
TIA,
--
Rick
More information about the antlr-interest
mailing list