commit 87c077405904cd63f73c2b66a96b8a10defef19c
parent 84cf04469b98845635a3d8875851e929ca4ea993
Author: Sebastian <sebastian@sebsite.pw>
Date: Fri, 13 May 2022 22:42:58 -0400
parse: parse_control_statement -> parse_control_expression
Signed-off-by: Sebastian <sebastian@sebsite.pw>
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/parse.c b/src/parse.c
@@ -2112,7 +2112,7 @@ parse_deferred_expression(struct lexer *lexer)
}
static struct ast_expression *
-parse_control_statement(struct lexer *lexer)
+parse_control_expression(struct lexer *lexer)
{
struct ast_expression *exp = mkexpr(&lexer->loc);
@@ -2261,7 +2261,7 @@ parse_expression(struct lexer *lexer)
case T_RETURN:
case T_YIELD:
unlex(lexer, &tok);
- value = parse_control_statement(lexer);
+ value = parse_control_expression(lexer);
break;
case T_DEFER:
value = parse_deferred_expression(lexer);