Only return one result for each revealed head from ts_stack_pop
This commit is contained in:
parent
171c259300
commit
e90a425618
5 changed files with 188 additions and 151 deletions
|
|
@ -28,7 +28,7 @@ typedef enum {
|
|||
StackPushResultContinued,
|
||||
} StackPushResult;
|
||||
|
||||
typedef TSTree *(*TreeSelectionFunction)(void *, TSTree *, TSTree *);
|
||||
typedef int (*TreeSelectionFunction)(void *, TSTree *, TSTree *);
|
||||
|
||||
/*
|
||||
* Create a parse stack.
|
||||
|
|
@ -84,11 +84,6 @@ StackEntry *ts_stack_entry_next(const StackEntry *, int);
|
|||
*/
|
||||
StackPushResult ts_stack_push(Stack *, int head, TSStateId, TSTree *);
|
||||
|
||||
/*
|
||||
* Add an alternative tree for the given head of the stack.
|
||||
*/
|
||||
void ts_stack_add_alternative(Stack *, int head, TSTree *);
|
||||
|
||||
/*
|
||||
* Pop the given number of entries from the given head of the stack. This
|
||||
* operation can increase the number of stack heads by revealing multiple heads
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue