Skip to content

Latest commit

 

History

History
7 lines (6 loc) · 492 Bytes

File metadata and controls

7 lines (6 loc) · 492 Bytes

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.