diff options
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' + ] +) |