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

Error example generator #201

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

reventlov
Copy link
Collaborator

This is a program that generates examples of erroneous parses, along
with some information about the potential errors, with the intention of
allowing developers to quickly find out what states do not have
associated error messages.

Ideally, this program would be used to check that there are no states
that are missing error messages, but actually adding all of those
messages is not feasible right now: at this change,
enumerate_parse_errors finds 5808 states that are missing messages.

This is a program that generates examples of erroneous parses, along
with some information about the potential errors, with the intention of
allowing developers to quickly find out what states do *not* have
associated error messages.

Ideally, this program would be used to check that there *are no* states
that are missing error messages, but actually adding all of those
messages is not feasible right now: at this change,
enumerate_parse_errors finds 5808 states that are missing messages.
@reventlov
Copy link
Collaborator Author

This is an update of a PR from some time in 2023 which I never actually finished, which, itself, is an update of an internal CL from 2015(!) that was approved but never actually checked in, so... it may be a little bit disjointed.

It's also pretty algorithmically subtle. I have tried to document it, but I am not confident that I was able to make it clear.

This is a program that generates examples of erroneous parses, along
with some information about the potential errors, with the intention of
allowing developers to quickly find out what states do *not* have
associated error messages.

Ideally, this program would be used to check that there *are no* states
that are missing error messages, but actually adding all of those
messages is not feasible right now: at this change,
enumerate_parse_errors finds 5808 states that are missing messages.
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.

1 participant