summaryrefslogtreecommitdiffhomepage
path: root/compiler.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jo@mein.io>2021-05-22 18:18:21 +0200
committerGitHub <noreply@github.com>2021-05-22 18:18:21 +0200
commitc706eb101934ec05a1aa0fa75ab79f8b1ba405e8 (patch)
tree02e2c0275315a7d698599221fd52636bd642c584 /compiler.h
parent54ca3aa25f5dd551d974724524b5f0958da35b34 (diff)
parent5714705aee31a0d561b4cf1b8096bbe19e17a825 (diff)
Merge pull request #13 from jow-/const-support
syntax: introduce `const` support
Diffstat (limited to 'compiler.h')
-rw-r--r--compiler.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler.h b/compiler.h
index deec3d5..54f56c2 100644
--- a/compiler.h
+++ b/compiler.h
@@ -76,12 +76,14 @@ typedef struct {
ssize_t depth;
size_t from;
bool captured;
+ bool constant;
} uc_local;
typedef struct {
uc_value_t *name;
size_t index;
bool local;
+ bool constant;
} uc_upval;
uc_declare_vector(uc_locals, uc_local);