A brainfuck program is any string of characters in which the square brackets match. That is, you could walk the string, pushing addresses of left brackets to a stack, popping when you encounter right brackets, never encounter a stack underflow, and end with an empty stack
(
Read more... )
Comments 3
Reply
we're reading from a stream, right? So ,, means reading a byte, discarding it, and reading another.
Reply
Reply
Leave a comment