Function brainfuck::eval_string
[−]
[src]
pub fn eval_string(source: &str) -> Result<(), Error>
Parse a program from the given string and run it.
This uses the dynamic VecTape
implmentation, and reads and writes
to STDIN
and STDOUT
. This covers the most common use case for brainfuck.
use brainfuck; brainfuck::eval_string("+>.");