3 releases
0.1.2 | Nov 25, 2021 |
---|---|
0.1.1 | Nov 25, 2021 |
0.1.0 | Nov 25, 2021 |
#45 in #brainfuck
4KB
67 lines
tinybrain
A brainfuck
interpreter written in Rust.
Overview
Tinybrain is a small interpreter to execute brainfuck
code. To learn more about brainfuck
, please visit https://en.wikipedia.org/wiki/Brainfuck
Usage
use tinybrain;
fn main() {
let result = tinybrain::process(
"
++++++++[>++++[>++>+++>+++>+<<<<-]
>+>+>->>+[<]<-]>>.>---.+++++++..++
+.>>.<-.<.+++.------.--------.>>+.
".to_owned(),
);
println!("{}", String::from_utf8(result).unwrap());
}