moulins / brainfuck-rs

Yet Another Brainfuck Interpreter (in Rust)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

brainfuck-rs

Yet Another Brainfuck Interpreter written in Rust, because why the f$%* not? (And it's a good way to learn a new language)
If you don't know brainfuck yet, go here.

This program uses the impl Trait feature, and so must be compiled with rustc nightly.
Compile with the --release flag for better performance.

Implementation

For now, the interpreter supports only a 30,000-cell memory, and will panic when a brainfuck program tries to access cells outside this range.

The cells are 8 bits wide and are wrapping, so that 255 + 1 = 0.

Executing the , instruction on EOF will set the current cell to 0.

About

Yet Another Brainfuck Interpreter (in Rust)


Languages

Language:Rust 53.6%Language:Brainfuck 46.4%