Skip to content

Writing an interpreter for the Monkey ๐Ÿ’ language in Dart

License

Notifications You must be signed in to change notification settings

mreichelt/monkey-dart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

97 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Writing an Interpreter for the Monkey ๐Ÿ’ Language in Dart

Build Status

A fully working interpreter for the Monkey programming language as known from the book Writing an Interpreter in Go, written in Dart.

Install Monkey and start the REPL

With one command, you can install the monkey binary:

$ pub global activate monkey_lang
Downloading monkey_lang 0.9.1...
[...]
Installed executable monkey.

Now you can run monkey from anywhere you want!

$ monkey
Hello! This is the Monkey programming language!
Feel free to type in commands
>> let answer = fn(){ 6*7; };
>> answer()
42

Run the test suite

$ pub run test
[...]
00:00 +42: All tests passed! 

Format + analyze the code

$ ./dartformat_analyze.sh
Formatting directory lib/:
[...]
Formatting directory test/:
[...]
Analyzing [.]...
No issues found

Go ahead and have fun with Monkey!

About

Writing an interpreter for the Monkey ๐Ÿ’ language in Dart

Resources

License

Stars

Watchers

Forks

Packages

No packages published