diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:16:32 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-09-21 18:16:32 -0400 |
| commit | 7e3e245f6809946ea06ef1998bcabb7e0902fbd7 (patch) | |
| tree | 67c06d75ecff021cd70073f8a7da278cfe7f6410 /src/parse/controlflow.c | |
| parent | 7198afcfec38f8f0cc82e093567e2b098a42970f (diff) | |
Deprecate `defer`
Diffstat (limited to 'src/parse/controlflow.c')
| -rw-r--r-- | src/parse/controlflow.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/src/parse/controlflow.c b/src/parse/controlflow.c index 1087e20e..74b3ea7a 100644 --- a/src/parse/controlflow.c +++ b/src/parse/controlflow.c @@ -79,13 +79,6 @@ ast_t *parse_pass(parse_ctx_t *ctx, const char *pos) { return match_word(&pos, "pass") ? NewAST(ctx->file, start, pos, Pass) : NULL; } -ast_t *parse_defer(parse_ctx_t *ctx, const char *pos) { - const char *start = pos; - if (!match_word(&pos, "defer")) return NULL; - ast_t *body = expect(ctx, start, &pos, parse_block, "I expected a block to be deferred here"); - return NewAST(ctx->file, start, pos, Defer, .body = body); -} - ast_t *parse_skip(parse_ctx_t *ctx, const char *pos) { const char *start = pos; if (!match_word(&pos, "continue") && !match_word(&pos, "skip")) return NULL; |
