From fbc6b59305d8414bb1cb471ea3f85a8d926beb4f Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 25 Aug 2025 01:26:47 -0400 Subject: Further split out files for parsing --- src/parse/controlflow.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/parse/controlflow.h (limited to 'src/parse/controlflow.h') diff --git a/src/parse/controlflow.h b/src/parse/controlflow.h new file mode 100644 index 00000000..2ef093d4 --- /dev/null +++ b/src/parse/controlflow.h @@ -0,0 +1,18 @@ +// Logic for parsing control flow +#pragma once + +#include "../ast.h" +#include "context.h" + +ast_t *parse_block(parse_ctx_t *ctx, const char *pos); +ast_t *parse_defer(parse_ctx_t *ctx, const char *pos); +ast_t *parse_do(parse_ctx_t *ctx, const char *pos); +ast_t *parse_for(parse_ctx_t *ctx, const char *pos); +ast_t *parse_if(parse_ctx_t *ctx, const char *pos); +ast_t *parse_pass(parse_ctx_t *ctx, const char *pos); +ast_t *parse_repeat(parse_ctx_t *ctx, const char *pos); +ast_t *parse_return(parse_ctx_t *ctx, const char *pos); +ast_t *parse_skip(parse_ctx_t *ctx, const char *pos); +ast_t *parse_stop(parse_ctx_t *ctx, const char *pos); +ast_t *parse_when(parse_ctx_t *ctx, const char *pos); +ast_t *parse_while(parse_ctx_t *ctx, const char *pos); -- cgit v1.2.3