[2606.08465] An Empirical Comparison of General Context-Free Parsers
-->
Computer Science > Formal Languages and Automata Theory
arXiv:2606.08465 (cs)
[Submitted on 7 Jun 2026]
Title:An Empirical Comparison of General Context-Free Parsers
Authors:Huan Vo, Danushka Liyanage, Hong Jin Kang, Sasha Rubin, Rahul Gopinath<br>View a PDF of the paper titled An Empirical Comparison of General Context-Free Parsers, by Huan Vo and 4 other authors
View PDF
Abstract:Parsing underpins a vast range of software engineering tasks, from compilers and static analyzers to language servers and fuzz testing tools. Yet most parsers deployed in practice are deterministic (LL or LR), forcing developers not only to contort their grammars to fit the parser, but to simplify the very languages they design sacrificing expressiveness for the sake of parseability. General context-free parsers eliminate this constraint. Yet, despite decades of algorithmic development, no rigorous head-to-head comparison exists across the major families of parsing algorithms.
We present the first unified, controlled benchmark of six generalized parsing algorithms: CYK, Valiant, Earley, GLL, RNGLR, and BRNGLR, plus deterministic LL(1) and LR(1) baselines, all implemented in Rust with shared data structures and parse-tree extraction, and evaluated across 22 grammars ranging from simple expressions to full C++ and Java. Our results show that the cost of generality is lower than widely assumed. On deterministic grammars, the GLR family incurs only a 3x median slowdown over LR(1), with a narrow and predictable variance. GLR is the clear performance winner among generalized parsers and a practical default choice for software engineering tools.
Subjects:
Formal Languages and Automata Theory (cs.FL); Performance (cs.PF); Programming Languages (cs.PL); Software Engineering (cs.SE)
MSC classes:<br>68Q42, 68N20
ACM classes:<br>F.4.2; D.3.4
Cite as:<br>arXiv:2606.08465 [cs.FL]
(or<br>arXiv:2606.08465v1 [cs.FL] for this version)
https://doi.org/10.48550/arXiv.2606.08465
Focus to learn more
arXiv-issued DOI via DataCite (pending registration)
Submission history<br>From: Rahul Gopinath [view email]<br>[v1]<br>Sun, 7 Jun 2026 05:58:58 UTC (123 KB)
Full-text links:<br>Access Paper:
View a PDF of the paper titled An Empirical Comparison of General Context-Free Parsers, by Huan Vo and 4 other authors<br>View PDF<br>TeX Source
view license
Current browse context:
cs.FL
next >
new<br>recent<br>| 2026-06
Change to browse by:
cs<br>cs.PF<br>cs.PL<br>cs.SE
References & Citations
NASA ADS<br>Google Scholar
Semantic Scholar
export BibTeX citation<br>Loading...
BibTeX formatted citation
×
loading...
Data provided by:
Bookmark
Bibliographic Tools
Bibliographic and Citation Tools
Bibliographic Explorer Toggle
Bibliographic Explorer (What is the Explorer?)
Connected Papers Toggle
Connected Papers (What is Connected Papers?)
Litmaps Toggle
Litmaps (What is Litmaps?)
scite.ai Toggle
scite Smart Citations (What are Smart Citations?)
Code, Data, Media
Code, Data and Media Associated with this Article
alphaXiv Toggle
alphaXiv (What is alphaXiv?)
Links to Code Toggle
CatalyzeX Code Finder for Papers (What is CatalyzeX?)
DagsHub Toggle
DagsHub (What is DagsHub?)
GotitPub Toggle
Gotit.pub (What is GotitPub?)
Huggingface Toggle
Hugging Face (What is Huggingface?)
ScienceCast Toggle
ScienceCast (What is ScienceCast?)
Demos
Demos
Replicate Toggle
Replicate (What is Replicate?)
Spaces Toggle
Hugging Face Spaces (What is Spaces?)
Spaces Toggle
TXYZ.AI (What is TXYZ.AI?)
Related Papers
Recommenders and Search Tools
Link to Influence Flower
Influence Flower (What are Influence Flowers?)
Core recommender toggle
CORE Recommender (What is CORE?)
Author
Venue
Institution
Topic
About arXivLabs
arXivLabs: experimental projects with community collaborators
arXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.
Both individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.
Have an idea for a project that will add value for arXiv's community? Learn more about arXivLabs .
Which authors of this paper are endorsers? |<br>Disable MathJax (What is MathJax?)