Skip to content

Latest commit

 

History

History
48 lines (31 loc) · 1.08 KB

README.md

File metadata and controls

48 lines (31 loc) · 1.08 KB

monkey-hs

An interpreter for the Monkey programming language written in Haskell

The Monkey Programming Language

The official Monkey logo

What's Monkey?

Monkey is a programming language designed for learning about interpreter implementation, used in a book, Writing An Interpreter In Go.

Why Haskell?

The original implementation in the book is written in Go. Go is a great language, but I personally find Haskell more attractive than Go. Haskell is well-known for its efficiency in writing compiler too.

Most importantly, writing Haskell makes me productive and happy. ✨

Instruction

Build, test and install

$ stack build
$ stack test
$ stack install # will install binaries in $PATH

REPL

$ mkrepl
$ stack exec mkrepl # without install

Interpreter

$ mki examples/map-reduce.mk
$ stack exec mki examples/hash.mk # without install

License

BSD3