Writing a C Compiler, in Zig
We believe that this document is fully human-written.
Hacker News Article AI Analysis
Content Label
Human
AI Generated
0%
Human
100%
Window 1 - Human
⏏️
First foray into the Zig programming language
2025-06-17
This is a series of articles I wrote while writing paella, following Nora Sandler's Writing a C Compiler. It was both an exercise to learn Zig and a way to waste time instead of looking for work, as I am currently "between jobs". I did not edit them as I collect them here outside of fixing some broken links.
Chapter 1: Intro
Chapter 2: Unary
Chapter 3: Binary
Chapter 4: Logic
Chapter 5: Variables
Chapter 6: Conditions
Chapter 7: Blocks
Chapter 8: Loops
Chapter 9: Functions
Chapter 10: Linking
If/when I continue with the book, I shall post the following writeups here.