nixpulvis / brainfuck

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

Tape Trait and Two Implementations #23

Closed nixpulvis closed 8 years ago

nixpulvis commented 8 years ago

This adds a trait for the concept of a tape so that different implementations can be swapped in and out with ease. The ops +=, -=, >>=, and <<= are gone, in favor of functions which return results allowing us to catch issues in external code.

fixes #16