The Zig compiler is not only a compiler for the Zig language. It is also the center of the Zig toolchain.
| Section | Title |
|---|---|
| 1 | Zig Compiler Architecture |
| 2 | Zig Source Tree |
| 3 | Understanding Stage2 |
| 4 | How Parsing Works |
| 5 | Semantic Analysis |
| 6 | Code Generation |
| 7 | LLVM Integration |
| 8 | Open Issues and RFCs |
| 9 | Contributing to Zig |
| 10 | Following Zig Development |
| 11 | Appendix A. Zig 1.16 New Features |
Zig Compiler ArchitectureThe Zig compiler is not only a compiler for the Zig language. It is also the center of the Zig toolchain.
Zig Source TreeWhen you first open the Zig source code repository, it can feel overwhelming.
Understanding Stage2When people talk about Zig compiler internals, they often mention stage2.
How Parsing WorksParsing is the part of the compiler that reads source code and turns it into structure.
Semantic AnalysisSemantic analysis is the compiler stage that checks what a program means.
Code GenerationCode generation is the compiler stage that turns analyzed program meaning into target code.
LLVM IntegrationLLVM is a compiler infrastructure project.
Open Issues and RFCsA programming language is never only its syntax.
Contributing to ZigContributing to Zig means helping the language, compiler, standard library, documentation, tests, or tooling improve.
Following Zig DevelopmentZig changes quickly because it is still moving toward 1.0.
Appendix A. Zig 1.16 New FeaturesZig has not reached 1.0 yet. The current release line discussed in this book is Zig 0.16, not Zig 1.16.