bfuck

Crates.iobfuck
lib.rsbfuck
version0.1.0
sourcesrc
created_at2023-07-11 16:09:20.472803
updated_at2023-07-11 16:09:20.472803
descriptionA simple Brainfuck interpreter and transpiler to Rust
homepage
repositoryhttps://github.com/DarkLord76865/bfuck-rs
max_upload_size
id913971
size27,667
Antonio Mamić (amamic1803)

documentation

README

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
Commit count: 16

cargo fmt