bf2s

Crates.iobf2s
lib.rsbf2s
version0.1.1
created_at2025-04-04 05:37:25.215205+00
updated_at2025-07-26 17:17:45.776556+00
descriptionA simple Brainfuck interpreter that executes code from a string and returns the output as a string.
homepage
repositoryhttps://github.com/eschwart/bf2s
max_upload_size
id1619464
size5,146
Evan Schwartzentruber (eschwart)

documentation

README

bf2s (Brainfuck-to-string)

Usage

fn main() {
    let code = "
        -[------->+<]>-.-[->+++++<]>
        ++.+++++++..+++.[->+++++<]>+
        .------------.---[->+++<]>.-
        [--->+<]>---.+++.------.----
        ----.-[--->+<]>.
    ";
    let s = bf2s::bf_to_str(code);
    assert_eq!(s, "Hello, World!")
}
Commit count: 0

cargo fmt