Earley parser works