ACM Home Page
Please provide us with feedback. Feedback
A forward move algorithm for LR error recovery
Full text PdfPdf (1.36 MB)
Source Annual Symposium on Principles of Programming Languages archive
Proceedings of the 5th ACM SIGACT-SIGPLAN symposium on Principles of programming languages table of contents
Tucson, Arizona
Pages: 241 - 254  
Year of Publication: 1978
Authors
Thomas J. Pennello  University of California, Santa Cruz, CA
Frank DeRemer  University of California, Santa Cruz, CA
Sponsors
SIGPLAN: ACM Special Interest Group on Programming Languages
SIGACT: ACM Special Interest Group on Algorithms and Computation Theory
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 5,   Downloads (12 Months): 43,   Citation Count: 18
Additional Information:

abstract   references   cited by   index terms   collaborative colleagues  

Tools and Actions: Request Permissions Request Permissions    Review this Article  
DOI Bookmark: Use this link to bookmark this Article: http://doi.acm.org/10.1145/512760.512786
What is a DOI?

ABSTRACT

A "forward move algorithm", and some of its formal properties, is presented for use in a practical syntactic error recovery scheme for LR parsers. The algorithm finds "valid fragment" (comparable to a valid prefix) just to the right of a point of error detection. For expositional purposes the algorithm is presented as parsing arbitrarily far beyond the point of error detection in a "parallel" mode, as long as all parses agree on the read or reduce action to be taken at each parse step. In practice the forward move is achieved serially by adding "recovery states" to the LR machine. Based on the formal properties of the forward move we propose an error recovery algorithm that uses the accumulated right context. The performance of the recovery algorithm is illustrated in a specific case and discussed in general.


REFERENCES

Note: OCR errors may be found in this Reference List extracted from the full text article. ACM has opted to expose the complete List rather than only correct and linked references.

1
 
2
3
 
4
{DeR 77} DeRemer, Frank, "Tree-affix Dendrogrammars", research proposal to NSF, Information Sciences, University of California, Santa Cruz, CA. 95064, 1977.
 
5
{D&R 76} Druseikis, Frederick C. and G. David Ripley, "Error Recovery for Simple LR (k) Parsers", Dept. of Computer Science, Univ. of Arizona, Tucson, Az. 85721, 1976.
 
6
{D&R 77} Druseikis, Frederick C. and G. David Ripley, "Extended SLR (k) Parsers for Error Recovery and Repair", Dept. of Computer Science, Univ. of Arizona, Tucson, Az. 85721, Feb. 1977.
7
 
8
{H&U 69} Hopcroft, John E. and Jeffrey D. Ullman, Formal Languages and their Relation to Automata, Addison-Wesley, Reading, Mass., 1969.
 
9
{Kos 71} Koster, C. H. A., "Affix Grammars", in Algol 68 Implementation, J. E. L. Peck (ed.), Amsterdam, North Holland, 1971.
 
10
{MHW 70} McKeeman, W. M., J. J. Horning, and D. B. Wortman, A Compiler Generator, Prentice-Hall, Inc., Englewood Cliffs, N.J., 1970.
 
11
{O'H 76} O 'Hare, Michael F., "Modification of the LR (k) Parsing Technique to Include Automatic Syntactic Error Recovery", senior thesis, Univ. of Calif. at Santa Cruz, Santa Cruz, CA. 95064, June 1976.
 
12
{Pen 77} Pennello, Thomas J., "Error Recovery for LR Parsers", M.Sc. Thesis, Information Sciences, University of California at Santa Cruz, Santa Cruz, CA. 95064, June 1977.
 
13
{Wat 75} Watt, David, "The Parsing Problem for Affix Grammar", Department of Computer Science, University of Glasgow, Glasgow, Scotland, 1975.
 
14

CITED BY  18

Collaborative Colleagues:
Thomas J. Pennello: colleagues
Frank DeRemer: colleagues