Skip to content

Two compilers for the Lox programming language. One is an interpreter written in Python and the other a bytecode virtual machine written in Rust

Notifications You must be signed in to change notification settings

nasherm/lox-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My work done as I read Crafting Interpreters

The Lox specification can be found in the above link or directly here

This project consists of two parts

Plox (status: complete)

This is a compiler for Lox written in Python. It leverages the Python runtime to allow for easy development of an interpreter for Lox. It's not highly performant as expected, and performs no optimisations. Main features include static analysis of programs, object-orientation suppport, and support for the whole Lox specification (OO, recursion, functions, state, ...).

Usage

./plox.py <lox-script>

or use the REPL

./plox.py

Rlox (status: building)

This is a compiler for Lox written in Rust. Following in the tradition of other bytecode VMs such as the JVM, and Python.

About

Two compilers for the Lox programming language. One is an interpreter written in Python and the other a bytecode virtual machine written in Rust

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published