1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
#ifndef CONTEXT_H #define CONTEXT_H #include <lib.h> struct ctx { size_t line; size_t column; const char *path; char *raw; char *data; size_t size; size_t token_count; struct token *tokens; }; struct ctx *context_create(const char *path); void context_destroy(struct ctx *ctx); void context_rewind(struct ctx *ctx); #endif