Practical error recovery in LR parsing

Practical error recovery in LR parsing
复制标题

LR解析中的实用错误恢复

DOI:
10.1145/582153.582173
复制
发表时间:
1982
期刊:
ACM-SIGACT Symposium on Principles of Programming Languages
影响因子:
--
通讯作者:
E. Soisalon
E. Soisalon
中科院分区:
--
文献类型:
--
作者:
S. Sippu;E. Soisalon

文献摘要

被引文献

相似文献

提出并分析了一种适用于LR分析的语法错误自动处理技术。该技术包括“短语级”错误恢复策略,并增加了某些附加功能,如“本地校正”。还注意到诊断方面,即自动生成错误消息文本。该技术已在编译器编写系统HLP(赫尔辛基语言处理器)上实现,并用学生编写的错误Algol和Pascal程序进行了测试,取得了良好的实验结果。
An automatic syntax error handling technique applicable to LR parsing is presented and analyzed. The technique includes a "phrase-level" error recovery strategy augmented with certain additional features such as "local correction". Attention has also been paid to diagnostic aspects, i.e. the automatic generation of error message texts. The technique has been implemented in the compiler writing system HLP (Helsinki Language Processor), and some promising experimental results have been obtained by testing the technique with erroneous student-written Algol and Pascal programs.