public override ITokenStream GetAntlrTokenStream(TextReader reader)
        {
            var lexer  = new SqlServerLexer(new ANTLRReaderStream(reader));
            var tokens = new CommonTokenStream(lexer);

            return(tokens);
        }
Exemplo n.º 2
0
        public ISqlParser CreateSqlParser(string sql)
        {
            var charStream        = CharStreams.fromString(sql);
            var mySqlLexer        = new SqlServerLexer(charStream);
            var commonTokenStream = new CommonTokenStream(mySqlLexer);

            return(new SqlParser.SqlServerParser(commonTokenStream));
        }
Exemplo n.º 3
0
 public override ITokenStream GetAntlrTokenStream(TextReader reader)
 {
     var lexer = new SqlServerLexer(new ANTLRReaderStream(reader));
     var tokens = new CommonTokenStream(lexer);
     return tokens;
 }