No description
  • Zig 96.4%
  • Nix 3.5%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-08 05:48:18 -05:00
src remove bool arg from parse fns that don't use it 2026-11-08 05:48:18 -05:00
.gitignore ignore zig-pkg 2026-04-14 19:58:50 -04:00
build.zig zig 0.17 2026-11-08 05:48:17 -05:00
build.zig.zon bestline 2026-04-14 19:58:50 -04:00
flake.lock zig 0.17 2026-11-08 05:48:17 -05:00
flake.nix zig 0.17 2026-11-08 05:48:17 -05:00
LICENSE readme, license 2026-03-04 23:24:21 -05:00
README.md clean up 2026-03-28 12:16:02 -04:00

This is a work-in-progress bytecode compiler for the Lox programming language from Crafting Interpreters by Robert Nystrom. It's based on clox, the bytecode interpreter written in C and described in the book, but using idiomatic Zig features where possible; e.g. the scanner uses std.Io.Reader/Writer instead of reading and writing to raw pointers.

I also wrote a tree-walking interpreter for Lox in Janet: https://github.com/pvsr/janet-lox.