Swiftpack.co - ChimeHQ/SwiftTreeSitter as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ChimeHQ.
ChimeHQ/SwiftTreeSitter 0.6.5
Swift API for the tree-sitter incremental parsing system
⭐️ 132
🕓 4 days ago
.package(url: "https://github.com/ChimeHQ/SwiftTreeSitter.git", from: "0.6.5")

Build Status License Platforms Documentation

SwiftTreeSitter

Swift API for the tree-sitter incremental parsing system.

SwiftTreeSitter is fairly low-level. If you are looking a higher-level system for syntax highlighting and other syntactic operations, you might want to have a look at Neon.

📖 Documentation is available in DocC format.

Integration

dependencies: [
    .package(url: "https://github.com/ChimeHQ/SwiftTreeSitter")
]

Language Parsers

Tree-sitter language parsers are separate projects, and you'll probably need at least one. More details are available in the documentation.

Language Offical Repo
Bash
C
C++
C#
CSS
Go
GoMod
HTML
Java
Javascript
JSON
Lua
Markdown
PHP
Python
Ruby
Rust
Swift
YAML

Suggestions or Feedback

We'd love to hear from you! Get in touch via twitter, an issue, or a pull request.

Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.

GitHub

link
Stars: 132
Last commit: 4 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

v0.6.5
4 days ago
  • Fix #match predicate filtering when the regex match isn't the same length as the input text
  • Add new String extension for easier integration with ResolvingQueryCursor

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics