tree-sitter / tree-sitter-css

CSS grammar for Tree-sitter
MIT License
85 stars 34 forks source link

Swift Package Manager & C Bindings including Makefile #27

Closed lukepistrol closed 9 months ago

lukepistrol commented 2 years ago

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.

lukepistrol commented 1 year ago

Is there anything that's holding this up?

amaanq commented 1 year ago

@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)

amaanq commented 9 months ago

I've added swift bindings now