A Statistical Analysis of Syntax Errors

A study of errors made by Pascal programmers is described. The results of this study are discussed in relation to compiler syntax error recovery procedures. It is found that syntax errors made in practice are quite simple and occur relatively infrequently (generally at most one per sentence of the language). Also a few types of errors account for most occurrences. These and other findings from the study are helpful in evaluating compiler error handling procedures. A discussion of the relation between these errors and language constructs is presented. Other uses of the information obtained from the study are briefly described.

[1]  Derek Partridge,et al.  Adaptive correction of program statements , 1973, Commun. ACM.

[2]  Paul Shantraj Lazarus Automatic error correction in syntax-directed compilers. , 1973 .

[3]  Charles Wetherell,et al.  Why Automatic Error Correctors Fail , 1977, Comput. Lang..

[4]  G. David Ripley,et al.  A simple recovery-only procedure for simple precedence parsers , 1978, CACM.

[5]  James J. Horning Structuring Compiler Development , 1976, Compiler Construction.

[6]  Edward Arthur Youngs,et al.  Error-proneness in programming , 1970 .

[7]  Niklaus Wirth,et al.  PL360, a Programming Language for the 360 Computers , 1968, JACM.

[8]  Fred J. Damerau,et al.  A technique for computer detection and correction of spelling errors , 1964, CACM.

[9]  G. David Ripley,et al.  Error recovery for Simple LR(k) parsers , 1976, ACM '76.

[10]  Charles Stanley Wetherell Problems of error correction for programming languages. , 1975 .

[11]  Jacques E. LaFrance,et al.  Syntax-directed error recovery for compilers , 1971 .

[12]  Brian W. Kernighan,et al.  RATFOR—a preprocessor for a rational fortran , 1975, Softw. Pract. Exp..

[13]  Kuo-Chung Tai,et al.  Syntactic Error Correction in Programming Languages , 1978, IEEE Trans. Software Eng..

[14]  Niklaus Wirth A programming language for the 360 computers , 1966 .

[15]  Howard Lee Morgan,et al.  Spelling correction in systems programs , 1970, Commun. ACM.

[16]  Gordon T. McGruther An approach to automating syntax error detection recovery, and correction for LR(k) grammars. , 1972 .

[17]  Alfred V. Aho,et al.  A Minimum Distance Error-Correcting Parser for Context-Free Languages , 1972, SIAM J. Comput..

[18]  Susan L. Graham,et al.  Practical syntactic error recovery , 1975, CACM.

[19]  Frank DeRemer,et al.  A forward move algorithm for LR error recovery , 1978, POPL '78.

[20]  Gordon B. Davis,et al.  A study of errors, error-proneness, and error diagnosis in Cobol , 1976, CACM.

[21]  Stefan Feyock,et al.  Syntax‐directed correction of syntax errors , 1976, Softw. Pract. Exp..

[22]  Michael G. Thomason Stochastic Syntax-Directed Translation Schemata for Correction of Errors in Context-Free Languages , 1975, IEEE Transactions on Computers.