Evaluating GLR parsing algorithms

被引:6
|
作者
Johnstone, Adrian [1 ]
Scott, Elizabeth [1 ]
Economopoulos, Giorgios [1 ]
机构
[1] Univ London, Dept Comp Sci, Egham, Surrey, England
关键词
GLR parsing; grammar types; context free languages; LR tables;
D O I
10.1016/j.scico.2006.04.004
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
We describe the behaviour of three variants of GLR parsing: (i) Farshi's original correction to Tomita's non-general algorithm; (ii) the Right Nulled GLR algorithm which provides a more efficient generalisation of Tomita and (iii) the Binary Right Nulled GLR algorithm, on three types of LR table. We present a guide to the parse-time behaviour of these algorithms which illustrates the inefficiencies in conventional Farshi-style GLR parsing. We also describe the tool GTB (Grammar Tool Box) which provides a platform for comparative studies of parsing algorithms; and use GTB to exercise the three GLR algorithms running with LR(0), SLR(1) and LR(1) tables for ANSI-C, ISO-Pascal and IBM VS-COBOL. We give results showing the size of the structures constructed by these parsers and the amount of searching required during the parse, which abstracts their runtime. (c) 2006 Elsevier B.V. All rights reserved.
引用
收藏
页码:228 / 244
页数:17
相关论文
共 50 条
  • [1] The grammar tool box: A case study comparing GLR parsing algorithms
    Johnstone, Adrian
    Scott, Elizabeth
    Economopoulos, Giorgios
    [J]. Electron. Notes Theor. Comput. Sci., 1600, (97-113):
  • [2] Faster Scannerless GLR Parsing
    Economopoulos, Giorgios
    Klint, Paul
    Vinju, Jurgen
    [J]. COMPILER CONSTRUCTION, PROCEEDINGS, 2009, 5501 : 126 - 141
  • [3] Improved GLR parsing algorithm
    Li, M
    Wei, ZG
    Zhang, J
    Hu, ZL
    [J]. ADVANCES IN INTELLIGENT COMPUTING, PT 2, PROCEEDINGS, 2005, 3645 : 169 - 178
  • [4] BRNGLR: A cubic tomita-style GLR parsing algorithm
    Scott, Elizabeth
    Johnstone, Adrian
    Economopoulos, Rob
    [J]. ACTA INFORMATICA, 2007, 44 (06) : 427 - 461
  • [5] BRNGLR: a cubic Tomita-style GLR parsing algorithm
    Elizabeth Scott
    Adrian Johnstone
    Rob Economopoulos
    [J]. Acta Informatica, 2007, 44 : 427 - 461
  • [6] Parsing schemata and correctness of parsing algorithms
    Sikkel, K
    [J]. THEORETICAL COMPUTER SCIENCE, 1998, 199 (1-2) : 87 - 103
  • [7] PERFORMANCE COMPARISONS OF MODIFIED SMI AND GLR ALGORITHMS
    CAI, LJ
    HONG, W
    [J]. IEEE TRANSACTIONS ON AEROSPACE AND ELECTRONIC SYSTEMS, 1991, 27 (03) : 487 - 491
  • [8] PARSING ALGORITHMS WITH BACKTRACK
    BIRMAN, A
    ULLMAN, JD
    [J]. INFORMATION AND CONTROL, 1973, 23 (01): : 1 - 34
  • [9] ANALYSES OF DETERMINISTIC PARSING ALGORITHMS
    COHEN, J
    ROTH, MS
    [J]. COMMUNICATIONS OF THE ACM, 1978, 21 (06) : 448 - 458
  • [10] STOCHASTIC PARSING AND EVOLUTIONARY ALGORITHMS
    Araujo, Lourdes
    [J]. APPLIED ARTIFICIAL INTELLIGENCE, 2009, 23 (04) : 346 - 372