monkey_lang 0.9.6

  • README.md
  • Installing
  • Versions
  • 37

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!

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
Popularity:
Describes how popular the package is relative to other packages. [more]
0
Health:
Code health derived from static analysis. [more]
100
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
37
Overall:
Weighted score of the above. [more]
37
Learn more about scoring.

We analyzed this package on Aug 10, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0
  • pana: 0.11.8

Platforms

Detected platforms: Flutter, web, other

No platform restriction found in libraries.

Issues and suggestions

Maintain CHANGELOG.md.

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

Add SDK constraint in pubspec.yaml.

For information about setting SDK constraint, please see https://www.dartlang.org/tools/pub/pubspec#sdk-constraints.

Package is getting outdated.

The package was released 78 weeks ago.

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 of the 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.

Fix lib/token/token.dart.

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

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

Dependencies

Package Constraint Resolved Available
Dev dependencies
test ^0.12.18+1