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
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:
'(' error ')', orbinds attrpath '=' error