monkey_lang 0.9.6

  • Installing
  • Versions
  • 0

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()

Run the test suite

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

Format + analyze the code

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

Go ahead and have fun with Monkey!

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate monkey_lang

2. Use it

The package has the following executables:

$ monkey
Version Uploaded Documentation Archive
0.9.6 Feb 6, 2017 Go to the documentation of monkey_lang 0.9.6 Download monkey_lang 0.9.6 archive
0.9.5 Feb 6, 2017 Go to the documentation of monkey_lang 0.9.5 Download monkey_lang 0.9.5 archive
0.9.4 Feb 5, 2017 Go to the documentation of monkey_lang 0.9.4 Download monkey_lang 0.9.4 archive
0.9.3 Jan 26, 2017 Go to the documentation of monkey_lang 0.9.3 Download monkey_lang 0.9.3 archive
0.9.2 Jan 26, 2017 Go to the documentation of monkey_lang 0.9.2 Download monkey_lang 0.9.2 archive
0.9.1 Jan 25, 2017 Go to the documentation of monkey_lang 0.9.1 Download monkey_lang 0.9.1 archive
0.9.0 Jan 25, 2017 Go to the documentation of monkey_lang 0.9.0 Download monkey_lang 0.9.0 archive
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
Learn more about scoring.

The package version is not analyzed, because it does not support Dart 2. Until this is resolved, the package will receive a health and maintenance score of 0.

Health issues and suggestions

Document public APIs (-9.65 points)

306 out of 317 API elements (library, class, field or method) have no adequate dartdoc content. Good documentation improves code readability and discoverability through search.

Fix lib/token/token.dart. (-0.50 points)

Analysis of lib/token/token.dart reported 1 hint:

line 57 col 17: Always override hashCode if overriding ==.

Format lib/ast/ast.dart.

Run dartfmt to format lib/ast/ast.dart.

Maintenance issues and suggestions

Add SDK constraint in pubspec.yaml. (-50 points)

For information about setting SDK constraint, please see

Maintain (-20 points)

Changelog entries help clients to follow the progress in your code.

Package is getting outdated. (-82.74 points)

The package was released 95 weeks ago.

The description is too short. (-20 points)

Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

Maintain an example. (-10 points)

Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use monkey_lang.dart.


Package Constraint Resolved Available
Dev dependencies
test ^0.12.18+1