From 3b136ffdebf135cc0d285573edd7bdfefb99bb00 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Fri, 22 Oct 2021 12:37:37 +0200 Subject: Add unary arithmetic operations for numbers --- src/bytecode/ops.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/bytecode/ops.h') 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 @@ typedef enum Ops { OP_CONSTANT, + OP_SUM, + OP_SUB, + OP_MUL, + OP_DIV, + OP_MOD, OP_RETURN, } Ops; -- cgit v1.2.1