Rename type ts_input_edit -> TSInputEdit
This commit is contained in:
parent
ff13122419
commit
c8797bfa27
5 changed files with 9 additions and 9 deletions
|
|
@ -72,7 +72,7 @@ ts_lexer_start_token(lexer);
|
|||
|
||||
SYMBOL_NAMES;
|
||||
|
||||
static const TSTree * ts_parse(void *data, TSInput input, ts_input_edit *edit) {
|
||||
static const TSTree * ts_parse(void *data, TSInput input, TSInputEdit *edit) {
|
||||
ts_lr_parser *parser = (ts_lr_parser *)data;
|
||||
ts_lr_parser_initialize(parser, input, edit);
|
||||
for (;;) {
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ ts_lr_parser * ts_lr_parser_make(size_t symbol_count,
|
|||
TSTree * (* lex_fn)(ts_lexer *, TSStateId),
|
||||
const int *hidden_symbol_flags);
|
||||
void ts_lr_parser_free(void *data);
|
||||
void ts_lr_parser_initialize(ts_lr_parser *parser, TSInput input, ts_input_edit *edit);
|
||||
void ts_lr_parser_initialize(ts_lr_parser *parser, TSInput input, TSInputEdit *edit);
|
||||
TSTree * ts_lr_parser_parse(ts_lr_parser *parser, const char **symbol_names);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
|
|
|||
|
|
@ -39,16 +39,16 @@ typedef struct {
|
|||
size_t position;
|
||||
size_t bytes_inserted;
|
||||
size_t bytes_removed;
|
||||
} ts_input_edit;
|
||||
} TSInputEdit;
|
||||
|
||||
typedef struct {
|
||||
const TSTree * (* parse_fn)(void *data, TSInput input, ts_input_edit *edit);
|
||||
const TSTree * (* parse_fn)(void *data, TSInput input, TSInputEdit *edit);
|
||||
void (* free_fn)(void *data);
|
||||
const char **symbol_names;
|
||||
void *data;
|
||||
} ts_parser;
|
||||
|
||||
const TSTree * ts_parser_parse(ts_parser *, TSInput, ts_input_edit *edit);
|
||||
const TSTree * ts_parser_parse(ts_parser *, TSInput, TSInputEdit *edit);
|
||||
void ts_parser_free(ts_parser *);
|
||||
|
||||
typedef struct TSDocument TSDocument;
|
||||
|
|
@ -57,7 +57,7 @@ void ts_document_free(TSDocument *doc);
|
|||
void ts_document_set_parser(TSDocument *doc, ts_parser parser);
|
||||
void ts_document_set_input(TSDocument *doc, TSInput input);
|
||||
void ts_document_set_input_string(TSDocument *doc, const char *text);
|
||||
void ts_document_edit(TSDocument *doc, ts_input_edit edit);
|
||||
void ts_document_edit(TSDocument *doc, TSInputEdit edit);
|
||||
const TSTree * ts_document_tree(const TSDocument *doc);
|
||||
const char * ts_document_string(const TSDocument *doc);
|
||||
const char * ts_document_symbol_name(const TSDocument *document, const TSTree *tree);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue