Closed lukepistrol closed 9 months ago
Is there anything that's holding this up?
@lukepistrol if you're interested still (like w/ python), just make it a swift bindings addition PR (and let me know for other langs that interest you)
I've added swift bindings now
Swift Package Manager
Swift's package manager can build C/C++ sources and use headers to expose functions to Swift. The standard tree-sitter parser project layout just requires a little extra configuration to make it happy.
Grammars with SPM support to this date:
C Bindings & Makefile
This change adds a Makefile and bindings to more easily build static/dynamic libraries for use in C-based languages. The implementation is intended to be as generic as possible, to make for easier adoption and diffing.
This comes from discussion in the main tree-sitter repo https://github.com/tree-sitter/tree-sitter/issues/1488.