1 dépôt
Tools that programmatically modify Swift source code by traversing and editing the abstract syntax tree while preserving lexical structure.
Distinct from Java Source Code Transformers: Distinct from Java Source Code Transformers by targeting the Swift language and its specific AST representation.
Explore 1 awesome GitHub repository matching programming languages & runtimes · Swift Source Code Transformers. Refine with filters or upvote what's useful.
swift-syntax is a library for parsing, manipulating, and generating Swift source code. It provides a source-accurate abstract syntax tree representation of Swift code, acting as a parser, transformer, and code generator. The project serves as the infrastructure for Swift macro development, enabling the expansion and transformation of source code during compilation. It is used to build compiler tooling for static analysis, formatting, and automated refactoring. The system covers a broad range of source analysis capabilities, including the ability to convert source code into structured trees f
Provides the primary infrastructure for programmatically modifying and transforming Swift source code via a source-accurate syntax tree.