Swift API for the tree-sitter incremental parsing system. The SwiftTreeSitter target is a close match to the C runtime API. It adds only a few additional types to help support querying. It is fairly low-level, and there will be significant work to use it in a real project. SwiftTreeSitterLayer is an abstraction built on top of SwiftTreeSitter. It supports documents with nested languages and transparent querying across those nestings. It also supports asynchronous language resolution. While still low-level, SwiftTreeSitterLayer is easier to work with while also supporting more features.
Features
- Close to full coverage of the C API
- Swift/Foundation types where possible
- Standard query result mapping for highlights and injections
- Query predicate/directive support via ResolvingQueryMatchSequence
- Nested language support
- Swift concurrency support where possible
Categories
SystemLicense
BSD LicenseFollow SwiftTreeSitter
Other Useful Business Software
Agentic AI SRE built for Engineering and DevOps teams.
NeuBird AI's agentic AI SRE delivers autonomous incident resolution, helping team cut MTTR up to 90% and reclaim engineering hours lost to troubleshooting.
Rate This Project
Login To Rate This Project
User Reviews
Be the first to post a review of SwiftTreeSitter!