kotlintree
Описание
This little project provides Kotlin bindings for the popular tree-sitter library. Currently it only supports the Kotlin JVM target, but Kotlin native is on the roadmap.
Языки
Kotlin
- C
- C++
kotlintree
This little project provides Kotlin bindings for the popular tree-sitter library. Currently it only supports the Kotlin JVM target, but Kotlin native is on the roadmap (see #3).
It currently ships forks of
itself,
as well as
.
We might want to include more languages (see #2).
Build
Just run
, this should build everything you need into a packaged jar, including the necessary native libraries.
Usage
The latest release is available from GitHub Packages.
For
:
repositories { maven { name = "0x6675636b796f75676974687562/kotlintree" url = uri("https://maven.pkg.github.com/0x6675636b796f75676974687562/kotlintree") credentials { username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR") password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN") } }}
For
:
dependencyResolutionManagement { repositories { maven { name = "0x6675636b796f75676974687562/kotlintree" url = uri("https://maven.pkg.github.com/0x6675636b796f75676974687562/kotlintree") credentials { username = providers.gradleProperty("gpr.user").orNull ?: System.getenv("GITHUB_ACTOR") password = providers.gradleProperty("gpr.key").orNull ?: System.getenv("GITHUB_TOKEN") } } }}
Then add the dependency as usual:
dependencies { implementation("io.github.oxisto:kotlin-tree-jna:0.0.2")}