tree-sitter-swift VS sourcekit-lsp

Compare tree-sitter-swift vs sourcekit-lsp and see what are their differences.

tree-sitter-swift

Swift grammar for tree-sitter (by tree-sitter)

sourcekit-lsp

Language Server Protocol implementation for Swift and C-based languages (by apple)
SurveyJS - Open-Source JSON Form Builder to Create Dynamic Forms Right in Your App
With SurveyJS form UI libraries, you can build and style forms in a fully-integrated drag & drop form builder, render them in your JS app, and store form submission data in any backend, inc. PHP, ASP.NET Core, and Node.js.
surveyjs.io
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
tree-sitter-swift sourcekit-lsp
2 12
57 3,128
- 1.3%
0.0 9.8
over 2 years ago 7 days ago
JavaScript Swift
- Apache License 2.0
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

tree-sitter-swift

Posts with mentions or reviews of tree-sitter-swift. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2021-08-28.
  • NeoVim setup for iOS Dev ( xcodebuild etc. ) ?
    2 projects | /r/neovim | 28 Aug 2021
    You could probably set up something to work on Swift packages, however the tree sitter grammar for Swift hasn’t been updated since 2019. sourcekit-lsp also isn’t likely to help you out either because it’s not made to understand Xcode projects. You’d need an LSP capable of parsing a .pbxproj (I highly doubt there is one, but I haven’t looked around), which has the terrible downside of not being something Apple considers a public API and can and will introduce breaking changes on any Xcode update. An Apple engineer confirmed this with me during a lab in 2020 when I was asking about how doing some hacky things with binary Swift packages.
  • Semgrep: Like Grep but for Code
    12 projects | news.ycombinator.com | 22 Apr 2021
    https://github.com/returntocorp/ocaml-tree-sitter/blob/maste... appears to be the general answer to your question, but navigating to the tree-sitter docs shows that tree-sitter has one in progress: https://github.com/tree-sitter/tree-sitter-swift so hopefully the machinery to incorporate it into semgrep will not be horrific

sourcekit-lsp

Posts with mentions or reviews of sourcekit-lsp. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-06-04.

What are some alternatives?

When comparing tree-sitter-swift and sourcekit-lsp you can also consider the following projects:

Bear - Bear is a tool that generates a compilation database for clang tooling.

swift-syntax - A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code.

ocaml-tree-sitter-semgrep - Generate parsers from tree-sitter grammars extended to support Semgrep patterns

swift - The Swift Programming Language

semgrep - Lightweight static analysis for many languages. Find bug variants with patterns that look like source code.

cxx-interop-test - Small test app for C++ Interop with Swift.

terraform-provider-aws - The AWS Provider enables Terraform to manage AWS resources.

tree-sitter-swift - A tree-sitter grammar for the Swift programming language.

pre-commit - A framework for managing and maintaining multi-language pre-commit hooks.

alchemy - Modern, batteries included web framework for Swift.

refex - A syntactically aware search-and-replace tool for Python.

fastlane - 🚀 The easiest way to automate building and releasing your iOS and Android apps