Repairing Syntax Errors in LR Parsers

This article reports on an error-repair algorithm for LR parsers. It locally inserts, deletes or shifts symbols at the positions where errors are detected, thus modifying the right context in order to resume parsing on a valid piece of input. This method improves on others in that it does not requir...

Descripción completa

Detalles Bibliográficos
Autores: Corchuelo Gil, Rafael, Pérez Castellanos, José Antonio, Ruiz Cortés, Antonio, Toro Bonilla, Miguel
Tipo de recurso: artículo
Estado:Versión enviada para evaluación y publicación
Fecha de publicación:2002
País:España
Institución:Universidad de Sevilla (US)
Repositorio:idUS. Depósito de Investigación de la Universidad de Sevilla
OAI Identifier:oai:idus.us.es:11441/65631
Acceso en línea:http://hdl.handle.net/11441/65631
https://doi.org/10.1145/586088.586092
Access Level:acceso abierto
Palabra clave:Automatic method
LR parsing
Syntactic error repair
Descripción
Sumario:This article reports on an error-repair algorithm for LR parsers. It locally inserts, deletes or shifts symbols at the positions where errors are detected, thus modifying the right context in order to resume parsing on a valid piece of input. This method improves on others in that it does not require the user to provide additional information about the repair process, it does not require precalculation of auxiliary tables, and it can be easily integrated into existing LR parser generators. A Yacc-based implementation is presented along with some experimental results and comparisons with other well-known methods.