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
+8-14Lines changed: 8 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,25 +46,19 @@ Use [ast-grep playground (forked version)][playground].
46
46
47
47
### Local
48
48
49
-
First, compile https://github.com/uben0/tree-sitter-typst to [add typst support](https://ast-grep.github.io/advanced/custom-language.html).
49
+
First, put the tree-sitter-typst dynamic library beside this README. It will [add typst support to ast-grep](https://ast-grep.github.io/advanced/custom-language.html).
50
50
51
-
You could use GitHub Codespaces or Gitpod to compile:
- Run `just setup` to download it with GitHub CLI.
56
54
57
-
# Compile for Linux
58
-
tree-sitter build --output tree-sitter-typst.so
55
+
- Manually download it from [](https://github.com/YDX-2147483647/ast-grep-typst/actions/workflows/build-tree-sitter.yml).
# At the end of the build process, tree-sitter will complain that “tree-sitter-typst.dll: invalid ELF header”, because it fails to verify dll on Linux.
64
-
# You could ignore this error and manually verify the dll on Windows.
65
-
```
57
+
Choose the latest run, scroll down to _Artifacts_, select`*.so`for Linux or `*.dll`for Windows, and extract the downloaded zip file.
58
+
59
+
- (For professionals only) Compile it from https://github.com/uben0/tree-sitter-typst.
66
60
67
-
Download `tree-sitter-typst.{so,dll}` and put it at the root directory of this project.
61
+
You could open that repo with GitHub Codespaces or Gitpod. Please refer to [the workflow file](./.github/workflows/build-tree-sitter.yml) for more info.
68
62
69
63
After that, you can use `ast-grep`. Please refer to [Quick Start | ast-grep](https://ast-grep.github.io/guide/quick-start.html) for more information.
0 commit comments