A stack based, streaming brainfuck interpreter written in golang ;)
cd brainfuck && go run . ../programs/helloworld.bf
cd interpret && go test -v -cover
Add the interpret package => go get github.com/swd543/brainfucked/interpret
state := interpret.NewState[int](programReader, programOutputWriter, inputReader)
state.AddOrReplaceCommand('*', func(state *interpret.State[int]) {
state.Data[state.Dp] *= state.Data[state.Dp]
state.Pc++
})