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

Allow parsing partially invalid Nix code (Error recovery) #3

Open
kamadorueda opened this issue Nov 13, 2022 · 0 comments
Open

Allow parsing partially invalid Nix code (Error recovery) #3

kamadorueda opened this issue Nov 13, 2022 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@kamadorueda
Copy link
Owner

kamadorueda commented Nov 13, 2022

We currently use GNU Bison, and it would be possible to offer this feature by using Bison's native error recovery mechanisms: https://www.gnu.org/software/bison/manual/bison.html#Error-Recovery

There are a few sensible places to recover from errors, for instance:

  • Between parentheses (lists, attribute sets, etc), like '(' error ')', or
  • In unfinished bindings like binds attrpath '=' error
  • etc

More information in: #2

@kamadorueda kamadorueda added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Nov 13, 2022
This was referenced Nov 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant