A brainfrick interpreter written in safe rust
The main entry point is the eval_string
function
```rust use brainfrsck::prelude::eval_string;
let hello_world = "++++++++[>++++[>++>+++>++ +>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++ .>>.<-.<.+++.------.--------.>>+.>++.";
asserteq!( evalstring(helloworld, None)?.tostring(), "Hello World!\n".to_owned(), );
```
eval_string
returns an InterpreterOutput
which is essentially a wrapper for a Vec<u8>
, it has methods to convert to a String
(to_string
) and to get the internal Vec
(to_vec
), as well as Debug
writing the Vec
and Display
writing the String