This little project provides Kotlin bindings for the popular tree-sitter library

Related tags

App kotlin tree-sitter
Overview

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 tree-sitter itself, as well as tree-sitter-cpp. We might want to include more languages (see #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:

repositories {
    mavenLocal()
}

dependencies {
    implementation("io.github.oxisto:kotlin-tree-jna:0.0.0-SNAPSHOT")
}
You might also like...
Movie streaming is an android app that show us last,newest,top imdb and popular movies.
Movie streaming is an android app that show us last,newest,top imdb and popular movies.

Movies-Streaming-Android-App An Android application which shows Popular, New Movies, Top Rated movies and all the details of any movie like- Cast, Rev

The App Loads list of popular movies from a mock API and shows in a recyclerView
The App Loads list of popular movies from a mock API and shows in a recyclerView

popular-movies-app About The App Loads list of popular movies from a mock API and shows in a recyclerView. Any item can be clicked to open the Movie D

Program, created to make popular adb and fastboot commands easier to use
Program, created to make popular adb and fastboot commands easier to use

Android Tool What is it? Android Tool is a powerful and beautiful program, created to make popular adb and fastboot commands easier to use. A dark the

Movie Info - MovieInfo app that recieves popular movies and allow the user to search for specific movie through the restapi
Movie Info - MovieInfo app that recieves popular movies and allow the user to search for specific movie through the restapi

Movie_Info MovieInfo app that recieves popular movies and allow the user to sear

Keep track of popular & top rated movies and see movie details

Movies Keep track of popular & top rated movies and see movie details Features Keep track of popular & top rated movies See movie details Libraries Je

 A music picker library for React Native. Provides access to the system's UI for selecting songs from the phone's music library.
A music picker library for React Native. Provides access to the system's UI for selecting songs from the phone's music library.

Expo Music Picker A music picker library for React Native. Provides access to the system's UI for selecting songs from the phone's music library. Supp

Brazilian Holidays: a Kotlin/Java library that provides resources to consult Brazilian holidays and business days

Leia esta documentação em Português. Brazilian Holidays Brazilian Holidays is a

Spantastic - an Android library that provides a simple and Kotlin fluent API for creating Android Spannable
Spantastic - an Android library that provides a simple and Kotlin fluent API for creating Android Spannable

Spantastic is an Android library that provides a simple and Kotlin fluent API for creating Android Spannable. This library wrappers SpannableStringBuilder and add methods to easily decorate the text with multiple spans.

Andorid app which provides a bunch of useful Linux commands.
Andorid app which provides a bunch of useful Linux commands.

Linux Command Library for Android The app currently has 3203 manual pages, 1351 one-line scripts and a bunch of general terminal tips. It works 100% o

Comments
  • How to use

    How to use

    Maybe this is a stupid question, but I've never used Grande. Can you make a step by step instruction what to do after creating a console hello world project on kotlin to use tree sitter?

    Here how my build.grandle.kts looks now

    import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
    
    plugins {
        kotlin("jvm") version "1.6.10"
        application
    }
    
    group = "me.gavr"
    version = "1.0-SNAPSHOT"
    
    repositories {
        mavenCentral()
    }
    
    
    
    tasks.withType<KotlinCompile>() {
        kotlinOptions.jvmTarget = "1.8"
    }
    
    dependencies {
        implementation("io.github.oxisto:kotlin-tree-jna:0.0.0-SNAPSHOT")
    }
    
    application {
        mainClass.set("MainKt")
    }
    

    Error:

    Could not find io.github.oxisto:kotlin-tree-jna:0.0.0-SNAPSHOT.
    Searched in the following locations:
      - https://repo.maven.apache.org/maven2/io/github/oxisto/kotlin-tree-jna/0.0.0-SNAPSHOT/maven-metadata.xml
      - https://repo.maven.apache.org/maven2/io/github/oxisto/kotlin-tree-jna/0.0.0-SNAPSHOT/kotlin-tree-jna-0.0.0-SNAPSHOT.pom
    

    I build project with ./gradlew build

    2194 warnings generated.
    
    BUILD SUCCESSFUL in 5m 5s
    12 actionable tasks: 12 executed
    

    Then as I undestand I need to use ./gradlew publishToMavenLocal. but it fails:

    ~/b/L/kotlintree-main> ./gradlew build./gradlew publishToMavenLocal
    
    FAILURE: Build failed with an exception.
    
    * What went wrong:
    Task 'build./gradlew' not found in root project 'kotlin-tree'.
    
    * Try:
    > Run gradlew tasks to get a list of available tasks.
    > Run with --stacktrace option to get the stack trace.
    > Run with --info or --debug option to get more log output.
    > Run with --scan to get full insights.
    
    * Get more help at https://help.gradle.org
    
    BUILD FAILED in 696ms
    

    And there really nothing in build folder:

    ~/b/L/k/build> tree .
    .
    └── kotlin
        └── sessions
    
    2 directories, 0 files
    
    opened by gavr123456789 0
  • Support Kotlin native

    Support Kotlin native

    The project is already set-up as a multi module so it should be easy to have another module for Kotlin native and use the tree-sitter C API directly instead of JNA. Possibly, we need to extract some common interfaces between both.

    opened by oxisto 0
Owner
Christian Banse
Christian Banse
A blogging mobile application built with Kotlin using MVC design pattern and Take some advantage of Jetpack , View & Data Binding It's a mimic for Tumblr application , But a little prettier than him 😉

A blogging mobile application built with Kotlin using MVC design pattern and Take some advantage of Jetpack , View & Data Binding It's a mimic for Tum

Ahmed Ihab 17 Dec 23, 2022
Little WeatherApp for android with Kotlin, Jetpack Compose and MVVM

This project is about building an MVP weather app. Using the open API (e.g. https://openweathermap.org/api) Functionality: 1. Screen: Weather today

FINspiers 2 Dec 15, 2022
Neat little beginner android app for calculating restaurant tip.

TipCalAndroidApp Check it out on the playstore https://play.google.com/store/apps/details?id=com.confuseddevs.tipcal This is the first app I published

null 0 Oct 19, 2022
A rewrite of the popular project GitUp that works in Linux, Mac, and Windows.

GitDown This is a rewrite from the ground up of the popular GitUp library available on Mac. It is built using Kotlin and Compose Desktop from Jetbrain

Cody Mikol 20 Dec 16, 2022
Olalekan Fagbemi 0 Nov 7, 2021
An android app built using Kotlin that consumes TMDB API to display current trending, upcoming and popular movies 🍿 .

Flick An android app built using Kotlin that consumes TMDB API to display current trending, upcoming and popular movies ?? .It has been built followin

Kagiri Charles 8 Nov 29, 2022
Popular Movies showcase android app

Pop Flix PopFlix is a gorgeous client application for TMDb on Android, built using Kotlin. Architecture and Tech-stack Built on MVVM architecture patt

Vishvendra Singh 5 Jun 7, 2022
The Android application is a list of the most popular TV series written in Java using the mvvm pattern.

Tv show application The Android application is a list of the most popular TV series written in Java using the mvvm pattern. This project was written f

rutikeyone 0 Dec 26, 2021
A minimalist clone of the popular Social Media Platform "Instagram"

InstaLocal A minimalist clone of the popular Social Media Platform "Instagram" powered by Firebase and written in Kotlin. The app allows users to sign

Raktim Bhuyan 1 Nov 7, 2021
New version of my Android app that shows you popular movies using themoviedb.org API.

New version of my Android app that shows you popular movies using themoviedb.org API. Using Modern Android Develpment skills like Kotlin, Room, Retrofit, Hilt, coroutines, Flow and Jetpack Compose.

Gemma Lara Savill 0 Apr 21, 2022