import { Recognizer , RecognitionException , ANTLRErrorListener } from 'antlr4ts' ; /**
 * Stores errors in ANTLR parsing in a list for later access
 */ export class SyntaxErrorListener implements ANTLRErrorListener < any > { public error_list = [ ] ; public syntaxError < T > ( _recognizer , offendingSymbol , line , charPositionInLine , msg , _e ) { line -= 1 ; this . error_list . push ( { offendingSymbol , line , charPositionInLine , msg } ) ; } }