Always resolve ambiguities immediately
No more ambiguity nodes. Also, when merging parse stacks, merge their successors if needed.
This commit is contained in:
parent
8c5c695f5a
commit
0b1d70db34
18 changed files with 123 additions and 86 deletions
|
|
@ -25,10 +25,15 @@ typedef struct {
|
|||
ParseStackPopResult *contents;
|
||||
} ParseStackPopResultList;
|
||||
|
||||
typedef struct {
|
||||
void *data;
|
||||
TSTree * (*callback)(void *data, TSTree *, TSTree *);
|
||||
} TreeSelectionCallback;
|
||||
|
||||
/*
|
||||
* Create a ParseStack.
|
||||
*/
|
||||
ParseStack *ts_parse_stack_new();
|
||||
ParseStack *ts_parse_stack_new(TreeSelectionCallback);
|
||||
|
||||
/*
|
||||
* Release any resources reserved by a parse stack.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue