sync/gen_statemachine.ysl2
changeset 1256 8bc2e3636021
parent 1205 73464cbee361
child 1264 7e69c59a659b
     1.1 --- a/sync/gen_statemachine.ysl2	Fri Oct 07 11:29:56 2016 +0200
     1.2 +++ b/sync/gen_statemachine.ysl2	Fri Oct 07 13:55:23 2016 +0200
     1.3 @@ -207,8 +207,9 @@
     1.4      template "state"
     1.5      ||
     1.6      case «@name»:
     1.7 +        printf("State : «@name»\\\\n");
     1.8          switch (event) {
     1.9 -        `` if "not(event[@name='Init'])" |>> case Init: break;
    1.10 +        `` if "not(event[@name='Init'])" |>> case Init: printf("Event : Init\\\\n"); break;
    1.11          `` apply "event", 2
    1.12              default:
    1.13                  return («../@name»_state) invalid_event;
    1.14 @@ -220,6 +221,7 @@
    1.15      template "event"
    1.16      ||
    1.17      case «@name»:
    1.18 +    printf("Event : «@name»\\\\n");
    1.19      `` apply "action|transition|condition";
    1.20      `` if "name(*[position()=last()]) != 'transition'" |> break;
    1.21      ||