计算机科学 > 程序设计语言
[提交于 2022年7月26日]
标题:Reimplementing the Wheel: Teaching Compilers with a Small Self-Contained One
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We report on a one-semester compiler construction course based on the idea of implementing a small self-contained compiler for a small model language from scratch, not using other compiler construction frameworks. The course is built around an evolving family of languages with increasing expressiveness and complexity, which finally is crowned by a language with first-class functions, S-expressions, pattern matching, and garbage collection. The code generation technique is based on the idea of symbolic interpreters, which allows to implement a robust albeit not a very efficient native code generator. We give the motivation for the course, describe its structure, and report some results of teaching based on students' post-course surveys.
提交历史
来自:EPTCS[v1] 2022年7月26日 星期二 07:44:43 UTC