brainfrsck
A brainfrick interpreter written in safe rust
Usage
The main entry point is the eval_string
function
Example
use eval_string;
let hello_world = "++++++++[>++++[>++>+++>++
+>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++
.>>.<-.<.+++.------.--------.>>+.>++.";
assert_eq!;
Notes
eval_string
returns anInterpreterOutput
which is essentially a wrapper for aVec<u8>
, it has methods to convert to aString
(to_string
) and to get the internalVec
(to_vec
), as well asDebug
writing theVec
andDisplay
writing theString