// Compile a CQL query
public Plan compileQuery(String query) throws ParseException, SemanticException
{
CommonTree queryTree = null;
CqlLexer lexer = null;
CqlParserX parser = null;
CommonTokenStream tokens = null;
ANTLRStringStream input = new ANTLRNoCaseStringStream(query);
lexer = new CqlLexer(input);
tokens = new CommonTokenStream(lexer);
parser = new CqlParserX(tokens);
// built AST
try