A version of the Tree-Walk Interpreter written in Go. Based on the book https://craftinginterpreters.com originally coded in Java.
This implementation focuses on having a correct interpreter leveraging some high level features sacrificing performance. See clox for a low level approach focused more on performance.
- Lexer
- C-style multiline comments
/* ... */
break
keyword
- C-style multiline comments
- Parser
break
statement
- Resolver
- ParseError: unused local variable
- Interpreter
- handle
break
statement infor
andwhile
loops - handle return statement via state instead of with exception handling (~4 times faster)
- handle