News for hackers. Stuff that matters.
Re:Challenging LR Parsing by ltratt on Wednesday September 16, 2020 @01:06PM (#24494683)
> For error recovery, do any parsers have a notion of which tokens are more likely to be wrong?

lrpar has a %avoid_insert declaration which allows users to say "these token types are better avoided if there are other equivalently good repair sequences". It's simple, but it works well https://softdevteam.github.io/grmtools/master/book/errorreco...

Re:Challenging LR Parsing by maxbrunsfeld on Wednesday September 16, 2020 @01:51PM (#24495225)
I like this solution, and have thought about adding something similar as an "advanced feature" in Tree-sitter grammars. I'm interested to see how you've used it in grammars.