Skip to content
/ jlox Public

My take on the jlox interpreter from http://craftinginterpreters.com/

Notifications You must be signed in to change notification settings

barometz/jlox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is my attempt to work through Part II of Crafting Interpreters, while also (re?)learning Rust in the process by writing everything in Rust instead of Java.

To regenerate the ast enums, run cargo run --bin generate_ast src. There's probably a better way to do that through cargo's build.rs thing, but this is fine.

Extensions:

  • distinguish between integers and floats
  • bitwise negation

Challenges:

  • Chapter 4:
    • /* comments */
  • Chapter 6
    • conditional ? expressions : work, or at least the parser recognizes them.
    • Appropriate errors for missing left-hand operands to binary operators

About

My take on the jlox interpreter from http://craftinginterpreters.com/

Topics

Resources

Stars

Watchers

Forks

Languages