langcc:下一代嵌入式系统
langcc: A Next-Generation Compiler Compiler
摘要:
传统上,解析一直是编译器开发中一个费力且容易出错的组件,而且大多数工业程序设计语言的解析器仍然是手工编写的。作者[Zim22]表明,自动解析器生成可以是实用的,通过一些新的创新,在标准LR范式的Knuth等人。有了这种方法,我们可以自动生成有效的解析器,几乎所有的语言,直观上是“容易解析”。这包括Golang 1.17.8和Python 3.9.12,我们生成的解析器分别比标准解析器快1.2倍和4.3倍。本文档是一份附带的技术报告,描述了该工作的软件实现,可在https://github.com/jzimmerman/langcc上获得开源。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。