nixpulvis / brainfuck

A simple brainfuck interpreter in Rust.
http://nixpulvis.com/brainfuck
23 stars 3 forks source link

Adds Mod256ArrayTape, for wrapping + and - #27

Closed tov closed 7 years ago

tov commented 7 years ago

One of the benchmarks I'm using, factor, depends on + and - doing arithmetic modulo 256 rather than errors. This pull request adds a Tape instance Mod256ArrayTape that implements this behavior.

nixpulvis commented 7 years ago

cool, I love how nice the wrapping API worked out. +1