Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oxisto/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.
https://github.com/oxisto/kotlintree
kotlin tree-sitter
Last synced: about 2 months ago
JSON representation
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.
- Host: GitHub
- URL: https://github.com/oxisto/kotlintree
- Owner: oxisto
- License: apache-2.0
- Created: 2021-12-10T07:59:54.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-28T15:19:16.000Z (almost 2 years ago)
- Last Synced: 2024-11-20T00:11:40.700Z (2 months ago)
- Topics: kotlin, tree-sitter
- Language: Kotlin
- Homepage:
- Size: 90.8 KB
- Stars: 52
- Watchers: 2
- Forks: 5
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cxx-parsers - Kotlin bindings
README
# kotlintree
This little project provides Kotlin bindings for the popular [tree-sitter](http://github.com/tree-sitter/tree-sitter) library. Currently it only supports the Kotlin JVM target, but Kotlin native is on the roadmap (see [#3](https://github.com/oxisto/kotlintree/issues/3)).
It currently ships `tree-sitter` itself, as well as `tree-sitter-cpp`. We might want to include more languages (see [#2](https://github.com/oxisto/kotlintree/issues/2))
## Build
Just run `./gradlew build`, this should build everything you need into a packaged jar, including the necessary native libraries.
## Usage
For now, only local builds are supported. You can install the package using `./gradlew publishToMavenLocal`.
In your gradle.build.kts:
```kotlin
repositories {
mavenLocal()
}dependencies {
implementation("io.github.oxisto:kotlin-tree-jna:0.0.0-SNAPSHOT")
}
```