《Lisp in Small Pieces》写得非常棒。它会教你很多关于如何编译 Scheme(子集)的知识。如果你决定要编译一门类似 Pascal 的语言,我强烈推荐《Brinch Hansen on Pascal Compilers》。如果我没记错的话,书里讲的 Pascal 编译器是可以自举编译的。
"Lisp in Small Pieces" is very well-written. It will teach you a lot about how to compile (subsets) of Scheme. If you decide to compile a Pascal-like language, I can't recommend "Brinch Hansen on Pascal Compilers" enough. If I remember correctly the Pascal compiler described in the book can compile itself.
还有 Brinch Hansen 写的《Brinch Hansen on Pascal Compilers》:https://www.amazon.com/Brinch-Hansen-Pascal-Compilers/dp/013...
Also Brinch Hansen on Pascal Compilers: https://www.amazon.com/Brinch-Hansen-Pascal-Compilers/dp/013...
《Lisp in Small Pieces》写得非常棒。它会教你很多关于如何编译 Scheme(子集)的知识。如果你决定要编译一门类似 Pascal 的语言,我强烈推荐《Brinch Hansen on Pascal Compilers》。如果我没记错的话,书里讲的 Pascal 编译器是可以自举编译的。
"Lisp in Small Pieces" is very well-written. It will teach you a lot about how to compile (subsets) of Scheme. If you decide to compile a Pascal-like language, I can't recommend "Brinch Hansen on Pascal Compilers" enough. If I remember correctly the Pascal compiler described in the book can compile itself.