A source-to-source compiler that transforms Swift code and produces the equivalent source code in other programming languages.
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Sources
Tests
.gitignore
.ruby-version
.travis.yml
.yanagiba
Gemfile
Gemfile.lock
Guardfile
LICENSE
Makefile
Package.resolved
Package.swift
README.md
codecov.yml
lint.sh
run.sh
runXcodeTest.sh

README.md

Swift Transform

swift-ast 0.3.5 swift-lint master swift-transform pending

Travis CI Status codecov Swift 4.1.1 Swift Package Manager Platforms License

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.

A Work In Progress

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.

Requirements

Development

Build & Run

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.

Running Tests

Compile and run the entire tests by:

make test

Contact

Ryuichi Sai

License

Swift Transform is available under the Apache License 2.0. See the LICENSE file for more info.