Tree-walking interpreter written in Kotlin and bytecode virtual machine written in Zig for the Lox programming language from Crafting Interpreters.
-
lox-kt
-
lox-zg
- local-scoped variable
- control flow
- function and closure
- garbage collector
- class-based OOP
- compiling to WASM
-
lox-playground
- online playground
- How to compile zig targeting wasm
- How to work with zig build system
- How to load wasm with js in the browser
- How to do benchmark with the original clox implementation