Cut Points in PEG

Roman R. Redziejowski · Fundamenta Informaticae · 2016

Parsing Expression Grammar (PEG) encodes a recursive-descent parser with limited backtracking. It has been recently noticed that in the situation when the parser is to explore several alternatives one after another, no further alternatives need to be explored after the parser reached certain “cut p oint”. This fact can be used to save both processing time and storage. The subject of the paper is identification of cut points, which can also help in producing better diagnostics.

Read the paper · More papers on PaperTik