Crate yabfr

Source
Expand description

welcome to yabfr docs!

§what does this crate do?

with this crate, you can execute a brainf**k program with a nice and simple rust API.

§features

  • execute a brainf**k program from a string

§examples

use yabfr::run;

let output = run("++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.");

println!("{}", output)

§“issues”

  • currently, there is no way to pass in “input” to the interpreter, will be fixed later hopefully

Functions§

run
execute the brainfuck program