sour

Crates.iosour
lib.rssour
version0.2.5
sourcesrc
created_at2023-01-28 14:30:17.843104
updated_at2023-03-03 00:29:36.258487
descriptionA customizable command line brainfuck interpreter.
homepage
repositoryhttps://github.com/naakaamura/sour
max_upload_size
id770387
size16,646
nakamura (naakaamura)

documentation

README

🚀 Sour

A customizable command line brainfuck interpreter.

Installation

Building with Cargo:

$ git clone https://github.com/naakaamura/sour.git
$ cd sour
$ cargo build --release

Installing from Crates.io:

$ cargo install sour

Usage

Usage: sour [OPTIONS] <CONTENT>

Arguments:
  <CONTENT>  The brainfuck content or path to brainfuck file

Options:
  -s, --size <SIZE>  The memory buffer size [default: 30000]
  -r, --raw          Whether to output raw bytes or encode to ASCII
  -h, --help         Print help
  -V, --version      Print version

Examples

Interpreting from a file

$ sour hello-world.bf
# OUTPUT: Hello, world!

Interpreting raw byte values from a file

$ sour hello-world.bf -r
# OUTPUT: 72 101 108 108 111 44 32 87 111 114 108 100 33

Interpreting from raw brainfuck content

$ sour +++++.
# OUTPUT: ♣

Interpreting with a custom memory buffer size

$ sour <CONTENT> -s 69420
Commit count: 45

cargo fmt