Encephalon Destroyer is a BrainFuck VM written in just 4 days.
- Customizable array size
- Cell wrapping
- Error reporting (for loops at least, does not support line numbers)
- Nice error and info messages
To build Encephalon Destroyer, clone this repo and then build it with cargo build --release
:
git clone https://www.github.com/rice7th/encephalon-destroyer
cd encephalon-destroyer
cargo build --release
To install Encephalon Destroyer on Linux or MacOS use the provided Makefile:
sudo make install
To install Encephalon Destroyer on Windows, move manually the ed
binary located in target/release/ed
into one of the directories listed in the %PATH%
variable.
Yes i know, i could've used cargo install
but i dont know how to do cross-compatibility, and yes i know that is not the way to install windows binaries but i dont know how windows works, so...
encephalon-destroyer [PATH_TO_FILE]
encephalon-destroyer -h | --help
encephalon-destroyer -u | --usage
encephalon-destroyer -v | --version
encephalon-destroyer -i | --info
encephalon-destroyer -A | --array [NUMBER] [PATH_TO_FILE]
encephalon-destroyer [PATH_TO_FILE] -A | --array [NUMBER]
My main inspiration was BF by Alexander Overvoorde. The code looks identical, but the only thing that i really copied were the Loop implementation and the run()
function args. Other than that is all made by me.
Thanks for checking my little project! If you have any idea or if you want to implement a new feature, just make a PR!