Reorganize repo, add rust CLI and binding code,

This commit is contained in:
Max Brunsfeld 2019-01-04 17:31:49 -08:00
commit 47607cecf4
221 changed files with 11359 additions and 18038 deletions

20
lib/src/tree_cursor.h Normal file
View 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_