Skip to content

chutichnuoc/golox

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Lox bytecode virtual machine interpreter written in Go. Based on https://www.craftinginterpreters.com

Features

  • Data Types: Boolean, Number, String, Nil
  • Expressions: Arithmetic, Comparison and equality, Logical operators, Precedence and grouping
  • Statements
  • Variables: Global, Local
  • Control Flow: If else, While, For
  • Function: Closure
  • Class: Instantiation, Inheritance

Compile

go build

Run

golox <path-to-file>

Run from source

go run main.go <path-to-file>

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages