1 个不稳定版本
使用旧的 Rust 2015
0.1.0 | 2017年11月11日 |
---|
22 在 #esoteric 中
3KB
rust-brainwords (brainwords) - v0.1.0
一个简单易用的 Rust 语言 Brainfuck 代码生成器。
使用方法(Hello world! 示例)
println!("{}", brainwords::generate_bfcode("hello world"));
控制台上的结果。
++++++++[>++++++++<-]>++++++++.<+++++[>+++++<-]>++++.<++[>++<-]>+++.<[><-]>.<+[>+<-]>++.<++++++++[>--------<-]>---------------.<
+++++++++[>+++++++++<-]>++++++.<++[>--<-]>----.<+[>+<-]>++.<++[>--<-]>--.<++[>--<-]>----.<++++++++[>--------<-]>---.
安装
将此行添加到您的 Cargo.toml 文件中
[dependencies]
brainwords = "0.1.0"
然后添加此行到您的 main.rs 文件中
extern crate brainwords;