[antlr-interest] Error reporting with DebugListener attached
Indhu Bharathi
indhu.b at s7software.com
Thu Feb 26 08:28:03 PST 2009
Hi,
I'm attaching a debug listener to my parser and overriding 'recognitionException' method as shown below.
public void recognitionException (RecognitionException e) {
System.err.println(e);
}
But I see that the error message printed is not as good as what is printed in stderr when the debug option is not set. Is there a way to attach debug listener and still get error messages in stderr? By default when debug listener is attached, error messages to stderr are turned off. Or is there a simple way to report error as good as how ANTLR does it in stderr instead of just printing 'e'?
- Indhu
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.antlr.org/pipermail/antlr-interest/attachments/20090226/306d5fb3/attachment.html
More information about the antlr-interest
mailing list