protected CommonTree parse(String sql) throws SqlJetException, RecognitionException {
CharStream chars = new ANTLRStringStream(sql);
SqlLexer lexer = new SqlLexer(chars);
CommonTokenStream tokens = new CommonTokenStream(lexer);
SqlParser parser = new SqlParser(tokens);
return (CommonTree) parser.sql_stmt().getTree();
}
protected String dump(CommonTree tree) {
StringBuffer buffer = new StringBuffer();
new CurlyCommonTreeDumper().addTree(buffer, tree, 0);