public static void analyze(TextReader file) { var input = new AntlrInputStream(file); var lexer = new PlSqlLexer(input); var tokens = new CommonTokenStream(lexer); var parser = new PlSqlParser(tokens); var tree = parser.sql_script(); }