following: https://craftinginterpreters.com/
Implemented a hashmap!
- add support for lists (usage)
- add static methods to classes using metaclasses (usage)
- add getter methods to classes (usage)
- add
hash
native function (usage) - support modulus
%
operator - allow for nested block comments:
/* ... /* ... */ ... */
- variables must be initialized before accessed (they don't default to
nil
) - disallow division by 0
- when the left operand of
+
is a string, cast right operands into strings - add
break
statements (usage). didn't addcontinue
, it's a little more troublesome since it requires desugaring the for loop and performing the increment when the loop hits acontinue
.