My implementation of the Lox scripting language written in Go.
Lox is a programming language designed by Robert Nystrom in the book Crafting Interpreters.
The test suite in test/official_tests comes from the original implementation
Details
| Feature | Implementation |
|---|---|
| assignment | ✅ |
| benchmark | ✅ |
| block | ✅ |
| bool | ✅ |
| call | ✅ |
| class | ✅ |
| closure | ✅ |
| comments | ✅ |
| constructor | ✅ |
| field | ✅ |
| for | ✅ |
| function | ✅ |
| if | ✅ |
| inheritance | ✅ |
| limit | ❌ |
| logical operator | ✅ |
| method | ✅ |
| nil | ✅ |
| number | ✅ |
| operator | ✅ |
| ✅ | |
| regression | ✅ |
| return | ✅ |
| scanning | ✅ |
| string | ✅ |
| super | ✅ |
| this | ✅ |
| variable | ✅ |
| while | ✅ |
| empty file | ✅ |
| precedence | ✅ |
| unexpected character | ✅ |