Rename type ts_symbol -> TSSymbol

This commit is contained in:
Max Brunsfeld 2014-06-28 18:53:32 -07:00
parent 7e0d46002c
commit d7449bf5ea
8 changed files with 22 additions and 22 deletions

View file

@ -59,7 +59,7 @@ static inline void ts_lexer_start_token(ts_lexer *lexer) {
lexer->token_start_position = ts_lexer_position(lexer);
}
static inline TSTree * ts_lexer_build_node(ts_lexer *lexer, ts_symbol symbol) {
static inline TSTree * ts_lexer_build_node(ts_lexer *lexer, TSSymbol symbol) {
size_t current_position = ts_lexer_position(lexer);
size_t size = current_position - lexer->token_start_position;
size_t offset = lexer->token_start_position - lexer->token_end_position;

View file

@ -21,7 +21,7 @@ typedef struct {
union {
TSStateId to_state;
struct {
ts_symbol symbol;
TSSymbol symbol;
unsigned short child_count;
};
} data;

View file

@ -20,7 +20,7 @@ typedef struct {
ts_stack ts_stack_make();
void ts_stack_delete(ts_stack *);
TSTree * ts_stack_reduce(ts_stack *stack, ts_symbol symbol, size_t immediate_child_count, const int *hidden_symbol_flags, int gather_extras);
TSTree * ts_stack_reduce(ts_stack *stack, TSSymbol symbol, size_t immediate_child_count, const int *hidden_symbol_flags, int gather_extras);
void ts_stack_shrink(ts_stack *stack, size_t new_size);
void ts_stack_push(ts_stack *stack, TSStateId state, TSTree *node);
TSStateId ts_stack_top_state(const ts_stack *stack);