| Crates.io | brainfuck-cli |
| lib.rs | brainfuck-cli |
| version | 1.0.0 |
| created_at | 2025-04-10 17:08:44.762115+00 |
| updated_at | 2025-04-10 17:26:56.313925+00 |
| description | A simple Brainfuck CLI interpreter written in Rust |
| homepage | |
| repository | https://github.com/pedroafabri/brainfuck-cli |
| max_upload_size | |
| id | 1628611 |
| size | 17,231 |
A simple and educational Brainfuck interpreter written in Rust.
Supports both file execution and an interactive REPL mode.
cargo install brainfuck-cli
This will install the brainfuck command globally.
If you don't have Rust installed or prefer not to use cargo, you can download a precompiled binary from the Releases page.
wget https://github.com/pedroafabri/brainfuck-cli/releases/download/<version>/brainfuck
chmod +x brainfuck
sudo mv brainfuck /usr/local/bin/
Remember to change the version accordingly.
brainfuck.exe from the Releases page.PATH (e.g. C:\Windows\System32 or C:\Program Files\brainfuck).PATH environment variable if not already included.Once installed, you can run brainfuck from your terminal or command prompt.
wget https://github.com/pedroafabri/brainfuck-cli/releases/download/vX.Y.Z/brainfuck
chmod +x brainfuck
sudo mv brainfuck /usr/local/bin/
---
## 🧠 Usage
### Execute a Brainfuck file:
```bash
brainfuck path/to/program.bf
brainfuck
Once inside the REPL, the following commands are available:
.help -> Display this message
.reset -> Reset the current Brainfuck interpreter to its initial state
.exit -> Exit this REPL session
You can also type and run Brainfuck code interactively:
+++++++[>++++++++<-]>.
$ brainfuck hello.bf
Hello, World!
$ brainfuck
Brainfuck Interpreter - v0.1.0
Type '.help' for available commands.
> +++++++[>++++++++<-]>.
A
This project is a personal learning project and a tribute to minimalism.
Contributions and suggestions are welcome!
MIT