aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode/ops.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/bytecode/ops.h')
-rwxr-xr-xsrc/bytecode/ops.h46
1 files changed, 0 insertions, 46 deletions
diff --git a/src/bytecode/ops.h b/src/bytecode/ops.h
deleted file mode 100755
index a43aed6..0000000
--- a/src/bytecode/ops.h
+++ /dev/null
@@ -1,46 +0,0 @@
1#ifndef BDL_OPS_H
2#define BDL_OPS_H
3
4typedef enum Ops {
5 // Load/store ops.
6 OP_CONSTANT,
7 OP_LOCAL,
8 OP_CAPTURED,
9 OP_CAPTURE_LOCAL,
10 OP_SET_CAPTURED,
11 OP_DEF_LOCAL,
12 OP_SET_LOCAL,
13 OP_DEF,
14 OP_SET,
15 OP_GET,
16 // Arithmetic ops.
17 OP_SUM,
18 OP_SUB,
19 OP_MUL,
20 OP_DIV,
21 OP_MOD,
22 // Logic ops.
23 OP_NOT,
24 OP_AND,
25 OP_OR,
26 // Numerical comparison ops.
27 OP_EQUAL,
28 OP_LESS,
29 OP_GREATER,
30 OP_LESS_EQUAL,
31 OP_GREATER_EQUAL,
32 // Jump/conditional ops.
33 OP_JUMP,
34 OP_JUMP_IF_FALSE,
35 // Display ops.
36 OP_DISPLAY,
37 OP_PRINT,
38 OP_NEWLINE,
39 // Procedures.
40 OP_CALL,
41 OP_RETURN,
42 // Clear stack after each statement.
43 OP_DROP,
44} Ops;
45
46#endif // BDL_OPS_H