lucene query parser in PLY