Locally minimum-distance correction of syntax errors in programming languages

  • Authors:
  • Kuo-Chung Tai

  • Affiliations:
  • Department of Computer Science, North Carolina State University, P. O, Box 5972, Raleigh, N.C.

  • Venue:
  • ACM '80 Proceedings of the ACM 1980 annual conference
  • Year:
  • 1980

Quantified Score

Hi-index 0.00

Visualization

Abstract

A formal model for locally minimum-distance correction of syntax errors is presented. This model is based on the assumption that errors occur in clusters which are separated by at least k correct symbols. Even if the assumption fails, this model can still be applied to produce a syntactically correct program from any input string. The value of k can be chosen by the programmer. A larger k reduces the chance that the correction made for one cluster of errors causes spurious errors in the remaining input. Several previous error correction methods are shown to be special cases of this model. A general algorithm for this model is given. An efficient LL(1) error correction algorithm for this model is also provided. Possible extensions of this model and future research are discussed.