Swift provides a runtime interpreter that executes statements and expressions. Swift is open source, and precompiled binaries can be downloaded from https://swift.org/download/ for both OS X and Linux platforms. Ports are in progress to other platforms and operating systems but are not supported by the Swift development team.
The Swift interpreter is called swift and on OS X can be launched using the
xcrun command in a
$ xcrun swift Welcome to Swift version 2.2! Type :help for assistance. >
xcrun command allows a toolchain command to be executed; in this case, it finds
swift command sits alongside ...