class ErrorPrinter implements ANTLRErrorListener { syntaxError (recognizer: Recognizer, offendingSymbol: any | undefined, line: number, charPositionInLine: number, msg: string, e: RecognitionException | undefined) { if (e) { console.log ("line: "+line+" positon: "+charPositionInLine+" message: "+msg); } } }