Swiftc -syntax-check and main.swift (top-level expressions)

Is there a way to invoke swift with the -syntax-check flag that will still allow it to cleanly parse my main.swift, which has top-level expressions in it? I can add -emit-executable, but I just want syntax and type checking, and no emitted executable.

Thanks!

attn: @jrose

That's -typecheck, not -syntax-check. What's -syntax-check?

Well, -syntax-check is what's known as a typo. Since you knew what I meant, howzabout answering the question? :wink: