Abort parse versions w/ worse errors when repairing an error

This commit is contained in:
Max Brunsfeld 2016-05-10 15:24:06 -07:00
parent 507d5ad9f7
commit d50f6a58cc
3 changed files with 60 additions and 21 deletions

View file

@ -77,6 +77,10 @@ size_t ts_stack_error_length(const Stack *, StackVersion);
size_t ts_stack_last_repaired_error_size(const Stack *, StackVersion);
void ts_stack_halt(Stack *, StackVersion);
bool ts_stack_is_halted(const Stack *, StackVersion);
/*
* Push a tree and state onto the given head of the stack. This could cause
* the version to merge with an existing version.