swiftlang/swift-syntax
A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code. observed · 2026-08-28
Health v2 · maintenance only
91/100
- Activity 99
- Release rhythm 75
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 47
- age_days: 2955
- days_rel: 86
- days_push: 8
- n_releases_24m: 8
Adoption not part of the score
3693 stars · 542 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
A set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code via a source-accurate syntax tree (SwiftSyntax). It is the backbone of Swift's macro system, letting macros generate SwiftSyntax trees inserted into source files.
Use cases
- parse Swift source code into a syntax tree
- build Swift macros
- generate Swift source code programmatically
- write linters or refactoring tools for Swift
- transform or rewrite Swift source files
- analyze Swift AST for tooling
When to choose
- building Swift macros or compiler-adjacent tooling
- writing code generators, linters, or formatters for Swift
- you need a source-accurate, lossless representation of Swift code
When to avoid
- parsing languages other than Swift
- you only need lightweight regex-based text manipulation of Swift files
- you need a stable API surface across major versions without migration effort
Facets
library · maturity stable
parser compiler developer-tools code-review programming-languages parsers developer-tools compilers cross-platform swift-syntax ast source-code-analysis macros swiftmacro code-generation syntax-tree swift macos linux
1 source
- readme: https://github.com/swiftlang/swift-syntax · fetched 2026-08-28 · 590f59eb60fb
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| swiftlang/swift-syntax | main | 91 |
For agents
markdown · JSON · MCP: product_card(name="swiftlang/swift-syntax")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem