parser.setTreeAdaptor(new CommonTreeAdaptor(){
public Object create(Token payload){
return new CommonTree(payload);
}
});
sql_statement_return result = parser.sql_statement();
if (parser.getNumberOfSyntaxErrors() > 0){
fail(parser.getNumberOfSyntaxErrors() + " Syntax error(s) in SQL Statement");
}
}