[antlr-interest] Finding character index from parser exception
Cameron Ross
cross at kojeware.com
Tue May 18 17:48:42 PDT 2010
Hi,
I have an application that needs to know the index within the lexer's input
character stream where a parser exception occurred. The RecognizerException
generated in the parser contains the line # and character position within
the line. It also contains the index within the parser's input token stream
where the exception occurred. How can I determine the character index
within the lexer's input stream when the exception is generated in the
parser?
Thanks,
Cameron.
More information about the antlr-interest
mailing list