@Override public void syntaxError(Recognizer<?,?> recognizer,Object offendingSymbol,int line,int charPositionInLine,String msg,RecognitionException e){
  parseIssues.add(new ParseIssue(line,charPositionInLine,msg,currentFileName,ParseIssueType.SYNTAX_ERROR));
  try {
    setAtLeastOneError(true);
    if (currentFileName == null)     log.error("line " + line + ":"+ charPositionInLine+ " "+ msg);
 else {
      String fileName=currentFileName;
      log.error(fileName + " line " + line+ ":"+ charPositionInLine+ " "+ msg);
    }
  }
 catch (  Exception e1) {
    log.error("ERROR: while customizing error message:" + e1);
  }
}

@ Override public void syntaxError ( Recognizer < ? , ? > recognizer , Object offendingSymbol , int line , int charPositionInLine , String msg , RecognitionException e ) { parseIssues . add ( new ParseIssue ( line , charPositionInLine , msg , currentFileName , ParseIssueType . SYNTAX_ERROR ) ) ; try { setAtLeastOneError ( true ) ; if ( currentFileName == null ) log . error ( "line " + line + ":" + charPositionInLine + " " + msg ) ; else { String fileName = currentFileName ; log . error ( fileName + " line " + line + ":" + charPositionInLine + " " + msg ) ; } } catch ( Exception e1 ) { log . error ( "ERROR: while customizing error message:" + e1 ) ; } }
syntax error occurred . add the error to the list of parse issues .
