Lox interpreter implemented in Java (based on the book: https://craftinginterpreters.com)
- Nestable C-style comments (
\* Foo *\,\* Foo \* Bar *\ *\) - Conditional (ternary) operator (
a > b ? a : bevaluates to the largest of the two.) +operator works so that if one of the operands is a string, the other is converted to a string and concatenated. ("Forty " + 2evaluates to"Forty 2.0".)- Throw a runtime error when trying to divide by zero.
- The REPL allows expressions as input (and not just statements), which are evaluated and shown in the interpreter.
breakandcontinuekeywords for loops