[antlr-interest] Lexer problem
Richard Clark
rdclark at gmail.com
Tue Mar 11 09:31:45 PDT 2008
If you want to know when there's an error in the lexer (which it
usually recovers from automatically), you could override public void
reportError(RecognitionException e)
Another option, if you wanted to leave error recovery intact, could be
to specify the error and then use a validating predicate to catch it:
HASH WS? 'aaa' (WS DECIMAL_DIGIT)? {$DECIMAL_DIGIT != null}?
...Richard
More information about the antlr-interest
mailing list