lang: ast: implement support for multiple expression terminator tokens

This commit is contained in:
2024-12-07 21:28:25 +00:00
parent 7e3322e2ad
commit e8c30b65b5
12 changed files with 68 additions and 30 deletions

View File

@@ -38,7 +38,7 @@ struct token_parse_result parse_while(struct ivy_parser *ctx, struct ivy_token *
state->s_prev_token = IVY_KW_WHILE;
expr->s_subexpr_depth = 1;
expr->s_terminator = IVY_KW_DO;
expr_add_terminator(expr, IVY_KW_DO);
return PARSE_RESULT(IVY_OK, 0);
}