golox-lang is a stack based VM implementation (compiles to bytecode) of the lox language designed by Bob Nystrom in his book Crafting Interpreters, using GoLang.
You just need to have Go and Make installed on your sytem to get up and running. You can follow the instructions here to install Go on your system. On windows, you can use the choco package manager to install Make choco install make
.
Run Ripple:
make run
Run with a specific sample file:
make run file=samples/basic.lox
The context-free-grammar file contains the grammar of the whole language.
- Expressions
- Statements
- Variables(Global&Local)
- Control flow
- Functions
- Closures
- Classes