[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. -- David-Sarah Hopwood ⚥ _______________________________________________ PEG mailing list PEG@lists.csail.mit.edu https://lists.csail.mit.edu/mailman/listinfo/peg