Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/I-mikan-I/zlox

lox virtual machine implementation in zig!
https://github.com/I-mikan-I/zlox

Last synced: about 2 months ago
JSON representation

lox virtual machine implementation in zig!

Awesome Lists containing this project

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`