Skip to content

Latest commit

 

History

History
45 lines (33 loc) · 1.42 KB

README.md

File metadata and controls

45 lines (33 loc) · 1.42 KB

Oohooh-Aahaah Interpreter

Go

              __,__                                  _                       _
     .--.  .-"     "-.  .--.          ___     ___   | |__     ___     ___   | |__
    / .. \/  .-. .-.  \/ .. \        / _ \   / _ \  | '_ \   / _ \   / _ \  | '_ \
   | |  '|  /   Y   \  |'  | |      | (_) | | (_) | | | | | | (_) | | (_) | | | | |
   | \   \  \ 0 | 0 /  /   / |       \___/   \___/  |_| |_|  \___/   \___/  |_| |_|
    \ '- ,\.-"""""""-./, -' /
     ''-' /_   ^ ^   _\ '-''                         _                       _
        |  \._     _./  |             __ _    __ _  | |__     __ _    __ _  | |__
         \   \ '~' /   /             / _` |  / _` | | '_ \   / _` |  / _` | | '_ \
          '._ '-=-' _.'             | (_| | | (_| | | | | | | (_| | | (_| | | | | |
             '-----'                 \__,_|  \__,_| |_| |_|  \__,_|  \__,_| |_| |_|

Is an interpreter for the Monkey language built in Go.

Usage

One can use the REPL or feed a .mon file into the interpreter. After compiling the binary, use the interpreter like so:

ohah examples/add.mon

Running the REPL

make repl

Building the interpreter

make build

Running the tests

make test