Split parse stack when there are multiple parse actions

This commit is contained in:
Max Brunsfeld 2015-07-08 17:34:21 -07:00
parent f26ddf5187
commit aff8bc3266
12 changed files with 1563 additions and 907 deletions

View file

@ -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;
}