1 stable release
1.0.0 | Mar 1, 2025 |
---|
#1261 in Development tools
142 downloads per month
17KB
363 lines
BF Playground
A interpreter and Rust libary for brainf**k
Features
- Interpret Brainf**k code
- Use Brainf**k to print better ;)
- Interpret BF files
Getting Started
Prerequisites
- Rust (latest stable version recommended)
Installation
Clone the repository:
git clone https://github.com/ZiomekMinecraft/bf_playground.git
cd bf_playground
Build the project:
cargo build
Usage
To use the library in your project, add the following to your Cargo.toml
:
[dependencies]
bf_playground = "1.0.0"
Then, you can use it in your code as follows:
extern crate bf_playground;
use std::io::{stdin, stdout};
use bf_playground::BFPlayground;
fn main() {
let code = "++[>++<-]";
let mut playground = BFPlayground::new();
playground.execute(code, stdin(), stdout());
}
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
License
This project is licensed under the MIT License.