@jsbarretto #Parsers are so fascinating, aren't they!? At first you think: "Hm...what should be so special about a parser?", but then you go down the rabbit hole and you'll probably never return to the surface. 😄
Regarding error recovery: You probably already know the following article, by matklad, but just in case you don't:
Resilient LL Parsing Tutorial
https://matklad.github.io/2023/05/21/resilient-ll-parsing-tutorial.html
Probably one of the best tutorials I've read in a long time.
@janriemer I'm aware of it, yes. chumsky doesn't try to do this sort of thing, it's strictly a top-down parser and everything is geared around that. I would say it's definitely intended more for compilers ingesting mostly-correct code rather than, say, an LSP operating on very broken fragments of code. That said, if used right, its error recovery can be surprisingly resilient.