[antlr-interest] Accessing the input stream from displayRecognitionError

Gioele Barabucci barabucc at cs.unibo.it
Sun Jan 25 13:00:56 PST 2009


Jim Idle wrote:
> e.input from the Exception, on a CommonToken you can use
> getInputStream() (sometimes the input stream for the token may not be
> the same as the exception, for instance if you handle include
> processing etc).

Yes, but what then? The data field of the e.input IntStream is not
accessible. How can I get to the actual chars of the input stream?

-- 
Gioele Barabucci <barabucc at cs.unibo.it>



More information about the antlr-interest mailing list