necronet / go-interpreter-lang

Just playing around with go, and following some books and tutorial on go interpreter and language design

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Based on Monkey language on the book "Build an interpreter with go"

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.

How to get started

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.

About

Just playing around with go, and following some books and tutorial on go interpreter and language design


Languages

Language:Go 100.0%