A Simple Transformation for Offline-Parsable Grammars and its Termination Properties

Marc Dymetman
DOI: https://doi.org/10.48550/arXiv.cmp-lg/9605023
1996-05-14
Abstract:We present, in easily reproducible terms, a simple transformation for offline-parsable grammars which results in a provably terminating parsing program directly top-down interpretable in Prolog. The transformation consists in two steps: (1) removal of empty-productions, followed by: (2) left-recursion elimination. It is related both to left-corner parsing (where the grammar is compiled, rather than interpreted through a parsing program, and with the advantage of guaranteed termination in the presence of empty productions) and to the Generalized Greibach Normal Form for DCGs (with the advantage of implementation simplicity).
Computation and Language
What problem does this paper attempt to address?