[antlr-interest] Does overriding display not turn off messages sent to std error?

Dejas Ninethousand dejas9000 at gmail.com
Thu Sep 1 17:26:13 PDT 2011


I have this entry in my grammar file:

@members
{

@Override
public void displayRecognitionError(String[] tokenNames,
RecognitionException e)
{
        errors.add(new ErrorWrapper(getErrorMessage(e, tokenNames), e.line,
e.c));
}
}

but when using the parser I still see a lot of messages like:

line 1:427908 no viable alternative at character ')'
line 1:427909 no viable alternative at character ')'

sent to std error. I thought override displayRecognitionError prevented
that.


More information about the antlr-interest mailing list