#brainfuck #file #reliable

app pocketbrain

A fast Brainfuck interpreter

2 releases

0.1.1 Feb 16, 2025
0.1.0 Feb 16, 2025

#127 in Programming languages

Download history 190/week @ 2025-02-12 31/week @ 2025-02-19 8/week @ 2025-02-26

229 downloads per month

MIT license

9KB
218 lines

PocketBrain

A fast, reliable Brainfuck interpreter written in Rust.

Installation

cargo install pocketbrain

Usage

Run a Brainfuck file:

pocketbrain path/to/your/file.bf

Examples

Here's a simple "Hello, World!" program in Brainfuck:

++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.

Save this to a file and run it with PocketBrain to see the output.

Development

To build from source:

git clone https://github.com/SkyfallWasTaken/pocketbrain.git
cd pocketbrain
cargo build

Contributing

Contributions are welcome! Feel free to:

  • Report bugs
  • Suggest new features
  • Submit pull requests

License

MIT License - feel free to use this project however you'd like.

Dependencies

~1–1.6MB
~30K SLoC