diff options
Diffstat (limited to 'include/parser.h')
-rw-r--r-- | include/parser.h | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/include/parser.h b/include/parser.h index 4427cc8..81895e1 100644 --- a/include/parser.h +++ b/include/parser.h @@ -17,18 +17,6 @@ #define PARSER_UNEXPECTED_TOKEN -2 typedef enum { - PARSER_THREAD_STATUS_NEW, - PARSER_THREAD_STATUS_IDLE, - PARSER_THREAD_STATUS_RUNNING -} ParserThreadStatus; - -struct ParserThreadData { - amal_thread thread; - ParserThreadStatus status; - ArenaAllocator allocator; -}; - -typedef enum { ERROR_CONTEXT_NONE, ERROR_CONTEXT_RHS_STANDALONE, ERROR_CONTEXT_NO_LHS @@ -51,11 +39,6 @@ struct Parser { Bytecode bytecode; }; -CHECK_RESULT int parser_thread_data_init(ParserThreadData *self); -void parser_thread_data_deinit(ParserThreadData *self); -CHECK_RESULT int parser_thread_data_start(ParserThreadData *self, AmalThreadCallbackFunc callback_func, void *userdata); -CHECK_RESULT int parser_thread_data_join(ParserThreadData *self, void **result); - CHECK_RESULT int parser_init(Parser *self, amal_compiler *compiler, ArenaAllocator *allocator); /* |