Skip to content

bruckmann/gopiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gopiler

An interpreter for Summer language written in Golang.

The Summer language:

Syntax

 let five = 5;
 let ten = 10;

 let add = fn(a, b) {
   a + b;
  };

 let result = add(five, ten);

Features

  • First Class functions
  • Higher order functions
  • Variable bindings
  • Integer and booleans
  • Closures
  • String data structure
  • Array data structure
  • A hash data structure
  • Built-in functions
  • arithmetic expressions

To use the interactive mode just run the command:

  go run main.go

The language and the interpreter was done only for learning purposes and it was based on the book "Writing An Interpreter in Go" by Thorsten Ball.

About

An interpreter written in Golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages