Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 744 Bytes

File metadata and controls

26 lines (21 loc) · 744 Bytes

Rlox (Rust Lox)

An implementation of the Lox programming language base on Robert Nystrom's book Crafting Interpreters in Rust.

Language Features Completed

  • Arithmetic
  • Variable declarations
  • Local scopes
  • Control flow
    • If statements
    • Loops
      • For
      • While
  • Functions
    • Normal functions
    • Closures
  • Classes
    • Data holding structure
    • Methods (instance and static)

Implementation Differences

  • The number 0 is considered falsy in this implementation rather than truthy as in the book's implementation.
  • Only allows a block, a print statement, or an expression statement as the loop body rather than any statement.