Skip to content

dhan0779/go-interpreter-compiler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

94 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Interpreter/Compiler

After taking CS 4120 - Compilers at Cornell, I decided I wanted to learn how to write an interpreter/compiler by myself again. Its definitely not as complex as the one built in class, but has many of the basic features that would be useful. I also really wanted to learn Go for a while, so this helped to hit the ground running. Credit to Writing an Interpreter in Go and Writing a Compiler in Go by Thorsten Ball as resources.

Language

The language currently supports the following features:

  • integers
  • booleans
  • strings
  • arrays
  • hashes
  • prefix/infix operators
  • conditionals
  • bindings
  • closures
  • functions

To test out the interpreter/compiler, go to their respective folder and run go run main.go to start the REPL in the command line.

About

interpreter/compiler written in go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages