A Whitespace implementation in Racket
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
examples
LICENSE
Makefile
README.markdown
main.rkt
parser.rkt
semantics.rkt

README.markdown

Invisible Thief

A Whitespace implementation in Racket

Why?

Because why not? Whitespace is a cute idea, and the Racket folks like to advertise their language as a little language laboratory, as well as tauting the power of macros.

Inspired by Danny Yoo's F*dging up a Racket and Greg Hendershott's Fear of Macros, I thought I'd give it a go. My original goal was to make this into a proper Racket language (per Danny's post), but somewhere in trying to configure Racket's Reader's default settings I decided just to make it a command-line interpreter instead.

How?

If you have Racket installed, just racket main.rkt <whitespace file>, or make will run raco exe such that you'll have an executable named whitespace, which accepts a filename as an argument.

Play with the examples in the examples/ directory and give it a try ^_^

Performance?

No. This is slower than a turtle racing up a hill dripping molasses.