aboutsummaryrefslogtreecommitdiff
path: root/src/parser.hpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2023-09-30 15:04:17 +0100
committergingerBill <bill@gingerbill.org>2023-09-30 15:04:17 +0100
commit648b83d6ead67a291dc023f93a7262622991be2a (patch)
tree722495f871bb992e44e321d894879337dd03c20c /src/parser.hpp
parent4e97b833126d9773ec23a0a0652beb19aab4aea4 (diff)
Add `or_break` and `or_continue` constructs
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 dd7bd0928..bce818652 100644
--- a/src/parser.hpp
+++ b/src/parser.hpp
@@ -464,6 +464,7 @@ AST_KIND(_ExprBegin, "", bool) \
AST_KIND(TernaryWhenExpr, "ternary when expression", struct { Ast *x, *cond, *y; }) \
AST_KIND(OrElseExpr, "or_else expression", struct { Ast *x; Token token; Ast *y; }) \
AST_KIND(OrReturnExpr, "or_return expression", struct { Ast *expr; Token token; }) \
+ AST_KIND(OrBranchExpr, "or branch expression", struct { Ast *expr; Token token; Ast *label; }) \
AST_KIND(TypeAssertion, "type assertion", struct { \
Ast *expr; \
Token dot; \