csixteen / rs-bff

Simple Brainfuck interpreter written in Rust.
MIT License
3 stars 0 forks source link
brainfuck brainfuck-interpreter rust rust-lang

rs-bff

Simple Brainfuck interpreter.

Installing

$ make install

Usage

USAGE:
    rs-bff [OPTIONS] <FILE>

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -n, --num-cells <N>    Number of cells (default: 30,000)
$ rs-bff hello.bf
Hello, world!

Testing

$ make test
cargo run tests/hello2.bf
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
     Running `target/debug/rs-bff tests/hello2.bf`
Hello, world!
cargo run tests/hello.bf
    Finished dev [unoptimized + debuginfo] target(s) in 0.01s
     Running `target/debug/rs-bff tests/hello.bf`
Hello, world!
[test] finished!

Limitations

It only works with 8-bit cells and only supports ASCII.

Bugs

Please report any issues that you find. Or feel free to open a PR, it will be very welcome!

LICENSE

See LICENSE.