@kha We have a few parsers that invoke `tokenFn`, and return error depending of what is on the top of the stack (e.g., `ident`). These parsers were not restoring the stack size when reporting errord, and messing up the error recovery. We never notice the problem because operators such as <|> restore the stack size, and we were not trying to elaborate syntacticly incorrect terms.
2 lines
136 B
Text
2 lines
136 B
Text
exitAfterParseError.lean:5:0: error: expected ':=', 'where' or '|'
|
|
exitAfterParseError.lean:3:0-3:7: error: declaration body is missing
|