wiki:news:5sep2014
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
wiki:news:5sep2014 [2014/09/05 18:45] – created pmueller | wiki: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 '' | + | {{: |
+ | |||
+ | '' | ||
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 ==== |
{{: | {{: | ||
{{: | {{: | ||
- | < | + | <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: | ||
</ | </ | ||
- | {(rater> | + | |
~~DISCUSSION|Leave your comments~~ | ~~DISCUSSION|Leave your comments~~ |
wiki/news/5sep2014.1409935515.txt.gz · Last modified: 2014/09/05 18:45 by pmueller