Closed dabrahams closed 2 years ago
Aha! I think this step eliminates the problem that the current earleme is being scanned while it's being updated, which would make addressing #2 by sorting into a more practical idea, since wouldn't need a special-case to search the current earleme linearly.
This is done.
It's an optimization, but MARPA's implementation does this, and simply reconstructs them during tree traversal.