| Section | Title |
|---|---|
| 1 | Hello, Zig |
| 2 | Appendix A. Zig Syntax Summary |
| 3 | Appendix B. Operators and Precedence |
| 4 | Appendix C. Builtin Functions |
| 5 | Appendix D. Standard Library Map |
| 6 | Appendix E. Build System Reference |
| 7 | Appendix F. C Interop Reference |
| 8 | Appendix G. Common Compiler Errors |
| 9 | Appendix H. Zig 0.16 Migration Notes |
| 10 | Appendix I. Exercise Answers |
| 11 | Appendix J. Index |
| 12 | Colophon |
Hello, ZigThe first program in Zig is small.
Appendix A. Zig Syntax SummaryThis appendix is a quick map of Zig syntax. It is not a grammar. The full Zig grammar is part of the official language reference. Zig 0.16 also keeps the language small enough...
Appendix B. Operators and PrecedenceThis appendix lists the common operators by use. When an expression is not obvious, use parentheses.
Appendix C. Builtin FunctionsBuiltin functions are part of the language. Their names begin with @.
Appendix D. Standard Library MapThe Zig standard library is imported as:
Appendix E. Build System ReferenceZig builds programs with Zig code. The build script is named:
Appendix F. C Interop ReferenceOne of Zig's central goals is direct interoperability with C. Zig can call C code, compile C code, link system libraries, export functions to C, and translate C headers.
Appendix G. Common Compiler ErrorsZig tries to report errors at the point where the program becomes invalid. Many messages are direct: a value has the wrong type, a variable is unused, an error was ignored, or...
Appendix H. Zig 0.16 Migration NotesThis appendix records the kinds of changes that matter when moving older Zig code to Zig 0.16. It is a practical checklist, not a full release history.
Appendix I. Exercise AnswersThese are short answers or sketches for selected exercises from the book. Many exercises have several reasonable solutions. The important part is clarity and correctness.
Appendix J. IndexA
ColophonThis book describes the Zig programming language as of Zig 0.16.