Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Latest commit

 

History

History
History

README.md

Outline

monkey-rust

Rust

This is a parser for the Monkey programming language written in Rust

The Monkey Programming Language

What’s Monkey?

Compiler playground

https://monkey-lang-playground-jw.vercel.app/

Repo: https://github.com/gengjiawen/monkey-rust

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.

Features

  • Split packages to make everything minimum
  • REPL: A Read-Eval-Print-Loop (REPL) for Monkey tokenizer, parser, evaluator, compiler
  • location info for ast
  • test for every module
  • Wasm: A WebAssembly target, thus run monkey on browser is directly supported.
  • Prettier Plugin: Format Monkey source code with Prettier via prettier-plugin-monkey.
  • VS Code Extension: First-class editor support with syntax highlighting, snippets, WASM-powered diagnostics, AST preview, and bytecode compilation commands.
  • bytecode viewer from source
Morty Proxy This is a proxified and sanitized view of the page, visit original site.