Brainrust is a Brainfuck interpreter written in Rust.
Brainrust can be built using the Rust nightly binaries.
$ git clone https://github.com/JustAPerson/brainrust.git
$ cd brainrust
$ cargo build
Brainrust is pretty straightforward to use. If given a file name argument, then it will interpret that file's contents or else it will operate as a REPL.
$ cat > hello_world.b
++++++++[>++++[>++>+++>+++>+<<<<-]>+>+>->>+[<]<-]>>.>
---.+++++++..+++.>>.<-.<.+++.------.--------.>>+.>++.
$ cargo run hello_world.b
Hello World!
The input operator ,
does not work correctly in the REPL mode because
Rust is currently unable to provide unbuffered access to stdin.
Brainrust is available under the terms of the MIT license. See LICENSE.md for details.