Skip to content

ashez2000/monkey-lang-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monkey-lang-rs

A Rust implementation of C-like language based on excellent Writing An Interpreter In Go book.

Features

  • C-like syntax
  • Integer, boolean, string and array
  • Variable bindings
  • Let and Return statements
  • If-Else conditionals
  • Basic arithmetic for integer expressions
  • First class and higher-order functions, closures
  • Built-in utility functions
  • HashMap
  • TODO: Macros

Getting Started

Building the language from source requires a working rust toolchain installed

  1. Clone the source code:
git clone https://github.com/ashez2000/monkey-lang-rs
  1. Run with file or REPL mode
cargo run <filename>
cargo run

About

Monkey Lang Interpreter in Rust

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages