A Minimum Distance Error-Correcting Parser for Context-Free Languages

Alfred V. Aho, Thomas G. Peterson · SIAM Journal on Computing · 1972

We assume three types of syntax errors can debase the sentences of a language generated by a context-free grammar: the replacement of a symbol by an incorrect symbol, the insertion of an extraneous symbol, or the deletion of a symbol. We present an algorithm that will parse any input string to completion finding the fewest possible number of errors. On a random access computer the algorithm requires time proportional to the cube of the length of the input.

Read the paper · More papers on PaperTik