Coding 2023-07-06

By Max Woerner Chase

Okay, I'm trying to move on to parsing now, and I need some time to figure out the right way to handle it.

I'm still on the idea I had previously of "let's learn something besides recursive descent", in part because I think trying that in OCaml would lead to an utterly monstrous let rec that would only get bigger as I go.

So, I'm back looking at Earley parsers, and I think I've got an idea of how to put the types together. However, I want to consider error correction possibilities. From doing some research, I think I want to do something like this:

First, have a grammar definition, including semantic actions.

Then, the following:

Like prioritize by number of errors, and then by index.

Okay, this sounds workable, but I'm not sure. I'm going to have to sleep on it.

Good night.