lexer.addErrorListener (new ErrorPrinter()); parser.addErrorListener (new ErrorPrinter());