From fa8891ffe017ae890f0ef07915cf8b52acd7304a Mon Sep 17 00:00:00 2001 From: ubq323 Date: Thu, 20 Jun 2024 21:45:57 +0100 Subject: add true, false, nil keywords --- vm.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'vm.h') diff --git a/vm.h b/vm.h index 859e207..e184426 100644 --- a/vm.h +++ b/vm.h @@ -49,8 +49,12 @@ typedef enum { OP_GETGLOBAL, OP_SETGLOBAL, + + OP_TRUE, + OP_FALSE, + OP_NIL, } Op; -void runvm(State *S); +int runvm(State *S); #endif -- cgit v1.2.3