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.
The installation can be done from Julia with
using Pkg; Pkg.add("ParSitter")or through the pkg mode
] add ParSitter
Check out the documentation for information on using the library. Usage examples are provided in the scripts/ and test/languages/ directories.
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.
This code has an MIT license.
Please file an issue to report a bug or request a feature.
[1] https://tree-sitter.github.io/tree-sitter/
[2] https://en.wikipedia.org/wiki/Abstract_syntax_tree
This work could not have been possible without the great work of the tree-sitter team and the individual maintainers of the specific parsers.