A customizable command line brainfuck interpreter.
Building with Cargo:
$ git clone https://github.com/naakaamura/sour.git
$ cd sour
$ cargo build --releaseInstalling from Crates.io:
$ cargo install sourUsage: 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 33Interpreting from raw brainfuck content
$ sour +++++.
# OUTPUT: ♣Interpreting with a custom memory buffer size
$ sour <CONTENT> -s 69420