When you create a new interpreter we should strip all unused bytes. This could be done elegantly by implementing Into<String> for the interpreter's code. This means we want a new structure for the code, which is actually already something we wanted to allow abstracting over the syntax if needed.
An easy first step would be implementing Into<char> for Instruction.
@mossberg This is probably going to look a bit like your bracket cache. Hopefully this will clean up the implementations of skip forward and skip backward.
When you create a new interpreter we should strip all unused bytes. This could be done elegantly by implementing
Into<String>
for the interpreter's code. This means we want a new structure for the code, which is actually already something we wanted to allow abstracting over the syntax if needed.An easy first step would be implementing
Into<char> for Instruction
.