private void MakeParser(string input, Action <SqlCompileMessage> messageReceiver)
        {
            using (var reader = new StringReader(input)) {
                var inputStream = new AntlrInputStream(reader);
                lexer = new PlSqlLexer(inputStream);

                var commonTokenStream = new CommonTokenStream(lexer);

                plSqlParser = new PlSqlParser(commonTokenStream);
                plSqlParser.RemoveErrorListeners();
                plSqlParser.AddErrorListener(new ErrorHandler(messageReceiver));
            }
        }
Example #2
0
        private void MakeParser(string input, Action<SqlCompileMessage> messageReceiver)
        {
            using (var reader = new StringReader(input)) {
                var inputStream = new AntlrInputStream(reader);
                lexer = new PlSqlLexer(inputStream);

                var commonTokenStream = new CommonTokenStream(lexer);

                plSqlParser = new PlSqlParser(commonTokenStream);
                plSqlParser.RemoveErrorListeners();
                plSqlParser.AddErrorListener(new ErrorHandler(messageReceiver));
            }
        }