tree-sitter-language-pack 0.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (162) hide show
  1. tree_sitter_language_pack-0.1.0/LICENSE +20 -0
  2. tree_sitter_language_pack-0.1.0/PKG-INFO +304 -0
  3. tree_sitter_language_pack-0.1.0/README.md +256 -0
  4. tree_sitter_language_pack-0.1.0/pyproject.toml +145 -0
  5. tree_sitter_language_pack-0.1.0/setup.cfg +4 -0
  6. tree_sitter_language_pack-0.1.0/setup.py +114 -0
  7. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/__init__.py +206 -0
  8. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/__init__.py +0 -0
  9. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/actionscript.abi3.so +0 -0
  10. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/ada.abi3.so +0 -0
  11. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/agda.abi3.so +0 -0
  12. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/arduino.abi3.so +0 -0
  13. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/asm.abi3.so +0 -0
  14. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/astro.abi3.so +0 -0
  15. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/bash.abi3.so +0 -0
  16. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/beancount.abi3.so +0 -0
  17. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/bibtex.abi3.so +0 -0
  18. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/bicep.abi3.so +0 -0
  19. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/bitbake.abi3.so +0 -0
  20. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/c.abi3.so +0 -0
  21. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/cairo.abi3.so +0 -0
  22. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/capnp.abi3.so +0 -0
  23. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/chatito.abi3.so +0 -0
  24. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/clarity.abi3.so +0 -0
  25. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/clojure.abi3.so +0 -0
  26. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/cmake.abi3.so +0 -0
  27. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/comment.abi3.so +0 -0
  28. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/commonlisp.abi3.so +0 -0
  29. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/cpon.abi3.so +0 -0
  30. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/cpp.abi3.so +0 -0
  31. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/css.abi3.so +0 -0
  32. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/csv.abi3.so +0 -0
  33. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/cuda.abi3.so +0 -0
  34. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/d.abi3.so +0 -0
  35. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/dart.abi3.so +0 -0
  36. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/dockerfile.abi3.so +0 -0
  37. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/doxygen.abi3.so +0 -0
  38. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/elisp.abi3.so +0 -0
  39. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/elixir.abi3.so +0 -0
  40. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/elm.abi3.so +0 -0
  41. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/erlang.abi3.so +0 -0
  42. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/fennel.abi3.so +0 -0
  43. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/firrtl.abi3.so +0 -0
  44. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/fish.abi3.so +0 -0
  45. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/fortran.abi3.so +0 -0
  46. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/func.abi3.so +0 -0
  47. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/gdscript.abi3.so +0 -0
  48. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/gitattributes.abi3.so +0 -0
  49. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/gitcommit.abi3.so +0 -0
  50. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/gitignore.abi3.so +0 -0
  51. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/gleam.abi3.so +0 -0
  52. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/glsl.abi3.so +0 -0
  53. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/gn.abi3.so +0 -0
  54. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/go.abi3.so +0 -0
  55. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/gomod.abi3.so +0 -0
  56. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/gosum.abi3.so +0 -0
  57. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/groovy.abi3.so +0 -0
  58. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/gstlaunch.abi3.so +0 -0
  59. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/hack.abi3.so +0 -0
  60. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/hare.abi3.so +0 -0
  61. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/haskell.abi3.so +0 -0
  62. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/haxe.abi3.so +0 -0
  63. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/hcl.abi3.so +0 -0
  64. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/heex.abi3.so +0 -0
  65. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/hlsl.abi3.so +0 -0
  66. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/html.abi3.so +0 -0
  67. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/hyprlang.abi3.so +0 -0
  68. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/ispc.abi3.so +0 -0
  69. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/janet.abi3.so +0 -0
  70. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/java.abi3.so +0 -0
  71. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/javascript.abi3.so +0 -0
  72. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/jsdoc.abi3.so +0 -0
  73. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/json.abi3.so +0 -0
  74. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/jsonnet.abi3.so +0 -0
  75. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/julia.abi3.so +0 -0
  76. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/kconfig.abi3.so +0 -0
  77. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/kdl.abi3.so +0 -0
  78. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/kotlin.abi3.so +0 -0
  79. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/latex.abi3.so +0 -0
  80. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/linkerscript.abi3.so +0 -0
  81. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/llvm.abi3.so +0 -0
  82. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/lua.abi3.so +0 -0
  83. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/luadoc.abi3.so +0 -0
  84. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/luap.abi3.so +0 -0
  85. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/luau.abi3.so +0 -0
  86. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/magik.abi3.so +0 -0
  87. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/make.abi3.so +0 -0
  88. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/markdown.abi3.so +0 -0
  89. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/matlab.abi3.so +0 -0
  90. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/mermaid.abi3.so +0 -0
  91. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/meson.abi3.so +0 -0
  92. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/ninja.abi3.so +0 -0
  93. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/nix.abi3.so +0 -0
  94. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/nqc.abi3.so +0 -0
  95. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/objc.abi3.so +0 -0
  96. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/odin.abi3.so +0 -0
  97. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/org.abi3.so +0 -0
  98. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/pascal.abi3.so +0 -0
  99. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/pem.abi3.so +0 -0
  100. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/perl.abi3.so +0 -0
  101. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/pgn.abi3.so +0 -0
  102. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/po.abi3.so +0 -0
  103. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/pony.abi3.so +0 -0
  104. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/powershell.abi3.so +0 -0
  105. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/printf.abi3.so +0 -0
  106. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/prisma.abi3.so +0 -0
  107. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/properties.abi3.so +0 -0
  108. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/psv.abi3.so +0 -0
  109. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/puppet.abi3.so +0 -0
  110. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/purescript.abi3.so +0 -0
  111. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/pymanifest.abi3.so +0 -0
  112. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/python.abi3.so +0 -0
  113. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/qmldir.abi3.so +0 -0
  114. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/qmljs.abi3.so +0 -0
  115. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/query.abi3.so +0 -0
  116. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/r.abi3.so +0 -0
  117. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/racket.abi3.so +0 -0
  118. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/re2c.abi3.so +0 -0
  119. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/readline.abi3.so +0 -0
  120. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/requirements.abi3.so +0 -0
  121. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/ron.abi3.so +0 -0
  122. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/rst.abi3.so +0 -0
  123. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/ruby.abi3.so +0 -0
  124. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/rust.abi3.so +0 -0
  125. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/scala.abi3.so +0 -0
  126. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/scheme.abi3.so +0 -0
  127. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/scss.abi3.so +0 -0
  128. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/smali.abi3.so +0 -0
  129. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/smithy.abi3.so +0 -0
  130. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/solidity.abi3.so +0 -0
  131. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/sql.abi3.so +0 -0
  132. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/squirrel.abi3.so +0 -0
  133. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/starlark.abi3.so +0 -0
  134. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/svelte.abi3.so +0 -0
  135. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/swift.abi3.so +0 -0
  136. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/tablegen.abi3.so +0 -0
  137. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/tcl.abi3.so +0 -0
  138. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/terraform.abi3.so +0 -0
  139. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/test.abi3.so +0 -0
  140. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/thrift.abi3.so +0 -0
  141. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/toml.abi3.so +0 -0
  142. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/tsv.abi3.so +0 -0
  143. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/twig.abi3.so +0 -0
  144. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/typst.abi3.so +0 -0
  145. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/udev.abi3.so +0 -0
  146. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/ungrammar.abi3.so +0 -0
  147. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/uxntal.abi3.so +0 -0
  148. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/v.abi3.so +0 -0
  149. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/verilog.abi3.so +0 -0
  150. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/vhdl.abi3.so +0 -0
  151. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/vim.abi3.so +0 -0
  152. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/vue.abi3.so +0 -0
  153. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/wgsl.abi3.so +0 -0
  154. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/xcompose.abi3.so +0 -0
  155. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/yuck.abi3.so +0 -0
  156. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/bindings/zig.abi3.so +0 -0
  157. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack/py.typed +0 -0
  158. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack.egg-info/PKG-INFO +304 -0
  159. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack.egg-info/SOURCES.txt +160 -0
  160. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack.egg-info/dependency_links.txt +1 -0
  161. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack.egg-info/requires.txt +7 -0
  162. tree_sitter_language_pack-0.1.0/tree_sitter_language_pack.egg-info/top_level.txt +1 -0
