nixpulvis / brainfuck

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

Make `Interpreter::new` public #5

Closed nixpulvis closed 8 years ago

nixpulvis commented 8 years ago

This is the most general form of creating an interpreter. We should look into what other creation functions we want. We currently have from_file, but having a way to default the reader and writer to STDIN and STDOUT respectively would be nice too.

offlinemark commented 8 years ago

Agreed about a way to default to stdin/out, maybe something like a convenience constructor that just takes a Into<String> or Path which calls into the more detailed one (from_string_with_io / from_file_with_io)

nixpulvis commented 8 years ago

I'm all for it, have fun trying to write it. The ownership semantics are tricky.

offlinemark commented 8 years ago

aight good with me, merge at will