Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 682 Bytes

Readme.md

File metadata and controls

18 lines (15 loc) · 682 Bytes

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