Thanks. I didn't want to wander into a discussion of error recovery in general - I'm not writing a paper, just wanted something practical to use or implement - but ANTLR is probably the exception.
I think I got the gist of it from the first page of the google search 'error recovery ANTLR'. It does look decent, though I'd want to try its automatic resynching with a real grammar and test cases before making any judgements. Bob David-Sarah Hopwood wrote: > [apologies if this is a duplicate] > > Bob Foster wrote: > >>I'm curious to find what has been done for error recovery in PEG >>parsers, i.e., allowing a parse to continue after an error so that >>further errors can be discovered, as virtually all production compilers do. >> >>Google turns up a couple of notes from Dustin Voss, e.g., >> >>http://www.mail-archive.com/peg@lists.csail.mit.edu/msg00140.html >> >>Does anyone know of other PEG-related work? > > > Although not specifically a PEG-based parser, PEG grammars can be > straightforwardly implemented in ANTLR v3, which has excellent error > recovery. > > "The Definitive ANTLR Reference" > <http://www.pragprog.com/titles/tpantlr/the-definitive-antlr-reference> > goes into quite a bit of detail about ANTLR's error recovery strategies. > _______________________________________________ PEG mailing list PEG@lists.csail.mit.edu https://lists.csail.mit.edu/mailman/listinfo/peg