diff options
author | Nate Buttke <nate-web@riseup.net> | 2023-08-12 18:31:23 -0700 |
---|---|---|
committer | Nate Buttke <nate-web@riseup.net> | 2023-08-12 18:31:23 -0700 |
commit | 2ac2fae0fd8b88ef561518267db7436201c965d3 (patch) | |
tree | e6b16ca8cf089d50630e93ae04189f9908392081 /ts_create_object.py | |
parent | b5913e3f1fc5f445689518fe5528ea1323466631 (diff) |
setup submodules and tree-sitter object creation for many languages
Diffstat (limited to 'ts_create_object.py')
-rw-r--r-- | ts_create_object.py | 17 |
1 files changed, 17 insertions, 0 deletions
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' + ] +) |