A BrainF*ck interpreter and code execution visualizer written in Rust
cargo install ironmind
First brew tap jadens-arc/tap
Then brew install ironmind
snap install ironmind
Sample program:
myfile.bf
++++++++++++[>++++++<-]>. H
>++++++++++[>++++++++++<-]>+. e
>+++++++++[>++++++++++++<-]>.. l (printed twice)
>++++++++++[>+++++++++++<-]>+. o
>++++[>+++++++++++<-]>. (comma)
>++++[>++++++++<-]>. (space)
>++++++++[>+++++++++++<-]>-. W
>++++++++++[>+++++++++++<-]>+. o
>++++++++++[>+++++++++++<-]>++++. r
>+++++++++[>++++++++++++<-]>. l
>++++++++++[>++++++++++<-]>. d
>++++[>++++++++<-]>+. (exclamation)
>+++[>+++<-]>+. (new line)
ironmind myfile.bf
Output:
Hello, World!
ironmind -v myfile.bf
- Rust
- Cargo
- Clap for processing command line arguments and flags
- Cursive for TUI
- Cursive is a wrapper around the ncurses linux library
- If this library isn't present on your machine then it must be installed before ironmind can be built
- On debian systems ncurses can be installed using
sudo apt install libncurses5-dev libncursesw5-dev
git clone https://github.com/Jadens-arc/Ironmind
cd Ironmind
cargo run myfile.bf
To run automated tests run
cargo test
Tests are found in src/tests
git clone https://github.com/Jadens-arc/Ironmind
cd Ironmind
cargo build --release
The executable will be found at target/release/ironmind
Run using ./ironmind
Feel free to move it to a Bin/
directory if you want
If you do move it, you can use ironmind myfile.bf
anywhere on your system
Also, I found this really cool BrainF*ck program from 2005 that outputs 99 Bottles of Beer by Andrew Paczkowski
Definitely worth checking out