Earley parser in OO form.