SinelaboreRT Header Logo

SinelaboreRT

As simple as possible, but not any simpler!

User Tools

Site Tools


wiki:news:5sep2014

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:news:5sep2014 [2014/09/05 18:46] pmuellerwiki:news:5sep2014 [2021/04/18 13:41] (current) – [Example Design and Generated Code] pmueller
Line 1: Line 1:
 ====== Swift backend added ====== ====== Swift backend added ======
-===== Overview ===== 
  
-Swift is a new object-oriented programming language for iOS and OS X development. To generate Swift code call the code generator with the command line flag ''−l swift'' . To gener- ate a configuration file with all parameters related to the Swift code generation call the code generator as follows once: ''java −jar codegen.jar −l swift −gencfg > codegen.cfg'' .+{{:wiki:news:apple_swift_logo.png?nolink&100 |}}[[https://en.wikipedia.org/wiki/Swift_(programming_language)|Swift]] is a new object-oriented programming language for iOS and OS X development. To generate Swift code call the code generator with the command line flag ''−l swift'' . To gener- ate a configuration file with all parameters related to the Swift code generation call the code generator as follows once:  
 + 
 +''java −jar codegen.jar −l swift −gencfg > codegen.cfg'' .
  
 The events that can be sent to the machine are defined in a public enumeration. The events that can be sent to the machine are defined in a public enumeration.
Line 23: Line 24:
   * Hand written code is located in a child class of the state machine. I.e. the state machine classes are parts of other classes.   * Hand written code is located in a child class of the state machine. I.e. the state machine classes are parts of other classes.
  
-=== Supported state machine features ===+==== Supported state machine features ====
   * States and sub-states   * States and sub-states
   * Deep - and flat hierarchy   * Deep - and flat hierarchy
Line 31: Line 32:
   * Choice pseudo-states   * Choice pseudo-states
  
-== Example Design and Generated Code ==+==== Example Design and Generated Code ====
 {{:wiki:news:swift_state_machine.png?nolink |}} {{:wiki:news:swift_state_machine.png?nolink |}}
 {{:wiki:news:swift_testcase.swift|}} {{:wiki:news:swift_testcase.swift|}}
Line 44: Line 45:
 </WRAP> </WRAP>
  
-{(rater>id=05092014|name=How do you like this article?|type=rate)}+
 ~~DISCUSSION|Leave your comments~~ ~~DISCUSSION|Leave your comments~~
wiki/news/5sep2014.1409935578.txt.gz · Last modified: 2014/09/05 18:46 by pmueller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki