Project

mapleseed

0.0
No commit activity in last 3 years
No release in over 3 years
A simple Whirl interpreter
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.0.0
~> 1.5.2
>= 0
 Project Readme

Mapleseed¶ ↑

Mapleseed is a simple Whirl interpreter written in Ruby. Yes, I know I’ve been on a bit of an esoteric language interpreter kick. They’re fun little toys.

Usage¶ ↑

To install Mapleseed:

% gem install mapleseed

Once Mapleseed is installed, you can use it to interpret your Whirl code.

You can pass code directly into it, using the -c parameter.

% mapleseed -c "011000011110000111111"

Or, you can specify a file with the -f parameter:

% mapleseed -f test.wrl

You can also start an interactive interpreter by running Mapleseed without any parameters

% mapleseed

The list of options is viewable from the command line using the -h parameter.

% mapleseed -h

And if you’d like to use Whirl code inside of Ruby, that can be done:

require 'rubygems'
require 'mapleseed'

ms = Mapleseed::Interpreter.new
ms.run("011000001111000011111000001111
00001111100000111100001111100000110010
00001100111110001110001111000110011100
00000001111100010001111100110011111000
10001100")

Things That Might Get Done Eventually¶ ↑

  • File minimizer (turn whirl code into tiny binary files and vice versa)

  • Testing

History¶ ↑

  • 0.1.1 - Added REPL

  • 0.1.0 - Initial release. Allows running code passed in or from a file.