diff options
Diffstat (limited to 'src/parse/context.h')
| -rw-r--r-- | src/parse/context.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/parse/context.h b/src/parse/context.h new file mode 100644 index 00000000..6008060e --- /dev/null +++ b/src/parse/context.h @@ -0,0 +1,13 @@ +// A context parameter that gets passed around during parsing. +#pragma once + +#include <setjmp.h> +#include <stdint.h> + +#include "../stdlib/files.h" + +typedef struct { + file_t *file; + jmp_buf *on_err; + int64_t next_lambda_id; +} parse_ctx_t; |
