From 2ac2fae0fd8b88ef561518267db7436201c965d3 Mon Sep 17 00:00:00 2001 From: Nate Buttke Date: Sat, 12 Aug 2023 18:31:23 -0700 Subject: setup submodules and tree-sitter object creation for many languages --- ts_create_object.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 ts_create_object.py (limited to 'ts_create_object.py') diff --git a/ts_create_object.py b/ts_create_object.py new file mode 100644 index 0000000..2cf3734 --- /dev/null +++ b/ts_create_object.py @@ -0,0 +1,17 @@ +from tree_sitter import Language, Parser + +Language.build_library( + # Store the library in the `build` directory + 'ts-languages.so', + + # Include one or more languages + [ + 'tree-sitter-javascript', + 'tree-sitter-python', + 'tree-sitter-go', + 'tree-sitter-c', + 'tree-sitter-cpp', + 'tree-sitter-bash', + 'tree-sitter-haskell' + ] +) -- cgit v1.2.3