Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidelettieri/treesitter-bindings
A nuget package that provides tree-sitter bindings
https://github.com/davidelettieri/treesitter-bindings
bindings csharp tree-sitter
Last synced: about 10 hours ago
JSON representation
A nuget package that provides tree-sitter bindings
- Host: GitHub
- URL: https://github.com/davidelettieri/treesitter-bindings
- Owner: davidelettieri
- License: mit
- Created: 2023-04-08T14:31:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-11T23:02:04.000Z (about 1 month ago)
- Last Synced: 2024-10-12T23:09:52.044Z (about 1 month ago)
- Topics: bindings, csharp, tree-sitter
- Language: C#
- Homepage:
- Size: 60 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Tree sitter bindings
This repo is **poorly** hacked together, in particular because I have no knowledge or experience with c/c++ development.
The sample project is working within the dev container (using podman), it is working also on my fedora 40 box with the additional requirement of installing `libcxx`.
That library is installed also in the dev container and it is used to build and user `libtree-sitter-ruby`. I could package in the runtime package but I'm not sure it's the best solution.I messed up a bit with the runtime packages versioning, the most updated version, and the one recommended to be used is `0.20.8-extra.1`. This includes compiled libraries for tree-sitter and all the languages used in my sample project. It will be pulled automatically when using `TreeSitter.Bindings`.
Packages are published on `nuget.org`, if you happen to use it let me know!
## How to run it
Open the folder with `Dev Containers`.
Run the `build.sh` script from the root folder to generate the bindings.
```bash
bash scripts/build.sh
```Run the sample from the root folder
```
dotnet run --project samples/TreeSitter.Bindings.Sample/TreeSitter.Bindings.Sample.csproj
```### Remove submodule
git rm
remove folder .git/module/