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 tree-sitter
itself, as well as tree-sitter-cpp
. We might want to include more languages (see #2)
Just run ./gradlew build
, this should build everything you need into a packaged jar, including the necessary native libraries.
For now, only local builds are supported. You can install the package using ./gradlew publishToMavenLocal
.
In your gradle.build.kts:
repositories {
mavenLocal()
}
dependencies {
implementation("io.github.oxisto:kotlin-tree-jna:0.0.0-SNAPSHOT")
}