Repository navigation
Markmap removal - #671
Markmap removal#671
Conversation
|
So my thoughts regarding 'lessons learned', here is that a lot of this was attempting to remove duplicated code between nimbleparse, and CTParserBuilder, providing e.g. uniform settings/error handling and the like. But I think although it hasn't quite been realized yet, is that with |
|
Overall I very much like this -- it's difficult not to like a PR which deletes so much code while retaining behaviour! |
|
I think this is ready for squashing? |
|
Yeah I agree, and will try squash it this evening, just noted one more thing above. |
|
I think we're ready! Please squash. |
1. This replaces the `MarkMap` structure with a `HashMap`. 2. Avoid passing `Header` as an argument to `LexSrcEnv`, instead we now pass `LexFlags` directly. 3. That then makes it possible to remove the `Location` structure. This brings lrlex's codegen module more in line with lrpar.
baecd76 to
e27fc85
Compare
|
Squashed, There was one very small copy/paste error in some text which I found while squashing. |
Here is an attempt at replacing the
MarkMapstructure withHashMap.I think but am not totally certain that we've replaced the
unusederrors with the previously addediter_prefix_keyschecks in places likenimbleparse. I'm not totally sure we've covered all such places that theunusedchecks removed here covered though.Regarding the merge process change, in lrpar we had already removed all of the
merge_fromcode as part of removingLocationfrom the errors emitted there. The second patch here does the same forlrlex. I was kind of uncertain whether to do that in this patch but it seemed like it was easier to drop the patch than to try and explain it.The second patch then allows the cleanup in the 3rd patch of removing
Locationentirely.That one was public and seems like a semver breakage technically, even though I think it was only ever used in hidden
APIs.