Skip to content

Commit 3927825

Browse files
committed
Adopt readme for newest release
1 parent ff453e9 commit 3927825

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

README.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,16 @@ The package is tested under Python 3. It can be installed via:
2323
pip install code-ast
2424
```
2525

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:
2733
```bash
2834
pip install tree_sitter_languages
2935
```
30-
If `tree_sitter_language` is not installed, `code_ast` will try
31-
to download and compile the selected language from scratch.
3236

3337
## Quick start
3438
code.ast can parse nearly any program code in a few lines of code:

0 commit comments

Comments
 (0)