Crates.io | bfuck |
lib.rs | bfuck |
version | 0.1.0 |
source | src |
created_at | 2023-07-11 16:09:20.472803 |
updated_at | 2023-07-11 16:09:20.472803 |
description | A simple Brainfuck interpreter and transpiler to Rust |
homepage | |
repository | https://github.com/DarkLord76865/bfuck-rs |
max_upload_size | |
id | 913971 |
size | 27,667 |
bfuck is a simple Brainfuck interpreter and transpiler to Rust.
It is a CLI tool to interpret Brainfuck code, to transpile Brainfuck code to (ugly) Rust code, and to compile that Rust code.
If you have both rustc and cargo installed, you can simply run:
cargo install bfuck
Otherwise, there are prebuilt binaries available under Releases.
A simple Brainfuck interpreter and transpiler to Rust
Usage: bfuck [OPTIONS] <FILE> [FOLDER]
Arguments:
<FILE>
The brainfuck file
[FOLDER]
The save location for transpiled files
Options:
-i, --interpret
Interpret Brainfuck code [default]
-t, --transpile
Transpile Brainfuck code to Rust
-c, --compile
Transpile Brainfuck code to Rust and compile it (works only if Rust and Cargo are installed)
-f, --force
Overwrite output folder if it already exists
-h, --help
Print help
-V, --version
Print version
This information can be accessed by running:
bfuck --help