aboutsummaryrefslogtreecommitdiff
path: root/include/parser.h
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2019-03-09 14:14:09 +0100
committerdec05eba <dec05eba@protonmail.com>2020-07-25 14:36:46 +0200
commita52fdf470aa2c164108aeccc2c83bad62208913c (patch)
tree9b4dea7aa0e53976958ac908d345f6f1914602d1 /include/parser.h
parent255aa20f6d68a71c9eedd47998480a8b14a3be36 (diff)
Start on resolving ast. Add recursive declaration check
Diffstat (limited to 'include/parser.h')
-rw-r--r--include/parser.h4
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);