Skip to content

zgornel/ParSitter.jl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

90 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ParSitter.jl

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

Check out the documentation for information on using the library. Usage examples are provided in the scripts/ and test/languages/ directories.

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.

About

Code parsing and querying library based on tree-sitter

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages