Skip to content

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

@kamadorueda

Description

@kamadorueda

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions