Slide 53
Slide 53 text
This really works!
Input:
+++[---[+]>>>]<<<
Output:
[]*Instruction{
&Instruction{Type: Plus, Argument: 3},
&Instruction{Type: JumpIfZero, Argument: 7},
&Instruction{Type: Minus, Argument: 3},
&Instruction{Type: JumpIfZero, Argument: 5},
&Instruction{Type: Plus, Argument: 1},
&Instruction{Type: JumpIfNotZero, Argument: 3},
&Instruction{Type: Right, Argument: 3},
&Instruction{Type: JumpIfNotZero, Argument: 1},
&Instruction{Type: Left, Argument: 3},
}