code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(14 lines)
1 // Logic for parsing a whole file
2 #pragma once
4 #include <setjmp.h>
5 #include <stdint.h>
7 #include "../ast.h"
8 #include "context.h"
10 ast_t *parse_file_str(const char *str);
11 ast_t *parse_file(const char *path, jmp_buf *on_err);
13 ast_t *parse_file_body(parse_ctx_t *ctx, const char *pos);
14 ast_t *parse_use(parse_ctx_t *ctx, const char *pos);