Skip to content
/ rlox Public

A rust implementation of the Lox programming language based on Robert Nystrom's book "Crafting Interpreters"

Notifications You must be signed in to change notification settings

sunkit02/rlox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

A rust implementation of the Lox programming language based on Robert Nystrom's book "Crafting Interpreters"

Topics

Resources

Stars

Watchers

Forks

Languages