Swift Studies

At WWDC 2014 Apple introduced a new programming language, Swift. At this point everyone has exactly zero days experience in Swift. This blog will capture and share our learning, and I hope the learnings of others as we go.

We've left the changes in a separate branch on GitHub (xcode6beta3), as I'm not sure I'll keep the change to TokenizationState after the bug has been fixed. I do love my protocols as contracts pattern!

Swift Studies

Even a simple text adventure contains all of the fundamentals of lexers, parsers, and interpreters. Using STLR to define the grammar, and its Swift code generation, we quickly create a simple adventure game in Swift.