Swift Transform (swift-transform
) enables source-to-source transformation that takes Swift code as input and produces the equivalent source code in other programming languages.
Swift Transform relies on Swift Abstract Syntax Tree (swift-ast
)
of the source code for better accuracy and efficiency.
Swift Transform is part of Yanagiba Project. Yanagiba umbrella project is a toolchain of compiler modules, libraries, and utilities, written in Swift and for Swift.
Both Swift Abstract Syntax Tree and Swift Transform are in active development.
Swift Transform is under active development, and is NOT recommended for production use at this time.
Please also check out the status from swift-ast.
Building the entire project can be done by simply calling:
make
This is equivalent to
swift build
The dev version of the tool will be generated to .build/debug/swift-transform
.
Compile and run the entire tests by:
make test
Ryuichi Sai
Swift Transform is available under the Apache License 2.0. See the LICENSE file for more info.