#include <stdbool.h>
#include <stdint.h>
#include <stdlib.h>
Go to the source code of this file.
|
enum | TSParseActionType {
TSParseActionTypeShift
, TSParseActionTypeReduce
, TSParseActionTypeAccept
, TSParseActionTypeRecover
,
TSParseActionTypeShift
, TSParseActionTypeReduce
, TSParseActionTypeAccept
, TSParseActionTypeRecover
,
TSParseActionTypeShift
, TSParseActionTypeReduce
, TSParseActionTypeAccept
, TSParseActionTypeRecover
} |
|
◆ ACCEPT_INPUT
Value: {{ \
}}
@ TSParseActionTypeAccept
Definition at line 215 of file parser.h.
◆ ACCEPT_TOKEN
#define ACCEPT_TOKEN |
( |
|
symbol_value | ) |
|
Value: result = true; \
lexer->result_symbol = symbol_value; \
lexer->mark_end(lexer);
Definition at line 158 of file parser.h.
◆ ACTIONS
◆ ADVANCE
#define ADVANCE |
( |
|
state_value | ) |
|
Value: { \
state = state_value; \
goto next_state; \
}
Definition at line 145 of file parser.h.
◆ END_STATE
#define END_STATE |
( |
| ) |
return result; |
◆ RECOVER
Value: {{ \
}}
@ TSParseActionTypeRecover
Definition at line 210 of file parser.h.
◆ REDUCE
#define REDUCE |
( |
|
symbol_val, |
|
|
|
child_count_val, |
|
|
|
... |
|
) |
| |
Value: {{ \
.reduce = { \
.symbol = symbol_val, \
.child_count = child_count_val, \
__VA_ARGS__ \
}, \
}}
@ TSParseActionTypeReduce
Definition at line 200 of file parser.h.
◆ SHIFT
#define SHIFT |
( |
|
state_value | ) |
|
Value: {{ \
.shift = { \
.state = state_value \
} \
}}
Definition at line 175 of file parser.h.
◆ SHIFT_EXTRA
Value: {{ \
.shift = { \
.extra = true \
} \
}}
Definition at line 192 of file parser.h.
◆ SHIFT_REPEAT
#define SHIFT_REPEAT |
( |
|
state_value | ) |
|
Value: {{ \
.shift = { \
.state = state_value, \
.repetition = true \
} \
}}
Definition at line 183 of file parser.h.
◆ SKIP
#define SKIP |
( |
|
state_value | ) |
|
Value: { \
skip = true; \
state = state_value; \
goto next_state; \
}
Definition at line 151 of file parser.h.
◆ SMALL_STATE
◆ START_LEXER
Value: bool result = false; \
bool eof = false; \
int32_t lookahead; \
next_state: \
lexer->advance(lexer,
skip); \
start: \
skip = false; \
lookahead = lexer->lookahead;
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 static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void start
void skip(file *in, unsigned n)
Definition at line 133 of file parser.h.
◆ STATE
◆ TREE_SITTER_SERIALIZATION_BUFFER_SIZE
#define TREE_SITTER_SERIALIZATION_BUFFER_SIZE 1024 |
◆ ts_builtin_sym_end
#define ts_builtin_sym_end 0 |
◆ ts_builtin_sym_error
#define ts_builtin_sym_error ((TSSymbol)-1) |
◆ TSFieldId
◆ TSLanguage
◆ TSLexer
◆ TSStateId
◆ TSSymbol
◆ TSParseActionType
Enumerator |
---|
TSParseActionTypeShift | |
TSParseActionTypeReduce | |
TSParseActionTypeAccept | |
TSParseActionTypeRecover | |
TSParseActionTypeShift | |
TSParseActionTypeReduce | |
TSParseActionTypeAccept | |
TSParseActionTypeRecover | |
TSParseActionTypeShift | |
TSParseActionTypeReduce | |
TSParseActionTypeAccept | |
TSParseActionTypeRecover | |
Definition at line 53 of file parser.h.