A hypergraph-based grammar extractor, based on https://github.com/ghanneman/grex