Hi Folks...

Been trying to figure out how to shut off default Lexer behavior to print 
messages to System.err, such as:

        line 2:4 no viable alternative at character ' '

Instead, I'd like to catch these and do something with them.  Overriding 
reportError(RecognitionException) doesn't work and no other option seems 
obvious.

Doing this with a parser is easy - I just overrode emitErrorMessage in a custom 
subclass of Parser.  Got that done already, but can't seem to find out how to 
do the same in the lexer.

Any help appreciated.

        .bill


List: http://www.antlr.org/mailman/listinfo/antlr-interest
Unsubscribe: 
http://www.antlr.org/mailman/options/antlr-interest/your-email-address

-- 
You received this message because you are subscribed to the Google Groups 
"il-antlr-interest" group.
To post to this group, send email to il-antlr-inter...@googlegroups.com.
To unsubscribe from this group, send email to 
il-antlr-interest+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/il-antlr-interest?hl=en.

Reply via email to