News for hackers. Stuff that matters.
Re:Don't Panic! Better, Fewer, Syntax Errors for LR Parsers by ltratt on Thursday July 16, 2020 @03:26AM (#23856671)
I think we are in agreement that skipping over large chunks of input is rarely a good idea. In Section 7 ("Using error recovery in practice") we show how you can make fine-grained decisions about what to do when recovery has happened in our Rust parsing system. The more fine-grained you go, the more code you have to write, but it allows you to do exactly the sorts of things that rustc does with structs if you want. https://softdevteam.github.io/grmtools/master/book/errorreco... is a more approachable version of the same stuff.

There are no comments on this comment yet.