On failure of the pruning technique in "error repair in shift-reduce parsers"

被引:7
作者
Bertsch, E
Nederhof, MJ
机构
[1] Ruhr Univ Bochum, Fac Math, D-44780 Bochum, Germany
[2] Univ Groningen, Fac Arts, NL-9700 AS Groningen, Netherlands
来源
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS | 1999年 / 21卷 / 01期
关键词
algorithms; languages; error repair;
D O I
10.1145/314602.314603
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A previous article presented a technique to compute the least-cost error repair by incrementally generating configurations that result from inserting and deleting tokens in a syntactically incorrect input. An additional mechanism to improve the run-time efficiency of this algorithm by pruning some of the configurations was discussed as well. In this communication we show that the pruning mechanism may lead to suboptimal repairs or may block all repairs. Certain grammatical errors in a common construct of the Java programming language also lead to the above kind of failure.
引用
收藏
页码:1 / 10
页数:10
相关论文
共 4 条
[1]  
Aho Alfred V., 2007, COMPILERS PRINCIPLES
[2]   AN EFFICIENT CONTEXT-FREE PARSING ALGORITHM [J].
EARLEY, J .
COMMUNICATIONS OF THE ACM, 1970, 13 (02) :94-&
[3]  
GOSLING J, 1996, JAVA LANGUAGE SPECIF
[4]   ERROR REPAIR IN SHIFT-REDUCE PARSERS [J].
MCKENZIE, BJ ;
YEATMAN, C ;
DEVERE, L .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1995, 17 (04) :672-689