13
Views
1
CrossRef citations to date
0
Altmetric
Original Articles

A scheme for LR(k) parsing with error recovery part II: error recovery

&
Pages 107-119 | Received 01 Jun 1979, Published online: 20 Mar 2007
 

Abstract

The paper is the second in a series of three papers devoted to a detailed study of LR(k) parsing with error recovery and correction. Error recovery in LR(k) parsing of a context-free grammar is formalized by extending an LR(k) parser of the grammar such that it accepts all strings over the terminal vocabulary. The parse produced by this extension for a terminal string is a right parse if the string is in the language. In the case of a string not in the language the parse produced by the extension contains so-called error productions which represent the error recovery actions performed by the extension. The treatment is based on the formalization of LR(k) parsing presented in the first paper in the series and it covers practically all error recovery methods designed for LR(k) parsing.

C.R. Categories:

†The work of this author was supported by the Emil Aaltonen Foundation.

‡Department of Mathematics, University of California, Santa Barbara, California 93106.

†The work of this author was supported by the Emil Aaltonen Foundation.

‡Department of Mathematics, University of California, Santa Barbara, California 93106.

Notes

†The work of this author was supported by the Emil Aaltonen Foundation.

‡Department of Mathematics, University of California, Santa Barbara, California 93106.

Reprints and Corporate Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

To request a reprint or corporate permissions for this article, please click on the relevant link below:

Academic Permissions

Please note: Selecting permissions does not provide access to the full text of the article, please see our help page How do I view content?

Obtain permissions instantly via Rightslink by clicking on the button below:

If you are unable to obtain permissions via Rightslink, please complete and submit this Permissions form. For more information, please visit our Permissions help page.