This is an interpreter for the Whenever esoteric language written in Haskell.
This project was a great opportunity for me to learn a bit more about the Parsec library (even though I ended up with a relatively naïve top-down parsing approach).
Build with cabal (you may want to cabal sandbox init
first):
cabal configure
cabal install --only-dependencies
cabal build
And then run:
./whenever [--ast] path/to/file.we
Or build with stack:
stack build
And then run:
stack exec -- Whenever [--ast] path/to/file.we
You can find a few examples in the examples
directory. Most of them have been written by the author of the language and can be found with the description of the language. The rot13.we
example is a modified version of the example coming from megahallon's javascript implementation of the interpreter.
This project is licensed under the MIT License.
Copyright (c) 2016 Basile Henry