A Graphical Model for Context-Free Grammar Parsing

被引:0
|
作者
Pingali, Keshav [1 ]
Bilardi, Gianfranco [2 ]
机构
[1] Univ Texas Austin, Austin, TX 78712 USA
[2] Univ Padua, I-35131 Padua, Italy
来源
关键词
All Open Access; Bronze;
D O I
10.1007/978-3-662-46663-6_1
中图分类号
TP31 [计算机软件];
学科分类号
081202 ; 0835 ;
摘要
In the compiler literature, parsing algorithms for context-free grammars are presented using string rewriting systems or abstract machines such as pushdown automata. Unfortunately, the resulting descriptions can be baroque, and even a basic understanding of some parsing algorithms, such as Earley's algorithm for general context-free grammars, can be elusive. In this paper, we present a graphical representation of context-free grammars called the Grammar Flow Graph (GFG) that permits parsing problems to be phrased as path problems in graphs; intuitively, the GFG plays the same role for context-free grammars that nondeterministic finite-state automata play for regular grammars. We show that the GFG permits an elementary treatment of Earley's algorithm that is much easier to understand than previous descriptions of this algorithm. In addition, look-ahead computation can be expressed as a simple inter-procedural dataflow analysis problem, providing an unexpected link between front-end and back-end technologies in compilers. These results suggest that the GFG can be a new foundation for the study of context-free grammars.
引用
收藏
页码:3 / 27
页数:25
相关论文
共 50 条
  • [1] Statistical Parsing with Context-Free Filtering Grammar
    Demko, Michael
    Penn, Gerald
    [J]. ADVANCES IN ARTIFICIAL INTELLIGENCE, PROCEEDINGS, 2009, 5549 : 52 - +
  • [2] Accurate Context-Free Parsing with Combinatory Categorial Grammar
    Fowler, Timothy A. D.
    Penn, Gerald
    [J]. ACL 2010: 48TH ANNUAL MEETING OF THE ASSOCIATION FOR COMPUTATIONAL LINGUISTICS, 2010, : 335 - 344
  • [3] BIDIRECTIONAL CONTEXT-FREE GRAMMAR PARSING NATURAL-LANGUAGE PROCESSING
    SATTA, G
    STOCK, O
    [J]. ARTIFICIAL INTELLIGENCE, 1994, 69 (1-2) : 123 - 164
  • [4] Efficient word-graph parsing and search with a stochastic context-free grammar
    Waters, CJ
    MacDonald, BA
    [J]. 1997 IEEE WORKSHOP ON AUTOMATIC SPEECH RECOGNITION AND UNDERSTANDING, PROCEEDINGS, 1997, : 311 - 318
  • [5] Watson-Crick Context-Free Grammars: Grammar Simplifications and a Parsing Algorithm
    Zulkufli, Nurul Liyana Mohamad
    Turaev, Sherzod
    Tamrin, Mohd Izzuddin Mohd
    Messikh, Azeddine
    [J]. COMPUTER JOURNAL, 2018, 61 (09): : 1361 - 1373
  • [6] Fast context-free grammar parsing requires fast Boolean matrix multiplication
    Lee, L
    [J]. JOURNAL OF THE ACM, 2002, 49 (01) : 1 - 15
  • [7] UNIVERSAL CONTEXT-FREE GRAMMAR
    KASAI, T
    [J]. INFORMATION AND CONTROL, 1975, 28 (01): : 30 - 34
  • [8] CONTEXT-FREE GRAMMAR FORMS
    CREMERS, A
    GINSBURG, S
    [J]. JOURNAL OF COMPUTER AND SYSTEM SCIENCES, 1975, 11 (01) : 86 - 117
  • [9] Grammar compression with probabilistic context-free grammar
    Naganuma, Hiroaki
    Hendrian, Diptarama
    Yoshinaka, Ryo
    Shinohara, Ayumi
    Kobayashi, Naoki
    [J]. 2020 DATA COMPRESSION CONFERENCE (DCC 2020), 2020, : 386 - 386
  • [10] SYSTOLIC PARSING OF CONTEXT-FREE LANGUAGES
    LANGLOIS, L
    [J]. INTERNATIONAL JOURNAL OF PARALLEL PROGRAMMING, 1990, 19 (04) : 333 - 355