blob: 5a0e5dd950a68c94895308ed6116be735f9041b2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
package runtime
// OpCode type
type OpCode byte
// 0x00 range - higher order ops.
const (
NOP OpCode = iota
)
// 0x10 range - arithmetic ops. (array-based)
const (
ADD OpCode = iota + 0x10
MUL
SUB
DIV
MOD
CONCAT
NEG
)
// 0x20 range - comparison ops.
const (
LT OpCode = iota + 0x20
GT
EQ
AND
OR
NOT
UNION
INTXN
LIKE
)
// 0x30 range - pk/index/field meta ops
const (
REPEATPK OpCode = iota + 0x30
REPEATIDX
REPEATIDXV
)
// 0x40 range - format/output ops
const (
ZIP OpCode = iota + 0x40
FIELD
PRUNE
SORT
FILTER
CAST
CUT
RANGE
)
// 0x60 range - storage ops
const (
INSERT = iota + 0x60
UPDATE
LOAD
DELETE
)
|