1 #ifndef TREE_SITTER_PARSE_STACK_H_
2 #define TREE_SITTER_PARSE_STACK_H_
16 #define STACK_VERSION_NONE ((StackVersion)-1)
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void count
StackSliceArray ts_stack_pop_count(Stack *, StackVersion, uint32_t count)
void ts_stack_record_summary(Stack *, StackVersion, unsigned max_depth)
void ts_stack_renumber_version(Stack *, StackVersion, StackVersion)
void ts_stack_set_last_external_token(Stack *, StackVersion, Subtree)
bool ts_stack_merge(Stack *, StackVersion, StackVersion)
Subtree ts_stack_last_external_token(const Stack *, StackVersion)
int ts_stack_dynamic_precedence(Stack *, StackVersion)
bool ts_stack_is_halted(const Stack *, StackVersion)
SubtreeArray ts_stack_pop_error(Stack *, StackVersion)
typedef Array(StackSlice) StackSliceArray
bool ts_stack_has_advanced_since_error(const Stack *, StackVersion)
StackSummary * ts_stack_get_summary(Stack *, StackVersion)
Length ts_stack_position(const Stack *, StackVersion)
uint32_t ts_stack_version_count(const Stack *)
bool ts_stack_can_merge(Stack *, StackVersion, StackVersion)
void ts_stack_swap_versions(Stack *, StackVersion, StackVersion)
void ts_stack_push(Stack *, StackVersion, Subtree, bool, TSStateId)
StackVersion ts_stack_copy_version(Stack *, StackVersion)
void ts_stack_delete(Stack *)
void(* StackIterateCallback)(void *, TSStateId, uint32_t)
void ts_stack_remove_version(Stack *, StackVersion)
Subtree ts_stack_resume(Stack *, StackVersion)
void ts_stack_halt(Stack *, StackVersion)
unsigned ts_stack_error_cost(const Stack *, StackVersion version)
void ts_stack_clear(Stack *)
unsigned ts_stack_node_count_since_error(const Stack *, StackVersion)
Stack * ts_stack_new(SubtreePool *)
StackSliceArray ts_stack_pop_all(Stack *, StackVersion)
bool ts_stack_is_active(const Stack *, StackVersion)
StackSliceArray ts_stack_pop_pending(Stack *, StackVersion)
TSStateId ts_stack_state(const Stack *, StackVersion)
void ts_stack_pause(Stack *, StackVersion, Subtree)
bool ts_stack_is_paused(const Stack *, StackVersion)
bool ts_stack_print_dot_graph(Stack *, const TSLanguage *, FILE *)