resolved problems with references to earley parser