@@ -0,0 +1,20 @@
1
+ Copyright 2024 Na'aman Hirschfeld
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
8
+
9
+ Copyright 2022 Grant Jenks
10
+
11
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
12
+ this file except in compliance with the License. You may obtain a copy of the
13
+ License at
14
+
15
+ http://www.apache.org/licenses/LICENSE-2.0
16
+
17
+ Unless required by applicable law or agreed to in writing, software distributed
18
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
19
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
20
+ specific language governing permissions and limitations under the License.
@@ -0,0 +1,304 @@
1
+ Metadata-Version: 2.1
2
+ Name: tree-sitter-language-pack
3
+ Version: 0.1.0
4
+ Summary: Extensive Language Pack for Tree-Sitter
5
+ Author-email: Na'aman Hirschfeld <nhirschfeld@gmail.com>
6
+ License: Copyright 2024 Na'aman Hirschfeld
7
+
8
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
11
+
12
+ THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
13
+
14
+ Copyright 2022 Grant Jenks
15
+
16
+ Licensed under the Apache License, Version 2.0 (the "License"); you may not use
17
+ this file except in compliance with the License. You may obtain a copy of the
18
+ License at
19
+
20
+ http://www.apache.org/licenses/LICENSE-2.0
21
+
22
+ Unless required by applicable law or agreed to in writing, software distributed
23
+ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
24
+ CONDITIONS OF ANY KIND, either express or implied. See the License for the
25
+ specific language governing permissions and limitations under the License.
26
+
27
+ Project-URL: homepage, https://github.com/Goldziher/tree-sitter-language-pack
28
+ Keywords: tree-sitter
29
+ Classifier: Development Status :: 4 - Beta
30
+ Classifier: Intended Audience :: Developers
31
+ Classifier: License :: OSI Approved :: MIT License
32
+ Classifier: Natural Language :: English
33
+ Classifier: Programming Language :: Python :: 3
34
+ Classifier: Programming Language :: Python :: 3.9
35
+ Classifier: Programming Language :: Python :: Implementation :: CPython
36
+ Classifier: Programming Language :: Python
37
+ Classifier: Typing :: Typed
38
+ Requires-Python: >=3.9.0
39
+ Description-Content-Type: text/markdown
40
+ License-File: LICENSE
41
+ Requires-Dist: tree-sitter>=0.22.0
42
+ Requires-Dist: tree-sitter-c-sharp>=0.21.2
43
+ Requires-Dist: tree-sitter-embedded-template>=0.21.0
44
+ Requires-Dist: tree-sitter-yaml>=0.6.0
45
+ Requires-Dist: tree-sitter-typescript>=0.21.1
46
+ Requires-Dist: tree-sitter-php>=0.22.5
47
+ Requires-Dist: tree-sitter-xml>=0.6.4
48
+
49
+ # Tree Sitter Language Pack
50
+
51
+ This package bundles a comprehensive collection of [tree-sitter](https://tree-sitter.github.io/tree-sitter/) languages
52
+ as both source distribution and pre-built wheels. It is compatible
53
+ with [tree-sitter](https://tree-sitter.github.io/tree-sitter/) v0.22.0 and above. It is strongly typed.
54
+
55
+ Notes:
56
+
57
+ - This package is a maintained and updated fork of
58
+ [tree-sitter-languages](https://github.com/grantjenks/py-tree-sitter-languages) by Grant Jenks, and it
59
+ incorporates code contributed by ObserverOfTime (see
60
+ this [PR](https://github.com/grantjenks/py-tree-sitter-languages/pull/65)).
61
+ - This package is MIT licensed and the original package of which this is a fork has an Apache 2.0 License. Both licenses
62
+ are available in the LICENSE file.
63
+ - All languages bundled by this package are licensed under permissive open-source licenses (MIT, Apache 2.0 etc.) only -
64
+ no GPL
65
+ licensed languages are included.
66
+
67
+ ## Installation
68
+
69
+ ```bash
70
+ pip install tree-sitter-language-pack
71
+ ```
72
+
73
+ ## Usage
74
+
75
+ This library exposes two functions `get_language` and `get_parser`.
76
+
77
+ ```python
78
+ from tree_sitter_language_pack import get_language, get_parser
79
+
80
+ python_lang = get_language('python') # this is an instance of tree_sitter.Language
81
+ python_parser = get_parser('python') # this is an instance of tree_sitter.Parser
82
+ ```
83
+
84
+ See the list of available languages below to get the name of the language you want to use.
85
+
86
+ ## Available Languages:
87
+
88
+ Each language below is identified by the key used to retrieve it from the `get_language` and `get_parser` functions.
89
+
90
+ - [actionscript](https://github.com/Rileran/tree-sitter-actionscript) - MIT License
91
+ - [ada](https://github.com/briot/tree-sitter-ada) - MIT License
92
+ - [agda](https://github.com/tree-sitter/tree-sitter-agda) - MIT License
93
+ - [arduino](https://github.com/tree-sitter-grammars/tree-sitter-arduino) - MIT License
94
+ - [asm](https://github.com/rush-rs/tree-sitter-asm) - MIT License
95
+ - [astro](https://github.com/virchau13/tree-sitter-astro) - MIT License
96
+ - [bash](https://github.com/tree-sitter/tree-sitter-bash) - MIT License
97
+ - [beancount](https://github.com/polarmutex/tree-sitter-beancount) - MIT License
98
+ - [bibtex](https://github.com/latex-lsp/tree-sitter-bibtex) - MIT License
99
+ - [bicep](https://github.com/tree-sitter-grammars/tree-sitter-bicep) - MIT License
100
+ - [bitbake](https://github.com/tree-sitter-grammars/tree-sitter-bitbake) - MIT License
101
+ - [c](https://github.com/tree-sitter/tree-sitter-c) - MIT License
102
+ - [cairo](https://github.com/tree-sitter-grammars/tree-sitter-cairo) - MIT License
103
+ - [capnp](https://github.com/tree-sitter-grammars/tree-sitter-capnp) - MIT License
104
+ - [chatito](https://github.com/tree-sitter-grammars/tree-sitter-chatito) - MIT License
105
+ - [clarity](https://github.com/xlittlerag/tree-sitter-clarity) - MIT License
106
+ - [clojure](https://github.com/sogaiu/tree-sitter-clojure) - CC0 1.0 Universal License
107
+ - [cmake](https://github.com/uyha/tree-sitter-cmake) - MIT License
108
+ - [comment](https://github.com/stsewd/tree-sitter-comment) - MIT License
109
+ - [commonlisp](https://github.com/tree-sitter-grammars/tree-sitter-commonlisp) - MIT License
110
+ - [cpon](https://github.com/tree-sitter-grammars/tree-sitter-cpon) - MIT License
111
+ - [cpp](https://github.com/tree-sitter/tree-sitter-cpp) - MIT License
112
+ - [csharp](https://github.com/tree-sitter/tree-sitter-c-sharp) - MIT License
113
+ - [css](https://github.com/tree-sitter/tree-sitter-css) - MIT License
114
+ - [csv](https://github.com/tree-sitter-grammars/tree-sitter-csv) - MIT License
115
+ - [cuda](https://github.com/tree-sitter-grammars/tree-sitter-cuda) - MIT License
116
+ - [d](https://github.com/gdamore/tree-sitter-d) - MIT License
117
+ - [dart](https://github.com/UserNobody14/tree-sitter-dart) - MIT License
118
+ - [dockerfile](https://github.com/camdencheek/tree-sitter-dockerfile) - MIT License
119
+ - [dot](https://github.com/rydesun/tree-sitter-dot) - MIT License
120
+ - [doxygen](https://github.com/tree-sitter-grammars/tree-sitter-doxygen) - MIT License
121
+ - [elisp](https://github.com/Wilfred/tree-sitter-elisp) - MIT License
122
+ - [elixir](https://github.com/elixir-lang/tree-sitter-elixir) - MIT License
123
+ - [elm](https://github.com/elm-tooling/tree-sitter-elm) - MIT License
124
+ - [embeddedtemplate](https://github.com/tree-sitter/tree-sitter-embedded-template) - MIT License
125
+ - [erlang](https://github.com/WhatsApp/tree-sitter-erlang) - MIT License
126
+ - [fennel](https://github.com/TravonteD/tree-sitter-fennel) - MIT License
127
+ - [firrtl](https://github.com/tree-sitter-grammars/tree-sitter-firrtl) - Apache License 2.0
128
+ - [fish](https://github.com/ram02z/tree-sitter-fish) - Unlicense license
129
+ - [fortran](https://github.com/stadelmanma/tree-sitter-fortran) - MIT License
130
+ - [func](https://github.com/tree-sitter-grammars/tree-sitter-func) - MIT License
131
+ - [gdscript](https://github.com/PrestonKnopp/tree-sitter-gdscript) - MIT License
132
+ - [gitattributes](https://github.com/tree-sitter-grammars/tree-sitter-gitattributes) - MIT License
133
+ - [gitcommit](https://github.com/gbprod/tree-sitter-gitcommit) - WTFPL License
134
+ - [gitignore](https://github.com/shunsambongi/tree-sitter-gitignore) - MIT License
135
+ - [gleam](https://github.com/gleam-lang/tree-sitter-gleam) - Apache-2.0 license
136
+ - [glsl](https://github.com/tree-sitter-grammars/tree-sitter-glsl) - MIT License
137
+ - [gn](https://github.com/tree-sitter-grammars/tree-sitter-gn) - MIT License
138
+ - [go](https://github.com/tree-sitter/tree-sitter-go) - MIT License
139
+ - [gomod](https://github.com/camdencheek/tree-sitter-go-mod) - MIT License
140
+ - [gosum](https://github.com/tree-sitter-grammars/tree-sitter-go-sum) - MIT License
141
+ - [groovy](https://github.com/Decodetalkers/tree-sitter-groovy) - MIT License
142
+ - [gstlaunch](https://github.com/tree-sitter-grammars/tree-sitter-gstlaunch) - MIT License
143
+ - [hack](https://github.com/slackhq/tree-sitter-hack) - MIT License
144
+ - [hare](https://github.com/tree-sitter-grammars/tree-sitter-hare) - MIT License
145
+ - [haskell](https://github.com/tree-sitter/tree-sitter-haskell) - MIT License
146
+ - [haxe](https://github.com/vantreeseba/tree-sitter-haxe) - MIT License
147
+ - [hcl](https://github.com/tree-sitter-grammars/tree-sitter-hcl) - Apache License 2.0
148
+ - [heex](https://github.com/phoenixframework/tree-sitter-heex) - MIT License
149
+ - [hlsl](https://github.com/tree-sitter-grammars/tree-sitter-hlsl) - MIT License
150
+ - [html](https://github.com/tree-sitter/tree-sitter-html) - MIT License
151
+ - [hyperlang](https://github.com/tree-sitter-grammars/tree-sitter-hyperlang) - MIT License
152
+ - [hyprlang](https://github.com/tree-sitter-grammars/tree-sitter-hyprlang) MIT License
153
+ - [ispc](https://github.com/tree-sitter-grammars/tree-sitter-ispc) - MIT License
154
+ - [janet](https://github.com/GrayJack/tree-sitter-janet) - BSD-3-Clause license
155
+ - [java](https://github.com/tree-sitter/tree-sitter-java) - MIT License
156
+ - [javascript](https://github.com/tree-sitter/tree-sitter-javascript) - MIT License
157
+ - [jsdoc](https://github.com/tree-sitter/tree-sitter-jsdoc) - MIT License
158
+ - [json](https://github.com/tree-sitter/tree-sitter-json) - MIT License
159
+ - [jsonnet](https://github.com/sourcegraph/tree-sitter-jsonnet) - MIT License
160
+ - [julia](https://github.com/tree-sitter/tree-sitter-julia) - MIT License
161
+ - [kconfig](https://github.com/tree-sitter-grammars/tree-sitter-kconfig) - MIT License
162
+ - [kdl](https://github.com/tree-sitter-grammars/tree-sitter-kdl) - MIT License
163
+ - [kotlin](https://github.com/fwcd/tree-sitter-kotlin) - MIT License
164
+ - [linkerscript](https://github.com/tree-sitter-grammars/tree-sitter-linkerscript) - MIT License
165
+ - [llvm](https://github.com/benwilliamgraham/tree-sitter-llvm) - MIT License
166
+ - [lua](https://github.com/tree-sitter-grammars/tree-sitter-lua) - MIT License
167
+ - [luadoc](https://github.com/tree-sitter-grammars/tree-sitter-luadoc) - MIT License
168
+ - [luap](https://github.com/tree-sitter-grammars/tree-sitter-luap) - MIT License
169
+ - [luau](https://github.com/tree-sitter-grammars/tree-sitter-luau) - MIT License
170
+ - [magik](https://github.com/krn-robin/tree-sitter-magik) - MIT License
171
+ - [make](https://github.com/tree-sitter-grammars/tree-sitter-make) - MIT License
172
+ - [markdown](https://github.com/tree-sitter-grammars/tree-sitter-markdown) - MIT License
173
+ - [matlab](https://github.com/acristoffers/tree-sitter-matlab) - MIT License
174
+ - [mermaid](https://github.com/monaqa/tree-sitter-mermaid) - MIT License
175
+ - [meson](https://github.com/tree-sitter-grammars/tree-sitter-meson) - MIT License
176
+ - [ninja](https://github.com/alemuller/tree-sitter-ninja) - MIT License
177
+ - [nix](https://github.com/nix-community/tree-sitter-nix) - MIT License
178
+ - [nqc](https://github.com/tree-sitter-grammars/tree-sitter-nqc) - MIT License
179
+ - [objc](https://github.com/tree-sitter-grammars/tree-sitter-objc) - MIT License
180
+ - [odin](https://github.com/tree-sitter-grammars/tree-sitter-odin) - MIT License
181
+ - [org](https://github.com/milisims/tree-sitter-org) - MIT License
182
+ - [pascal](https://github.com/Isopod/tree-sitter-pascal) - MIT License
183
+ - [pem](https://github.com/tree-sitter-grammars/tree-sitter-pem) - MIT License
184
+ - [perl](https://github.com/tree-sitter-perl/tree-sitter-perl) - Artistic License 2.0
185
+ - [pgn](https://github.com/rolandwalker/tree-sitter-pgn) - BSD-2-Clause license
186
+ - [php](https://github.com/tree-sitter/tree-sitter-php) - MIT License
187
+ - [po](https://github.com/tree-sitter-grammars/tree-sitter-po) - MIT License
188
+ - [pony](https://github.com/tree-sitter-grammars/tree-sitter-pony) - MIT License
189
+ - [powershell](https://github.com/airbus-cert/tree-sitter-powershell) - MIT License
190
+ - [printf](https://github.com/tree-sitter-grammars/tree-sitter-printf) - ISC License
191
+ - [prisma](https://github.com/LumaKernel/tree-sitter-prisma) - MIT License
192
+ - [properties](https://github.com/tree-sitter-grammars/tree-sitter-properties) - MIT License
193
+ - [psv](https://github.com/amaanq/tree-sitter-csv) - MIT License
194
+ - [puppet](https://github.com/tree-sitter-grammars/tree-sitter-puppet) - MIT License
195
+ - [purescript](https://github.com/postsolar/tree-sitter-purescript) - MIT License
196
+ - [pymanifest](https://github.com/tree-sitter-grammars/tree-sitter-pymanifest) - MIT License
197
+ - [python](https://github.com/tree-sitter/tree-sitter-python) - MIT License
198
+ - [ql](https://github.com/tree-sitter/tree-sitter-ql) - MIT License
199
+ - [qmldir](https://github.com/tree-sitter-grammars/tree-sitter-qmldir) - MIT License
200
+ - [query](https://github.com/tree-sitter-grammars/tree-sitter-query) - Apache License 2.0
201
+ - [r](https://github.com/r-lib/tree-sitter-r) - MIT License
202
+ - [racket](https://github.com/6cdh/tree-sitter-racket) - MIT License
203
+ - [rbs](https://github.com/joker1007/tree-sitter-rbs) - MIT License
204
+ - [re2c](https://github.com/tree-sitter-grammars/tree-sitter-re2c) - MIT License
205
+ - [readline](https://github.com/tree-sitter-grammars/tree-sitter-readline) - MIT License
206
+ - [requirements](https://github.com/tree-sitter-grammars/tree-sitter-requirements) - MIT License
207
+ - [ron](https://github.com/tree-sitter-grammars/tree-sitter-ron) - Apache License 2.0
208
+ - [rst](https://github.com/stsewd/tree-sitter-rst) - MIT License
209
+ - [ruby](https://github.com/tree-sitter/tree-sitter-ruby) - MIT License
210
+ - [rust](https://github.com/tree-sitter/tree-sitter-rust) - MIT License
211
+ - [scala](https://github.com/tree-sitter/tree-sitter-scala) - MIT License
212
+ - [scheme](https://github.com/6cdh/tree-sitter-scheme) - MIT License
213
+ - [scss](https://github.com/tree-sitter-grammars/tree-sitter-scss) - MIT License
214
+ - [slang](https://github.com/tree-sitter-grammars/tree-sitter-slang) - MIT License
215
+ - [smali](https://github.com/tree-sitter-grammars/tree-sitter-smali) - MIT License
216
+ - [smithy](https://github.com/indoorvivants/tree-sitter-smithy) - MIT License
217
+ - [solidity](https://github.com/JoranHonig/tree-sitter-solidity) - MIT License
218
+ - [sql](https://github.com/derekstride/tree-sitter-sql) - MIT License
219
+ - [squirrel](https://github.com/tree-sitter-grammars/tree-sitter-squirrel) - MIT License
220
+ - [starlark](https://github.com/tree-sitter-grammars/tree-sitter-starlark) - MIT License
221
+ - [svelte](https://github.com/tree-sitter-grammars/tree-sitter-svelte) - MIT License
222
+ - [swift](https://github.com/alex-pinkus/tree-sitter-swift) - MIT License
223
+ - [tablegen](https://github.com/tree-sitter-grammars/tree-sitter-tablegen) - MIT License
224
+ - [tcl](https://github.com/tree-sitter-grammars/tree-sitter-tcl) - MIT License
225
+ - [test](https://github.com/tree-sitter-grammars/tree-sitter-test) - MIT License
226
+ - [thrift](https://github.com/tree-sitter-grammars/tree-sitter-thrift) - MIT License
227
+ - [toml](https://github.com/tree-sitter-grammars/tree-sitter-toml) - MIT License
228
+ - [tsv](https://github.com/amaanq/tree-sitter-csv) - MIT License
229
+ - [twig](https://github.com/gbprod/tree-sitter-twig) - WTFPL License
230
+ - [typescript](https://github.com/tree-sitter/tree-sitter-typescript) - MIT License
231
+ - [typst](https://github.com/uben0/tree-sitter-typst) - MIT License
232
+ - [udev](https://github.com/tree-sitter-grammars/tree-sitter-udev) - MIT License
233
+ - [ungrammar](https://github.com/tree-sitter-grammars/tree-sitter-ungrammar) - MIT License
234
+ - [uxntal](https://github.com/tree-sitter-grammars/tree-sitter-uxntal) - MIT License
235
+ - [v](https://github.com/nedpals/tree-sitter-v) - MIT License
236
+ - [verilog](https://github.com/tree-sitter/tree-sitter-verilog) - MIT License
237
+ - [vhdl](https://github.com/alemuller/tree-sitter-vhdl) - MIT License
238
+ - [vim](https://github.com/tree-sitter-grammars/tree-sitter-vim) - MIT License
239
+ - [vue](https://github.com/tree-sitter-grammars/tree-sitter-vue) - MIT License
240
+ - [wgsl](https://github.com/szebniok/tree-sitter-wgsl) - MIT License
241
+ - [xcompose](https://github.com/tree-sitter-grammars/tree-sitter-xcompose) - MIT License
242
+ - [xml](https://github.com/tree-sitter-grammars/tree-sitter-xml) - MIT License
243
+ - [yaml](https://github.com/tree-sitter-grammars/tree-sitter-yaml) - MIT License
244
+ - [yuck](https://github.com/tree-sitter-grammars/tree-sitter-yuck) - MIT License
245
+ - [zig](https://github.com/maxxnino/tree-sitter-zig) - MIT License
246
+
247
+ ## Contributing
248
+
249
+ This library is open to and welcomes contributions.
250
+
251
+ ### Setup
252
+
253
+ 1. Fork the repository.
254
+ 2. Make sure to have [PDM](https://pdm-project.org/en/latest/) installed on your machine.
255
+ 3. You will also need the clang toolchain installed on your machine and available in path. Consult the pertinent
256
+ documentation for your operating system.
257
+ 4. Install and build locally by running `pdm install -v`.
258
+
259
+ ### Adding a new language
260
+
261
+ #### Adding a Binary Wheel Language
262
+
263
+ 1. Add the language to the [sources/language_definitions.json](sources/language_definitions.json) file
264
+ at the repository's root.
265
+
266
+ This file contains a mapping of language names to their respective repositories.
267
+
268
+ ```jsonc
269
+ {
270
+ "name": {
271
+ "repo": "https://github.com/...",
272
+ "branch": "master", // not mandatory
273
+ "directory": "sub-dir/something", // not mandatory
274
+ "generate": true // not mandatory
275
+ }
276
+ }
277
+ ```
278
+
279
+ That is, each object must have a `repo` key, and optionally a `branch`, `directory`, and `generate` keys.
280
+
281
+ - `repo` is the URL of the tree-sitter repository. This value is mandatory
282
+ - `branch` the branch of the repository to checkout. You should specify this only when the branch is not called `main` (
283
+ i.e. for `master` or other names, specify this).
284
+ - `directory` is the directory under which there is an `src` folder. This should be specified only in cases where
285
+ the `src` folder is not immediately under the root folder.
286
+ - `generate` is a flag that dictates whether the `tree-sitter-cli` generate command should be executed in the given
287
+ repository / directory combo. This should be specified only if the binding needs to be build in the repository.
288
+
289
+ 1. Update the `SupportedLanguage` literal type in the [__init__.py](./tree_sitter_language_pack/__init__.py) file.
290
+ 2. Build the bindings by executing: `pdm install -v`.
291
+ 3. Execute the tests with `pdm run test`.
292
+ 4. If the tests pass, commit your changes and open a pull request.
293
+
294
+ #### Adding an installed binding
295
+
296
+ Some bindings are not build from source but are rather installed via PDM and are added to the package dependencies in
297
+ the [pyproject.toml](./pyproject.toml) file. To add an installed package follow these steps:
298
+
299
+ 1. Install the bindings with `pdm add <bindings_package_name>`.
300
+ 2. Update both the literal type `InstalledBindings` and the `installed_bindings_map` dictionary in the
301
+ [__init .py _](./tree_sitter_language_pack/__init__.py) file.
302
+ 3. Build the bindings by executing: `pdm install -v`.
303
+ 4. Execute the tests with `pdm run test`.
304
+ 5. If the tests pass, commit your changes and open a pull request.
@@ -0,0 +1,256 @@
1
+ # Tree Sitter Language Pack
2
+
3
+ This package bundles a comprehensive collection of [tree-sitter](https://tree-sitter.github.io/tree-sitter/) languages
4
+ as both source distribution and pre-built wheels. It is compatible
5
+ with [tree-sitter](https://tree-sitter.github.io/tree-sitter/) v0.22.0 and above. It is strongly typed.
6
+
7
+ Notes:
8
+
9
+ - This package is a maintained and updated fork of
10
+ [tree-sitter-languages](https://github.com/grantjenks/py-tree-sitter-languages) by Grant Jenks, and it
11
+ incorporates code contributed by ObserverOfTime (see
12
+ this [PR](https://github.com/grantjenks/py-tree-sitter-languages/pull/65)).
13
+ - This package is MIT licensed and the original package of which this is a fork has an Apache 2.0 License. Both licenses
14
+ are available in the LICENSE file.
15
+ - All languages bundled by this package are licensed under permissive open-source licenses (MIT, Apache 2.0 etc.) only -
16
+ no GPL
17
+ licensed languages are included.
18
+
19
+ ## Installation
20
+
21
+ ```bash
22
+ pip install tree-sitter-language-pack
23
+ ```
24
+
25
+ ## Usage
26
+
27
+ This library exposes two functions `get_language` and `get_parser`.
28
+
29
+ ```python
30
+ from tree_sitter_language_pack import get_language, get_parser
31
+
32
+ python_lang = get_language('python') # this is an instance of tree_sitter.Language
33
+ python_parser = get_parser('python') # this is an instance of tree_sitter.Parser
34
+ ```
35
+
36
+ See the list of available languages below to get the name of the language you want to use.
37
+
38
+ ## Available Languages:
39
+
40
+ Each language below is identified by the key used to retrieve it from the `get_language` and `get_parser` functions.
41
+
42
+ - [actionscript](https://github.com/Rileran/tree-sitter-actionscript) - MIT License
43
+ - [ada](https://github.com/briot/tree-sitter-ada) - MIT License
44
+ - [agda](https://github.com/tree-sitter/tree-sitter-agda) - MIT License
45
+ - [arduino](https://github.com/tree-sitter-grammars/tree-sitter-arduino) - MIT License
46
+ - [asm](https://github.com/rush-rs/tree-sitter-asm) - MIT License
47
+ - [astro](https://github.com/virchau13/tree-sitter-astro) - MIT License
48
+ - [bash](https://github.com/tree-sitter/tree-sitter-bash) - MIT License
49
+ - [beancount](https://github.com/polarmutex/tree-sitter-beancount) - MIT License
50
+ - [bibtex](https://github.com/latex-lsp/tree-sitter-bibtex) - MIT License
51
+ - [bicep](https://github.com/tree-sitter-grammars/tree-sitter-bicep) - MIT License
52
+ - [bitbake](https://github.com/tree-sitter-grammars/tree-sitter-bitbake) - MIT License
53
+ - [c](https://github.com/tree-sitter/tree-sitter-c) - MIT License
54
+ - [cairo](https://github.com/tree-sitter-grammars/tree-sitter-cairo) - MIT License
55
+ - [capnp](https://github.com/tree-sitter-grammars/tree-sitter-capnp) - MIT License
56
+ - [chatito](https://github.com/tree-sitter-grammars/tree-sitter-chatito) - MIT License
57
+ - [clarity](https://github.com/xlittlerag/tree-sitter-clarity) - MIT License
58
+ - [clojure](https://github.com/sogaiu/tree-sitter-clojure) - CC0 1.0 Universal License
59
+ - [cmake](https://github.com/uyha/tree-sitter-cmake) - MIT License
60
+ - [comment](https://github.com/stsewd/tree-sitter-comment) - MIT License
61
+ - [commonlisp](https://github.com/tree-sitter-grammars/tree-sitter-commonlisp) - MIT License
62
+ - [cpon](https://github.com/tree-sitter-grammars/tree-sitter-cpon) - MIT License
63
+ - [cpp](https://github.com/tree-sitter/tree-sitter-cpp) - MIT License
64
+ - [csharp](https://github.com/tree-sitter/tree-sitter-c-sharp) - MIT License
65
+ - [css](https://github.com/tree-sitter/tree-sitter-css) - MIT License
66
+ - [csv](https://github.com/tree-sitter-grammars/tree-sitter-csv) - MIT License
67
+ - [cuda](https://github.com/tree-sitter-grammars/tree-sitter-cuda) - MIT License
68
+ - [d](https://github.com/gdamore/tree-sitter-d) - MIT License
69
+ - [dart](https://github.com/UserNobody14/tree-sitter-dart) - MIT License
70
+ - [dockerfile](https://github.com/camdencheek/tree-sitter-dockerfile) - MIT License
71
+ - [dot](https://github.com/rydesun/tree-sitter-dot) - MIT License
72
+ - [doxygen](https://github.com/tree-sitter-grammars/tree-sitter-doxygen) - MIT License
73
+ - [elisp](https://github.com/Wilfred/tree-sitter-elisp) - MIT License
74
+ - [elixir](https://github.com/elixir-lang/tree-sitter-elixir) - MIT License
75
+ - [elm](https://github.com/elm-tooling/tree-sitter-elm) - MIT License
76
+ - [embeddedtemplate](https://github.com/tree-sitter/tree-sitter-embedded-template) - MIT License
77
+ - [erlang](https://github.com/WhatsApp/tree-sitter-erlang) - MIT License
78
+ - [fennel](https://github.com/TravonteD/tree-sitter-fennel) - MIT License
79
+ - [firrtl](https://github.com/tree-sitter-grammars/tree-sitter-firrtl) - Apache License 2.0
80
+ - [fish](https://github.com/ram02z/tree-sitter-fish) - Unlicense license
81
+ - [fortran](https://github.com/stadelmanma/tree-sitter-fortran) - MIT License
82
+ - [func](https://github.com/tree-sitter-grammars/tree-sitter-func) - MIT License
83
+ - [gdscript](https://github.com/PrestonKnopp/tree-sitter-gdscript) - MIT License
84
+ - [gitattributes](https://github.com/tree-sitter-grammars/tree-sitter-gitattributes) - MIT License
85
+ - [gitcommit](https://github.com/gbprod/tree-sitter-gitcommit) - WTFPL License
86
+ - [gitignore](https://github.com/shunsambongi/tree-sitter-gitignore) - MIT License
87
+ - [gleam](https://github.com/gleam-lang/tree-sitter-gleam) - Apache-2.0 license
88
+ - [glsl](https://github.com/tree-sitter-grammars/tree-sitter-glsl) - MIT License
89
+ - [gn](https://github.com/tree-sitter-grammars/tree-sitter-gn) - MIT License
90
+ - [go](https://github.com/tree-sitter/tree-sitter-go) - MIT License
91
+ - [gomod](https://github.com/camdencheek/tree-sitter-go-mod) - MIT License
92
+ - [gosum](https://github.com/tree-sitter-grammars/tree-sitter-go-sum) - MIT License
93
+ - [groovy](https://github.com/Decodetalkers/tree-sitter-groovy) - MIT License
94
+ - [gstlaunch](https://github.com/tree-sitter-grammars/tree-sitter-gstlaunch) - MIT License
95
+ - [hack](https://github.com/slackhq/tree-sitter-hack) - MIT License
96
+ - [hare](https://github.com/tree-sitter-grammars/tree-sitter-hare) - MIT License
97
+ - [haskell](https://github.com/tree-sitter/tree-sitter-haskell) - MIT License
98
+ - [haxe](https://github.com/vantreeseba/tree-sitter-haxe) - MIT License
99
+ - [hcl](https://github.com/tree-sitter-grammars/tree-sitter-hcl) - Apache License 2.0
100
+ - [heex](https://github.com/phoenixframework/tree-sitter-heex) - MIT License
101
+ - [hlsl](https://github.com/tree-sitter-grammars/tree-sitter-hlsl) - MIT License
102
+ - [html](https://github.com/tree-sitter/tree-sitter-html) - MIT License
103
+ - [hyperlang](https://github.com/tree-sitter-grammars/tree-sitter-hyperlang) - MIT License
104
+ - [hyprlang](https://github.com/tree-sitter-grammars/tree-sitter-hyprlang) MIT License
105
+ - [ispc](https://github.com/tree-sitter-grammars/tree-sitter-ispc) - MIT License
106
+ - [janet](https://github.com/GrayJack/tree-sitter-janet) - BSD-3-Clause license
107
+ - [java](https://github.com/tree-sitter/tree-sitter-java) - MIT License
108
+ - [javascript](https://github.com/tree-sitter/tree-sitter-javascript) - MIT License
109
+ - [jsdoc](https://github.com/tree-sitter/tree-sitter-jsdoc) - MIT License
110
+ - [json](https://github.com/tree-sitter/tree-sitter-json) - MIT License
111
+ - [jsonnet](https://github.com/sourcegraph/tree-sitter-jsonnet) - MIT License
112
+ - [julia](https://github.com/tree-sitter/tree-sitter-julia) - MIT License
113
+ - [kconfig](https://github.com/tree-sitter-grammars/tree-sitter-kconfig) - MIT License
114
+ - [kdl](https://github.com/tree-sitter-grammars/tree-sitter-kdl) - MIT License
115
+ - [kotlin](https://github.com/fwcd/tree-sitter-kotlin) - MIT License
116
+ - [linkerscript](https://github.com/tree-sitter-grammars/tree-sitter-linkerscript) - MIT License
117
+ - [llvm](https://github.com/benwilliamgraham/tree-sitter-llvm) - MIT License
118
+ - [lua](https://github.com/tree-sitter-grammars/tree-sitter-lua) - MIT License
119
+ - [luadoc](https://github.com/tree-sitter-grammars/tree-sitter-luadoc) - MIT License
120
+ - [luap](https://github.com/tree-sitter-grammars/tree-sitter-luap) - MIT License
121
+ - [luau](https://github.com/tree-sitter-grammars/tree-sitter-luau) - MIT License
122
+ - [magik](https://github.com/krn-robin/tree-sitter-magik) - MIT License
123
+ - [make](https://github.com/tree-sitter-grammars/tree-sitter-make) - MIT License
124
+ - [markdown](https://github.com/tree-sitter-grammars/tree-sitter-markdown) - MIT License
125
+ - [matlab](https://github.com/acristoffers/tree-sitter-matlab) - MIT License
126
+ - [mermaid](https://github.com/monaqa/tree-sitter-mermaid) - MIT License
127
+ - [meson](https://github.com/tree-sitter-grammars/tree-sitter-meson) - MIT License
128
+ - [ninja](https://github.com/alemuller/tree-sitter-ninja) - MIT License
129
+ - [nix](https://github.com/nix-community/tree-sitter-nix) - MIT License
130
+ - [nqc](https://github.com/tree-sitter-grammars/tree-sitter-nqc) - MIT License
131
+ - [objc](https://github.com/tree-sitter-grammars/tree-sitter-objc) - MIT License
132
+ - [odin](https://github.com/tree-sitter-grammars/tree-sitter-odin) - MIT License
133
+ - [org](https://github.com/milisims/tree-sitter-org) - MIT License
134
+ - [pascal](https://github.com/Isopod/tree-sitter-pascal) - MIT License
135
+ - [pem](https://github.com/tree-sitter-grammars/tree-sitter-pem) - MIT License
136
+ - [perl](https://github.com/tree-sitter-perl/tree-sitter-perl) - Artistic License 2.0
137
+ - [pgn](https://github.com/rolandwalker/tree-sitter-pgn) - BSD-2-Clause license
138
+ - [php](https://github.com/tree-sitter/tree-sitter-php) - MIT License
139
+ - [po](https://github.com/tree-sitter-grammars/tree-sitter-po) - MIT License
140
+ - [pony](https://github.com/tree-sitter-grammars/tree-sitter-pony) - MIT License
141
+ - [powershell](https://github.com/airbus-cert/tree-sitter-powershell) - MIT License
142
+ - [printf](https://github.com/tree-sitter-grammars/tree-sitter-printf) - ISC License
143
+ - [prisma](https://github.com/LumaKernel/tree-sitter-prisma) - MIT License
144
+ - [properties](https://github.com/tree-sitter-grammars/tree-sitter-properties) - MIT License
145
+ - [psv](https://github.com/amaanq/tree-sitter-csv) - MIT License
146
+ - [puppet](https://github.com/tree-sitter-grammars/tree-sitter-puppet) - MIT License
147
+ - [purescript](https://github.com/postsolar/tree-sitter-purescript) - MIT License
148
+ - [pymanifest](https://github.com/tree-sitter-grammars/tree-sitter-pymanifest) - MIT License
149
+ - [python](https://github.com/tree-sitter/tree-sitter-python) - MIT License
150
+ - [ql](https://github.com/tree-sitter/tree-sitter-ql) - MIT License
151
+ - [qmldir](https://github.com/tree-sitter-grammars/tree-sitter-qmldir) - MIT License
152
+ - [query](https://github.com/tree-sitter-grammars/tree-sitter-query) - Apache License 2.0
153
+ - [r](https://github.com/r-lib/tree-sitter-r) - MIT License
154
+ - [racket](https://github.com/6cdh/tree-sitter-racket) - MIT License
155
+ - [rbs](https://github.com/joker1007/tree-sitter-rbs) - MIT License
156
+ - [re2c](https://github.com/tree-sitter-grammars/tree-sitter-re2c) - MIT License
157
+ - [readline](https://github.com/tree-sitter-grammars/tree-sitter-readline) - MIT License
158
+ - [requirements](https://github.com/tree-sitter-grammars/tree-sitter-requirements) - MIT License
159
+ - [ron](https://github.com/tree-sitter-grammars/tree-sitter-ron) - Apache License 2.0
160
+ - [rst](https://github.com/stsewd/tree-sitter-rst) - MIT License
161
+ - [ruby](https://github.com/tree-sitter/tree-sitter-ruby) - MIT License
162
+ - [rust](https://github.com/tree-sitter/tree-sitter-rust) - MIT License
163
+ - [scala](https://github.com/tree-sitter/tree-sitter-scala) - MIT License
164
+ - [scheme](https://github.com/6cdh/tree-sitter-scheme) - MIT License
165
+ - [scss](https://github.com/tree-sitter-grammars/tree-sitter-scss) - MIT License
166
+ - [slang](https://github.com/tree-sitter-grammars/tree-sitter-slang) - MIT License
167
+ - [smali](https://github.com/tree-sitter-grammars/tree-sitter-smali) - MIT License
168
+ - [smithy](https://github.com/indoorvivants/tree-sitter-smithy) - MIT License
169
+ - [solidity](https://github.com/JoranHonig/tree-sitter-solidity) - MIT License
170
+ - [sql](https://github.com/derekstride/tree-sitter-sql) - MIT License
171
+ - [squirrel](https://github.com/tree-sitter-grammars/tree-sitter-squirrel) - MIT License
172
+ - [starlark](https://github.com/tree-sitter-grammars/tree-sitter-starlark) - MIT License
173
+ - [svelte](https://github.com/tree-sitter-grammars/tree-sitter-svelte) - MIT License
174
+ - [swift](https://github.com/alex-pinkus/tree-sitter-swift) - MIT License
175
+ - [tablegen](https://github.com/tree-sitter-grammars/tree-sitter-tablegen) - MIT License
176
+ - [tcl](https://github.com/tree-sitter-grammars/tree-sitter-tcl) - MIT License
177
+ - [test](https://github.com/tree-sitter-grammars/tree-sitter-test) - MIT License
178
+ - [thrift](https://github.com/tree-sitter-grammars/tree-sitter-thrift) - MIT License
179
+ - [toml](https://github.com/tree-sitter-grammars/tree-sitter-toml) - MIT License
180
+ - [tsv](https://github.com/amaanq/tree-sitter-csv) - MIT License
181
+ - [twig](https://github.com/gbprod/tree-sitter-twig) - WTFPL License
182
+ - [typescript](https://github.com/tree-sitter/tree-sitter-typescript) - MIT License
183
+ - [typst](https://github.com/uben0/tree-sitter-typst) - MIT License
184
+ - [udev](https://github.com/tree-sitter-grammars/tree-sitter-udev) - MIT License
185
+ - [ungrammar](https://github.com/tree-sitter-grammars/tree-sitter-ungrammar) - MIT License
186
+ - [uxntal](https://github.com/tree-sitter-grammars/tree-sitter-uxntal) - MIT License
187
+ - [v](https://github.com/nedpals/tree-sitter-v) - MIT License
188
+ - [verilog](https://github.com/tree-sitter/tree-sitter-verilog) - MIT License
189
+ - [vhdl](https://github.com/alemuller/tree-sitter-vhdl) - MIT License
190
+ - [vim](https://github.com/tree-sitter-grammars/tree-sitter-vim) - MIT License
191
+ - [vue](https://github.com/tree-sitter-grammars/tree-sitter-vue) - MIT License
192
+ - [wgsl](https://github.com/szebniok/tree-sitter-wgsl) - MIT License
193
+ - [xcompose](https://github.com/tree-sitter-grammars/tree-sitter-xcompose) - MIT License
194
+ - [xml](https://github.com/tree-sitter-grammars/tree-sitter-xml) - MIT License
195
+ - [yaml](https://github.com/tree-sitter-grammars/tree-sitter-yaml) - MIT License
196
+ - [yuck](https://github.com/tree-sitter-grammars/tree-sitter-yuck) - MIT License
197
+ - [zig](https://github.com/maxxnino/tree-sitter-zig) - MIT License
198
+
199
+ ## Contributing
200
+
201
+ This library is open to and welcomes contributions.
202
+
203
+ ### Setup
204
+
205
+ 1. Fork the repository.
206
+ 2. Make sure to have [PDM](https://pdm-project.org/en/latest/) installed on your machine.
207
+ 3. You will also need the clang toolchain installed on your machine and available in path. Consult the pertinent
208
+ documentation for your operating system.
209
+ 4. Install and build locally by running `pdm install -v`.
210
+
211
+ ### Adding a new language
212
+
213
+ #### Adding a Binary Wheel Language
214
+
215
+ 1. Add the language to the [sources/language_definitions.json](sources/language_definitions.json) file
216
+ at the repository's root.
217
+
218
+ This file contains a mapping of language names to their respective repositories.
219
+
220
+ ```jsonc
221
+ {
222
+ "name": {
223
+ "repo": "https://github.com/...",
224
+ "branch": "master", // not mandatory
225
+ "directory": "sub-dir/something", // not mandatory
226
+ "generate": true // not mandatory
227
+ }
228
+ }
229
+ ```
230
+
231
+ That is, each object must have a `repo` key, and optionally a `branch`, `directory`, and `generate` keys.
232
+
233
+ - `repo` is the URL of the tree-sitter repository. This value is mandatory
234
+ - `branch` the branch of the repository to checkout. You should specify this only when the branch is not called `main` (
235
+ i.e. for `master` or other names, specify this).
236
+ - `directory` is the directory under which there is an `src` folder. This should be specified only in cases where
237
+ the `src` folder is not immediately under the root folder.
238
+ - `generate` is a flag that dictates whether the `tree-sitter-cli` generate command should be executed in the given
239
+ repository / directory combo. This should be specified only if the binding needs to be build in the repository.
240
+
241
+ 1. Update the `SupportedLanguage` literal type in the [__init__.py](./tree_sitter_language_pack/__init__.py) file.
242
+ 2. Build the bindings by executing: `pdm install -v`.
243
+ 3. Execute the tests with `pdm run test`.
244
+ 4. If the tests pass, commit your changes and open a pull request.
245
+
246
+ #### Adding an installed binding
247
+
248
+ Some bindings are not build from source but are rather installed via PDM and are added to the package dependencies in
249
+ the [pyproject.toml](./pyproject.toml) file. To add an installed package follow these steps:
250
+
251
+ 1. Install the bindings with `pdm add <bindings_package_name>`.
252
+ 2. Update both the literal type `InstalledBindings` and the `installed_bindings_map` dictionary in the
253
+ [__init .py _](./tree_sitter_language_pack/__init__.py) file.
254
+ 3. Build the bindings by executing: `pdm install -v`.
255
+ 4. Execute the tests with `pdm run test`.
256
+ 5. If the tests pass, commit your changes and open a pull request.