Skip to content

lukebro/rlox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lox Interpreter in Rust

Rust

Creating a interpreter for the Lox Language by following Crafting Interpreters by Robert Nystorm.

Using this as an opportunity to learn rust while also learning about creating interpreters.

How to run

Using cargo:

cargo run -- [script]
# or use REPL
cargo run

As a binary:

rlox [script]
# or use REPL
rlox

How to run tests

cargo test

TODO

  • Scanning
    • Improve error handling
  • Representing Code (in progress)
  • Parsing Expressions
  • Evaluating Expressions
  • Statements and State
  • Control Flow
  • Functions
  • Resolving and Binding
  • Classes
  • Inheritance

About

Lox Language interpreter written in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages