Split parse stack when there are multiple parse actions
This commit is contained in:
parent
f26ddf5187
commit
aff8bc3266
12 changed files with 1563 additions and 907 deletions
|
|
@ -27,6 +27,7 @@ static inline void tree_vector_push(TreeVector *this, TSTree *tree) {
|
|||
this->capacity += 4;
|
||||
this->contents = realloc(this->contents, this->capacity * sizeof(TSTree *));
|
||||
}
|
||||
ts_tree_retain(tree);
|
||||
this->contents[this->size++] = tree;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue