Tuesday, 20 August 2024

New top story on Hacker News: Show HN: Tree-sitter Integration for Swift

Show HN: Tree-sitter Integration for Swift
5 by daspoon | 0 comments on Hacker News.
I have created a Swift package ( https://ift.tt/6XvGhWZ ) enabling tree-sitter parsers to be written in Swift; specifically, as an array of production rules which map symbol types to pairings of syntax expression and type constructor. A member macro derives a tree-sitter grammar and embeds the generated parser in its expansion. This project is a work in progress, and I will be grateful for any feedback. Thanks, Dave

Previous Post
Next Post

post written by:

0 comments: