aboutsummaryrefslogtreecommitdiff
path: root/src/parse/context.h
blob: 6008060e363a9602ab99165055e6a75528823978 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;