https://github.com/origamidev-pete/odinlox
Odin implementation of a Lox virtual machine and compiler based on Robert Nystrom's Crafting Interpreters
https://github.com/origamidev-pete/odinlox
compiler interpreter programming-language virtual-machine
Last synced: 6 months ago
JSON representation
Odin implementation of a Lox virtual machine and compiler based on Robert Nystrom's Crafting Interpreters
- Host: GitHub
- URL: https://github.com/origamidev-pete/odinlox
- Owner: OrigamiDev-Pete
- Created: 2022-06-28T08:26:01.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-12-17T01:34:10.000Z (about 3 years ago)
- Last Synced: 2025-07-08T04:43:42.335Z (7 months ago)
- Topics: compiler, interpreter, programming-language, virtual-machine
- Language: Odin
- Homepage:
- Size: 87.9 KB
- Stars: 14
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# odinLox
An implementation of a Lox bytecode virtual machine and compiler based on Robert Nystrom's Crafting Interpreters written in the [Odin Programming Language](https://odin-lang.org/).
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.