Always resolve ambiguities immediately

No more ambiguity nodes.
Also, when merging parse stacks, merge their successors if needed.
This commit is contained in:
Max Brunsfeld 2015-07-15 09:21:53 -07:00
parent 8c5c695f5a
commit 0b1d70db34
18 changed files with 123 additions and 86 deletions

View file

@ -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.