diff options
author | Dimitri Sokolyuk <demon@dim13.org> | 2017-06-10 22:20:29 +0200 |
---|---|---|
committer | Dimitri Sokolyuk <demon@dim13.org> | 2017-06-10 22:20:29 +0200 |
commit | e4d7ac43458f9f96a15041d35feddecca20ddbba (patch) | |
tree | 6a53aae985fb4274313a0d44d979bace275b4373 /parse.go | |
parent | 808a9e6159cd9dcd501f8256430fe55d6e2de6ce (diff) |
kiss
Diffstat (limited to 'parse.go')
-rw-r--r-- | parse.go | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -84,6 +84,25 @@ func expand(v uint16) int8 { return int8(v) } +const ( + opT = iota + opN + opTplusN + opTandN + opTorN + opTxorN + opNotT + opNeqT + opNleT + opNrshiftT + opTminus1 + opR + opAtT + opNlshiftT + opDepth + opNuleT +) + var opcodes = []string{ "T", "N", "T+N", "T&N", "T|N", "T^N", "~T", "N==T", "N<T", "N>>T", "T-1", "R", "[T]", "N<<T", "depth", "Nu<T", |