Crates.io | ironmind |
lib.rs | ironmind |
version | 0.3.16 |
source | src |
created_at | 2023-11-27 04:28:09.11895 |
updated_at | 2024-03-15 01:17:17.993102 |
description | A Brainf*ck interpreter and code execution visualizer built in Rust |
homepage | |
repository | https://github.com/Jadens-arc/Ironmind |
max_upload_size | |
id | 1049709 |
size | 1,516,034 |
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
Output:
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