• Home
  • Search
  • A Graphical Model for Context-Free Grammar Parsing
  • Open Access IconOpen Access
  • Cite Icon5
  • https://doi.org/10.1007/978-3-662-46663-6_1Copy DOI Icon

A Graphical Model for Context-Free Grammar Parsing

  • Jan 1, 2015
  • Keshav Pingali +1 more
Show More
  • Abstract
  • Literature Map
  • References
  • Citations
  • Similar Papers
Abstract

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.

Similar Papers
  • Book Chapter
  • Citations109

Linear Algebra in Dioids: A Survey of Recent Results

  • Jan 01, 1984
  • North-Holland Mathematics Studies
  • Michel Gondran +1
  • Book Chapter

Connectedness and Path Problems in Graphs

  • Jan 01, 1968
  • Peter L Hammer +1
  • Research Article
  • Citations7

Heavy path based super-sequence frequent pattern mining on web log dataset

  • Mar 12, 2015
  • Artificial Intelligence Research
  • Xinran Yu +1
  • PDF
  • Research Article
  • Citations7

Improved approximation bounds for the minimum constraint removal problem

  • Apr 02, 2020
  • Computational Geometry
  • Sayan Bandyapadhyay +3
  • Research Article
  • Citations1

Use of FOSS for Teaching the Parser Types to Improve Problem Solving Ability A Case Study on Analysis of Gender based Discrimination in Education

  • Jan 01, 2023
  • Journal of Engineering Education Transformations
  • Sunita M Dol
  • Book Chapter
  • Citations11

Finite Automata and Non-self-Embedding Grammars

  • Jan 01, 2003
  • Marcella Anselmo +2
  • Book Chapter
  • Citations9

Reversible Pushdown Automata

  • Jan 01, 2010
  • Martin Kutrib +1
  • Conference Article
  • Citations2

On one context-free language for producer/consumer Petri net with the unbounded buffer

  • May 01, 2020
  • Vadym Mukhin +1
  • Research Article
  • Citations17

A collection of tools for making automata theory and formal languages come alive

  • Mar 01, 1997
  • ACM SIGCSE Bulletin
  • Susan H Rodger +6
  • Book Chapter
  • Citations17

Checking Stacks and Context-Free Programmed Grammars Accept p-complete Languages

  • Jan 01, 1974
  • E Shamir +1
  • Single Book
  • Citations7

Logic and Language Models for Computer Science

  • Apr 21, 2022
  • Dana Richards +1
  • Book Chapter
  • Citations3

2 - State of the art: grammatical inference

  • Jan 01, 2022
  • State of the Art on Grammatical Inference Using Evolutionary Method
  • Hari Mohan Pandey
  • Conference Article
  • Citations19

Fine-grained complexity for sparse graphs

  • Jun 20, 2018
  • Udit Agarwal +1
  • Book Chapter

Fast recognitions of pushdown automaton and context-free languages

  • Sep 03, 1984
  • Wojciech Rytter
  • Conference Article
  • Citations6

Optimizing multi-criteria k-shortest paths in graph by a natural routing genotype-based genetic algorithm

  • May 01, 2018
  • Yang Wang +6
Cactus Communications logo

Copyright 2026 Cactus Communications. All rights reserved.