ACM Home Page
Please provide us with feedback. Feedback
A practical method for LR and LL syntactic error diagnosis and recovery
Full text PdfPdf (2.67 MB)
Source ACM Transactions on Programming Languages and Systems (TOPLAS) archive
Volume 9 ,  Issue 2  (April 1987) table of contents
Pages: 164 - 197  
Year of Publication: 1987
ISSN:0164-0925
Authors
Michael G. Burke  Thomas J. Watson Research Center, Yorktown Heights, NY
Gerald A. Fisher  Thomas J. Watson Research Center, Yorktown Heights, NY
Publisher
ACM  New York, NY, USA
Bibliometrics
Downloads (6 Weeks): 3,   Downloads (12 Months): 67,   Citation Count: 5
Additional Information:

abstract   references   cited by   index terms   review   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/22719.22720
What is a DOI?

ABSTRACT

This paper presents a powerful, practical, and essentially language-independent syntactic error diagnosis and recovery method that is applicable within the frameworks of LR and LL parsing. The method generally issues accurate diagnoses even where multiple errors occur within close proximity, yet seldom issues spurious error messages. It employs a new technique, parse action deferral, that allows the most appropriate recovery in cases where this would ordinarily be precluded by late detection of the error. The method is practical in that it does not impose substantial space or time overhead on the parsing of correct programs, and in that its time efficiency in processing an error allows for its incorporation in a production compiler. The method is language independent, but it does allow for tuning with respect to particular languages and implementations through the setting of language-specific parameters.


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
AHO, A. V., AND PETERSON, T.J. A minimum-distance error-correcting parser for context-free languages. SIAM J. Comput. 1, 4 (Dec. 1972), 305-312.
 
2
AMERICAN NATIONAL STANDARDS INSTITUTE. Ada programming language military standard. ANSI/MIL-STD-1815A, American National Standards Institute, Washington, D.C., Jan. 1983.
 
3
4
 
5
BURKE, M. G. AND FISHER, G.A. A practical method for LR and LL syntactic error diagnosis and recovery. Res. Rep. RC 11111, IBM T. J. Watson Research, Yorktown Heights, N.Y., Mar. 1985.
 
6
CHARLES, P. Implementation of a LALR parser generator. Master's thesis, Dept. of Computer Science, New York Univ., 1982.
 
7
FEYOCK, S., AND LAZURUS, P. Syntax-directed correction of syntax errors. Softw. Pract. Exper. 6, 2 (Apr.-June 1976), 207-219.
8
9
 
10
JOHNSON, S.C. YACC--Yet another compiler compiler. Bell Laboratories, Murray Hill, N.J., 1977.
11
12
13
 
14
PENNELLO, T. J., AND DEREMER, F.L. Practical error recovery for LR parsers. Unpublished Rep.
 
15
POONEN, G. Error recovery for LR(k) parsers. Inf. Process. 77 (Aug. 1977), 529-533.
 
16
RIPLEY, D.J. Pascal Syntax Errors Data Base. RCA Laboratories, Princeton, N. J., Apr. 1979.
 
17
RIPLEY, G. D., AND DRUSEIKIS, F.C. A statistical analysis of syntax errors. J. Comput. Lang. 3, 4 (1978), 227-240.



REVIEW

"Michael G. Murphy : Reviewer"

The authors of this paper build a strong and well-organized case for the use of the adjective practical in their title. The paper has been very carefully written and effectively presents a method for detection, diagnosis, recovery, an  more...

Collaborative Colleagues:
Michael G. Burke: colleagues
Gerald A. Fisher: colleagues