dev
Download
14 lines 338 BCModified 2025-09-21 raw
1234567891011121314
// Logic for parsing a whole file
#pragma once

#include <setjmp.h>
#include <stdint.h>

#include "../ast.h"
#include "context.h"

ast_t *parse_file_str(const char *str);
ast_t *parse_file(const char *path, jmp_buf *on_err);

ast_t *parse_file_body(parse_ctx_t *ctx, const char *pos);
ast_t *parse_use(parse_ctx_t *ctx, const char *pos);