0.0
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
An interpreter written in Ruby for the imperative, stack based language called Whitespace.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.12
~> 5.9
~> 11.2
 Project Readme

About

An interpreter written in Ruby for the imperative, stack based language called Whitespace.

Installation

Install it yourself using:

$ gem install whitespace-ruby

You would now have access to an executable called whitespace. Type

$ whitespace --help

to learn more.

Usage

Let's say you've written a Whitespace program and stored it in the file program.ws. Then, to execute that program, type:

$ whitespace program.ws

This gem comes with example Whitespace programs that you can check out at examples. Be sure to run them to see what they do.

For example, here's the factorial program and a sample execution (assuming you're in the examples directory):

$ whitespace fact.ws
Enter a number: 40
40! = 20397882081197443358640281739902897356800000000

References

Credits

Thanks to Edwin Brady and Chris Morris for developing this programming language (also developers of the Idris programming language). I've had lots of fun playing with it and writing interpreters (in Racket, Haskell and now Ruby) for it.

Copyright

Copyright (c) 2016 Dwayne Crooks. See LICENSE for further details.