rust-bf-interpreter

所属分类:人工智能/神经网络/深度学习
开发工具:Rust
文件大小:0KB
下载次数:0
上传日期:2022-12-06 11:54:11
上 传 者sh-1993
说明:  我的第一个项目是Brain F*ck解释器,
(My first project in rust, a Brain F*ck interpreter,)

文件列表:
Cargo.lock (146, 2022-12-06)
Cargo.toml (171, 2022-12-06)
src/ (0, 2022-12-06)
src/main.rs (6231, 2022-12-06)

# A Brain F\*ck Interpreter This is just a simple BF interpreter written as my first project in rust. ## Usage ```rust let hello_world = ">+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.[-]>++++++++[<++++>-] <.>+++++++++++[<++++++++>-]<-.--------.+++.------.--------.[-]>++++++++[<++++>- ]<+.[-]++++++++++."; // prints to console and returns the output let output: String = BF::new(hello_world, "").run(); // run with input BF::new(",>,>,.<.<.", "abc").run(); // cba // or type in input BF::new(",>,>,.<.<.", "").run(); // ??? ```

近期下载者

相关文件


收藏者