/keens-whitelie

Merged history for κeen's self-hosted Whitespace compiler

Primary LanguageRubyGNU General Public License v2.0GPL-2.0

Whitelie

A self hosted white space compiler. It works on 64-bit Linux

Usage

$ whitelie < source.ws > output
$ chmod +x output
$ ./output

Confirming it is self hosted

$ whitelie < whitelie.ws > whitelie2
$ md5sum whitelie whitelie2
c8263aa952aa6230f28012dcfe0dceed  whitelie
c8263aa952aa6230f28012dcfe0dceed  whitelie2

The trick

This is a joke of April Fool's Day. I didn't write whitespace. I wrote a whitespace assembler and wrote in it.

Codes used this project are available from this gist.

https://gist.github.com/KeenS/6081b0c802a4e575ddbacb1930680870