diff options
-rw-r--r-- | .gitmodules | 21 | ||||
m--------- | tree-sitter-bash | 0 | ||||
m--------- | tree-sitter-c | 0 | ||||
m--------- | tree-sitter-cpp | 0 | ||||
m--------- | tree-sitter-go | 0 | ||||
m--------- | tree-sitter-haskell | 0 | ||||
m--------- | tree-sitter-javascript | 0 | ||||
m--------- | tree-sitter-ocaml | 0 | ||||
m--------- | tree-sitter-python | 0 | ||||
m--------- | tree-sitter-typescript | 0 | ||||
-rw-r--r-- | ts_create_object.py | 17 |
11 files changed, 38 insertions, 0 deletions
diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..4246223 --- /dev/null +++ b/.gitmodules @@ -0,0 +1,21 @@ +[submodule "tree-sitter-javascript"] + path = tree-sitter-javascript + url = https://github.com/tree-sitter/tree-sitter-javascript +[submodule "tree-sitter-python"] + path = tree-sitter-python + url = https://github.com/tree-sitter/tree-sitter-python +[submodule "tree-sitter-go"] + path = tree-sitter-go + url = https://github.com/tree-sitter/tree-sitter-go +[submodule "tree-sitter-c"] + path = tree-sitter-c + url = https://github.com/tree-sitter/tree-sitter-c +[submodule "tree-sitter-cpp"] + path = tree-sitter-cpp + url = https://github.com/tree-sitter/tree-sitter-cpp +[submodule "tree-sitter-bash"] + path = tree-sitter-bash + url = https://github.com/tree-sitter/tree-sitter-bash +[submodule "tree-sitter-haskell"] + path = tree-sitter-haskell + url = https://github.com/tree-sitter/tree-sitter-haskell diff --git a/tree-sitter-bash b/tree-sitter-bash new file mode 160000 +Subproject 8077be4c5504f2618f1280295bc4ae20a75988c diff --git a/tree-sitter-c b/tree-sitter-c new file mode 160000 +Subproject b62e08e5f91077a7d3604b605293c18c8493a72 diff --git a/tree-sitter-cpp b/tree-sitter-cpp new file mode 160000 +Subproject 77cecd88d28032bf4f54fd4ee68efb53a6c8c9a diff --git a/tree-sitter-go b/tree-sitter-go new file mode 160000 +Subproject bbaa67a180cfe0c943e50c55130918be8efb20b diff --git a/tree-sitter-haskell b/tree-sitter-haskell new file mode 160000 +Subproject 99706824b92f162d4e0f47c7e930bbccb367276 diff --git a/tree-sitter-javascript b/tree-sitter-javascript new file mode 160000 +Subproject f772967f7b7bc7c28f845be2420a38472b16a8e diff --git a/tree-sitter-ocaml b/tree-sitter-ocaml new file mode 160000 +Subproject 694c57718fd85d514f8b81176038e7a4cfabcaa diff --git a/tree-sitter-python b/tree-sitter-python new file mode 160000 +Subproject 5af00f64af6bbf822f208243cce5cf75396fb6f diff --git a/tree-sitter-typescript b/tree-sitter-typescript new file mode 160000 +Subproject b1bf4825d9eaa0f3bdeb1e52f099533328acfbd 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' + ] +) |