Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/I-mikan-I/zlox
lox virtual machine implementation in zig!
https://github.com/I-mikan-I/zlox
Last synced: 3 months ago
JSON representation
lox virtual machine implementation in zig!
- Host: GitHub
- URL: https://github.com/I-mikan-I/zlox
- Owner: I-mikan-I
- License: mpl-2.0
- Created: 2022-04-01T20:01:24.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-07-28T20:15:57.000Z (over 2 years ago)
- Last Synced: 2024-08-04T04:07:11.399Z (6 months ago)
- Language: Zig
- Size: 191 KB
- Stars: 24
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-zig - zlox🗒️lox virtual machine implementation in zig!
README
# ZLox
A stack-based bytecode Virtual Machine for the [Lox Programming Language](https://craftinginterpreters.com/the-lox-language.html) written in [Zig](https://ziglang.org/).
## Run
Start REPL:
```bash
$ zig build run
> print 1+1;
2
>
```## Test
```bash
$ zig build test
All tests passed.
```## Troubleshoot
Enable tracing:
```bash
$ zig build -Denable-tracing
```Enable disassembly:
```bash
$ zig build -Denable-dump
```For more build options use `zig build --help`