Added object-oriented version of context-free grammars