monkey_lang 0.9.6

  • README.md
  • Installing
  • Versions
  • 46

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!

1. Depend on it

Add this to your package's pubspec.yaml file:


dependencies:
  monkey_lang: "^0.9.6"

2. Install it

You can install packages from the command line:

with pub:


$ pub get

with Flutter:


$ flutter packages get

Alternatively, your editor might support pub get or packages get. Check the docs for your editor to learn more.

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

Analysis

This feature is new.
We welcome feedback.
More details: scoring.

We analyzed this package, and provided a score, details, and suggestions below.

  • completed on Feb 3, 2018
  • Dart: 2.0.0-dev.20.0
  • pana: 0.10.1

Scores

Popularity:
Describes how popular the package is relative to other packages. [more]
0 / 100
Health:
Code health derived from static analysis. [more]
100 / 100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
80 / 100
Overall score:
Weighted score of the above. [more]
46

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Suggestions

  • Maintain CHANGELOG.md.

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

  • The description is too short.

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

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    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.

Dependencies

Package Constraint Resolved Available
Dev dependencies
test ^0.12.18+1