Skip to content

baevm/monkey-lang-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monkey-lang-rs

Monkey language interpreter based on book "Writing an Interpreter in Go"


Supported features:

  • Variables, variables reassignment
  • Types: integers, booleans, strings, null
  • Arithmetic operations and compound operators: +, -, *, /, +=, -=, *=, /=
  • Comparison operations: ==, !=, <, <=, >, >=
  • If statements
  • C-like for loops (for (init; condition; post) { ... })
  • Functions
  • Closures
  • Built-in functions
  • Arrays
  • Objects

To run REPL:

    cargo run . 

Example:

Welcome to Monkey programming language!

>> let addFunction = function(x, y) { return x + y; };
"null"
>> addFunction(6,2);
"8"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages