1 Star 0 Fork 0

jackytse / tabtoy

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
opcode.go 506 Bytes
一键复制 编辑 原始数据 按行查看 历史
黑色灵猫 提交于 2018-04-09 16:22 . 添加: 表达式计算
package exprvm
type Opcode int
const (
Opcode_Nop Opcode = iota
Opcode_Push
Opcode_Add
Opcode_Sub
Opcode_Mul
Opcode_Div
Opcode_Minus
Opcode_Exit
)
func (self Opcode) String() string {
switch self {
case Opcode_Nop:
return "Nop"
case Opcode_Push:
return "Push"
case Opcode_Add:
return "Add"
case Opcode_Sub:
return "Sub"
case Opcode_Mul:
return "Mul"
case Opcode_Div:
return "Div"
case Opcode_Minus:
return "Minus"
case Opcode_Exit:
return "Exit"
}
return "Unknown"
}
Go
1
https://gitee.com/jackytse/tabtoy.git
git@gitee.com:jackytse/tabtoy.git
jackytse
tabtoy
tabtoy
v0.1.0

搜索帮助