From bc47478d855b08023409dbfc8550958991265c14 Mon Sep 17 00:00:00 2001 From: ubq323 Date: Mon, 24 Jun 2024 19:30:09 +0100 Subject: keep track of stack position while compiling --- com.h | 1 + 1 file changed, 1 insertion(+) (limited to 'com.h') diff --git a/com.h b/com.h index f08769e..26b7494 100644 --- a/com.h +++ b/com.h @@ -10,6 +10,7 @@ typedef struct _compiler Compiler; struct _compiler { State *S; Chunk *ch; + int stack_cur; }; Compiler compiler_new(Compiler *outer, Chunk *ch); -- cgit v1.2.3