Earley Table Traversing Parsers

Research output: Contribution to journalArticlepeer-review

1 Downloads (Pure)

Abstract

We present a version of Earley's general parsing algorithm which uses a precomputed table. Our algorithm generates a set based representation of sentence derivations, precomputed components of which are also held in the table. We give experimental results for Java and ANSI C showing that the data structures produced are considerably smaller than the corresponding Earley data structures, and that the algorithm runs faster. The algorithm retains the simplicity of Earley's approach and, without explanatory discussion, takes only about a page to fully specify. This paper contains both motivational discussion, describing a recogniser version of the algorithm first and then its extension to a parser, and a concise, bare, but complete parser specification.
Original languageEnglish
Article number103335
Pages (from-to)1-43
Number of pages43
JournalScience of Computer Programming
Volume247
Early online date28 May 2025
DOIs
Publication statusE-pub ahead of print - 28 May 2025

Keywords

  • Context-Free Grammars
  • Language analysis
  • Generalised parsers
  • Earley parsers

Cite this