|
|
@ -243,12 +243,12 @@ func (c *Compiler) pushBin(v interface{}) { |
|
|
|
// isPush returns whether the string op is either any of
|
|
|
|
// isPush returns whether the string op is either any of
|
|
|
|
// push(N).
|
|
|
|
// push(N).
|
|
|
|
func isPush(op string) bool { |
|
|
|
func isPush(op string) bool { |
|
|
|
return strings.ToUpper(op) == "PUSH" |
|
|
|
return strings.EqualFold(op, "PUSH") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// isJump returns whether the string op is jump(i)
|
|
|
|
// isJump returns whether the string op is jump(i)
|
|
|
|
func isJump(op string) bool { |
|
|
|
func isJump(op string) bool { |
|
|
|
return strings.ToUpper(op) == "JUMPI" || strings.ToUpper(op) == "JUMP" |
|
|
|
return strings.EqualFold(op, "JUMPI") || strings.EqualFold(op, "JUMP") |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// toBinary converts text to a vm.OpCode
|
|
|
|
// toBinary converts text to a vm.OpCode
|
|
|
|