Error Recovery for LR Parsers
CALIFORNIA UNIV SANTA CRUZ INFORMATION SCIENCES
Pagination or Media Count:
A practical algorithm is described that allows an LR parser to parse past the point at which an error was detected. By thus parsing, context beyond the point of error detection is gathered. Several important properties about this forward context are proven its usefulness in the selection and evaluation of error repairs is demonstrated. At first specifically restricting the consideration to single occurrences of errors of insertion, deletion, or replacement of a single terminal symbol, the algorithm is given with suggested possible error repair strategies. Then a generalization to encompass recovery from any number and type of error is given.
- Computer Programming and Software