From 9f1f2ff307bb3da8bfc6809ae05be589e1e37ed9 Mon Sep 17 00:00:00 2001 From: Bad Diode Date: Tue, 26 Oct 2021 08:55:12 +0200 Subject: Add OP_DROP and improve error reporting --- src/bytecode/ops.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/bytecode/ops.h') diff --git a/src/bytecode/ops.h b/src/bytecode/ops.h index d046ca2..7a43b91 100755 --- a/src/bytecode/ops.h +++ b/src/bytecode/ops.h @@ -33,6 +33,8 @@ typedef enum Ops { // Procedures. OP_CALL, OP_RETURN, + // Clear stack after each statement. + OP_DROP, } Ops; #endif // BDL_OPS_H -- cgit v1.2.1