diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 00:40:03 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2025-08-25 00:40:03 -0400 |
| commit | aed80436a0a5eb12d9cace916167b0f7bd433589 (patch) | |
| tree | c546a7f10621864ac697711b6f66a428cdaeb00b /src/parse/context.h | |
| parent | b378f7359a6b8bd2e47bafdba496d115825adcd7 (diff) | |
Splitting out parser more.
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; |
