diff options
author | dec05eba <dec05eba@protonmail.com> | 2019-03-09 14:14:09 +0100 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2020-07-25 14:36:46 +0200 |
commit | a52fdf470aa2c164108aeccc2c83bad62208913c (patch) | |
tree | 9b4dea7aa0e53976958ac908d345f6f1914602d1 /include/parser.h | |
parent | 255aa20f6d68a71c9eedd47998480a8b14a3be36 (diff) |
Start on resolving ast. Add recursive declaration check
Diffstat (limited to 'include/parser.h')
-rw-r--r-- | include/parser.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/parser.h b/include/parser.h index 5c055d9..20f02fe 100644 --- a/include/parser.h +++ b/include/parser.h @@ -32,7 +32,7 @@ typedef enum { ERROR_CONTEXT_RHS_START } ErrorContext; -typedef struct { +struct Parser { Tokenizer tokenizer; Scope scope; ScopedAllocator *allocator; /* borrowed. Copied from @compiler for faster access to allocator */ @@ -41,7 +41,7 @@ typedef struct { TokenizerError error; ErrorContext error_context; jmp_buf parse_env; -} Parser; +}; CHECK_RESULT int parser_thread_data_init(ParserThreadData *self); CHECK_RESULT int parser_thread_data_deinit(ParserThreadData *self); |