Publication
ACM Transactions on Programming Languages and Systems (TOPLAS)
Paper

A Practical Method for LR and LL Syntactic Error Diagnosis and Recovery

Download paper

Abstract

This paper presents a powerful, practical, and essentially language-independent syntactic error diagnosis and recovery method that is applicable within the frameworks of LR and LL parsing. The method generally issues accurate diagnoses even where multiple errors occur within close proximity, yet seldom issues spurious error messages. It employs a new technique, parse action deferral, that allows the most appropriate recovery in cases where this would ordinarily be precluded by late detection of the error. The method is practical in that it does not impose substantial space or time overhead on the parsing of correct programs, and in that its time efficiency in processing an error allows for its incorporation in a production compiler. The method is language independent, but it does allow for tuning with respect to particular languages and implementations through the setting of language-specific parameters. © 1987, ACM. All rights reserved.

Date

20 Mar 1987

Publication

ACM Transactions on Programming Languages and Systems (TOPLAS)

Authors

Resources

Share