llm
Download
18 lines 746 BCModified 2026-08-21 raw
123456789101112131415161718
// 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_match(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_continue(parse_ctx_t *ctx, const char *pos);
ast_t *parse_break(parse_ctx_t *ctx, const char *pos);
ast_t *parse_while(parse_ctx_t *ctx, const char *pos);