Toy C Compiler and Interpreter, focused on understanding basics
Till now, I have three major goals;
-
understand how compilers and interpreters work, and possibly, get a glimpse of the rationale behind programming language design choices.
-
apply TDD on this project, to experience the power of this methodology.
-
build a complete C project - regardless of its size with proper modularization. For this reason, I extended my very first idea to build C compiler to include interpreter, too.
If possible, I may compete with those compilers out there, but, TBH, I am not planning to do so. This is clearly a toy project, focused on learning.
- chibicc: A Small C Compiler, carefully designed to progress along with his own book on compiler development.
- KAIST CS420: Compiler Design course of KAIST, by Professor Kang.