aboutsummaryrefslogtreecommitdiff
path: root/ast.h
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-12-06 15:18:25 -0500
committerBruce Hill <bruce@bruce-hill.com>2024-12-06 15:18:25 -0500
commit3a5815d4bd000cb250e3736db7ad02f63d065bfe (patch)
tree253f7c8afbba9bfbd08b9eb4616ed7219300f537 /ast.h
parentca14454bb03bda9794ffcb0c0745cf6978b595fc (diff)
Improvements and fixes for assigning to table keys
Diffstat (limited to 'ast.h')
-rw-r--r--ast.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/ast.h b/ast.h
index 0cd5a033..82d4de03 100644
--- a/ast.h
+++ b/ast.h
@@ -106,6 +106,7 @@ struct type_ast_s {
} ArrayTypeAST, ChannelTypeAST;
struct {
type_ast_t *key, *value;
+ ast_t *default_value;
} TableTypeAST;
struct {
type_ast_t *item;
@@ -211,6 +212,7 @@ struct ast_s {
} Set;
struct {
type_ast_t *key_type, *value_type;
+ ast_t *default_value;
ast_t *fallback;
ast_list_t *entries;
} Table;