Skip to content

Stack-based virtual machine implementation of the Lox programming language

Notifications You must be signed in to change notification settings

alirahhal/golox-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

96 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Stack-based virtual machine implementation of the Lox programming language

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published