Skip to content

Update lrlex to parse grmtools section, diagnostics. #580

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2025

Conversation

ratmice
Copy link
Collaborator

@ratmice ratmice commented May 23, 2025

Trying to think about loose ends and what not, I remembered I hadn't updated lrlex for using the %grmtools section, nor updated diagnostics.

So this adds all of that, I'm not certain the grmtools section parsing code is really necessary.
It keeps things in sync with ctbuilder and prepares for the addition of new lexerkinds, without these changes the LexFlags would still be applied just through a different code path, but it wouldn't do things like error out on an unrecognized LexerKind field.

});
}
};
header.mark_used(&"lexerkind".to_string());
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Marking as used here, but never doing the check for unused values.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed in 51b4b97

@ltratt
Copy link
Member

ltratt commented May 23, 2025

Please squash.

@ratmice
Copy link
Collaborator Author

ratmice commented May 23, 2025

Squashed/slightly reworded the commit message.

@ltratt ltratt added this pull request to the merge queue May 24, 2025
Merged via the queue into softdevteam:master with commit 94766cc May 24, 2025
2 checks passed
@ratmice ratmice deleted the update_lrlex branch May 24, 2025 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants