bf_playground

Crates.iobf_playground
lib.rsbf_playground
version1.0.0
created_at2025-03-01 00:45:21.442843+00
updated_at2025-03-01 00:45:21.442843+00
descriptionA interpreter and Rust libary for brainf**k
homepage
repositoryhttps://github.com/ZiomekMinecraft/BF-Playground
max_upload_size
id1573365
size23,723
(ZiomekMinecraft)

documentation

README

BF Playground

A interpreter and Rust libary for brainf**k

actions status Crates.io version docs.rs docs Download

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.

Commit count: 20

cargo fmt