nodeskini 1.0.3 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. package/blocklySkini/scripts/hiphop_blocks.js +3991 -6104
  2. package/blocklySkini/scripts/main2.js +4 -4
  3. package/client/clientListe/clientListe.js +11 -0
  4. package/client/clientListe/clientListebundle.js +1755 -1909
  5. package/client/configurateur/configReact.js +1 -1
  6. package/client/configurateur/configReactbundle.js +16 -10
  7. package/client/configurateur/src/configReact.js +1 -1
  8. package/client/parametrage/paramReact.js +1 -1
  9. package/client/parametrage/paramReactbundle.js +6 -5
  10. package/client/parametrage/src/paramReact.js +2 -2
  11. package/client/score/parto1.js +4 -1
  12. package/client/score/parto1bundle.js +45 -23
  13. package/client/simulateurListe/simulateurFork.mjs +1 -1
  14. package/client/simulateurListe/simulateurListe.js +3 -3
  15. package/doc/Doc Skini Node english.pdf +0 -0
  16. package/doc/Mode d'emploi Skini Node.pdf +0 -0
  17. package/doc/Tuto Skini.pdf +0 -0
  18. package/doc/quickstart.pdf +0 -0
  19. package/myReact/orchestrationHH.hh.js +2024 -0
  20. package/myReact/orchestrationHH.mjs +262 -420
  21. package/myReact/orchestrationHH.mjs.map +1 -1
  22. package/package.json +19 -11
  23. package/pieces/tutos/demoAbleton.csv +21 -0
  24. package/pieces/tutos/demoAbleton.js +100 -0
  25. package/pieces/tutos/demoAbleton.xml +180 -0
  26. package/pieces/tutos/demoHH.js +99 -0
  27. package/pieces/tutos/demoHH.xml +184 -0
  28. package/pieces/tutos/demoHHwait.js +100 -0
  29. package/pieces/tutos/demoHHwait.xml +175 -0
  30. package/pieces/tutos/tuto.csv +10 -0
  31. package/pieces/tutos/tuto.csv.good +1 -0
  32. package/pieces/tutos/tuto1.js +105 -0
  33. package/pieces/tutos/tuto1.xml +147 -0
  34. package/pieces/tutos/tuto10.back.js +106 -0
  35. package/pieces/tutos/tuto10.js +107 -0
  36. package/pieces/tutos/tuto10.xml +199 -0
  37. package/pieces/tutos/tuto11.js +111 -0
  38. package/pieces/tutos/tuto11.xml +124 -0
  39. package/pieces/tutos/tuto12.js +91 -0
  40. package/pieces/tutos/tuto12.xml +258 -0
  41. package/pieces/tutos/tuto2.back.js +106 -0
  42. package/pieces/tutos/tuto2.js +95 -0
  43. package/pieces/tutos/tuto2.xml +94 -0
  44. package/pieces/tutos/tuto3-2.js +105 -0
  45. package/pieces/tutos/tuto3-2.xml +96 -0
  46. package/pieces/tutos/tuto3.js +97 -0
  47. package/pieces/tutos/tuto3.xml +49 -0
  48. package/pieces/tutos/tuto4.js +107 -0
  49. package/pieces/tutos/tuto4.xml +106 -0
  50. package/pieces/tutos/tuto5.js +109 -0
  51. package/pieces/tutos/tuto5.xml +42 -0
  52. package/pieces/tutos/tuto6.js +105 -0
  53. package/pieces/tutos/tuto6.xml +26 -0
  54. package/pieces/tutos/tuto7.js +107 -0
  55. package/pieces/tutos/tuto7.xml +65 -0
  56. package/pieces/tutos/tuto8.js +105 -0
  57. package/pieces/tutos/tuto8.xml +76 -0
  58. package/pieces/tutos/tuto9.js +107 -0
  59. package/pieces/tutos/tuto9.xml +90 -0
  60. package/pieces/tutos/tutoAwait.js +111 -0
  61. package/pieces/tutos/tutoAwait.xml +171 -0
  62. package/pieces/tutos/tutoDoubleEmission.js +93 -0
  63. package/pieces/tutos/tutoDoubleEmission.xml +65 -0
  64. package/pieces/tutos/tutoESP32.js +104 -0
  65. package/pieces/tutos/tutoESP32.xml +246 -0
  66. package/pieces/tutos/tutoGame.js +126 -0
  67. package/pieces/tutos/tutoGame.xml +109 -0
  68. package/pieces/tutos/tutoGroups1.js +111 -0
  69. package/pieces/tutos/tutoGroups1.xml +137 -0
  70. package/pieces/tutos/tutoGroups2.js +97 -0
  71. package/pieces/tutos/tutoGroups2.xml +103 -0
  72. package/pieces/tutos/tutoGroups3.js +111 -0
  73. package/pieces/tutos/tutoGroups3.xml +128 -0
  74. package/pieces/tutos/tutoGroups4.js +111 -0
  75. package/pieces/tutos/tutoGroups4.xml +84 -0
  76. package/pieces/tutos/tutoIZ.js +95 -0
  77. package/pieces/tutos/tutoIZ.xml +135 -0
  78. package/pieces/tutos/tutoIf.js +111 -0
  79. package/pieces/tutos/tutoIf.xml +126 -0
  80. package/pieces/tutos/tutoMidi.js +126 -0
  81. package/pieces/tutos/tutoMidi.xml +62 -0
  82. package/pieces/tutos/tutoOS.js +121 -0
  83. package/pieces/tutos/tutoOSC.js +109 -0
  84. package/pieces/tutos/tutoOSC.xml +223 -0
  85. package/pieces/tutos/tutoOSCJonathan.js +94 -0
  86. package/pieces/tutos/tutoOSCJonathan.xml +312 -0
  87. package/pieces/tutos/tutoPatternInGroup.js +109 -0
  88. package/pieces/tutos/tutoPatternInGroup.xml +116 -0
  89. package/pieces/tutos/tutoRandomBlock.js +129 -0
  90. package/pieces/tutos/tutoRandomBlock.xml +194 -0
  91. package/pieces/tutos/tutoSuspend.js +107 -0
  92. package/pieces/tutos/tutoSuspend.xml +139 -0
  93. package/pieces/tutos/tutoSustain.js +107 -0
  94. package/pieces/tutos/tutoSustain.xml +109 -0
  95. package/pieces/tutos/tutoTank.csv +9 -0
  96. package/pieces/tutos/tutoTank.js +100 -0
  97. package/pieces/tutos/tutoTank.xml +326 -0
  98. package/pieces/tutos/tutoTestAll.csv +11 -0
  99. package/pieces/tutos/tutoTestAll.js +101 -0
  100. package/pieces/tutos/tutoTestAll.xml +859 -0
  101. package/serveur/OSCandMidi.mjs +7 -5
  102. package/serveur/controleDAW.mjs +3 -2
  103. package/serveur/defaultSkiniParametres.js +20 -13
  104. package/serveur/groupeClientsSons.mjs +10 -5
  105. package/serveur/ipConfig.json +2 -2
  106. package/serveur/midimix.mjs +13 -13
  107. package/serveur/saveParam.mjs +4 -15
  108. package/serveur/skiniParametres.js +108 -26
  109. package/serveur/utilsHHSkini.hh.js +64 -64
  110. package/serveur/websocketServer.mjs +2090 -2052
  111. package/serveur/workerInterfaceZ.mjs +4 -7
  112. package/blocklySkini/archive/blocklyControleur.js +0 -87
  113. package/blocklySkini/archive/blocklySkini.js +0 -84
  114. package/blocklySkini/archive/blocklyhop.js +0 -75
  115. package/blocklySkini/archive/clientControleurBlocly.js +0 -170
  116. package/blocklySkini/archive/index.html +0 -76
  117. package/blocklySkini/archive/testHHsuspend.txt +0 -89
  118. package/blocklySkini/archive/testHHtrap.txt +0 -262
  119. package/blocklySkini/archive/testOrchestration.txt +0 -177
  120. package/blocklySkini/archive/testOrchestration.xml +0 -447
  121. package/blocklySkini/archive/testOrchestration2.xml +0 -456
  122. package/myReact/archive/Nodeemitvaluedlocal1.hh.js +0 -52
  123. package/myReact/archive/abort-parNode.js +0 -79
  124. package/myReact/archive/abroNode.js +0 -169
  125. package/myReact/archive/abroNode2.js +0 -80
  126. package/myReact/archive/atom.compile.hh.js +0 -51
  127. package/myReact/archive/await-countNode.js +0 -67
  128. package/myReact/archive/await-nowvalNode.js +0 -44
  129. package/myReact/archive/callHH.js +0 -96
  130. package/myReact/archive/emit-if2.hh.compiled.js +0 -113
  131. package/myReact/archive/every1Node.js +0 -35
  132. package/myReact/archive/if-runNode.js +0 -74
  133. package/myReact/archive/if1Node.js +0 -43
  134. package/myReact/archive/makeawait.js +0 -0
  135. package/myReact/archive/myReact.old.js +0 -684
  136. package/myReact/archive/orchestration.js +0 -281
  137. package/myReact/archive/orchestration1.js +0 -132
  138. package/myReact/archive/orchestration1.xml +0 -465
  139. package/myReact/archive/orchestration2.js +0 -161
  140. package/myReact/archive/orchestrationHH.mano.js +0 -280
  141. package/myReact/archive/orchestrationHHTest.js +0 -428
  142. package/myReact/archive/orchestrationHHTest.xml +0 -234
  143. package/myReact/archive/orchestrationHHTestRun.js +0 -104
  144. package/myReact/archive/orchestrationHHTestRun.xml +0 -34
  145. package/myReact/archive/orchestrationTest0.js +0 -178
  146. package/myReact/archive/orchestrationTest1.js +0 -181
  147. package/myReact/archive/orchestrationTest2.js +0 -281
  148. package/myReact/archive/run3pointsNode.js +0 -59
  149. package/myReact/archive/runNode.js +0 -123
  150. package/myReact/archive/runNode2.js +0 -91
  151. package/myReact/archive/testAwait1.js +0 -141
  152. package/myReact/archive/testAwait1.xml +0 -86
  153. package/myReact/archive/testEvery1.js +0 -122
  154. package/myReact/archive/testEvery1.xml +0 -79
  155. package/myReact/archive/testHH1.js +0 -135
  156. package/myReact/archive/testHH1.xml +0 -86
  157. package/myReact/archive/testHH1revu.js +0 -104
  158. package/myReact/archive/testHH2.js +0 -122
  159. package/myReact/archive/testHH2.xml +0 -79
  160. package/myReact/archive/testHH3.js +0 -130
  161. package/myReact/archive/testHH3.xml +0 -86
  162. package/myReact/archive/testHHabort.js +0 -121
  163. package/myReact/archive/testHHabort.xml +0 -83
  164. package/myReact/archive/testMakeawait.js +0 -202
  165. package/myReact/archive/testRun1.js +0 -168
  166. package/myReact/archive/testRun1.xml +0 -142
  167. package/myReact/archive/titi.js +0 -28
  168. package/myReact/archive/titi.xml +0 -110
  169. package/myReact/archive/toto.js +0 -73
  170. package/myReact/archive/toto.xml +0 -198
  171. package/myReact/archive/trap-await-parallelNode.js +0 -123
  172. package/myReact/inutiles/hiver2022.xml +0 -804
  173. package/myReact/inutiles/hopeNode.xml +0 -459
  174. package/myReact/inutiles/mars2022.xml +0 -871
  175. package/myReact/inutiles/mystique1.xml +0 -318
  176. package/myReact/inutiles/mystiqueOSC.xml +0 -277
  177. package/myReact/inutiles/opus5Node.xml +0 -1271
  178. package/myReact/inutiles/opus5NodeLinux.xml +0 -1241
  179. package/myReact/inutiles/orchestrationHH.xml +0 -541
  180. package/myReact/inutiles/orchestrationHH2.xml +0 -547
  181. package/myReact/inutiles/testHH.xml +0 -95
  182. package/myReact/inutiles/trouveLaPercuTenor.xml +0 -349
