bf_rust/examples/hello_world.rs

12 lines
293 B
Rust
Raw Normal View History

2023-08-22 09:28:55 +02:00
use brainrust::*;
fn main() {
let eval = eval(
&(
2023-08-22 09:39:53 +02:00
"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."
2023-08-22 09:28:55 +02:00
)
);
if eval.is_err() {
eprintln!("Program failed: \n{}", eval.unwrap_err());
2023-08-22 09:28:55 +02:00
}
}