16 lines
378 B
Rust
16 lines
378 B
Rust
use brainrust::*;
|
|
|
|
fn main() {
|
|
let eval = eval(
|
|
&(
|
|
"++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++."
|
|
)
|
|
);
|
|
if eval.is_err() {
|
|
let err = eval.unwrap_err();
|
|
if err == "Stdin closed" {
|
|
return
|
|
}
|
|
eprintln!("Program failed: {}", err);
|
|
}
|
|
} |