~jacksonchen666/brainfuck_interpreter

e320841b92ebcc76b088436776194aeff9477647 — Jackson Chen 1 year, 1 month ago 9d2c670
remove idea comment

no longer needed
1 files changed, 0 insertions(+), 8 deletions(-)

M brainfuck.go
M brainfuck.go => brainfuck.go +0 -8
@@ 116,14 116,6 @@ func (ps *ProgramState) Step() error {
		} else {
			// just ignore ] because [ won't continue on currentMemory == 0
		}
		/*
			idea for [ and ]:
			a stack of loops, which has a pointer pos relative to brainfuck code after removing non-brainfuck code.
			on non-zero and [: push to stack the code pointer location
			on non-zero and ]: go back to last [
			on zero and [: i don't know just keep reading i guess
			on zero and ]: continue
		*/
	}
	(*ps.tape)[ps.memoryPointer] = currentMemory
	ps.codePointer++