CharStream stream = new NoCaseFileStream("sqldata/Oracledb.sql");
ToolSQLLexer lexer = new ToolSQLLexer(stream);
TokenStream tokenStream = new CommonTokenStream(lexer);
ToolSQLParser parser = new ToolSQLParser(tokenStream);
parser.connectCitrusleaf(DBClient.getInstance());
sql_file_return result = parser.sql_file();
System.out.printf("SQL syntax errors: %d", parser.getNumberOfSyntaxErrors());
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (RecognitionException e) {