Error repair with validation in LR-based parsing

14Citations
Citations of this article
10Readers
Mendeley users who have this article in their library.

Abstract

When the compiler encounters an error symbol in an erroneous input, the local error-repair method repairs the input by either inserting a repair string before the error symbol or deleting the error symbol. Although the extended FMQ of Fischer et al. and the method of McKenzie et al. report the improved quality of diagnostic messages, they suffer from redundant parse stack configurations. This article proposes an efficient LR error-recovery method, with validation-removing repairs that give the same validation result as a previously considered, lower-cost repair. Moreover, its execution speed is proportional to the length of the stack configuration. The algorithm is implemented on a Bison, GNU LALR(1), parser generating system. Experimental results are presented.

Cite

CITATION STYLE

APA

Kim, I. S., & Choe, K. M. (2001). Error repair with validation in LR-based parsing. ACM Transactions on Programming Languages and Systems, 23(4), 451–471. https://doi.org/10.1145/504083.504084

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free