diff options
author | Bad Diode <bd@badd10de.dev> | 2021-10-22 12:37:37 +0200 |
---|---|---|
committer | Bad Diode <bd@badd10de.dev> | 2021-10-22 12:37:37 +0200 |
commit | 3b136ffdebf135cc0d285573edd7bdfefb99bb00 (patch) | |
tree | b66f9cf7410c43c6967b69002e0998d87f880f97 /src/bytecode/ops.h | |
parent | 9286c148f601072dded92233a328a8867ff7ab0c (diff) | |
download | bdl-3b136ffdebf135cc0d285573edd7bdfefb99bb00.tar.gz bdl-3b136ffdebf135cc0d285573edd7bdfefb99bb00.zip |
Add unary arithmetic operations for numbers
Diffstat (limited to 'src/bytecode/ops.h')
-rw-r--r-- | src/bytecode/ops.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/bytecode/ops.h b/src/bytecode/ops.h index 79092ab..b58631f 100644 --- a/src/bytecode/ops.h +++ b/src/bytecode/ops.h | |||
@@ -3,6 +3,11 @@ | |||
3 | 3 | ||
4 | typedef enum Ops { | 4 | typedef enum Ops { |
5 | OP_CONSTANT, | 5 | OP_CONSTANT, |
6 | OP_SUM, | ||
7 | OP_SUB, | ||
8 | OP_MUL, | ||
9 | OP_DIV, | ||
10 | OP_MOD, | ||
6 | OP_RETURN, | 11 | OP_RETURN, |
7 | } Ops; | 12 | } Ops; |
8 | 13 | ||