A brainfrick interpreter written in safe rust
The main entry point is the eval_string
function
```rust use brainfrsck::prelude::eval_string;
let sum = r#",>,[[-<+>],]<."#;
asserteq!(
evalstring(sum, Some(vec![1,2,3,4,5,6]))?.to_vec()[0],
(0u8..=6).sum::
```
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