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 条
  • [31] Comparison of parsing algorithms for recognizing online handwritten mathematical expressions
    Le, Anh Duc
    Nakagawa, Masaki
    [J]. PROCEEDINGS OF 2016 15TH INTERNATIONAL CONFERENCE ON FRONTIERS IN HANDWRITING RECOGNITION (ICFHR), 2016, : 390 - 394
  • [32] EFFICIENT PARSING ALGORITHMS FOR GENERAL CONTEXT-FREE PARSERS
    BOUCKAERT, M
    PIROTTE, A
    SNELLING, M
    [J]. INFORMATION SCIENCES, 1975, 8 (01) : 1 - 26
  • [33] A FAMILY OF GENERALIZED LR PARSING ALGORITHMS USING ANCESTORS TABLE
    TANAKA, H
    SURESH, KG
    YAMADA, K
    [J]. IEICE TRANSACTIONS ON INFORMATION AND SYSTEMS, 1994, E77D (02) : 218 - 226
  • [34] Is Stateful Packrat Parsing Really Linear in Practice? A Counter-Example, an Improved Grammar, and Its Parsing Algorithms
    Chida, Nariyoshi
    Kawakoya, Yuhei
    Ikarashi, Dai
    Takahashi, Kenji
    Sen, Koushik
    [J]. PROCEEDINGS OF THE 29TH INTERNATIONAL CONFERENCE ON COMPILER CONSTRUCTION (CC '20), 2020, : 155 - 166
  • [35] Evaluating Methods for the Parsing and Understanding of Mathematical Formulas in Technical Documents
    Kostalia, Elisavet Elli
    Petrakis, Euripides G. M.
    Bourbakis, Nikolaos
    [J]. 2020 IEEE 32ND INTERNATIONAL CONFERENCE ON TOOLS WITH ARTIFICIAL INTELLIGENCE (ICTAI), 2020, : 407 - 412
  • [36] Evaluating HDR Rendering Algorithms
    Kuang, Jiangtao
    Yamaguchi, Hiroshi
    Liu, Changmeng
    Johnson, Garrett M.
    Fairchild, Mark D.
    [J]. ACM TRANSACTIONS ON APPLIED PERCEPTION, 2007, 4 (02) : 9
  • [37] On evaluating stream learning algorithms
    Gama, Joao
    Sebastiao, Raquel
    Rodrigues, Pedro Pereira
    [J]. MACHINE LEARNING, 2013, 90 (03) : 317 - 346
  • [38] Metrics for Evaluating Classification Algorithms
    Muntean, Mihaela
    Militaru, Florin-Daniel
    [J]. EDUCATION, RESEARCH AND BUSINESS TECHNOLOGIES, 2023, 321 : 307 - 317
  • [39] Evaluating Role Mining Algorithms
    Molloy, Ian
    Li, Ninghui
    Li, Tiancheng
    Mao, Ziqing
    Wang, Qihua
    Lobo, Jorge
    [J]. SACMAT'09: PROCEEDINGS OF THE 14TH ACM SYMPOSIUM ON ACCESS CONTROL MODELS AND TECHNOLOGIES, 2009, : 95 - 104
  • [40] Evaluating super resolution algorithms
    Kim, Youn Jin
    Park, Jong Hyun
    Shin, Gun Shik
    Lee, Hyun-Seung
    Kim, Dong-Hyun
    Park, Se Hyeok
    Kim, Jaehyun
    [J]. IMAGE QUALITY AND SYSTEM PERFORMANCE VIII, 2011, 7867