Cut Points in PEG

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 point”. 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.

~

REDZIEJOWSKI, Roman R., 2016. Cut Points in PEG. Fundamenta Informaticae. Online. 1 January 2016. Vol. 143, no. 1–2, p. 141–149. [Accessed 22 September 2023]. DOI 10.3233/FI-2016-1308.