Functional chart parsing of context-free grammars

被引:1
|
作者
Ljunglöf, P
机构
[1] Univ Gothenburg, Dept Comp Sci, S-41296 Gothenburg, Sweden
[2] Chalmers Univ Technol, S-41296 Gothenburg, Sweden
关键词
D O I
10.1017/S0956796804005106
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
This paper implements a simple and elegant version of bottom-up Kilbury chart parsing (Kilbury, 1985; Wiren, 4992). This is one of the many chart parsing variants, which are all based on the data structure of charts. The chart parsing process uses inference rules to add new edges to the chart, and parsing is complete when no further edges can be added. One novel aspect of this implementation is that it doesn't have to rely on a global state for the implementation of the chart. This makes the code clean, elegant and declarative, while still having the same space and time complexity as the standard imperative implementations.
引用
收藏
页码:669 / 680
页数:12
相关论文
共 50 条
  • [1] Improved left-corner chart parsing for large context-free grammars
    Moore, RC
    NEW DEVELOPMENTS IN PARSING TECHNOLOGY, 2004, : 185 - 201
  • [2] On predictive parsing and extended context-free grammars
    Brüggemann-Klein, A
    Wood, D
    COMPUTER SCIENCE IN PERSPECTIVE: ESSAYS DEDICATED TO THOMAS OTTMANN, 2003, 2598 : 69 - 87
  • [3] On predictive parsing and extended context-free grammars
    Brüggemann-Klein, A
    Wood, D
    IMPLEMENTATION AND APPLICATION OF AUTOMATA, 2003, 2608 : 239 - 247
  • [4] On predictive parsing and extended context-free grammars
    Brüggemann-Klein, Anne
    Wood, Derick
    Lect. Notes Comput. Sci., (69-87):
  • [5] SUBSTRING PARSING FOR ARBITRARY CONTEXT-FREE GRAMMARS
    REKERS, J
    KOORN, W
    SIGPLAN NOTICES, 1991, 26 (05): : 59 - 66
  • [6] On the relation between context-free grammars and parsing expression grammars
    Mascarenhas, Fabio
    Medeiros, Sergio
    Ierusalimschy, Roberto
    SCIENCE OF COMPUTER PROGRAMMING, 2014, 89 : 235 - 250
  • [7] AN LR PARSING TECHNIQUE FOR EXTENDED CONTEXT-FREE GRAMMARS
    CELENTANO, A
    COMPUTER LANGUAGES, 1981, 6 (02): : 95 - 107
  • [8] Extended Context-Free Grammars Parsing with Generalized LL
    Gorokhov, Artem
    Grigorev, Semyon
    TOOLS AND METHODS OF PROGRAM ANALYSIS, 2018, 779 : 24 - 37
  • [9] A parallel parsing algorithm for arbitrary context-free grammars
    Ra, DY
    Kim, JH
    INFORMATION PROCESSING LETTERS, 1996, 58 (02) : 87 - 96
  • [10] A parallel parsing algorithm for arbitrary context-free grammars
    Computer Science Department, Yonsei University, Maeji, Heungup, Wonju-city, KangWon, 220-710, Korea, Republic of
    Inf. Process. Lett., 2 (87-96):