From a52fdf470aa2c164108aeccc2c83bad62208913c Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 9 Mar 2019 14:14:09 +0100 Subject: Start on resolving ast. Add recursive declaration check --- include/parser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/parser.h') 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); -- cgit v1.2.3