-
Book Overview & Buying
-
Table Of Contents
Systems Programming with Zig
By :
There is no better way to understand core programming concepts like syntax trees, scope, and evaluation strategies than by building a programming language from scratch. An interpreter is also a fitting capstone for a systems programming book because it draws on every discipline the previous chapters introduced: the lexer processes raw bytes into tokens using the same stream processing and buffer management covered in Chapter 4, Processing Streams, Buffers, and Data Encoding; the parser builds a tree from those tokens using recursive descent, allocating nodes with the same explicit memory ownership model established in Chapter 3, Direct Memory Access and Binary Formats; the evaluator walks that tree, managing scope and values in a way that mirrors the data structure design from Chapter 8, Orchestrating Concurrency and Synchronization; and the REPL ties everything together into an interactive tool, applying the same input handling and error...