1 unstable release
0.1.0 | Jul 11, 2023 |
---|
#737 in Command-line interface
19KB
433 lines
bfuck-rs
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.
Installation
If you have both rustc and cargo installed, you can simply run:
cargo install bfuck
Otherwise, there are prebuilt binaries available under Releases.
Usage
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
Dependencies
~1MB
~15K SLoC