← All repos

swift-syntax

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

Browse cluster: Protocol Buffers & gRPC Ecosystem
6,248commits
243contributors
5languages

Tech stack & purpose

Swift-syntax is a set of Swift libraries for parsing, inspecting, generating, and transforming Swift source code. The project is built in Swift and includes several key components: SwiftParser, which parses Swift source text into a syntax tree; SwiftSyntaxBuilder, a library for generating Swift code using Swift itself; and SwiftRefactor, which provides refactoring capabilities integrated into Xcode as a source editor extension. The SwiftSyntax tree forms the foundation of Swift's macro system, with macro expansion nodes represented as SwiftSyntax nodes. The project is maintained by swiftlang and is distributed as a Swift Package Manager package with releases aligned to corresponding Swift language versions.

Languages

Swift
98.7%
CMake
0.7%
C
0.3%
Starlark
0.3%
Shell
0.0%

Contributors (top 30 of 243)