#brainfuck #esolang #interpreter #input

nightly bin+lib brainheck

Brainheck interpreter written in Rust

8 releases

Uses old Rust 2015

0.1.8 May 29, 2017
0.1.7 Mar 13, 2017
0.1.5 Feb 23, 2017

#1115 in Programming languages

Custom license

8KB
137 lines

Brainh*ck interpreter written in rust

Installation

The easiest way to install is probably

$ cargo install brainheck

The cargo build system can be installed with

$ curl https://sh.rustup.rs -sSf | sh

Usage

Try

$ bh bf/helloworld.bf

To run the "hello world" example. You can also pass input in with stdin e.g.

$ echo 'hello world!' | bh bf/cat.bf

To explore all the options, use:

bh --help

Safety

Building on rust's safety guarantees, this repository uses the word h*ck in order to remain safe for children's use.


lib.rs:

This a brainh*ck interpreter written in Rust. It's the same as brainfuck but hopefully more family-friendly. You can run it with e.g.

Examples

$ bh helloworld.bf

Hello World!

Dependencies

~1MB
~11K SLoC