HNHacker News
TopNewBestAskShowJobs

daspoon

21 karma · joined August 13, 2024

submissionscomments
daspoon··on Show HN: Tree-sitter Integration for Swift
Would you mind sharing a simple example?
daspoon··on Show HN: Tree-sitter Integration for Swift
That's an interesting angle. I haven't thought about applications much beyond hobby programming languages. I hope to make some progress with error reporting soon. Thanks.
daspoon··on Show HN: Tree-sitter Integration for Swift
That's a good point, thanks.

My understanding is that work exposes nearly the full tree-sitter runtime API, but relies on tree-sitter's standard tech for converting javascript grammar specifications to separately compiled C code.

This work instead exposes a minimal subset of tree-sitter functionality, but enables defining parsers entirely in Swift -- eliminating the need for javascript and mixed-language targets, and streamlining the build process.