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.
- package/blocklySkini/scripts/hiphop_blocks.js +3991 -6104
- package/blocklySkini/scripts/main2.js +4 -4
- package/client/clientListe/clientListe.js +11 -0
- package/client/clientListe/clientListebundle.js +1755 -1909
- package/client/configurateur/configReact.js +1 -1
- package/client/configurateur/configReactbundle.js +16 -10
- package/client/configurateur/src/configReact.js +1 -1
- package/client/parametrage/paramReact.js +1 -1
- package/client/parametrage/paramReactbundle.js +6 -5
- package/client/parametrage/src/paramReact.js +2 -2
- package/client/score/parto1.js +4 -1
- package/client/score/parto1bundle.js +45 -23
- package/client/simulateurListe/simulateurFork.mjs +1 -1
- package/client/simulateurListe/simulateurListe.js +3 -3
- package/doc/Doc Skini Node english.pdf +0 -0
- package/doc/Mode d'emploi Skini Node.pdf +0 -0
- package/doc/Tuto Skini.pdf +0 -0
- package/doc/quickstart.pdf +0 -0
- package/myReact/orchestrationHH.hh.js +2024 -0
- package/myReact/orchestrationHH.mjs +262 -420
- package/myReact/orchestrationHH.mjs.map +1 -1
- package/package.json +19 -11
- package/pieces/tutos/demoAbleton.csv +21 -0
- package/pieces/tutos/demoAbleton.js +100 -0
- package/pieces/tutos/demoAbleton.xml +180 -0
- package/pieces/tutos/demoHH.js +99 -0
- package/pieces/tutos/demoHH.xml +184 -0
- package/pieces/tutos/demoHHwait.js +100 -0
- package/pieces/tutos/demoHHwait.xml +175 -0
- package/pieces/tutos/tuto.csv +10 -0
- package/pieces/tutos/tuto.csv.good +1 -0
- package/pieces/tutos/tuto1.js +105 -0
- package/pieces/tutos/tuto1.xml +147 -0
- package/pieces/tutos/tuto10.back.js +106 -0
- package/pieces/tutos/tuto10.js +107 -0
- package/pieces/tutos/tuto10.xml +199 -0
- package/pieces/tutos/tuto11.js +111 -0
- package/pieces/tutos/tuto11.xml +124 -0
- package/pieces/tutos/tuto12.js +91 -0
- package/pieces/tutos/tuto12.xml +258 -0
- package/pieces/tutos/tuto2.back.js +106 -0
- package/pieces/tutos/tuto2.js +95 -0
- package/pieces/tutos/tuto2.xml +94 -0
- package/pieces/tutos/tuto3-2.js +105 -0
- package/pieces/tutos/tuto3-2.xml +96 -0
- package/pieces/tutos/tuto3.js +97 -0
- package/pieces/tutos/tuto3.xml +49 -0
- package/pieces/tutos/tuto4.js +107 -0
- package/pieces/tutos/tuto4.xml +106 -0
- package/pieces/tutos/tuto5.js +109 -0
- package/pieces/tutos/tuto5.xml +42 -0
- package/pieces/tutos/tuto6.js +105 -0
- package/pieces/tutos/tuto6.xml +26 -0
- package/pieces/tutos/tuto7.js +107 -0
- package/pieces/tutos/tuto7.xml +65 -0
- package/pieces/tutos/tuto8.js +105 -0
- package/pieces/tutos/tuto8.xml +76 -0
- package/pieces/tutos/tuto9.js +107 -0
- package/pieces/tutos/tuto9.xml +90 -0
- package/pieces/tutos/tutoAwait.js +111 -0
- package/pieces/tutos/tutoAwait.xml +171 -0
- package/pieces/tutos/tutoDoubleEmission.js +93 -0
- package/pieces/tutos/tutoDoubleEmission.xml +65 -0
- package/pieces/tutos/tutoESP32.js +104 -0
- package/pieces/tutos/tutoESP32.xml +246 -0
- package/pieces/tutos/tutoGame.js +126 -0
- package/pieces/tutos/tutoGame.xml +109 -0
- package/pieces/tutos/tutoGroups1.js +111 -0
- package/pieces/tutos/tutoGroups1.xml +137 -0
- package/pieces/tutos/tutoGroups2.js +97 -0
- package/pieces/tutos/tutoGroups2.xml +103 -0
- package/pieces/tutos/tutoGroups3.js +111 -0
- package/pieces/tutos/tutoGroups3.xml +128 -0
- package/pieces/tutos/tutoGroups4.js +111 -0
- package/pieces/tutos/tutoGroups4.xml +84 -0
- package/pieces/tutos/tutoIZ.js +95 -0
- package/pieces/tutos/tutoIZ.xml +135 -0
- package/pieces/tutos/tutoIf.js +111 -0
- package/pieces/tutos/tutoIf.xml +126 -0
- package/pieces/tutos/tutoMidi.js +126 -0
- package/pieces/tutos/tutoMidi.xml +62 -0
- package/pieces/tutos/tutoOS.js +121 -0
- package/pieces/tutos/tutoOSC.js +109 -0
- package/pieces/tutos/tutoOSC.xml +223 -0
- package/pieces/tutos/tutoOSCJonathan.js +94 -0
- package/pieces/tutos/tutoOSCJonathan.xml +312 -0
- package/pieces/tutos/tutoPatternInGroup.js +109 -0
- package/pieces/tutos/tutoPatternInGroup.xml +116 -0
- package/pieces/tutos/tutoRandomBlock.js +129 -0
- package/pieces/tutos/tutoRandomBlock.xml +194 -0
- package/pieces/tutos/tutoSuspend.js +107 -0
- package/pieces/tutos/tutoSuspend.xml +139 -0
- package/pieces/tutos/tutoSustain.js +107 -0
- package/pieces/tutos/tutoSustain.xml +109 -0
- package/pieces/tutos/tutoTank.csv +9 -0
- package/pieces/tutos/tutoTank.js +100 -0
- package/pieces/tutos/tutoTank.xml +326 -0
- package/pieces/tutos/tutoTestAll.csv +11 -0
- package/pieces/tutos/tutoTestAll.js +101 -0
- package/pieces/tutos/tutoTestAll.xml +859 -0
- package/serveur/OSCandMidi.mjs +7 -5
- package/serveur/controleDAW.mjs +3 -2
- package/serveur/defaultSkiniParametres.js +20 -13
- package/serveur/groupeClientsSons.mjs +10 -5
- package/serveur/ipConfig.json +2 -2
- package/serveur/midimix.mjs +13 -13
- package/serveur/saveParam.mjs +4 -15
- package/serveur/skiniParametres.js +108 -26
- package/serveur/utilsHHSkini.hh.js +64 -64
- package/serveur/websocketServer.mjs +2090 -2052
- package/serveur/workerInterfaceZ.mjs +4 -7
- package/blocklySkini/archive/blocklyControleur.js +0 -87
- package/blocklySkini/archive/blocklySkini.js +0 -84
- package/blocklySkini/archive/blocklyhop.js +0 -75
- package/blocklySkini/archive/clientControleurBlocly.js +0 -170
- package/blocklySkini/archive/index.html +0 -76
- package/blocklySkini/archive/testHHsuspend.txt +0 -89
- package/blocklySkini/archive/testHHtrap.txt +0 -262
- package/blocklySkini/archive/testOrchestration.txt +0 -177
- package/blocklySkini/archive/testOrchestration.xml +0 -447
- package/blocklySkini/archive/testOrchestration2.xml +0 -456
- package/myReact/archive/Nodeemitvaluedlocal1.hh.js +0 -52
- package/myReact/archive/abort-parNode.js +0 -79
- package/myReact/archive/abroNode.js +0 -169
- package/myReact/archive/abroNode2.js +0 -80
- package/myReact/archive/atom.compile.hh.js +0 -51
- package/myReact/archive/await-countNode.js +0 -67
- package/myReact/archive/await-nowvalNode.js +0 -44
- package/myReact/archive/callHH.js +0 -96
- package/myReact/archive/emit-if2.hh.compiled.js +0 -113
- package/myReact/archive/every1Node.js +0 -35
- package/myReact/archive/if-runNode.js +0 -74
- package/myReact/archive/if1Node.js +0 -43
- package/myReact/archive/makeawait.js +0 -0
- package/myReact/archive/myReact.old.js +0 -684
- package/myReact/archive/orchestration.js +0 -281
- package/myReact/archive/orchestration1.js +0 -132
- package/myReact/archive/orchestration1.xml +0 -465
- package/myReact/archive/orchestration2.js +0 -161
- package/myReact/archive/orchestrationHH.mano.js +0 -280
- package/myReact/archive/orchestrationHHTest.js +0 -428
- package/myReact/archive/orchestrationHHTest.xml +0 -234
- package/myReact/archive/orchestrationHHTestRun.js +0 -104
- package/myReact/archive/orchestrationHHTestRun.xml +0 -34
- package/myReact/archive/orchestrationTest0.js +0 -178
- package/myReact/archive/orchestrationTest1.js +0 -181
- package/myReact/archive/orchestrationTest2.js +0 -281
- package/myReact/archive/run3pointsNode.js +0 -59
- package/myReact/archive/runNode.js +0 -123
- package/myReact/archive/runNode2.js +0 -91
- package/myReact/archive/testAwait1.js +0 -141
- package/myReact/archive/testAwait1.xml +0 -86
- package/myReact/archive/testEvery1.js +0 -122
- package/myReact/archive/testEvery1.xml +0 -79
- package/myReact/archive/testHH1.js +0 -135
- package/myReact/archive/testHH1.xml +0 -86
- package/myReact/archive/testHH1revu.js +0 -104
- package/myReact/archive/testHH2.js +0 -122
- package/myReact/archive/testHH2.xml +0 -79
- package/myReact/archive/testHH3.js +0 -130
- package/myReact/archive/testHH3.xml +0 -86
- package/myReact/archive/testHHabort.js +0 -121
- package/myReact/archive/testHHabort.xml +0 -83
- package/myReact/archive/testMakeawait.js +0 -202
- package/myReact/archive/testRun1.js +0 -168
- package/myReact/archive/testRun1.xml +0 -142
- package/myReact/archive/titi.js +0 -28
- package/myReact/archive/titi.xml +0 -110
- package/myReact/archive/toto.js +0 -73
- package/myReact/archive/toto.xml +0 -198
- package/myReact/archive/trap-await-parallelNode.js +0 -123
- package/myReact/inutiles/hiver2022.xml +0 -804
- package/myReact/inutiles/hopeNode.xml +0 -459
- package/myReact/inutiles/mars2022.xml +0 -871
- package/myReact/inutiles/mystique1.xml +0 -318
- package/myReact/inutiles/mystiqueOSC.xml +0 -277
- package/myReact/inutiles/opus5Node.xml +0 -1271
- package/myReact/inutiles/opus5NodeLinux.xml +0 -1241
- package/myReact/inutiles/orchestrationHH.xml +0 -541
- package/myReact/inutiles/orchestrationHH2.xml +0 -547
- package/myReact/inutiles/testHH.xml +0 -95
- package/myReact/inutiles/trouveLaPercuTenor.xml +0 -349
|
@@ -1,169 +0,0 @@
|
|
|
1
|
-
/*"use hiphop"
|
|
2
|
-
"use hopscript"
|
|
3
|
-
|
|
4
|
-
const hh = require( "hiphop" );
|
|
5
|
-
|
|
6
|
-
hiphop module prg( in A, in B, in R, out O ) {
|
|
7
|
-
do {
|
|
8
|
-
fork {
|
|
9
|
-
await( A.now );
|
|
10
|
-
} par {
|
|
11
|
-
await( B.now );
|
|
12
|
-
}
|
|
13
|
-
emit O();
|
|
14
|
-
} every( R.now )
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
exports.prg = new hh.ReactiveMachine( prg, "ABRO" );
|
|
18
|
-
|
|
19
|
-
prg.addEventListener( "O", () => {console.log("reçu O")} );
|
|
20
|
-
|
|
21
|
-
prg.input({"A":1});
|
|
22
|
-
console.log("A");
|
|
23
|
-
prg.input({"B":1});
|
|
24
|
-
console.log("B");
|
|
25
|
-
|
|
26
|
-
prg.inputAndReact({"R":1});
|
|
27
|
-
*/
|
|
28
|
-
|
|
29
|
-
"use strict";
|
|
30
|
-
var hh;
|
|
31
|
-
let prg;
|
|
32
|
-
|
|
33
|
-
function foo(evt){
|
|
34
|
-
console.log("foo called by",evt.type,"with value",evt.nowval);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
hh = require("../hiphop/hiphop.js");
|
|
38
|
-
|
|
39
|
-
prg = hh.MACHINE({"id":"prg","%location":{},"%tag":"machine"},
|
|
40
|
-
|
|
41
|
-
hh.SIGNAL({
|
|
42
|
-
"%location":{},
|
|
43
|
-
"direction":"IN",
|
|
44
|
-
"name":"A"
|
|
45
|
-
}),
|
|
46
|
-
hh.SIGNAL({
|
|
47
|
-
"%location":{},
|
|
48
|
-
"direction":"IN",
|
|
49
|
-
"name":"B"
|
|
50
|
-
}),
|
|
51
|
-
hh.SIGNAL({
|
|
52
|
-
"%location":{},
|
|
53
|
-
"direction":"IN",
|
|
54
|
-
"name":"R"
|
|
55
|
-
}),
|
|
56
|
-
hh.SIGNAL({
|
|
57
|
-
"%location":{},
|
|
58
|
-
"direction":"OUT",
|
|
59
|
-
"name":"O",
|
|
60
|
-
"init_func":function (){
|
|
61
|
-
return 0;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
),
|
|
65
|
-
|
|
66
|
-
hh.LOOPEACH(
|
|
67
|
-
{
|
|
68
|
-
"%location":{},
|
|
69
|
-
"%tag":"do/every",
|
|
70
|
-
"immediate":false,
|
|
71
|
-
"apply":function (){
|
|
72
|
-
return ( () => {
|
|
73
|
-
const R=this["R"];
|
|
74
|
-
return R.now;
|
|
75
|
-
} )();
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
hh.SIGACCESS({
|
|
79
|
-
"signame":"R",
|
|
80
|
-
"pre":false,
|
|
81
|
-
"val":false,
|
|
82
|
-
"cnt":false}),
|
|
83
|
-
hh.FORK(
|
|
84
|
-
{
|
|
85
|
-
"%location":{},
|
|
86
|
-
"%tag":"fork"
|
|
87
|
-
},
|
|
88
|
-
hh.SEQUENCE(
|
|
89
|
-
{
|
|
90
|
-
"%location":{},
|
|
91
|
-
"%tag":"fork"
|
|
92
|
-
},
|
|
93
|
-
hh.AWAIT(
|
|
94
|
-
{
|
|
95
|
-
"%location":{},
|
|
96
|
-
"%tag":"await",
|
|
97
|
-
"immediate":true,
|
|
98
|
-
"apply":function () {
|
|
99
|
-
return ((() => {
|
|
100
|
-
const A=this["A"];
|
|
101
|
-
return A.now;
|
|
102
|
-
})());
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
hh.SIGACCESS(
|
|
106
|
-
{
|
|
107
|
-
"signame":"A",
|
|
108
|
-
"pre":false,
|
|
109
|
-
"val":false,
|
|
110
|
-
"cnt":false
|
|
111
|
-
})
|
|
112
|
-
)
|
|
113
|
-
),
|
|
114
|
-
hh.SEQUENCE(
|
|
115
|
-
{
|
|
116
|
-
"%location":{},
|
|
117
|
-
"%tag":"par"
|
|
118
|
-
},
|
|
119
|
-
hh.AWAIT(
|
|
120
|
-
{
|
|
121
|
-
"%location":{},
|
|
122
|
-
"%tag":"await",
|
|
123
|
-
"immediate":true,
|
|
124
|
-
"apply":function () {
|
|
125
|
-
return ((() => {
|
|
126
|
-
const B=this["B"];
|
|
127
|
-
return B.now;
|
|
128
|
-
})());
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
hh.SIGACCESS({
|
|
132
|
-
"signame":"B",
|
|
133
|
-
"pre":false,
|
|
134
|
-
"val":false,
|
|
135
|
-
"cnt":false
|
|
136
|
-
})
|
|
137
|
-
)
|
|
138
|
-
)
|
|
139
|
-
),
|
|
140
|
-
hh.EMIT(
|
|
141
|
-
{
|
|
142
|
-
"%location":{},
|
|
143
|
-
"%tag":"emit",
|
|
144
|
-
"O":"O",
|
|
145
|
-
"apply":function (){
|
|
146
|
-
return ((() => {
|
|
147
|
-
const O=this["O"];
|
|
148
|
-
return O.preval + 1;
|
|
149
|
-
})());
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
hh.SIGACCESS({
|
|
153
|
-
"signame":"O",
|
|
154
|
-
"pre":true,
|
|
155
|
-
"val":true,
|
|
156
|
-
"cnt":false
|
|
157
|
-
})
|
|
158
|
-
)
|
|
159
|
-
)
|
|
160
|
-
);
|
|
161
|
-
|
|
162
|
-
module.exports=prg;
|
|
163
|
-
|
|
164
|
-
prg.addEventListener("O",foo);
|
|
165
|
-
|
|
166
|
-
prg.input({"A":1});
|
|
167
|
-
prg.input({"B":1});
|
|
168
|
-
|
|
169
|
-
prg.react({"R":1});
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __hh_module;
|
|
3
|
-
let prg;
|
|
4
|
-
|
|
5
|
-
function foo(evt){{console.log("foo called by",evt.type,"with value",evt.nowval);}}
|
|
6
|
-
|
|
7
|
-
__hh_module = require("../hiphop/hiphop.js");
|
|
8
|
-
|
|
9
|
-
prg = __hh_module.MACHINE(
|
|
10
|
-
{"id":"prg","%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":37},"%tag":"machine"},
|
|
11
|
-
|
|
12
|
-
__hh_module.SIGNAL({"%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":50},"direction":"IN","name":"A"}),
|
|
13
|
-
__hh_module.SIGNAL({"%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":56},"direction":"IN","name":"B"}),
|
|
14
|
-
__hh_module.SIGNAL({"%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":62},"direction":"IN","name":"R"}),
|
|
15
|
-
__hh_module.SIGNAL({"%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":68},
|
|
16
|
-
"direction":"OUT","name":"O","init_func":function (){
|
|
17
|
-
console.log("init O");
|
|
18
|
-
return 0;
|
|
19
|
-
} }),
|
|
20
|
-
|
|
21
|
-
__hh_module.LOOPEACH(
|
|
22
|
-
{"%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":85},"%tag":"do/every","immediate":false,
|
|
23
|
-
"apply":function (){return ((() => {
|
|
24
|
-
const R=this["R"];
|
|
25
|
-
console.log("apply R");
|
|
26
|
-
return R.now;
|
|
27
|
-
})());}
|
|
28
|
-
},
|
|
29
|
-
__hh_module.SIGACCESS({"signame":"R","pre":false,"val":false,"cnt":false}),
|
|
30
|
-
__hh_module.FORK(
|
|
31
|
-
{"%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":96},"%tag":"fork"},
|
|
32
|
-
__hh_module.SEQUENCE({"%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":96},"%tag":"fork"},
|
|
33
|
-
__hh_module.AWAIT({"%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":112},"%tag":"await",
|
|
34
|
-
"immediate":true,"apply":function (){return ((() => {
|
|
35
|
-
const A=this["A"];
|
|
36
|
-
console.log("AWAIT A");
|
|
37
|
-
return A.now;
|
|
38
|
-
})());}
|
|
39
|
-
},
|
|
40
|
-
__hh_module.SIGACCESS({"signame":"A","pre":false,"val":false,"cnt":false}))),
|
|
41
|
-
__hh_module.SEQUENCE(
|
|
42
|
-
{"%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":136},"%tag":"par"},
|
|
43
|
-
__hh_module.AWAIT(
|
|
44
|
-
{"%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":151},"%tag":"await",
|
|
45
|
-
"immediate":true,"apply":function ()
|
|
46
|
-
{
|
|
47
|
-
return ((() => {
|
|
48
|
-
const B=this["B"];
|
|
49
|
-
console.log("AWAIT B");
|
|
50
|
-
return B.now;
|
|
51
|
-
})());
|
|
52
|
-
}
|
|
53
|
-
},
|
|
54
|
-
__hh_module.SIGACCESS({"signame":"B","pre":false,"val":false,"cnt":false})
|
|
55
|
-
)
|
|
56
|
-
)
|
|
57
|
-
),
|
|
58
|
-
__hh_module.EMIT({"%location":{"filename":"/home/serrano/trashcan/abro.hh.js","pos":186},
|
|
59
|
-
"%tag":"emit","O":"O","apply":function (){
|
|
60
|
-
return ((() => {
|
|
61
|
-
const O=this["O"];
|
|
62
|
-
console.log("EMIT O");
|
|
63
|
-
return O.preval + 1;
|
|
64
|
-
})());}
|
|
65
|
-
},
|
|
66
|
-
__hh_module.SIGACCESS({"signame":"O","pre":true,"val":true,"cnt":false}))
|
|
67
|
-
)
|
|
68
|
-
);
|
|
69
|
-
|
|
70
|
-
module.exports=prg;
|
|
71
|
-
|
|
72
|
-
prg.addEventListener("O",foo);
|
|
73
|
-
|
|
74
|
-
prg.input({"A":1});
|
|
75
|
-
prg.input({"B":1});
|
|
76
|
-
|
|
77
|
-
prg.react({"R":1});
|
|
78
|
-
|
|
79
|
-
prg.react();
|
|
80
|
-
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict"
|
|
2
|
-
"use hopscript"
|
|
3
|
-
|
|
4
|
-
/*var hh = require( "hiphop" );
|
|
5
|
-
|
|
6
|
-
function func() {
|
|
7
|
-
console.log( "atom works!" );
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
hiphop module prg() {
|
|
11
|
-
loop {
|
|
12
|
-
yield;
|
|
13
|
-
hop { func() };
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
var m = new hh.ReactiveMachine( prg, "atom" );
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
var hh;
|
|
21
|
-
var __hh_module;
|
|
22
|
-
var m;
|
|
23
|
-
let prg;
|
|
24
|
-
|
|
25
|
-
function func() {
|
|
26
|
-
console.log( "atom works!" );
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
__hh_module= require("../hiphop/hiphop.js");
|
|
30
|
-
|
|
31
|
-
prg=__hh_module.MACHINE(
|
|
32
|
-
{"id":"prg","%location":{"filename":"emit-if2.hh.js","pos":290},"%tag":"module"},
|
|
33
|
-
|
|
34
|
-
__hh_module.LOOP({"%location":{"filename":"emit-if2.hh.js","pos":308}},
|
|
35
|
-
__hh_module.PAUSE({"%location":{"filename":"emit-if2.hh.js","pos":321},"%tag":"yield"}),
|
|
36
|
-
__hh_module.ATOM(
|
|
37
|
-
{
|
|
38
|
-
"%location":{"filename":"emit-if2.hh.js","pos":334},
|
|
39
|
-
"%tag":"hop",
|
|
40
|
-
"apply":function (){func();}
|
|
41
|
-
}
|
|
42
|
-
)
|
|
43
|
-
)
|
|
44
|
-
);
|
|
45
|
-
module.exports=prg;
|
|
46
|
-
//m = new hh.ReactiveMachine(prg,"awaitvalued");
|
|
47
|
-
|
|
48
|
-
prg.debug_emitted_func=console.log;
|
|
49
|
-
|
|
50
|
-
prg.react();
|
|
51
|
-
prg.react();
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
/*"use hiphop"
|
|
2
|
-
"use hopscript"
|
|
3
|
-
|
|
4
|
-
const hh = require( "hiphop" );
|
|
5
|
-
|
|
6
|
-
hiphop module prg( in I, out O ) {
|
|
7
|
-
loop {
|
|
8
|
-
await count( 3, I.now );
|
|
9
|
-
emit O();
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
exports.prg = new hh.ReactiveMachine( prg, "await3" );
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
"use strict";
|
|
17
|
-
var __hh_module;
|
|
18
|
-
|
|
19
|
-
const hh=require("hiphop");
|
|
20
|
-
|
|
21
|
-
let prg;__hh_module=require("hiphop");
|
|
22
|
-
|
|
23
|
-
prg=__hh_module.MODULE(
|
|
24
|
-
{"id":"prg","%location":{"filename":"await-count.hh.js","pos":70},"%tag":"module"},
|
|
25
|
-
|
|
26
|
-
__hh_module.SIGNAL({"%location":{"filename":"await-count.hh.js","pos":82},
|
|
27
|
-
"direction":"IN",
|
|
28
|
-
"name":"I"}
|
|
29
|
-
),
|
|
30
|
-
__hh_module.SIGNAL(
|
|
31
|
-
{"%location":{"filename":"await-count.hh.js","pos":88},
|
|
32
|
-
"direction":"OUT"
|
|
33
|
-
"name":"O"}),
|
|
34
|
-
__hh_module.LOOP(
|
|
35
|
-
{"%location":{"filename":"await-count.hh.js","pos":101}}
|
|
36
|
-
,__hh_module.AWAIT({"%location":{"filename":"await-count.hh.js","pos":114},
|
|
37
|
-
"%tag":"await",
|
|
38
|
-
"immediate":false,
|
|
39
|
-
"apply":function (){return ((() => {const I=this["I"];return I.now;})());
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
var __hh_module;const hh=require("hiphop");
|
|
45
|
-
let prg;__hh_module=require("hiphop");
|
|
46
|
-
prg=__hh_module.MODULE({"id":"prg","%location":{"filename":"await-count.hh.js","pos":70},"%tag":"module"},
|
|
47
|
-
__hh_module.SIGNAL({"%location":{"filename":"await-count.hh.js","pos":82},"direction":"IN","name":"I"}),
|
|
48
|
-
__hh_module.SIGNAL({"%location":{"filename":"await-count.hh.js","pos":88},"direction":"OUT","name":"O"}),
|
|
49
|
-
__hh_module.LOOP({"%location":{"filename":"await-count.hh.js","pos":101}},
|
|
50
|
-
__hh_module.AWAIT(
|
|
51
|
-
{
|
|
52
|
-
"%location":{"filename":"await-count.hh.js","pos":114},
|
|
53
|
-
"%tag":"await",
|
|
54
|
-
"immediate":false,
|
|
55
|
-
"apply":function (){
|
|
56
|
-
return ((() => {
|
|
57
|
-
const I=this["I"];
|
|
58
|
-
return I.now;
|
|
59
|
-
})());},
|
|
60
|
-
"countapply":function (){return 3;}
|
|
61
|
-
},
|
|
62
|
-
|
|
63
|
-
__hh_module.SIGACCESS({"signame":"I","pre":false,"val":false,"cnt":false})),
|
|
64
|
-
__hh_module.EMIT({"%location":{"filename":"await-count.hh.js","pos":150},"%tag":"emit","O":"O"})));
|
|
65
|
-
|
|
66
|
-
exports.prg=new hh.ReactiveMachine(prg,"await3");
|
|
67
|
-
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*"use hiphop"
|
|
2
|
-
"use hopscript"
|
|
3
|
-
|
|
4
|
-
var hh = require( "hiphop" );
|
|
5
|
-
|
|
6
|
-
hiphop module prg( in I, out O ) {
|
|
7
|
-
loop {
|
|
8
|
-
await ( I.now && I.nowval == 3 );
|
|
9
|
-
emit O();
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
exports.prg = new hh.ReactiveMachine( prg, "await3" );
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
"use strict";
|
|
17
|
-
var hh;
|
|
18
|
-
|
|
19
|
-
var __hh_module;
|
|
20
|
-
let prg;
|
|
21
|
-
hh=require("hiphop");
|
|
22
|
-
|
|
23
|
-
__hh_module=require("hiphop");
|
|
24
|
-
prg=__hh_module.MODULE({"id":"prg","%location":{"filename":"await-nowval.hh.js","pos":68},"%tag":"module"},
|
|
25
|
-
__hh_module.SIGNAL({"%location":{"filename":"await-nowval.hh.js","pos":80},"direction":"IN","name":"I"}),
|
|
26
|
-
__hh_module.SIGNAL({"%location":{"filename":"await-nowval.hh.js","pos":86},"direction":"OUT","name":"O"}),
|
|
27
|
-
__hh_module.LOOP({"%location":{"filename":"await-nowval.hh.js","pos":99}},
|
|
28
|
-
__hh_module.AWAIT(
|
|
29
|
-
{"%location":{"filename":"await-nowval.hh.js","pos":112},
|
|
30
|
-
"%tag":"await","immediate":false,
|
|
31
|
-
"apply":function (){
|
|
32
|
-
return ((() => {
|
|
33
|
-
const I=this["I"];
|
|
34
|
-
return I.now && I.nowval == 3;
|
|
35
|
-
})());
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
__hh_module.SIGACCESS({"signame":"I","pre":false,"val":false,"cnt":false})
|
|
39
|
-
),
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
__hh_module.EMIT({"%location":{"filename":"await-nowval.hh.js","pos":157},"%tag":"emit","O":"O"})));
|
|
43
|
-
|
|
44
|
-
exports.prg=new hh.ReactiveMachine(prg,"await3");
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var hh = require("../hiphop/hiphop.js");
|
|
4
|
-
const decache = require('decache');
|
|
5
|
-
|
|
6
|
-
var main;
|
|
7
|
-
var sub;
|
|
8
|
-
var prg;
|
|
9
|
-
|
|
10
|
-
sub = require("./runNode2.js");
|
|
11
|
-
|
|
12
|
-
var sigS = hh.SIGNAL({"%location":{},"direction":"IN","name":"S"});
|
|
13
|
-
var sigU = hh.SIGNAL({"%location":{},"direction":"IN","name":"U"});
|
|
14
|
-
var sigA = hh.SIGNAL({"%location":{},"direction":"INOUT","name":"A"});
|
|
15
|
-
var sigB = hh.SIGNAL({"%location":{},"direction":"INOUT","name":"B"});
|
|
16
|
-
|
|
17
|
-
var signals = [
|
|
18
|
-
sigS, sigU, sigA, sigB
|
|
19
|
-
];
|
|
20
|
-
|
|
21
|
-
main = hh.MODULE(
|
|
22
|
-
{"id":"main","%location":{},"%tag":"module"},
|
|
23
|
-
signals,
|
|
24
|
-
|
|
25
|
-
hh.ATOM(
|
|
26
|
-
{
|
|
27
|
-
"%location":{},
|
|
28
|
-
"%tag":"node",
|
|
29
|
-
"apply":function () {console.log('Main1');}
|
|
30
|
-
}
|
|
31
|
-
),
|
|
32
|
-
|
|
33
|
-
/* hh.EMIT(
|
|
34
|
-
{
|
|
35
|
-
"%location":{},
|
|
36
|
-
"%tag":"emit",
|
|
37
|
-
"A":"A",
|
|
38
|
-
"apply":function (){
|
|
39
|
-
return ((() => {
|
|
40
|
-
const A=this["A"];
|
|
41
|
-
return 25;
|
|
42
|
-
})());
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
hh.SIGACCESS({
|
|
46
|
-
"signame":"A",
|
|
47
|
-
"pre":true,
|
|
48
|
-
"val":true,
|
|
49
|
-
"cnt":false
|
|
50
|
-
})
|
|
51
|
-
),*/
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
hh.RUN({
|
|
55
|
-
"%location":{},
|
|
56
|
-
"%tag":"run",
|
|
57
|
-
"module": hh.getModule("sub", {}),
|
|
58
|
-
"S":"",
|
|
59
|
-
"U":"",
|
|
60
|
-
"A":"A",
|
|
61
|
-
"Z":"B"
|
|
62
|
-
})
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
prg = new hh.ReactiveMachine(main,"run2");
|
|
66
|
-
|
|
67
|
-
prg.addEventListener("A", ()=> console.log("A") );
|
|
68
|
-
prg.addEventListener("B", ()=> console.log("B") );
|
|
69
|
-
|
|
70
|
-
prg.react("S");
|
|
71
|
-
prg.react("S");
|
|
72
|
-
prg.react("U");
|
|
73
|
-
prg.react();
|
|
74
|
-
|
|
75
|
-
console.log("--------------");
|
|
76
|
-
|
|
77
|
-
//delete require.cache[require.resolve("./runNode2.js")];
|
|
78
|
-
decache("./runNode2.js");
|
|
79
|
-
|
|
80
|
-
try{
|
|
81
|
-
sub = require("./runNode2.js");
|
|
82
|
-
}catch(err){
|
|
83
|
-
console.log("ERR: groupecliensSons: makeAutomatePossibleMachine:", err);
|
|
84
|
-
throw err;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
prg = new hh.ReactiveMachine(main,"run2");
|
|
88
|
-
|
|
89
|
-
prg.addEventListener("A", ()=> console.log("A") );
|
|
90
|
-
prg.addEventListener("B", ()=> console.log("B") );
|
|
91
|
-
|
|
92
|
-
prg.react("S");
|
|
93
|
-
prg.react("S");
|
|
94
|
-
prg.react("U");
|
|
95
|
-
prg.react();
|
|
96
|
-
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
/*"use hiphop"
|
|
2
|
-
"use hopscript"
|
|
3
|
-
|
|
4
|
-
var hh = require( "hiphop" );
|
|
5
|
-
|
|
6
|
-
hiphop module prg( A, B, C ) {
|
|
7
|
-
fork {
|
|
8
|
-
loop {
|
|
9
|
-
if( B.nowval > 3 ) emit A();
|
|
10
|
-
yield;
|
|
11
|
-
}
|
|
12
|
-
} par {
|
|
13
|
-
loop {
|
|
14
|
-
if( C.now ) {
|
|
15
|
-
emit B( 4 );
|
|
16
|
-
} else {
|
|
17
|
-
emit B( 3 );
|
|
18
|
-
}
|
|
19
|
-
yield;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
var m = new hh.ReactiveMachine( prg, "awaitvalued" );
|
|
25
|
-
|
|
26
|
-
m.debug_emitted_func = console.log
|
|
27
|
-
|
|
28
|
-
m.react()
|
|
29
|
-
m.react()
|
|
30
|
-
m.inputAndReact( "C" )
|
|
31
|
-
m.react()
|
|
32
|
-
m.inputAndReact( "C" )
|
|
33
|
-
m.inputAndReact( "C" )
|
|
34
|
-
*/
|
|
35
|
-
|
|
36
|
-
"use strict";
|
|
37
|
-
var hh;var __hh_module;
|
|
38
|
-
var m;
|
|
39
|
-
let prg;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
__hh_module= require("../hiphop/hiphop.js");
|
|
43
|
-
|
|
44
|
-
prg=__hh_module.MODULE({"id":"prg","%location":{"filename":"emit-if2.hh.js","pos":68},"%tag":"module"},__hh_module.SIGNAL({"%location":{"filename":"emit-if2.hh.js","pos":80},"direction":"INOUT","name":"A"}),
|
|
45
|
-
__hh_module.SIGNAL({"%location":{"filename":"emit-if2.hh.js","pos":83},"direction":"INOUT","name":"B"}),__hh_module.SIGNAL({"%location":{"filename":"emit-if2.hh.js","pos":86},"direction":"INOUT","name":"C"}),
|
|
46
|
-
__hh_module.FORK(
|
|
47
|
-
{"%location":{"filename":"emit-if2.hh.js","pos":95},"%tag":"fork"},
|
|
48
|
-
__hh_module.SEQUENCE(
|
|
49
|
-
{"%location":{"filename":"emit-if2.hh.js","pos":95},"%tag":"fork"},
|
|
50
|
-
__hh_module.LOOP(
|
|
51
|
-
{"%location":{"filename":"emit-if2.hh.js","pos":108}},
|
|
52
|
-
__hh_module.IF(
|
|
53
|
-
{
|
|
54
|
-
"%location":{"filename":"emit-if2.hh.js","pos":117},
|
|
55
|
-
"%tag":"if",
|
|
56
|
-
"apply":function (){return ((() => {const B=this["B"];return B.nowval > 3;})());}
|
|
57
|
-
},
|
|
58
|
-
__hh_module.SIGACCESS(
|
|
59
|
-
{"signame":"B","pre":false,"val":true,"cnt":false}
|
|
60
|
-
),
|
|
61
|
-
/* __hh_module.EMIT(
|
|
62
|
-
{"%location":{"filename":"emit-if2.hh.js","pos":141},"%tag":"emit","A":"A"}
|
|
63
|
-
)),*/
|
|
64
|
-
__hh_module.PAUSE(
|
|
65
|
-
{
|
|
66
|
-
"%location":{"filename":"emit-if2.hh.js","pos":148},
|
|
67
|
-
"%tag":"yield"
|
|
68
|
-
}
|
|
69
|
-
)
|
|
70
|
-
)
|
|
71
|
-
),
|
|
72
|
-
__hh_module.SEQUENCE(
|
|
73
|
-
{"%location":{"filename":"emit-if2.hh.js","pos":168},"%tag":"par"},
|
|
74
|
-
__hh_module.LOOP(
|
|
75
|
-
{"%location":{"filename":"emit-if2.hh.js","pos":180}},
|
|
76
|
-
__hh_module.IF(
|
|
77
|
-
{
|
|
78
|
-
"%location":{"filename":"emit-if2.hh.js","pos":189},
|
|
79
|
-
"%tag":"if",
|
|
80
|
-
"apply":function (){return ((() => {const C=this["C"];return C.now;})());}
|
|
81
|
-
},
|
|
82
|
-
|
|
83
|
-
__hh_module.SIGACCESS(
|
|
84
|
-
{"signame":"C","pre":false,"val":false,"cnt":false}
|
|
85
|
-
),
|
|
86
|
-
__hh_module.SEQUENCE(
|
|
87
|
-
{"%location":{"filename":"emit-if2.hh.js","pos":201},"%tag":"sequence"},
|
|
88
|
-
__hh_module.EMIT(
|
|
89
|
-
{"%location":{"filename":"emit-if2.hh.js","pos":213},"%tag":"emit","B":"B","apply":function (){return 4;}
|
|
90
|
-
})
|
|
91
|
-
),
|
|
92
|
-
__hh_module.SEQUENCE(
|
|
93
|
-
{"%location":{"filename":"emit-if2.hh.js","pos":230},"%tag":"sequence"},
|
|
94
|
-
__hh_module.EMIT({"%location":{"filename":"emit-if2.hh.js","pos":242},"%tag":"emit","B":"B","apply":function (){return 3;}
|
|
95
|
-
})
|
|
96
|
-
)
|
|
97
|
-
),
|
|
98
|
-
__hh_module.PAUSE({"%location":{"filename":"emit-if2.hh.js","pos":256},"%tag":"yield"}))
|
|
99
|
-
)
|
|
100
|
-
|
|
101
|
-
)
|
|
102
|
-
);
|
|
103
|
-
|
|
104
|
-
m = new hh.ReactiveMachine(prg,"awaitvalued");
|
|
105
|
-
|
|
106
|
-
m.debug_emitted_func=console.log;
|
|
107
|
-
|
|
108
|
-
m.react();
|
|
109
|
-
m.react();
|
|
110
|
-
m.inputAndReact("C");
|
|
111
|
-
m.react();
|
|
112
|
-
m.inputAndReact("C");
|
|
113
|
-
m.inputAndReact("C");
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*"use hiphop";
|
|
2
|
-
"use hopscript";
|
|
3
|
-
|
|
4
|
-
const hh = require( "hiphop" );
|
|
5
|
-
|
|
6
|
-
hiphop module prg( in I, O ) {
|
|
7
|
-
every( I.now ) {
|
|
8
|
-
emit O();
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
exports.prg = new hh.ReactiveMachine( prg, "every1" );
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
var __hh_module;
|
|
16
|
-
|
|
17
|
-
const hh=require("hiphop");
|
|
18
|
-
|
|
19
|
-
let prg;__hh_module=require("hiphop");
|
|
20
|
-
prg=__hh_module.MODULE({"id":"prg","%location":{"filename":"every1.hh.js","pos":72},"%tag":"module"},
|
|
21
|
-
__hh_module.SIGNAL({"%location":{"filename":"every1.hh.js","pos":84},"direction":"IN","name":"I"}),
|
|
22
|
-
__hh_module.SIGNAL({"%location":{"filename":"every1.hh.js","pos":90},"direction":"INOUT","name":"O"}),
|
|
23
|
-
__hh_module.EVERY(
|
|
24
|
-
{
|
|
25
|
-
"%location":{"filename":"every1.hh.js","pos":99},
|
|
26
|
-
"%tag":"every","immediate":false,
|
|
27
|
-
"apply":function (){return ((() => {const I=this["I"];return I.now;})());
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
__hh_module.SIGACCESS({"signame":"I","pre":false,"val":false,"cnt":false}),
|
|
31
|
-
__hh_module.EMIT({"%location":{"filename":"every1.hh.js","pos":127},"%tag":"emit","O":"O"})
|
|
32
|
-
)
|
|
33
|
-
);
|
|
34
|
-
|
|
35
|
-
exports.prg=new hh.ReactiveMachine(prg,"every1");
|