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

Next revision
Previous revision
wiki:news:5sep2014 [2014/09/05 18:45] – created 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 20: Line 21:
  
   * The most basic method is to put hand written code into libraries and call the library from within the state machine.   * The most basic method is to put hand written code into libraries and call the library from within the state machine.
-  * Generated classes can also subclass non-generated classes (base class of +  * Generated classes can also subclass non-generated classes (base class of StateMachine). Such base classes can contain useful methods that can be called from within the generated subclasses.
-StateMachine). Such base classes can contain useful methods that can be called from within the generated subclasses.+
   * 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 32: 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|}}
  
  
-<WRAP center round info 60%>+<WRAP round info 60%>
 Please note that the Swift back-end is work-in-progress. Please note that the Swift back-end is work-in-progress.
-If you are interested to test and work the the code generator send me a mail+If you are interested to test and work with the code generator send me a mail
 and you will receive the latest beta version. and you will receive the latest beta version.
 Your feedback and feature requests are highly welcome! Your feedback and feature requests are highly welcome!
Line 45: 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.1409935515.txt.gz · Last modified: 2014/09/05 18:45 by pmueller

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki