nixpulvis / brainfuck

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

Input Instruction Panics on EOF #4

Closed nixpulvis closed 8 years ago

nixpulvis commented 8 years ago

The following code panics, we should do something reasonable here instead.

let mut reader = io::empty();
let mut writer = Vec::<u8>::new();
Interpreter::new(",".into(), &mut reader, &mut writer).run();

Note: Interpreter::new is still private at the moment.