Use explicit stack for assigning trees' parent pointers
This commit is contained in:
parent
00528e50ce
commit
fcf9293d35
4 changed files with 24 additions and 19 deletions
|
|
@ -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 *);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue