Code written when working through Robert Nystrom's Crafting Interpreters.
Build:
cargo b
Running as prompt:
cargo r -- prompt
Running as interpreter for a file:
cargo r -- file [file_path]
- Variable assignment is a statement and not an expression
- Truthiness
- Only booleans are evaluated to
true
/false
- Only booleans are evaluated to
- If Syntax
- The condition expression is not surrounded by braces
- The if- and the else-statements are provided in blocks