"Writing an Interpreter in Go" in Zig, part 6 🔗
This post is part of the "Writing an Interpreter in Go" in Zig series.
- Tackling expressions with Pratt parsing
- Using tagged unions to discriminate statements and expression AST nodes (instead of interfaces with empty methods)
- Maybe there should be nulldefer - how Zig’s language features steer you toward certain patterns
- I would have referred to AST nodes as unary op and binary op instead of prefix expr and infix expr