OPTIMAL INCREMENTAL PARSING

被引:13
作者
LARCHEVEQUE, JM
机构
[1] INRIA, Le Chesnay
来源
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS | 1995年 / 17卷 / 01期
关键词
ALGORITHMS; DESIGN; THEORY; INCREMENTAL PARSING; THREADED TREES;
D O I
10.1145/200994.200996
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This communication sets the problem of incremental parsing in the context of a complete incremental compiling system. It turns out that, according to the incrementality paradigm of the attribute evaluator and data-flow analyzer to be used, two definitions of optimal incrementality in a parser are possible. Algorithms for achieving both forms of optimality are given, both of them based on ordinary LALR(1) parse tables. Optimality and correctness proofs, which are merely outlined in this communication; are made intuitive thanks to the concept of a well-formed list of threaded trees, a natural extension of the concept of threaded tree found in earlier works on incremental parsing.
引用
收藏
页码:1 / 15
页数:15
相关论文
共 25 条
[1]  
Aho A.V, 1986, COMPILERS PRINCIPLES
[2]  
ATKINSON M, 1989, INT C DEDUCTIVE OBJE
[3]  
BOULLIER P, 1984, THESIS U ORLEANS FRA
[4]  
CELENTANO A, 1978, ACTA INFORM, V10, P307, DOI 10.1007/BF00265676
[5]  
COLLINS B, 1986, SPR EEUG C FLOR, P52
[6]   EFFICIENT INCREMENTAL LR PARSING FOR SYNTAX-DIRECTED EDITORS [J].
DEGANO, P ;
MANNUCCI, S ;
MOJANA, B .
ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1988, 10 (03) :345-373
[7]  
Ghezzi C., 1979, ACM Transactions on Programming Languages and Systems, V1, P58, DOI 10.1145/357062.357066
[8]   AUGMENTING PARSERS TO SUPPORT INCREMENTALITY [J].
GHEZZI, C ;
MANDRIOLI, D .
JOURNAL OF THE ACM, 1980, 27 (03) :564-579
[9]  
HASCOET L, 1987, THESIS U NICE FRANCE
[10]  
JOHNSON GF, 1982, 9TH C REC ACM S PRIN, P185