[antlr-interest] Getting the exceptions caught in nextToken()

Andreas Ravnestad andreas.ravnestad at gmail.com
Tue Dec 4 09:25:54 PST 2007


Currently it seems the nextToken() method in the base lexer class can
not be forced to throw exceptions on to the parser (or anything else)
-- instead the lexer is catching them and printing error messages to
stderr. How can these exceptions be thrown back to the parser so they
can be used?

Thanks,
Andreas


More information about the antlr-interest mailing list