o
odinpkg.dev
packages / tool / odinLox

odinLox

96e3d5ftool

Odin implementation of a Lox virtual machine and compiler based on Robert Nystrom's Crafting Interpreters

No license · updated 4 years ago

odinLox

An implementation of a Lox bytecode virtual machine and compiler based on Robert Nystrom's Crafting Interpreters written in the Odin Programming Language.

The language is complete, including modulo and NaN Boxing optimizations.

Usage - Windows

To build and run the VM, simply run:

.\run

Usage - Other

I've not included build scripts for other platforms but provided you have an Odin compiler you can run:

odin build src -out:lox.exe -o:speed

This will produce an executable for your platform.