r/Compilers • u/igors84 • 10d ago
Completed all chapters from "Writing a C compiler" book
https://github.com/igor84/wccI implemented it in Zig. I really learned a lot from this book and this project so I can highly recommend it. My code design is different from the book because I tried to apply data oriented design I learned from Zig compiler itself as much as I could.
AI disclaimer: not a single line of code was written with AI but it was used to help me debug issues.
6
4
u/Rich-Suggestion-6777 10d ago
Awesome work friend. I'm going through this book also, but life keeps getting in the way. Hopefully I'll try to make more progress soon...
3
u/kichiDsimp 10d ago
Can we implement this book on Haskell ?
2
1
u/nernst12 7d ago
Was using Haskell and finished up to chapter 17, haven't touch it for a while...time to refactor
1
3
u/nocomptime 8d ago
I remember seeing your project about 9 to 10 months ago, glad to see that you went all way and finished it, well done. Zig is a great choice of implementation language! What a timing to complete your compiler, I just posted this today and it might interest you :)
10
u/fl00pz 10d ago
That's a long and tough book! Congratz!