[antlr-interest] Accessing the input stream from displayRecognitionError
Gioele Barabucci
barabucc at cs.unibo.it
Sun Jan 25 09:51:18 PST 2009
Is it possible to access the input char stream from lexer's
displayRecognitionError(String[] tokenNames, RecognitionException e)?
Following the error chapter on the ANTLR book I managed to get Token names
and other grammar information. Yet, I don't see how to access the input char
stream to display the characters preceding and following the error.
--
Gioele Barabucci <barabucc at cs.unibo.it>
More information about the antlr-interest
mailing list