LR techniques for handling syntax errors

  • Authors:
  • Pierpaolo Degano;Corrado Priami

  • Affiliations:
  • Dipartimento di Informatica, Universití di Pisa, Corso Italia, 40, I-56125 Pisa, Italy;Istituto Policattedra, Universití di Verona, Strada Le Grazie, 1, I-37134 Verona, Italy

  • Venue:
  • Computer Languages
  • Year:
  • 1998

Quantified Score

Hi-index 0.00

Visualization

Abstract

A taxonomy of syntax error handling techniques used in LR parsers is presented. The methods are classified according to the major features they offer. In particular, we distinguish correcting and noncorrecting techniques. The goal of the former methods is to correct an error when detected and to restart the parser. Instead, noncorrecting techniques simply signal the presence of an error and continue the analysis without attempting any correction on the source program. A finer classification of correcting approaches is given according the amount of information that is gathered around the error by the recovery routine. We distinguish phrase level, global and local techniques. Also interactive methods are considered. We report an evaluation of some techniques based on quality of the corrections, language independence, flexibility and efficiency. Finally, a glossary of technical terms is also provided.