PARALLEL INCREMENTAL LR PARSING

被引:0
|
作者
VISWANATHAN, N [1 ]
SRIKANT, YN [1 ]
机构
[1] INDIAN INST SCI,DEPT COMP SCI & AUTOMAT,BANGALORE 560012,KARNATAKA,INDIA
来源
COMPUTER LANGUAGES | 1994年 / 20卷 / 03期
关键词
PARALLEL PARSING; INCREMENTAL COMPILERS; LR GRAMMARS; PROGRAMMING ENVIRONMENTS; PARALLEL; ALGORITHMS;
D O I
10.1016/0096-0551(94)90002-7
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
A new parallel parsing algorithm for block structured languages, capable of parsing incrementally also, is presented. The parser is for LR grammars. A shared memory multiprocessor model is assumed. We associate processors to parse corrections independently with minimum reparsing. A new compatibility condition is used by the associated processors to terminate parsing, and prevent redoing the work of other processors. We give an efficient way of assembling the final parse tree from the individual parses. Our compatibility condition is simple and it can be computed at the parser construction time itself. Further, the compatibility condition can be tested while parsing, in constant time. The parser can be integrated into the editor. We give an estimate for speedup by our parallel parsing and parallel incremental parsing methods. We have obtained considerable speedups in simulation studies of our algorithm.
引用
收藏
页码:151 / 175
页数:25
相关论文
共 50 条
  • [1] A new approach to incremental LR parsing
    Li, WX
    JOURNAL OF PROGRAMMING LANGUAGES, 1997, 5 (01): : 173 - 188
  • [2] LR parallel parsing and its simulation
    Saloun, P
    PDPTA'03: PROCEEDINGS OF THE INTERNATIONAL CONFERENCE ON PARALLEL AND DISTRIBUTED PROCESSING TECHNIQUES AND APPLICATIONS, VOLS 1-4, 2003, : 1896 - 1902
  • [3] EFFICIENT INCREMENTAL LR PARSING FOR SYNTAX-DIRECTED EDITORS
    DEGANO, P
    MANNUCCI, S
    MOJANA, B
    ACM TRANSACTIONS ON PROGRAMMING LANGUAGES AND SYSTEMS, 1988, 10 (03): : 345 - 373
  • [4] LR Parsing for LCFRS
    Kallmeyer, Laura
    Maier, Wolfgang
    ALGORITHMS, 2016, 9 (03)
  • [5] Efficient parallel and incremental parsing of practical context-free languages
    Bernardy, Jean-Philippe
    Claessen, Koen
    JOURNAL OF FUNCTIONAL PROGRAMMING, 2015, 25
  • [6] SCHEME FOR LR(K) PARSING WITH ERROR RECOVERY .1. LR(K) PARSING
    SIPPU, S
    SOISALONSOININEN, E
    INTERNATIONAL JOURNAL OF COMPUTER MATHEMATICS, 1980, 8 (01) : 27 - 42
  • [7] On LR Parsing with Selective Delays
    Bertsch, Eberhard
    Nederhof, Mark-Jan
    Schmitz, Sylvain
    COMPILER CONSTRUCTION, CC 2013, 2013, 7791 : 244 - 263
  • [8] VERY FAST LR PARSING
    PENNELLO, TJ
    SIGPLAN NOTICES, 1986, 21 (07): : 145 - 151
  • [9] LR parsing for conjunctive grammars
    Okhotin, Alexander
    Grammars, 2002, 5 (02): : 81 - 124
  • [10] SUFFIX LANGUAGES IN LR PARSING
    SEYFARTH, BR
    BERMUDEZ, ME
    INTERNATIONAL JOURNAL OF COMPUTER MATHEMATICS, 1995, 55 (3-4) : 135 - 153