#!/Applications/Xcode6-Beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift -i // This is a comment let foo = 5 // another comment /* this is also a comment */ /* this is a multi-line comment */ "this is a string" "this is a string\" with an escaped quote" // TODO: This is a todo comment // XXX: This is another todo comment // FIXME: this is another todo comment // NOTE: this is another todo comment /* TODO multiple */ // MARK: this is a marker 5 // int 5.5 // float 5.5abc5.5 // broken 0xa2ef // hex 0x213zdf // broken hex 0b10101 // binary 0b1234 // broken binary 0o567 // octal 0o5689 // broken octal // Operators ~ ! % ^ & * - + = | 2 / 5 . > < != != !== !== %= &% && &&= let a = 10 &* 20 &+ &- 8 &/ 20 &= let a *= 20 ++ += -- -= .. ... let b = 50 /= 20 << <= =<< == === >= >> >>= ^= |= || ||= ~=