/lox-project

Lox language from Crafting Interpreters implemented in Kotlin and Zig

Primary LanguageZigMIT LicenseMIT

Lox Project

Tree-walking interpreter written in Kotlin and bytecode virtual machine written in Zig for the Lox programming language from Crafting Interpreters.

Progress

  • lox-kt
  • lox-zg
    • local-scoped variable
    • control flow
    • function and closure
    • garbage collector
    • class-based OOP
    • compiling to WASM
  • lox-playground
    • online playground

Tasks

  • 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