How to check Swift source code syntax

swiftc -parse file.swift