HackerPapers

arXiv:2209.08385cs.PL

langcc: A Next-Generation Compiler Compiler

Joe Zimmerman

Early discovery. Linked by one identifiable commenter. This paper is outside the main ranking; a mention is not an endorsement.

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. 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.

arXiv comments
Journal reference
DOI
Subjects
cs.PLProgramming Languages cs.FLFormal Languages and Automata Theory

On Hacker News

Linked by 1 identifiable commenter in 2 comments across 1 thread, from Sep 2022 to Sep 2022.

Comments linking this paper, per year.

Discussed in comments1 thread

    • The README is a work in progress, but some of these answers can be found in the documentation (https://arxiv.org/abs/2209.08385). In particular: > How are the error messages? langcc produces "confusing input pairs" for LR conflicts, which enable the user to pinpoint the cause of…

      jzimmerman64View on HNParent context

    • Readers who are interested in parsing theory may also enjoy the companion technical report: https://arxiv.org/pdf/2209.08383.pdf as well as a brief users' manual, available here: https://arxiv.org/pdf/2209.08385.pdf

      jzimmerman64View on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.