The goal of the package xotl.ql.revenge is to transform pieces of byte-code to a QST that is amenable to both transformation and translation.
xotl.ql.revenge
The package is further explained in:
Thoughts on Query Languages
From byte-code to a query syntax tree
Enter search terms or a module, class or function name.