Skip to content

Latest commit

 

History

History
35 lines (23 loc) · 977 Bytes

README.md

File metadata and controls

35 lines (23 loc) · 977 Bytes

Stack-Based VM implementation of the lox language

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.

Environment setup

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.

Basic Usage

Run Ripple:

make run

Run with a specific sample file:

make run file=samples/basic.lox

Grammar

The context-free-grammar file contains the grammar of the whole language.

Current Status

  • Expressions
  • Statements
  • Variables(Global&Local)
  • Control flow
  • Functions
  • Closures
  • Classes