aboutsummaryrefslogtreecommitdiff
path: root/src/tree_sitter/lib.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tree_sitter/lib.c')
-rw-r--r--src/tree_sitter/lib.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/tree_sitter/lib.c b/src/tree_sitter/lib.c
new file mode 100644
index 0000000000..fc5fbc9210
--- /dev/null
+++ b/src/tree_sitter/lib.c
@@ -0,0 +1,20 @@
+// The Tree-sitter library can be built by compiling this one source file.
+//
+// The following directories must be added to the include path:
+// - include
+// - utf8proc
+
+#define _POSIX_C_SOURCE 200112L
+#define UTF8PROC_STATIC
+
+#include "./get_changed_ranges.c"
+#include "./language.c"
+#include "./lexer.c"
+#include "./node.c"
+#include "./parser.c"
+#include "./stack.c"
+#include "./subtree.c"
+#include "./tree_cursor.c"
+#include "./tree.c"
+#include "./utf16.c"
+#include "utf8proc.c"