Your SlideShare is downloading. ×
objc2swift (自動変換の野望)
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

objc2swift (自動変換の野望)

44
views

Published on

ANTLR v4 による、ObjC -> Swift 自動変換器を作る試み。

ANTLR v4 による、ObjC -> Swift 自動変換器を作る試み。

Published in: Software

0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
44
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Obj-C → Swift 自動変換の野望 @taketo1024 2015/04/15 potatotips #16
  • 2. 最近 Android 版も出ました!
  • 3. http://maths4pg.connpass.com
  • 4. 本題
  • 5. Xcode6.3 で Swift のコンパイルも 高速化したらしいですしそろそろ…
  • 6. http://stackoverflow.com/questions/24214683/convert-objective-c-to-swift
  • 7. why not?
  • 8. at least it would be better to have something that would help us convert the code by hand...
  • 9. Yarimashou!
  • 10. ANTLR v4 ジャバ語による、超クールなパーサジェネレータ
  • 11. ANTLR文法ファイル Parser 2秒でわかる ANTLR
  • 12. Objective-C の文法もある!
  • 13. DEMO @interface A : NSObject @end Obj-C
  • 14. そして、変換器を作りました! (しかもカッコつけて Scala で)
  • 15. DEMO @interface A : NSObject @end Obj-C class A : NSObject { } Swift
  • 16. あとはコツコツと対応するコードに変換してく。
  • 17. やりたいこと(難しそうなこと) • .h .m をマージして一個の Swift クラスを作る • 宣言後1回しか代入してなかったら let にする • Optional 周りが地獄の予感
  • 18. みんなもやりたいって?
  • 19. OpenSourced!!! https://github.com/yahoojapan/objc2swift
  • 20. Pull-Req welcome!
  • 21. Apple 純正の converter が出たら笑いましょう (めでたしめでたしってことで)
  • 22. Covert the code, Change the world.
  • 23. Thanks! Twitter: taketo1024 Blog: http://taketo1024.hateblo.jp/