erasure
is a Whitespace interpreter and runtime which can also produce an intermediate code representation in
Clojure.
This interpreter 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/erasure/blob/master/target/uberjar/erasure-1.0-standalone.jar.
$ java -jar erasure-1.0-standalone.jar [options] file
-i, --intermediate Pretty print Clojure intermediate source generated by the parser
-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.
for example, to run count.c
:
from standalone jar:
$ java -jar target/uberjar/erasure-1.0-standalone.jar resources/count.c
from lein:
$ lein repl
erasure.core=> (-main "resources/count.c")
Distributed under the MIT Public License