mirror of
https://github.com/tree-sitter/java-tree-sitter.git
synced 2026-11-17 03:00:42 +00:00
Java bindings to the Tree-sitter parsing library
- Java 89.1%
- Shell 6%
- PowerShell 4.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .github | ||
| core@3fb7be4914 | ||
| scripts | ||
| src | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| LICENSE | ||
| pom.xml | ||
| README.md | ||
| spotbugs-exclude.xml | ||
Java Tree-sitter
Java bindings to the tree-sitter parsing library.
Building
- Install JDK 23+ and set
JAVA_HOMEto it - Download jextract and add it to your
PATH - Install the
tree-sitter&tree-sitter-javalibraries
git clone https://github.com/tree-sitter/java-tree-sitter
cd java-tree-sitter
git submodule update --init
mvn test
Alternatives
These alternatives support older JDK versions or Android:
- tree-sitter/kotlin-tree-sitter (JDK 17+, Android SDK 23+, Kotlin 1.9)
- bonede/tree-sitter-ng (JDK 8+)
- seart-group/java-tree-sitter (JDK 11+)