start rewriting the parser to return with error messages so errors can be caught

This commit is contained in:
2025-07-09 04:58:49 +01:00
parent e234ea074b
commit c4731597f3
22 changed files with 282 additions and 149 deletions

View File

@@ -8,8 +8,7 @@ typedef struct {
ParsedValue *content;
} ParsedConditional;
ParsedValue *parse_if(char *file, DArray *tokens,
size_t *index);
ParsedValueReturn parse_if(char *file, DArray *tokens, size_t *index);
void free_parsed_if(void *ptr);