Skip to content
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

Refactor out preproc.issue #96

Merged
merged 4 commits into from
Apr 27, 2020
Merged

Refactor out preproc.issue #96

merged 4 commits into from
Apr 27, 2020

Conversation

sampottinger
Copy link
Collaborator

@sampottinger sampottinger commented Apr 26, 2020

Removed the preproc.issue package by relocating supporting classes for PreprocessIssueMessageSimplifier and PdeIssueEmitter as inner classes. This assists with #10. Real fast...

  • PdeIssueEmitter is required for ANTLR. It isn't new... it's from the ANTLR migration about a year ago.
  • PreprocessIssueMessageSimplifier isn't new (I wrote it about a year ago to support the new ANTLR migration) but to briefly describe: without help ANTLR's messages emitted by default are pretty difficult to understand unless you are fairly familiar with ANTLR. This class interprets the messages emitted by ANTLR to create better (more user friendly?) error messages. However, even when the "right" message to show to the user is found, the work isn't quite done. The message has to be localized to user language and sometimes the location of the error has to be modified. All of this logic is currently in here.

Removed the preproc.issue package by relocating supporting classes for PreprocessIssueMessageSimplifier and PdeIssueEmitter as inner classes. This assists with #10.
@sampottinger
Copy link
Collaborator Author

sampottinger commented Apr 26, 2020

This is dependent on #92 and 45ee436 is shown in the diff for #96 but it really is part of #92. I recommend reviewing #92 first.

@benfry benfry merged commit 1af1263 into master Apr 27, 2020
@benfry benfry deleted the refactor_preproc_issue branch April 27, 2020 17:49
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants