Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 603 Bytes

README.md

File metadata and controls

39 lines (30 loc) · 603 Bytes

rslox

Rust implementation of an interpreter for the Lox programming language

Usage

Run prompt:

cargo run 

Run a lox file:

cargo run  -- examples/hello.lox

With debug log:

RUST_LOG=debug cargo run

Implementation

  • Scanning
  • Representing Code
  • Parsing Expressions
  • Evaluating Expressions
  • Statements and State
  • Control Flow
  • Functions
  • Resolving and Binding
  • Classes
  • Inheritance

Reference

Crafting Interpreters

License

MIT