adding more parser — starts breaking the build
This commit is contained in:
9
ast.c
9
ast.c
@@ -25,14 +25,17 @@ void astNodeListEnsureCapacity(AstNodeList* list, uint32_t additional)
|
||||
list->cap = new_cap;
|
||||
}
|
||||
|
||||
void astNodeListAppend(AstNodeList* list, AstNodeTag tag,
|
||||
AstTokenIndex main_token, AstData data)
|
||||
AstNodeIndex astNodeListAppend(
|
||||
AstNodeList* list,
|
||||
AstNodeTag tag,
|
||||
AstTokenIndex main_token,
|
||||
AstData data)
|
||||
{
|
||||
astNodeListEnsureCapacity(list, 1);
|
||||
list->tags[list->len] = tag;
|
||||
list->main_tokens[list->len] = main_token;
|
||||
list->datas[list->len] = data;
|
||||
list->len++;
|
||||
return list->len++;
|
||||
}
|
||||
|
||||
Ast astParse(const char* source, const uint32_t len)
|
||||
|
||||
Reference in New Issue
Block a user