private static final Log log = LogFactory.getLog(ParserUtil.class.getName());
public static HBqlParser newHBqlParser(final String sql) throws ParseException {
try {
log.debug("Parsing: " + sql);
final Lexer lex = new HBqlLexer(new ANTLRStringStream(sql));
final CommonTokenStream tokens = new CommonTokenStream(lex);
return new HBqlParser(tokens);
}
catch (LexerRecognitionException e) {
throw new ParseException(e.getRecognitionExecption(), e.getMessage());