8000 GitHub - xxv0/monkey-rust: A dancing with interpreter and compiler
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

xxv0/monkey-rust

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monkey-rust

Rust Gitpod ready-to-code monkey-interpreter npm version

An interpreter for the Monkey programming language written in Rust

The Monkey Programming Language

What’s Monkey?

Monkey has a C-like syntax, supports variable bindings, prefix and infix operators, has first-class and higher-order functions, can handle closures with ease and has integers, booleans, arrays and hashes built-in.

Official site is: https://monkeylang.org/. It's has various implementation languages :).

There is a book about learning how to make an interpreter: Writing An Interpreter In Go. This is where the Monkey programming language come from.

Features

  • Split packages to make everything minimum
  • location info for ast
  • test for every module
  • Wasm: A WebAssembly target.

AST Online playground

https://astexplorer.net/#/gist/e23a81ce309e8fcffe95ddd1b5661061/01d0b4b078304ddd9639eae9f4e6d342e2b9d075

Compiler playground

https://gengjiawen.github.io/monkey-rust/

Instruction

Build and test

$ cargo build
$ cargo test

About

A dancing with interpreter and compiler

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 62.8%
  • Rust 26.6%
  • HTML 4.1%
  • CSS 3.4%
  • TypeScript 1.9%
  • Shell 0.9%
  • EJS 0.3%
0