Abstract

The paper is the first in a series of three papers devoted to a detailed study of LR(k) parsing with error recovery and correction. An LR(k) parser of a context-free grammar is treated as a formal system where the derivations are reversals of rightmost derivations in the grammar. Deriving in the system is possible if and only if a corresponding reduction by the conventional LR(k) parser may occur. This general approach establishes a mathematical treatment of LR(k) parsing which does not rely on the actual construction of an LR(k) parser. For example, the approach allows a decisive comparison of properties of different LR(k) parsers, such as canonical LR(k), LALR(k) and SLR(k) parsers, as well as those optimized by the so-called default reductions.

Full Text
Paper version not known

Talk to us

Join us for a 30 min session where you can share your feedback and ask us any queries you have

Schedule a call

Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.