monkey

command module
v0.0.0-...-bb77f45 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 4 Imported by: 0

README

Monkey

            __,__
   .--.  .-"     "-.  .--.
  / .. \/  .-. .-.  \/ .. \
 | |  '|  /   Y   \  |'  | |
 | \   \  \ 0 | 0 /  /   / |
  \ '- ,\.-"""""""-./, -' /
   ''-' /_   ^ ^   _\ '-''
       |  \._   _./  |
       \   \ '~' /   /
        '._ '-=-' _.'
           '-----'
  • mathematical expressions
  • variable bindings
  • functions
  • application of those functions
  • conditionals
  • return statements
  • higher-order functions
  • closures
  • data types
    • integers
    • booleans
    • strings
    • arrays
    • hashes
  • bytecode compiler
  • virtual machine

Eval

go run main.go

VM

go build -o monkey . && ./monkey

Benchmark

go build -o fibonacci ./benchmark
./fibonacci -engine=eval
./fibonacci -engine=vm

Writing An Interpreter In Go

Go there and buy this now: https://interpreterbook.com/

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL