|
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
|
Michael Burke , Gerald A. Fisher, Jr., A practical method for syntactic error diagnosis and recovery, Proceedings of the 1982 SIGPLAN symposium on Compiler construction, p.67-78, June 23-25, 1982, Boston, Massachusetts, United States
|
| |
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
|
Susan L. Graham , Charles B. Haley , William N. Joy, Practical LR error recovery, Proceedings of the 1979 SIGPLAN symposium on Compiler construction, p.168-175, August 06-10, 1979, Denver, Colorado, United States
|
| |
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...
|