Skip to content

Latest commit

 

History

History
15 lines (9 loc) · 676 Bytes

README.md

File metadata and controls

15 lines (9 loc) · 676 Bytes

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.