Skip to content

Rust implementation of the Lox language

License

Notifications You must be signed in to change notification settings

athos-ribeiro/yarli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yet Another Rust Lox Implementation

This is a Rust implementation of the Lox language introduced in first part of craftinginterpreters.com (yarli is a tree-walk interpreter).

This is NOT intended for production (nor any kind of) use. This is just a fun project used to learn Rust.

This is far from complete. The list below is intended to track the project progress, Once it is complete, we should have a working Lox implementation as discribed in the book.

  • Chapter 04: Scanning
  • Chapter 05: Representing Code
  • Chapter 06: Parsing Expressions
  • Chapter 07: Evaluating Expressions
  • Chapter 08: Statements and State
  • Chapter 09: Control Flow
  • Chapter 10: Functions
  • Chapter 11: Reserving and Binding
  • Chapter 12: Classes
  • Chapter 13: Inheritance

Development and Usage

You can run this project with the usual cargo workflow. yarli runs either in an interactive mode (just run yarli) or by running scripts through yarli FILE_PATH.

The syntax for writing Lox scripts is available at http://craftinginterpreters.com/the-lox-language.html

About

Rust implementation of the Lox language

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages