Created a generic mechanism for operator grammars