Skip to content
barometzPublic

About

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

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

37 Commits

Folders and files

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

0 stars

Watchers

1 watching

Forks

Contributors

Languages