Skip to content
This repository was archived by the owner on Feb 10, 2024. It is now read-only.

shnakamura/sour

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

45 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🚀 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

About

A simple brainfuck interpreter.

Topics

Resources

Stars

Watchers

Forks

Contributors

Languages