Adapted Earley parser for object-oriented grammar.