Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
techknowxpress@gmail.com
SWIFT
APPLE’S OVEN FRESH LANGUAGE
(RELEASE DATE: June,2-2014)
TechKnowXpress
PERSPECTIVE
 According to Greg Federighi,
(Apple senior vice president for software engineering)
"Swift is...
TechKnowXpress
SWIFT & ITS PURPOSE
 To make development of apps for Apple's mobile
platform easier.
 To unify the proced...
TechKnowXpress
TECHNICAL SPECIFICATION
 Xcode V6 beta offers development
platform for Swift
 Xcode V6 beta is compatible...
TechKnowXpress
FEATURES OF SWIFT
TechKnowXpress
COMPARISON
 Objective-C is a hard language to pick up for
new developers.
 Swift makes getting started wi...
TechKnowXpress
LEXICAL STRUCTURE
 The lexical structure of Swift describes
what sequence of characters form valid
tokens ...
TechKnowXpress
GRAMMAR
Grammar
Statements
declarations
patterns
attributes
expressions
types
TechKnowXpress
GRAMMAR OF SWIFT
Grammar
STATEMENTS
declarations
patterns
attributes
expressions
types
expressionopt
declar...
TechKnowXpress
GRAMMAR OF DECLARATION
Grammar
statements
DECLARATIONS
patterns
attributes
expressions
types
import constan...
TechKnowXpress
GRAMMAR OF PATTERN
Grammar
Statements
declarations
PATTERNS
attributes
expressions
types
wildcard-
pattern
...
TechKnowXpress
GRAMMAR OF ATTRIBUTES
Grammar
statements
declarations
patterns
ATTRIBUTES
expressions
types
Attribute :-
@ ...
TechKnowXpress
GRAMMAR OF EXPRESSIONS
Grammar
statements
declarations
patterns
attributes
EXPRESSIONS
types
Expression:-
p...
TechKnowXpress
GRAMMAR OF TYPES
Grammar
statements
declarations
patterns
attributes
expressions
TYPES
•array-type
•functio...
TechKnowXpress
REFERENCES
 For more information:
◦ Apple has released a guidebook for the
language in iBooks Store.
◦ Inf...
TechKnowXpress
techknowxpress@gmail.com
Upcoming SlideShare
Loading in …5
×

Swift

Swift and Swift programming language.

  • Login to see the comments

Swift

  1. 1. techknowxpress@gmail.com SWIFT APPLE’S OVEN FRESH LANGUAGE (RELEASE DATE: June,2-2014)
  2. 2. TechKnowXpress PERSPECTIVE  According to Greg Federighi, (Apple senior vice president for software engineering) "Swift is fast, it is modern, it is designed for safety, and it enables a level of interactivity and development that you've never seen before on the platform."
  3. 3. TechKnowXpress SWIFT & ITS PURPOSE  To make development of apps for Apple's mobile platform easier.  To unify the procedural and object-oriented portions of the language.  Improve performance of App by removing baggage's of legacy language
  4. 4. TechKnowXpress TECHNICAL SPECIFICATION  Xcode V6 beta offers development platform for Swift  Xcode V6 beta is compatible on MAC OS X 10.9.3 and above
  5. 5. TechKnowXpress FEATURES OF SWIFT
  6. 6. TechKnowXpress COMPARISON  Objective-C is a hard language to pick up for new developers.  Swift makes getting started with app development on Apple’s platforms easier.  Swift feels more accessible than Objective-C.  Swift is 3.9 times faster while objective-C is 2.8 times faster than python.
  7. 7. TechKnowXpress LEXICAL STRUCTURE  The lexical structure of Swift describes what sequence of characters form valid tokens of the language.  These valid tokens form the lowest-level building blocks of the language.  They are used to describe the rest of the language.
  8. 8. TechKnowXpress GRAMMAR Grammar Statements declarations patterns attributes expressions types
  9. 9. TechKnowXpress GRAMMAR OF SWIFT Grammar STATEMENTS declarations patterns attributes expressions types expressionopt declarationopt loop- statementopt branch- statementopt labelled- statement control-transfer- statementopt statement statementsopt
  10. 10. TechKnowXpress GRAMMAR OF DECLARATION Grammar statements DECLARATIONS patterns attributes expressions types import constant variable typealias function enum struct class protocol initializer deinitializer extension subscript operator declaration declarationsopt
  11. 11. TechKnowXpress GRAMMAR OF PATTERN Grammar Statements declarations PATTERNS attributes expressions types wildcard- pattern type- annotationopt identifier- pattern type- annotationopt value- binding- pattern tuple-pattern type- annotationopt enum- case- pattern type- casting- pattern expression -pattern
  12. 12. TechKnowXpress GRAMMAR OF ATTRIBUTES Grammar statements declarations patterns ATTRIBUTES expressions types Attribute :- @ attribute- name attribute- argument- clauseopt Attribute- name :- identifier Attribute- argument- clause :- (balanced- tokensopt) Attributes :- attribute attributesopt
  13. 13. TechKnowXpress GRAMMAR OF EXPRESSIONS Grammar statements declarations patterns attributes EXPRESSIONS types Expression:- prefix- expression binary- expressionsopt Expression List:- expression| expression , expression- list
  14. 14. TechKnowXpress GRAMMAR OF TYPES Grammar statements declarations patterns attributes expressions TYPES •array-type •function-type •type-identifier •tuple-type •optional-type •implicitly-unwrapped-optional-type •protocol-composition-type •metatype-type
  15. 15. TechKnowXpress REFERENCES  For more information: ◦ Apple has released a guidebook for the language in iBooks Store. ◦ InfoWorld.com
  16. 16. TechKnowXpress techknowxpress@gmail.com

×