aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2019-10-20 13:11:28 +0100
committergingerBill <bill@gingerbill.org>2019-10-20 13:11:28 +0100
commitf12ded54f2b1a390f556e67a17ff0bf4c301a8e3 (patch)
tree4ca38be0a35200857424ab0f1956ecb2a657393d /src/parser.hpp
parentb4951c9b399801ca056db972eec9bd9064f25412 (diff)
Support for named indices for array-like compound literals `{3 = a, 1 = b}`
Diffstat (limited to 'src/parser.hpp')
-rw-r--r--src/parser.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/parser.hpp b/src/parser.hpp
index 419cf9da3..9c3f733e5 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -249,6 +249,7 @@ enum StmtAllowFlag {
Ast *type; \
Array<Ast *> elems; \
Token open, close; \
+ i64 max_index; \
}) \
AST_KIND(_ExprBegin, "", bool) \
AST_KIND(BadExpr, "bad expression", struct { Token begin, end; }) \