|
ABSTRACT
A substantial portion of any programmer's time is spent in debugging. One of the major services of any compiler ought to be to provide as much information as possible about compile-time errors in order to minimize the time required for debugging. A good error detection and recovery scheme should maximize the number of errors detected but minimize the number of times it reports an error when there is none. These spurious error detections and their associated error messages are usually engendered by an inappropriate recovery action.In this paper we describe a recovery scheme for syntax errors which provides high quality recovery with good diagnostic information at relatively low cost. In addition, implementation of the recovery scheme can be automated - that is, the recovery routine can be created by a parser-generator. Therefore, the compiler designer need not be burdened with the difficulties of error recovery and the programming effort necessary to design and debug a myriad of ad hoc recovery routines.
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
|
Bauer, H. R., Becker, S., Graham, S. L., and Satterthwaite, E. "Algol W Language Description," Technical Report CS 110 Computer Science Department, Stanford University, Stanford, Ca., Sept. 1969.
|
| |
3
|
Conway, R. W., Morgan, H. L., Wagner, R. A., and Wilcox, T. R. "PL/C. A High Performance Subset of PL/I," Technical Report 70-55, Computer Science Department, Cornell University, Ithaca, N.Y., February, 1970.
|
 |
4
|
|
 |
5
|
|
 |
6
|
|
| |
7
|
James, L. R. "A Syntax Directed Error Recovery Method," Master's thesis, Technical Report CSRG-13, Computer Systems Research Group, University of Toronto, Toronto, Canada, May 1972.
|
| |
8
|
Knuth, D. E. "On the Translation of Languages from Left to Right", Information and Control, Vol. 8, November 1965, pp. 607-639.
|
| |
9
|
La France, J. E. "Syntax-directed Error Recovery for Compilers," Ph.D. thesis, Illiac IV Document 249, Computer Science Department, University of Illinois, Urbana, Illinois, June 1971.
|
| |
10
|
|
| |
11
|
|
 |
12
|
|
| |
13
|
|
| |
14
|
Rhodes, S. P. "Practical Syntactic Error Recovery for Programming Languages," Ph.D. thesis, Technical Report 15, Department of Computer Science, University of California, Berkeley, Ca., June 1973.
|
 |
15
|
|
 |
16
|
|
| |
17
|
Wirth, N. "The Programming Language Pascal," Acta Informatica, Vol. 1, January 1971, pp. 35-63.
|
| |
18
|
Wirth, N. "The Design of a Pascal Compiler," Proceedings of the International Summer School on Program Structures and Fundamental Concepts of Programming, Munich, Germany, July 1971.
|
|