8000 GitHub - atsmtat/lox-vm: Lox virtual machine in Rust. · GitHub
[go: up one dir, main page]

Skip to content
atsmtatPublic

About

Lox virtual machine in Rust.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Latest commit

 

History

44 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lox-vm

lox-vm is a byte code virtual machine for the Lox language, defined and implemented here by Bob Nystrom. This is my attempt at implementing the interpreter in Rust.

Install

Once you have installed Rust, lox-vm can be installed using cargo

$ cargo install --git https://github.com/atsmtat/lox-vm.git --branch main

Binary is called loxi

$ loxi --help

Build

lox-vm is written in Rust, so you need Rust installed in order to compile it. To build lox-vm

$ git clone https://github.com/atsmtat/lox-vm.git
$ cd lox-vm
$ cargo build

To enable disassembler, use

$ cargo build --features "disassemble"

To run tests

$ cargo test

About

Lox virtual machine in Rust.

Topics

Resources

Stars

1 star

Watchers

1 watching

Forks

Contributors

Languages

0