2024-09-06 16:22:52 +02:00

17 lines
359 B
C

#include <tree_sitter/api.h>
extern void yyerror();
extern int yyinit();
extern int yydeinit();
extern int yylex();
extern const char * source_code;
const char * ts_node_text(const TSNode node) {
return source_code + ts_node_start_byte(node);
}
int ts_node_text_len(const TSNode node) {
return ts_node_end_byte(node) - ts_node_start_byte(node);
}