Show HN: Tree-sitter Integration for Swift

This page summarizes the projects mentioned and recommended in the original post on news.ycombinator.com

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  1. tree-sitter-kit

    Tree-sitter integration for Swift.

    Seems to me this is a case of the Sesame Street song, "Which one of these things is not like the other ones?"

    There's bindings for Swift, a parser for Swift source, and this utility kit for Swift:

    - Tree-Sitter Bindings for Swift provides the foundational tools to use tree-sitter’s parsing capabilities in Swift: https://github.com/ChimeHQ/SwiftTreeSitter

    - Tree-Sitter Parser for Swift is a specific implementation that allows tree-sitter to parse Swift code: https://github.com/alex-pinkus/tree-sitter-swift

    - Tree-Sitter Kit is a higher-level toolkit that simplifies creating and using tree-sitter parsers in Swift, providing a more integrated and Swift-friendly approach to defining and working with grammars and parsed data structures: https://github.com/daspoon/tree-sitter-kit

    This Tree-Sitter Kit looks like a convenience layer on top of the tree-sitter system, designed to work smoothly within Swift, making the process of creating and using parsers more straightforward and idiomatic within the Swift language itself.

  2. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  3. SwiftTreeSitter

    Swift API for the tree-sitter incremental parsing system

    Seems to me this is a case of the Sesame Street song, "Which one of these things is not like the other ones?"

    There's bindings for Swift, a parser for Swift source, and this utility kit for Swift:

    - Tree-Sitter Bindings for Swift provides the foundational tools to use tree-sitter’s parsing capabilities in Swift: https://github.com/ChimeHQ/SwiftTreeSitter

    - Tree-Sitter Parser for Swift is a specific implementation that allows tree-sitter to parse Swift code: https://github.com/alex-pinkus/tree-sitter-swift

    - Tree-Sitter Kit is a higher-level toolkit that simplifies creating and using tree-sitter parsers in Swift, providing a more integrated and Swift-friendly approach to defining and working with grammars and parsed data structures: https://github.com/daspoon/tree-sitter-kit

    This Tree-Sitter Kit looks like a convenience layer on top of the tree-sitter system, designed to work smoothly within Swift, making the process of creating and using parsers more straightforward and idiomatic within the Swift language itself.

  4. tree-sitter-swift

    A tree-sitter grammar for the Swift programming language.

    Seems to me this is a case of the Sesame Street song, "Which one of these things is not like the other ones?"

    There's bindings for Swift, a parser for Swift source, and this utility kit for Swift:

    - Tree-Sitter Bindings for Swift provides the foundational tools to use tree-sitter’s parsing capabilities in Swift: https://github.com/ChimeHQ/SwiftTreeSitter

    - Tree-Sitter Parser for Swift is a specific implementation that allows tree-sitter to parse Swift code: https://github.com/alex-pinkus/tree-sitter-swift

    - Tree-Sitter Kit is a higher-level toolkit that simplifies creating and using tree-sitter parsers in Swift, providing a more integrated and Swift-friendly approach to defining and working with grammars and parsed data structures: https://github.com/daspoon/tree-sitter-kit

    This Tree-Sitter Kit looks like a convenience layer on top of the tree-sitter system, designed to work smoothly within Swift, making the process of creating and using parsers more straightforward and idiomatic within the Swift language itself.

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Context-aware yasnippets (via tree-sitter)

    3 projects | /r/emacs | 12 Dec 2022
  • BBEdit-like app on iOS

    1 project | /r/bbedit | 24 Mar 2023
  • Call for volunteers: add tree-sitter support to major modes

    6 projects | /r/emacs | 9 Oct 2022
  • Who uses their iPad for coding?

    1 project | /r/ipad | 6 May 2022
  • Ask HN: Learning iOS Development in 2025

    1 project | news.ycombinator.com | 20 Jan 2025

Did you know that Swift is
the 15th most popular programming language
based on number of references?