restructured a framework of parsing regexes for more than just analyze_instans -- starting to look like a list of grammar productions now