code / tomo

Lines41.3K C23.7K Markdown9.7K YAML5.0K Tomo2.3K
7 others 763
Python231 Shell230 make212 INI47 Text21 SVG16 Lua6
(18 lines)
1 // A context parameter that gets passed around during parsing.
2 #pragma once
4 #include <setjmp.h>
5 #include <stdint.h>
7 #include "../stdlib/datatypes.h"
8 #include "../stdlib/files.h"
9 #include "../stdlib/types.h"
11 extern const TypeInfo_t *parse_comments_info;
13 typedef struct {
14 file_t *file;
15 jmp_buf *on_err;
16 int64_t next_lambda_id;
17 Table_t comments; // Map of <start pos> -> <end pos>
18 } parse_ctx_t;