Update parse count correctly when repairing errors & undoing reductions

This commit is contained in:
Max Brunsfeld 2016-09-01 10:04:20 -07:00
parent 71fdd9aa49
commit e0b0e29a2b
3 changed files with 79 additions and 52 deletions

View file

@ -70,6 +70,8 @@ TSStateId ts_stack_top_state(const Stack *, StackVersion);
unsigned ts_stack_push_count(const Stack *, StackVersion);
void ts_stack_decrease_push_count(const Stack *, StackVersion, unsigned);
/*
* Get the position at the top of the given version of the stack. If the stack
* is empty, this returns zero.