aboutsummaryrefslogtreecommitdiff
path: root/types.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-08-10 15:15:38 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-08-10 15:15:38 -0400
commit8d3d5913129a8ede381462d5ad5e98f9c789e5c8 (patch)
tree074e1fd4489710af0810e2a901106a7161467021 /types.h
parentcb6cebf12e2124503f0551bc1bf6b44f68d86746 (diff)
Add Sets to the language
Diffstat (limited to 'types.h')
-rw-r--r--types.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/types.h b/types.h
index 67fd8833..8e4b7976 100644
--- a/types.h
+++ b/types.h
@@ -48,6 +48,7 @@ struct type_s {
CStringType,
TextType,
ArrayType,
+ SetType,
TableType,
FunctionType,
ClosureType,
@@ -79,6 +80,9 @@ struct type_s {
type_t *item_type;
} ArrayType;
struct {
+ type_t *item_type;
+ } SetType;
+ struct {
type_t *key_type, *value_type;
} TableType;
struct {