Use explicit stack for assigning trees' parent pointers

This commit is contained in:
Max Brunsfeld 2016-09-14 09:46:41 -07:00
parent 00528e50ce
commit fcf9293d35
4 changed files with 24 additions and 19 deletions

View file

@ -26,6 +26,7 @@ typedef struct {
TSTree *cached_token;
size_t cached_token_byte_index;
ReusableNode reusable_node;
TreeArray tree_stack;
} Parser;
bool parser_init(Parser *);