# tree-sitter-java-orchard

[![crates][crates]](https://crates.io/crates/tree-sitter-java-orchard)
[![pypi][pypi]](https://pypi.org/project/tree-sitter-java-orchard)
[![npm][npm]](https://www.npmjs.com/package/tree-sitter-java-orchard)

This is a tree-sitter grammar for Java.

### Using it

You can obtain this parser in various formats:
* as an archive from [the Releases page](/grammar-orchard/tree-sitter-java-orchard/releases), which contains all the generated files (bindings, parser code)
* as a Rust crate: `cargo add tree-sitter-java-orchard`
* as a Python package: `pip install tree-sitter-java-orchard`
* as an NPM package: `npm install tree-sitter-java-orchard`

### Contributing

Contributions are welcome, so are co-maintainers.

Unlike many grammar repositories, this one does not track generated files.
After cloning this repository, you'll need to run `tree-sitter generate` to obtain the parser.
If you want to use it via bindings, you'll also need to run `tree-sitter init`.

### Origin

This project was forked from https://github.com/tree-sitter/tree-sitter-java, to [ease the use of and collaboration on this grammar](https://codeberg.org/grammar-orchard#for-contributors).

[crates]: https://img.shields.io/crates/v/tree-sitter-java-orchard?logo=rust
[pypi]: https://img.shields.io/pypi/v/tree-sitter-java-orchard?logo=pypi&logoColor=ffd242
[npm]: https://img.shields.io/npm/v/tree-sitter-java-orchard?logo=npm