@@ -1,91 +0,0 @@
1
- /*"use hiphop";
2
- "use hopscript";
3
-
4
- var hh = require( "hiphop" );
5
-
6
- hiphop module sub( S, U, W, Z ) {
7
- fork {
8
- if( S.now ) emit W();
9
- } par {
10
- if( U.now ) emit Z();
11
- }
12
- }
13
-
14
- hiphop module main( in S, in U, A, B ) {
15
- run sub( S, U, W as A, Z as B );
16
- }
17
-
18
- exports.prg = new hh.ReactiveMachine( main, "run2" );*/
19
-
20
-
21
- "use strict";
22
-
23
- var hh = require("../hiphop/hiphop.js");
24
-
25
- var sub = hh.MODULE(
26
- {
27
- "id":"sub",
28
- "%location":{},
29
- "%tag":"module"
30
- },
31
- hh.SIGNAL({"%location":{"filename":"run.hh.js","pos":82},"direction":"INOUT","name":"S"}),
32
- hh.SIGNAL({"%location":{"filename":"run.hh.js","pos":85},"direction":"INOUT","name":"U"}),
33
- hh.SIGNAL({"%location":{"filename":"run.hh.js","pos":88},"direction":"INOUT","name":"W"}),
34
- hh.SIGNAL({"%location":{"filename":"run.hh.js","pos":91},"direction":"INOUT","name":"Z"}),
35
- hh.SIGNAL({"%location":{"filename":"run.hh.js","pos":88},"direction":"INOUT","name":"A"}),
36
-
37
- hh.FORK(
38
- {"%location":{"filename":"run.hh.js","pos":100},"%tag":"fork"},
39
- hh.SEQUENCE(
40
- {"%location":{"filename":"run.hh.js","pos":100},"%tag":"fork"},
41
- hh.ATOM(
42
- {
43
- "%location":{},
44
- "%tag":"node",
45
- "apply":function () {console.log('message serveur');}
46
- }),
47
-
48
- hh.EMIT(
49
- {
50
- "%location":{},
51
- "%tag":"emit",
52
- "A":"A",
53
- "apply":function (){
54
- return ((() => {
55
- const A=this["A"];
56
- return 25;
57
- })());
58
- }
59
- },
60
- hh.SIGACCESS({
61
- "signame":"A",
62
- "pre":true,
63
- "val":true,
64
- "cnt":false
65
- })
66
- ),
67
-
68
-
69
- hh.IF(
70
- {"%location":{"filename":"run.hh.js","pos":113},"%tag":"if","apply":function (){return ((() => {const S=this["S"];return S.now;})());}
71
- },
72
- hh.SIGACCESS({"signame":"S","pre":false,"val":false,"cnt":false}),
73
-
74
- hh.EMIT({"%location":{"filename":"run.hh.js","pos":130},"%tag":"emit","W":"W"}))
75
- ),
76
- hh.SEQUENCE(
77
- {"%location":{"filename":"run.hh.js","pos":140},"%tag":"par"},
78
- hh.ATOM({
79
- "%location":{},
80
- "%tag":"node",
81
- "apply":function () {console.log('message serveur 2');}
82
- }),
83
- hh.IF({"%location":{"filename":"run.hh.js","pos":152},"%tag":"if","apply":function (){return ((() => {const U=this["U"];return U.now;})());}
84
- },
85
- hh.SIGACCESS({"signame":"U","pre":false,"val":false,"cnt":false}),
86
-
87
- hh.EMIT({"%location":{"filename":"run.hh.js","pos":169},"%tag":"emit","Z":"Z"}))
88
- )
89
- )
90
- );
91
- exports.sub = sub;
@@ -1,141 +0,0 @@
1
- var toto, titi;
2
-
3
-
4
-
5
- hh = require("../hiphop/hiphop.js");
6
-
7
-
8
-
9
- prg = hh.MACHINE({"id":"prg","%location":{},"%tag":"machine"},
10
-
11
-
12
- hh.SIGNAL({
13
- "%location":{},
14
- "direction":"INOUT",
15
- "name":"toto"
16
- }),
17
-
18
- hh.SIGNAL({
19
- "%location":{},
20
- "direction":"OUT",
21
- "name":"titi"
22
- }),
23
-
24
-
25
-
26
- hh.FORK(
27
- {
28
- "%location":{},
29
- "%tag":"fork"
30
- },
31
-
32
-
33
- hh.SEQUENCE(
34
- {
35
- "%location":{},
36
- "%tag":"seq"
37
- },
38
-
39
-
40
- hh.LOOP(
41
- {
42
- "%location":{loop: 1},
43
- "%tag":"loop"
44
- },
45
-
46
- hh.ATOM(
47
- {
48
- "%location":{},
49
- "%tag":"node",
50
- "apply":function () {console.log('message serveur');}
51
- }
52
- ),
53
-
54
- hh.EMIT(
55
- {
56
- "%location":{},
57
- "%tag":"emit",
58
- "toto":"toto",
59
- "apply":function (){
60
- return ((() => {
61
- //const toto=this["toto"];
62
- return 25;
63
- })());
64
- }
65
- },
66
- hh.SIGACCESS({
67
- "signame":"toto",
68
- "pre":true,
69
- "val":true,
70
- "cnt":false
71
- })
72
- ),
73
-
74
- hh.PAUSE(
75
- {
76
- "%location":{},
77
- "%tag":"yield"
78
- }
79
- ),
80
-
81
- ),
82
-
83
- ),
84
-
85
- hh.SEQUENCE(
86
- {
87
- "%location":{},
88
- "%tag":"seq"
89
- },
90
-
91
-
92
- hh.AWAIT(
93
- {
94
- "%location":{},
95
- "%tag":"await",
96
- "immediate":false,
97
- "apply":function () {
98
- return ((() => {
99
- const toto=this["toto"];
100
- return toto.now;
101
- })());
102
- },
103
- "countapply":function (){ return 2;}
104
- },
105
- hh.SIGACCESS({
106
- "signame":"toto",
107
- "pre":false,
108
- "val":false,
109
- "cnt":false
110
- })
111
- ),
112
-
113
- hh.ATOM(
114
- {
115
- "%location":{},
116
- "%tag":"node",
117
- "apply":function () {console.log('message serveur 2');}
118
- }
119
- ),
120
-
121
- ),
122
-
123
- ),
124
-
125
-
126
- );
127
-
128
- module.exports=prg;
129
-
130
- prg.react();
131
- console.log("--");
132
- prg.react();
133
- console.log("--");
134
- prg.react();
135
- console.log("--");
136
- prg.react();
137
- console.log("--");
138
- prg.react();
139
- console.log("--");
140
- prg.react();
141
- console.log("--");
@@ -1,86 +0,0 @@
1
- <xml xmlns="https://developers.google.com/blockly/xml">
2
- <variables>
3
- <variable id="0^7$5-;a/K@2Cz|KaQ9C">toto</variable>
4
- <variable id="(2c$M@^y9[abd!HliHvm">titi</variable>
5
- </variables>
6
- <block type="hh_orchestration" id="Km0C#~!Ug+_Sl82?#rxU" x="120" y="45">
7
- <field name="trajet">1</field>
8
- <statement name="SIGNALS">
9
- <block type="hh_declare_signal" id="|g6v*h`mK5j7}d`N|/zA">
10
- <field name="TYPE">INOUT</field>
11
- <value name="signal">
12
- <block type="variables_get" id="cq}f$~5{%h;w#?f6fHf{">
13
- <field name="VAR" id="0^7$5-;a/K@2Cz|KaQ9C">toto</field>
14
- </block>
15
- </value>
16
- <next>
17
- <block type="hh_declare_signal" id="lF#OIVFyRv~lXo,j?6zm">
18
- <field name="TYPE">OUT</field>
19
- <value name="signal">
20
- <block type="variables_get" id="bDqv}Hh=]KTEs04hrs{,">
21
- <field name="VAR" id="(2c$M@^y9[abd!HliHvm">titi</field>
22
- </block>
23
- </value>
24
- </block>
25
- </next>
26
- </block>
27
- </statement>
28
- <statement name="BODY">
29
- <block type="hh_fork" id="Bdf=*ZZ7az0Z`Twy3=pl">
30
- <statement name="BODY">
31
- <block type="hh_sequence" id="p;LrV!,jk+6SDBU=}rJo">
32
- <statement name="BODY">
33
- <block type="hh_loop" id="p,%V{4VcLs~tFn1t*gF(">
34
- <statement name="BODY">
35
- <block type="hh_print_serveur" id="XAKSu:fXW][BW)PJ`/$R">
36
- <value name="TEXT">
37
- <block type="text" id=")}Ffbd8nF-Ol0tNX^sxV">
38
- <field name="TEXT">message serveur</field>
39
- </block>
40
- </value>
41
- <next>
42
- <block type="hh_emit_value" id="pHuBchAQYvjaWmq}TsQ^">
43
- <field name="Signal_Value">25</field>
44
- <value name="SIGNAL">
45
- <block type="variables_get" id="4]g),jsSwOyCBi5[%H?+">
46
- <field name="VAR" id="0^7$5-;a/K@2Cz|KaQ9C">toto</field>
47
- </block>
48
- </value>
49
- <next>
50
- <block type="hh_pause" id="k);gX0Wc#GfE)x~r9iSz"></block>
51
- </next>
52
- </block>
53
- </next>
54
- </block>
55
- </statement>
56
- </block>
57
- </statement>
58
- <next>
59
- <block type="hh_sequence" id="T;+r=a(KM/lp${YpO_j*">
60
- <statement name="BODY">
61
- <block type="hh_wait_for" id=",X:B1L`D#@Qv1H)1*e^m">
62
- <field name="TIMES">2</field>
63
- <value name="SIGNAL">
64
- <block type="variables_get" id="NvMl7XhY*80#~@?`=UP]">
65
- <field name="VAR" id="0^7$5-;a/K@2Cz|KaQ9C">toto</field>
66
- </block>
67
- </value>
68
- <next>
69
- <block type="hh_print_serveur" id="(=}lv]1iuuQZ#$bjyqXA">
70
- <value name="TEXT">
71
- <block type="text" id="RK_D:tH5QMu:[ssBu1gq">
72
- <field name="TEXT">message serveur 2</field>
73
- </block>
74
- </value>
75
- </block>
76
- </next>
77
- </block>
78
- </statement>
79
- </block>
80
- </next>
81
- </block>
82
- </statement>
83
- </block>
84
- </statement>
85
- </block>
86
- </xml>
@@ -1,122 +0,0 @@
1
- var toto, titi;
2
-
3
-
4
-
5
- hh = require("../hiphop/hiphop.js");
6
-
7
-
8
-
9
- prg = hh.MACHINE({"id":"prg","%location":{},"%tag":"machine"},
10
-
11
-
12
- hh.SIGNAL({
13
- "%location":{},
14
- "direction":"IN",
15
- "name":"toto"
16
- }),
17
-
18
- hh.SIGNAL({
19
- "%location":{},
20
- "direction":"OUT",
21
- "name":"titi"
22
- }),
23
-
24
-
25
-
26
- hh.FORK(
27
- {
28
- "%location":{},
29
- "%tag":"fork"
30
- },
31
-
32
-
33
- hh.SEQUENCE(
34
- {
35
- "%location":{},
36
- "%tag":"seq"
37
- },
38
-
39
-
40
- hh.ATOM(
41
- {
42
- "%location":{},
43
- "%tag":"node",
44
- "apply":function () {console.log('message serveur');}
45
- }
46
- ),
47
-
48
- hh.EMIT(
49
- {
50
- "%location":{},
51
- "%tag":"emit",
52
- "toto":"toto",
53
- "apply":function (){
54
- return ((() => {
55
- //const toto=this["toto"];
56
- return 25;
57
- })());
58
- }
59
- },
60
- hh.SIGACCESS({
61
- "signame":"toto",
62
- "pre":true,
63
- "val":true,
64
- "cnt":false
65
- })
66
- ),
67
-
68
- ),
69
-
70
- hh.SEQUENCE(
71
- {
72
- "%location":{},
73
- "%tag":"seq"
74
- },
75
-
76
-
77
-
78
- hh.LOOPEACH(
79
- {
80
- "%location":{every: toto},
81
- "%tag":"do/every",
82
- "immediate":false,
83
- "apply": function (){return ((() => {
84
- const toto=this["toto"];
85
- return toto.now;
86
- })());},
87
- "countapply":function (){ return 2;}
88
- },
89
- hh.SIGACCESS({
90
- "signame":"toto",
91
- "pre":false,
92
- "val":false,
93
- "cnt":false
94
- }),
95
-
96
- hh.ATOM(
97
- {
98
- "%location":{},
99
- "%tag":"node",
100
- "apply":function () {console.log('message serveur 2');}
101
- }
102
- ),
103
-
104
- ),
105
-
106
- ),
107
-
108
- ),
109
-
110
-
111
- );
112
-
113
- module.exports=prg;
114
-
115
- prg.react();
116
- prg.react();
117
- prg.react("toto");
118
- prg.react("toto");
119
-
120
- prg.react();
121
- prg.react();
122
- prg.react();
@@ -1,79 +0,0 @@
1
- <xml xmlns="https://developers.google.com/blockly/xml">
2
- <variables>
3
- <variable id="0^7$5-;a/K@2Cz|KaQ9C">toto</variable>
4
- <variable id="(2c$M@^y9[abd!HliHvm">titi</variable>
5
- </variables>
6
- <block type="hh_orchestration" id="Km0C#~!Ug+_Sl82?#rxU" x="120" y="45">
7
- <field name="trajet">1</field>
8
- <statement name="SIGNALS">
9
- <block type="hh_declare_signal" id="|g6v*h`mK5j7}d`N|/zA">
10
- <field name="TYPE">IN</field>
11
- <value name="signal">
12
- <block type="variables_get" id="cq}f$~5{%h;w#?f6fHf{">
13
- <field name="VAR" id="0^7$5-;a/K@2Cz|KaQ9C">toto</field>
14
- </block>
15
- </value>
16
- <next>
17
- <block type="hh_declare_signal" id="lF#OIVFyRv~lXo,j?6zm">
18
- <field name="TYPE">OUT</field>
19
- <value name="signal">
20
- <block type="variables_get" id="bDqv}Hh=]KTEs04hrs{,">
21
- <field name="VAR" id="(2c$M@^y9[abd!HliHvm">titi</field>
22
- </block>
23
- </value>
24
- </block>
25
- </next>
26
- </block>
27
- </statement>
28
- <statement name="BODY">
29
- <block type="hh_fork" id="Bdf=*ZZ7az0Z`Twy3=pl">
30
- <statement name="BODY">
31
- <block type="hh_sequence" id="p;LrV!,jk+6SDBU=}rJo">
32
- <statement name="BODY">
33
- <block type="hh_print_serveur" id="XAKSu:fXW][BW)PJ`/$R">
34
- <value name="TEXT">
35
- <block type="text" id=")}Ffbd8nF-Ol0tNX^sxV">
36
- <field name="TEXT">message serveur</field>
37
- </block>
38
- </value>
39
- <next>
40
- <block type="hh_emit_value" id="pHuBchAQYvjaWmq}TsQ^">
41
- <field name="Signal_Value">25</field>
42
- <value name="SIGNAL">
43
- <block type="variables_get" id="4]g),jsSwOyCBi5[%H?+">
44
- <field name="VAR" id="0^7$5-;a/K@2Cz|KaQ9C">toto</field>
45
- </block>
46
- </value>
47
- </block>
48
- </next>
49
- </block>
50
- </statement>
51
- <next>
52
- <block type="hh_sequence" id="T;+r=a(KM/lp${YpO_j*">
53
- <statement name="BODY">
54
- <block type="hh_every" id="[zsK0sLpXVeU~cL|D|o#">
55
- <field name="TIMES">2</field>
56
- <value name="SIGNAL">
57
- <block type="variables_get" id="NvMl7XhY*80#~@?`=UP]">
58
- <field name="VAR" id="0^7$5-;a/K@2Cz|KaQ9C">toto</field>
59
- </block>
60
- </value>
61
- <statement name="BODY">
62
- <block type="hh_print_serveur" id="(=}lv]1iuuQZ#$bjyqXA">
63
- <value name="TEXT">
64
- <block type="text" id="RK_D:tH5QMu:[ssBu1gq">
65
- <field name="TEXT">message serveur 2</field>
66
- </block>
67
- </value>
68
- </block>
69
- </statement>
70
- </block>
71
- </statement>
72
- </block>
73
- </next>
74
- </block>
75
- </statement>
76
- </block>
77
- </statement>
78
- </block>
79
- </xml>
@@ -1,135 +0,0 @@
1
- var toto, titi;
2
-
3
-
4
-
5
- hh = require("../hiphop/hiphop.js");
6
-
7
- prg = hh.MACHINE({"id":"prg","%location":{},"%tag":"machine"},
8
-
9
-
10
- hh.SIGNAL({
11
- "%location":{},
12
- "direction":"IN",
13
- "name":"toto"
14
- }),
15
-
16
- hh.SIGNAL({
17
- "%location":{},
18
- "direction":"OUT",
19
- "name":"titi"
20
- }),
21
-
22
-
23
-
24
- hh.FORK(
25
- {
26
- "%location":{},
27
- "%tag":"fork"
28
- },
29
-
30
-
31
- hh.SEQUENCE(
32
- {
33
- "%location":{},
34
- "%tag":"seq"
35
- },
36
-
37
-
38
- hh.LOOP(
39
- {
40
- "%location":{},
41
- "%tag":"loop"
42
- },
43
-
44
-
45
- hh.ATOM(
46
- {
47
- "%location":{},
48
- "%tag":"node",
49
- "apply":function () {console.log('message serveur');}
50
- }
51
- ),
52
-
53
- hh.EMIT(
54
- {
55
- "%location":{},
56
- "%tag":"emit",
57
- "toto":"toto",
58
- "apply":function (){
59
- return ((() => {
60
- //const toto=this["toto"];
61
- return 25;
62
- })());
63
- }
64
- },
65
- hh.SIGACCESS({
66
- "signame":"toto",
67
- "pre":true,
68
- "val":true,
69
- "cnt":false
70
- })
71
- ),
72
-
73
- hh.PAUSE(
74
- {
75
- "%location":{},
76
- "%tag":"yield"
77
- }
78
- ),
79
-
80
- ),
81
-
82
- ),
83
-
84
- hh.SEQUENCE(
85
- {
86
- "%location":{},
87
- "%tag":"seq"
88
- },
89
-
90
-
91
- hh.AWAIT(
92
- {
93
- "%location":{},
94
- "%tag":"await",
95
- "immediate":false,
96
- "apply":function () {
97
- return ((() => {
98
- const toto=this["toto"];
99
- return toto.now;
100
- })());
101
- },
102
- "countapply":function (){ return 2;}
103
- },
104
- hh.SIGACCESS({
105
- "signame":"toto",
106
- "pre":false,
107
- "val":false,
108
- "cnt":false
109
- })
110
- ),
111
-
112
- hh.ATOM(
113
- {
114
- "%location":{},
115
- "%tag":"node",
116
- "apply":function () {console.log('message serveur 2');}
117
- }
118
- ),
119
-
120
- ),
121
-
122
- ),
123
-
124
-
125
- );
126
-
127
- module.exports=prg;
128
-
129
- prg.react();
130
- console.log("1")
131
- prg.react();
132
- console.log("2")
133
- prg.react();
134
- console.log("3")
135
-