Added the metaprogram to deduce the grammar rules of the query language from the ASTMatchers.