bf_rust/examples/hello_world.rs

12 lines
293 B
Rust

use brainrust::*;
fn main() {
let eval = eval(
&(
"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."
)
);
if eval.is_err() {
eprintln!("Program failed: \n{}", eval.unwrap_err());
}
}