Skip to content

atsmtat/lox-vm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Watchers

Forks

Languages