While I expect that most people are not bulk converting
existing Obj C code to Swift, I'm curious to know what
strategies people who have attempted that may have employed.
I haven't found a utility that can properly parse Obj C
into a token tree and intelligently spit out Swift, and I certainly
don't want to spend my own time crafting a YACC file etc.
Assuming such a serious attempt at building a converter
has not succeeded, my guess is that the default
strategy people've used is something like writing a shell script
that uses sed to reduce excessive cutting/pasting and text
replacements. Is this indeed the case?
replacements. Is this indeed the case?
e.g.
s/- (void)/ func/
s/\@end/ }/
Etc...
Cheers.
_______________________________________________ swift-dev mailing list swift-dev@swift.org https://lists.swift.org/mailman/listinfo/swift-dev