aboutsummaryrefslogtreecommitdiff
path: root/parse.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-06-10 22:20:29 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-06-10 22:20:29 +0200
commite4d7ac43458f9f96a15041d35feddecca20ddbba (patch)
tree6a53aae985fb4274313a0d44d979bace275b4373 /parse.go
parent808a9e6159cd9dcd501f8256430fe55d6e2de6ce (diff)
kiss
Diffstat (limited to 'parse.go')
-rw-r--r--parse.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/parse.go b/parse.go
index 97d1c24..2e66b26 100644
--- a/parse.go
+++ b/parse.go
@@ -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",