def process(data):
        s = antlr4.InputStream(data)
        l = MySQLLexer(s)
        tokens = antlr4.CommonTokenStream(l)
        p = MySQLParser(tokens)
        p._errHandler = Handler()

        try:
            p._errHandler.test = 0
            p._errHandler.text = data
            p.select_clause()
        except Exception as e:
            pass

        try:
            p._errHandler.test = 1
            p._errHandler.text = data
            p.insert_stm()
        except:
            pass
    def outReceived(self, data):
        lines = [l.strip() for l in data.splitlines()]

        for line in lines:
            s = antlr4.InputStream(line)
            l = MySQLLexer(s)
            tokens = antlr4.CommonTokenStream(l)
            p = MySQLParser(tokens)
            p._errHandler = Handler()

            try:
                p._errHandler.test = 0
                p._errHandler.text = line
                p.select_clause()
            except Exception as e:
                pass

            try:
                p._errHandler.test = 1
                p._errHandler.text = line
                p.insert_stm()
            except:
                pass