Text this: Parsing algorithms for grammars with regulated rewriting