public override void DisplayRecognitionError(string[] tokenNames,
RecognitionException e)
{
string msg = GetParserErrorMessage(this, e);
if (paraphrases.Count > 0)
{
string paraphrase = paraphrases.Peek();
msg = msg + " while " + paraphrase;
}
//List stack = getRuleInvocationStack(e, this.getClass().getName());
//msg += ", rule stack = " + stack;
tool.errMgr.SyntaxError(ErrorType.SYNTAX_ERROR, SourceName, e.Token, e, msg);
}