-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstatemachine.smdsl
40 lines (33 loc) · 1019 Bytes
/
statemachine.smdsl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/* CHANGE THE NAME OF THE MACHINE IF YOU MAKE
ANY CHANGE TO THE DEFAULT STATES OR TRANSITIONS */
defaultMachine{
states compute;
initial_state initialize;
end_state finalize;
transitions{
initialize => compute;
compute => compute;
compute => finalize;
};
};
/* --------------------------------------------------------------
This is the accepted syntax for the State Machine definition
name_machine{
[states name_state *[, name_state];]
[initial_state name_state;]
[end_state name_state;]
[transitions{
name_state => name_state *[, name_state];
*[name_state => name_state *[, name_state];]
};]
};
[:parent_state [parallel]{
states name_state *[, name_state];
[initial_state name_state;]
[end_state name_state;]
[transitions{
name_state => name_state *[, name_state];
*[name_state => name_state *[, name_state];]
};]
};]
------------------------------------------------------------------ */