2015-07-31 15:47:48 -07:00
|
|
|
#ifndef RUNTIME_DOCUMENT_H_
|
|
|
|
|
#define RUNTIME_DOCUMENT_H_
|
|
|
|
|
|
|
|
|
|
#include "runtime/parser.h"
|
|
|
|
|
#include "runtime/tree.h"
|
2018-05-09 16:38:56 -07:00
|
|
|
#include "runtime/tree_cursor.h"
|
2015-10-18 13:05:40 -07:00
|
|
|
#include <stdbool.h>
|
2015-07-31 15:47:48 -07:00
|
|
|
|
|
|
|
|
struct TSDocument {
|
2016-08-29 12:08:58 -07:00
|
|
|
Parser parser;
|
2015-07-31 15:47:48 -07:00
|
|
|
TSInput input;
|
2016-11-09 20:59:05 -08:00
|
|
|
Tree *tree;
|
2018-05-09 16:38:56 -07:00
|
|
|
TSTreeCursor cursor1;
|
|
|
|
|
TSTreeCursor cursor2;
|
2015-09-10 14:23:42 -07:00
|
|
|
size_t parse_count;
|
2015-10-18 13:05:40 -07:00
|
|
|
bool valid;
|
2016-01-29 16:40:38 -08:00
|
|
|
bool owns_input;
|
2015-07-31 15:47:48 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
#endif
|