编译器构造 – 学习编写一个编译器

首选语言:C/C++,Java和Ruby。

我正在寻找一些有用的书/教程如何编写自己的编译器只是为了教育目的。我最熟悉C/C++,Java和Ruby,所以我喜欢涉及这三个之一的资源,但任何好的资源是可以接受的。

最佳答案
大资源列表:

> A Nanopass Framework for Compiler Education
> Advanced Compiler Design and Implementation $
> An Incremental Approach to Compiler Construction
> ANTLR 3.x Video Tutorial
> Basics of Compiler Design
> Building a Parrot Compiler
> Compiler Basics
> Compiler Construction $
> Compiler Design and Construction $
> Crafting a Compiler with C $
> Compiler Design in C
> Dragon Book $ – 广泛认为“书”的编译器编写。
> Engineering a Compiler $
> Essentials of Programming Languages
> Flipcode Article Archive(寻找“由Jan Niestadt实现脚本引擎”)
> Game Scripting Mastery $
> How to build a virtual machine from scratch in C#
> Implementing Functional Languages
> Implementing Programming Languages (with BNFC)
> Implementing Programming Languages using C# 4.0
> Interpreter pattern(描述于Design Patterns $)指定了一种评估语言句子的方法
> Language Implementation Patterns: Create Your Own Domain-Specific and General Programming Languages
> Let’s Build a CompilerPDF¶版本
> Linkers and Loaders $(Google图书)
> Lisp in Small Pieces (LiSP) $
> LLVM Tutorial
> Modern Compiler Implementation in ML $ – 还有一个Java $和C $版本 – 被广泛认为是一本非常好的书
> Object-Oriented Compiler Construction $
> Parsing Techniques – A Practical Guide
> Project Oberon¶ – 看看第13章
> Programming a Personal Computer $
> Programing Languages: Application and Interpretation
>Rabbit: A Compiler for Scheme
> Reflections on Trusting Trust – 快速指南
> Roll Your Own Compiler for the .NET framework – 从MSDN的快速教程
> Structure and Interpretation of Computer Programs
> Types and Programming Languages
> Want to Write a Compiler? – 快速指南
> Writing a Compiler in Ruby Bottom Up

传说:

>¶链接到PDF文件
> $链接到打印的书

转载注明原文:编译器构造 – 学习编写一个编译器 - 代码日志