Skip to content

Commit

Permalink
Formatting change.
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanmorgan committed Jul 30, 2024
1 parent e3dde43 commit b1d600a
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions parser/instruction.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ const (
)

var instMap = map[byte]Instruction{
'>': Instruction{opAddDp, 1},
'<': Instruction{opAddDp, -1},
'+': Instruction{opAddVal, 1},
'-': Instruction{opAddVal, -1},
'.': Instruction{opOut, 1},
',': Instruction{opIn, 1},
'[': Instruction{opJmpZ, 0},
']': Instruction{opJmpNz, 0},
'>': {opAddDp, 1},
'<': {opAddDp, -1},
'+': {opAddVal, 1},
'-': {opAddVal, -1},
'.': {opOut, 1},
',': {opIn, 1},
'[': {opJmpZ, 0},
']': {opJmpNz, 0},
}

// NewInstruction created from a sourcecode byte
Expand Down

0 comments on commit b1d600a

Please sign in to comment.