/golox

Go interpreter written for an educational language Lox to better understand how interpreters work

Primary LanguageGo

golox

I will share my progress on trying to build golox which is an interpreter for the Lox language following the Crafting Interpreters book

Running it

go build .

Interactive mode (REPL)

./golox

Input file

.golox file.lox

Current Progres

  • Defining the lanugage tokens and grammar
  • Scanning (Lexing)
  • Representing code
  • Parsing expressions
  • Evaluating expressions
  • Statements and state
  • Control flow

Next

  • Functions
  • Resolving and binding
  • Classes
  • Inheritance