Crates.io | yabf_rs |
lib.rs | yabf_rs |
version | 0.1.2 |
source | src |
created_at | 2023-02-09 17:01:29.918549 |
updated_at | 2023-02-09 19:55:32.684729 |
description | A simple crate that can be used to embed Brainfuck programs into your Rust programs. |
homepage | |
repository | https://github.com/serd223/yabf |
max_upload_size | |
id | 780884 |
size | 26,579 |
yabf_rs
is a simple crate that can be used to embed Brainfuck programs into your Rust programs.
Documentation on docs.rs
The following program outputs the letter 'H' to the terminal.
use yabf_rs::*;
fn main() {
let program = Program::from(">++++++++[<+++++++++>-]<.");
let mut bf = BfInstance::from(program);
bf.run(&mut default_input_source, &mut default_flush);
}
For more examples, look at the examples directory in the repository.
git clone https://github.com/serd223/yabf
cd yabf
cargo run --example hello_world
yabf_rs
yabf_rs
to your projectcargo add yabf_rs
yabf_rs
instead of just yabf
?yabf was already taken...