This repository contains an implementation following the book build an interpreter with go. It's a simple yet effective way to understand how language design works. It teach several core concepts such as parsing, AST, evaluation and extending a language. The book can be considere an extensive tutorial with several explanation and paper reference on the fundamental of language design.
This repository is striaghfoward, it contains no external dependencies beyond core go language. So basically the instruction are:
- Ensure you have
go version go1.20.4
- Clone this repo locally
- use
go build & go run main.go
The last command will open the REPL in order to start trying the Interpreted language.
You can go ahead and type aritmetic or boolean expression to get evaluated.