Crates.io | sour |
lib.rs | sour |
version | 0.2.5 |
source | src |
created_at | 2023-01-28 14:30:17.843104 |
updated_at | 2023-03-03 00:29:36.258487 |
description | A customizable command line brainfuck interpreter. |
homepage | |
repository | https://github.com/naakaamura/sour |
max_upload_size | |
id | 770387 |
size | 16,646 |
A customizable command line brainfuck interpreter.
Building with Cargo:
$ git clone https://github.com/naakaamura/sour.git
$ cd sour
$ cargo build --release
Installing from Crates.io:
$ cargo install sour
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
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