tree-sitter/src/runtime/string_input.h

24 lines
386 B
C
Raw Normal View History

2014-08-01 12:43:14 -07:00
#ifndef RUNTIME_STRING_INPUT_H_
#define RUNTIME_STRING_INPUT_H_
#ifdef __cplusplus
extern "C" {
#endif
#include "tree_sitter/runtime.h"
2018-05-10 22:22:37 -07:00
typedef struct {
const char *string;
uint32_t position;
uint32_t length;
TSInput input;
} TSStringInput;
void ts_string_input_init(TSStringInput *, const char *, uint32_t);
2014-08-01 12:43:14 -07:00
#ifdef __cplusplus
}
#endif
#endif // RUNTIME_STRING_INPUT_H_