sunjay / brain

A high level programming language that compiles into the brainfuck esoteric programming language
MIT License
167 stars 12 forks source link

Buffered I/O #60

Open sunjay opened 7 years ago

sunjay commented 7 years ago

The base I/O model of brainfuck is really simple. You read bytes and you write bytes, but there is no way to put them back if you did not read what you expected to.

Once a dynamic memory allocator (#25) is implemented and we have a dynamically sized array (#13), we should consider adding a member variable to stdin and stdout to act as a buffer for reads/writes.