An implementation of the Lox language from part II of "Crafting Interpreters" written in Common Lisp
Run make
to build and executable called loxl
. Running loxl
with a file path with run a *.lox file, or will run a repl with no arguments.
Loxl tests against all of the *.lox files in the Crafting Interpreters github repo. To run them, execute (asdf:test-system 'loxl)
- C-Style block comments
- String coercion during concatenation
- Comma and Ternary operators
- Accessing non-initialized variables throws an error
- Break keyword for while/for loops
- Anonymous functions
- Repl can handle multi-line input from the user