You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,12 +23,16 @@ The package is tested under Python 3. It can be installed via:
23
23
pip install code-ast
24
24
```
25
25
26
-
Note: Install `tree_sitter_language` to utilize pre-compiled languages via:
26
+
Note: You need to install the different tree-sitter languages as Python packages.
27
+
For example, for Python, you need to install `tree-sitter-python` via PIP:
28
+
```bash
29
+
pip install tree-sitter-python
30
+
```
31
+
32
+
Note (since tree-sitter v0.22.0): Autoloading of languages or installation with `tree_sitter_language` to utilize pre-compiled languages is deprecated. If you fix the tree-sitter version to `0.21.3` than you can make use of pre-compiled languages via:
27
33
```bash
28
34
pip install tree_sitter_languages
29
35
```
30
-
If `tree_sitter_language` is not installed, `code_ast` will try
31
-
to download and compile the selected language from scratch.
32
36
33
37
## Quick start
34
38
code.ast can parse nearly any program code in a few lines of code:
0 commit comments