Earley icon indicating copy to clipboard operation
Earley copied to clipboard

Is Earley’s implementation related to Marpa?

Open Profpatsch opened this issue 7 years ago • 3 comments
trafficstars

The author of Marpa claims it to be an improvement over Joop Leo’s ’91 paper.

Has Marpa influenced this library’s implementation?

Profpatsch avatar Apr 24 '18 03:04 Profpatsch

I'm aware of Marpa but haven't been directly influenced by it.

ollef avatar Apr 24 '18 04:04 ollef

But buried in their paper is a solution to the zero-length rule bug. And this time the solution requires no additional bookkeeping.

Have zero-length rules been a problem in Earley?

Profpatsch avatar Apr 24 '18 15:04 Profpatsch

Yeah, that's been very tricky to get right, especially when you want to do semantic actions as well. This library uses the approach from the linked paper. But maybe it can be improved still.

ollef avatar Apr 24 '18 16:04 ollef