ParSitter.jl

April 28, 2026 · View on GitHub

A code querying and parsing library, written in Julia and build on top on tree-sitter. Designed for quick and easy parsing and querying of code.

License Tests codecov code style: runic Aqua QA Documentation

Installation

The installation can be done from Julia with

using Pkg; Pkg.add("ParSitter")

or through the pkg mode

] add ParSitter

Usage examples are provided in the scripts/ and test/languages/ directories.

Prerequisites

ParSitter requires a recent version of the tree-sitter CLI (≥ v0.25) and compiled parsers for the languages you want to use.

Check out the documentation for more information on how to install and use the library.

Differences from TreeSitter.jl

This package differs from TreeSitter.jl in that it calls the tree-sitter parsing CLI externally and reads directly the XML result. TreeSitter.jl provides a much tighter integration with the tree-sitter parsing and querying APIs. ParSitter provides a looser coupling with tree-sitter and more flexible querying mechanisms.

License

This code has an MIT license.

Reporting Bugs

Please file an issue to report a bug or request a feature.

References

[1] https://tree-sitter.github.io/tree-sitter/

[2] https://en.wikipedia.org/wiki/Abstract_syntax_tree

Acknowledgements

This work could not have been possible without the great work of the tree-sitter team and the individual maintainers of the specific parsers.