blob: ebebc20c891cfa1ddbcd3c480e39fbc5fefb1f91 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
// 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);
|