Reorganize repo, add rust CLI and binding code,
This commit is contained in:
commit
47607cecf4
221 changed files with 11359 additions and 18038 deletions
20
lib/src/tree_cursor.h
Normal file
20
lib/src/tree_cursor.h
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
#ifndef RUNTIME_TREE_CURSOR_H_
|
||||
#define RUNTIME_TREE_CURSOR_H_
|
||||
|
||||
#include "runtime/subtree.h"
|
||||
|
||||
typedef struct {
|
||||
const Subtree *subtree;
|
||||
Length position;
|
||||
uint32_t child_index;
|
||||
uint32_t structural_child_index;
|
||||
} TreeCursorEntry;
|
||||
|
||||
typedef struct {
|
||||
const TSTree *tree;
|
||||
Array(TreeCursorEntry) stack;
|
||||
} TreeCursor;
|
||||
|
||||
void ts_tree_cursor_init(TreeCursor *, TSNode);
|
||||
|
||||
#endif // RUNTIME_TREE_CURSOR_H_
|
||||
Loading…
Add table
Add a link
Reference in a new issue