Update
This commit is contained in:
parent
5bec1546aa
commit
c7fb66c70d
15 changed files with 572 additions and 164 deletions
|
|
@ -3,29 +3,25 @@
|
|||
|
||||
#include "./subtree.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
const Subtree *child;
|
||||
const Subtree *parent;
|
||||
t_parse_length position;
|
||||
t_symbol alias_symbol;
|
||||
typedef struct
|
||||
{
|
||||
const Subtree *child;
|
||||
const Subtree *parent;
|
||||
t_parse_length position;
|
||||
t_symbol alias_symbol;
|
||||
} ParentCacheEntry;
|
||||
|
||||
struct t_parse_tree {
|
||||
Subtree root;
|
||||
const t_language *language;
|
||||
t_parser_range *included_ranges;
|
||||
unsigned included_range_count;
|
||||
struct s_parse_tree
|
||||
{
|
||||
Subtree root;
|
||||
const t_language *language;
|
||||
t_parser_range *included_ranges;
|
||||
t_u32 included_range_count;
|
||||
};
|
||||
|
||||
t_parse_tree *ts_tree_new(Subtree root, const t_language *language, const t_parser_range *, unsigned);
|
||||
t_parse_node ts_node_new(const t_parse_tree *, const Subtree *, t_parse_length, t_symbol);
|
||||
t_parse_tree *ts_tree_new(Subtree root, const t_language *language,
|
||||
const t_parser_range *, t_u32);
|
||||
t_parse_node ts_node_new(const t_parse_tree *, const Subtree *, t_parse_length,
|
||||
t_symbol);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // TREE_SITTER_TREE_H_
|
||||
#endif // TREE_SITTER_TREE_H_
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue