| Crates.io | bfbackend |
| lib.rs | bfbackend |
| version | 0.1.0 |
| created_at | 2024-08-12 23:07:59.110916+00 |
| updated_at | 2024-08-12 23:07:59.110916+00 |
| description | Compiler backend for brainfuck |
| homepage | |
| repository | https://github.com/jacks0n9/bfbackend |
| max_upload_size | |
| id | 1335254 |
| size | 52,758 |
BFBackend is a Rust crate which allows you to use Rust functions to generate Brainfuck code.
BfContext:
use bfbackend::BfContext;
let ctx = BfContext::default();
let mut my_num = ctx.declare_and_set_byte(42);
ctx.add_to_var(&mut my_num.get_byte_ref());
let code = ctx.build_code();
println!("{code}");