Skip to content

FedorSmirnov89/rLox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RLox - Parser + Interpreter for Lox in Rust

Code written when working through Robert Nystrom's Crafting Interpreters.

Running things

Build:

cargo b

Running as prompt:

cargo r -- prompt

Running as interpreter for a file:

cargo r -- file [file_path]

Differences to the implementation in the book

  • Variable assignment is a statement and not an expression
  • Truthiness
    • Only booleans are evaluated to true/false
  • If Syntax
    • The condition expression is not surrounded by braces
    • The if- and the else-statements are provided in blocks

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages