Add ability to store external token state per stack version

This commit is contained in:
Max Brunsfeld 2017-01-04 21:22:23 -08:00
parent adae1b16a6
commit d57043b665
3 changed files with 54 additions and 5 deletions

View file

@ -65,7 +65,11 @@ 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);
void ts_stack_decrease_push_count(Stack *, StackVersion, unsigned);
const TSExternalTokenState *ts_stack_external_token_state(const Stack *, StackVersion);
void ts_stack_set_external_token_state(Stack *, StackVersion, const TSExternalTokenState *);
/*
* Get the position at the top of the given version of the stack. If the stack