clj-whitespace
is a Whitespace compiler and runtime which produces an intermediate code representation in
Clojure.
This compiler was built for the term project of COMPSCI 4TB3 at McMaster University
Install Leiningen
From project root:
$ lein compile
$ lein uberjar
Download from https://github.com/JacksYou/clj-whitespace/blob/master/target/uberjar/clj-whitespace-1.0-standalone.jar.
$ java -jar clj-whitespace-1.0-standalone.jar [options] file
-i, --intermediate Execute Clojure-Whitespace source generated by the compiler
-c, --compile Compile whitespace program into intermediate code
-h, --help
There are two sample programs located in resources
. helloworld.ws
is purely Whitespace
source while count.c
is a Whitespace program embedded into C source which mirrors functionality.
Distributed under the MIT Public License