langcc: A Next-Generation Compiler Compiler

Joe Zimmerman
9/17/2022
cs.PLcs.FL

Official code: jzimmerman/langcc (1,723 stars, C++, Apache-2.0, last commit 2022-12-21).

Abstract

Traditionally, parsing has been a laborious and error-prone component of compiler development, and most parsers for full industrial programming languages are still written by hand. The author [Zim22] shows that automatic parser generation can be practical, via a number of new innovations upon the standard LR paradigm of Knuth et al.

Show full abstract

With this methodology, we can automatically generate efficient parsers for virtually all languages that are intuitively "easy to parse". This includes Golang 1.17.8 and Python 3.9.12, for which our generated parsers are, respectively, 1.2x and 4.3x faster than the standard parsers. This document is a companion technical report which describes the software implementation of that work, which is available open-source at https://github.com/jzimmerman/langcc.

View on arXivView PDF

Code Implementations(1)

jzimmerman/langccOfficial100%
Apache-2.0

langcc: A Next-Generation Compiler Compiler

1,72362C++, MakefileSep 20, 20223 years agoApache-2.0

Similar Papers

Cite this paper

@article{zimmerman2022langcc,
  title  = {langcc: A Next-Generation Compiler Compiler},
  author = {Joe Zimmerman},
  year   = {2022},
  eprint = {2209.08385},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2209.08385}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2209.08385.svg)](https://codeofpaper.com/paper/2209.08385)

Discussion