rename types

This commit is contained in:
2024-12-22 22:31:16 +02:00
parent 228b215259
commit db35aa7722
10 changed files with 112 additions and 127 deletions

View File

@@ -9,24 +9,24 @@
typedef struct {
uint32_t len;
uint32_t cap;
astNodeIndex* arr;
} parserNodeIndexSlice;
AstNodeIndex* arr;
} ParserNodeIndexSlice;
typedef struct {
const char* source;
const uint32_t source_len;
tokenizerTag* token_tags;
astIndex* token_starts;
TokenizerTag* token_tags;
AstIndex* token_starts;
uint32_t tokens_len;
astTokenIndex tok_i;
AstTokenIndex tok_i;
astNodeList nodes;
parserNodeIndexSlice extra_data;
parserNodeIndexSlice scratch;
} parser;
AstNodeList nodes;
ParserNodeIndexSlice extra_data;
ParserNodeIndexSlice scratch;
} Parser;
int parse_root(parser*);
int parseRoot(Parser*);
#endif