nodeskini 1.0.0
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/README.md +31 -0
- package/client/archive/bundle.js +11528 -0
- package/client/archive/golem.html +60 -0
- package/client/archive/golemClient.js +595 -0
- package/client/archive/golembundle.js +11634 -0
- package/client/archive/sequencer.html +43 -0
- package/client/archive/sequenceurClient.js +815 -0
- package/client/archive/stylegolem.css +158 -0
- package/client/archive/stylesequenceur.css +204 -0
- package/client/clientListe/Sortable-master/.circleci/config.yml +33 -0
- package/client/clientListe/Sortable-master/.editorconfig +15 -0
- package/client/clientListe/Sortable-master/.github/ISSUE_TEMPLATE/bug-report.md +73 -0
- package/client/clientListe/Sortable-master/.github/ISSUE_TEMPLATE/custom-template.md +48 -0
- package/client/clientListe/Sortable-master/.github/ISSUE_TEMPLATE/feature-request.md +41 -0
- package/client/clientListe/Sortable-master/.jshintrc +25 -0
- package/client/clientListe/Sortable-master/.testcaferc.json +7 -0
- package/client/clientListe/Sortable-master/CONTRIBUTING.md +26 -0
- package/client/clientListe/Sortable-master/LICENSE +21 -0
- package/client/clientListe/Sortable-master/README.md +813 -0
- package/client/clientListe/Sortable-master/Sortable.js +3709 -0
- package/client/clientListe/Sortable-master/Sortable.min.js +2 -0
- package/client/clientListe/Sortable-master/Sortable.min.old.js +2 -0
- package/client/clientListe/Sortable-master/Sortable.min.old.old.js +2 -0
- package/client/clientListe/Sortable-master/babel.config.js +27 -0
- package/client/clientListe/Sortable-master/bower.json +30 -0
- package/client/clientListe/Sortable-master/entry/entry-complete.js +8 -0
- package/client/clientListe/Sortable-master/entry/entry-core.js +19 -0
- package/client/clientListe/Sortable-master/entry/entry-defaults.js +19 -0
- package/client/clientListe/Sortable-master/index.html +460 -0
- package/client/clientListe/Sortable-master/modular/sortable.complete.esm.js +3701 -0
- package/client/clientListe/Sortable-master/modular/sortable.core.esm.js +3698 -0
- package/client/clientListe/Sortable-master/modular/sortable.esm.js +3699 -0
- package/client/clientListe/Sortable-master/package-lock.json +5704 -0
- package/client/clientListe/Sortable-master/package.json +56 -0
- package/client/clientListe/Sortable-master/plugins/AutoScroll/AutoScroll.js +270 -0
- package/client/clientListe/Sortable-master/plugins/AutoScroll/README.md +80 -0
- package/client/clientListe/Sortable-master/plugins/AutoScroll/index.js +1 -0
- package/client/clientListe/Sortable-master/plugins/MultiDrag/MultiDrag.js +617 -0
- package/client/clientListe/Sortable-master/plugins/MultiDrag/README.md +96 -0
- package/client/clientListe/Sortable-master/plugins/MultiDrag/index.js +1 -0
- package/client/clientListe/Sortable-master/plugins/OnSpill/OnSpill.js +79 -0
- package/client/clientListe/Sortable-master/plugins/OnSpill/README.md +60 -0
- package/client/clientListe/Sortable-master/plugins/OnSpill/index.js +1 -0
- package/client/clientListe/Sortable-master/plugins/README.md +178 -0
- package/client/clientListe/Sortable-master/plugins/Swap/README.md +55 -0
- package/client/clientListe/Sortable-master/plugins/Swap/Swap.js +90 -0
- package/client/clientListe/Sortable-master/plugins/Swap/index.js +1 -0
- package/client/clientListe/Sortable-master/scripts/banner.js +8 -0
- package/client/clientListe/Sortable-master/scripts/build.js +17 -0
- package/client/clientListe/Sortable-master/scripts/esm-build.js +28 -0
- package/client/clientListe/Sortable-master/scripts/minify.js +11 -0
- package/client/clientListe/Sortable-master/scripts/test-compat.js +30 -0
- package/client/clientListe/Sortable-master/scripts/test.js +21 -0
- package/client/clientListe/Sortable-master/scripts/umd-build.js +15 -0
- package/client/clientListe/Sortable-master/src/Animation.js +175 -0
- package/client/clientListe/Sortable-master/src/BrowserInfo.js +12 -0
- package/client/clientListe/Sortable-master/src/EventDispatcher.js +57 -0
- package/client/clientListe/Sortable-master/src/PluginManager.js +87 -0
- package/client/clientListe/Sortable-master/src/Sortable.js +1971 -0
- package/client/clientListe/Sortable-master/src/utils.js +556 -0
- package/client/clientListe/Sortable-master/st/app.js +224 -0
- package/client/clientListe/Sortable-master/st/iframe/frame.html +32 -0
- package/client/clientListe/Sortable-master/st/iframe/index.html +49 -0
- package/client/clientListe/Sortable-master/st/logo.png +0 -0
- package/client/clientListe/Sortable-master/st/og-image.png +0 -0
- package/client/clientListe/Sortable-master/st/prettify/prettify.css +1 -0
- package/client/clientListe/Sortable-master/st/prettify/prettify.js +46 -0
- package/client/clientListe/Sortable-master/st/prettify/run_prettify.js +64 -0
- package/client/clientListe/Sortable-master/st/saucelabs.svg +1 -0
- package/client/clientListe/Sortable-master/st/theme.css +254 -0
- package/client/clientListe/Sortable-master/tests/Sortable.compat.test.js +39 -0
- package/client/clientListe/Sortable-master/tests/Sortable.test.js +386 -0
- package/client/clientListe/Sortable-master/tests/dual-list.html +34 -0
- package/client/clientListe/Sortable-master/tests/empty-list.html +30 -0
- package/client/clientListe/Sortable-master/tests/filter.html +27 -0
- package/client/clientListe/Sortable-master/tests/handles.html +27 -0
- package/client/clientListe/Sortable-master/tests/nested.html +67 -0
- package/client/clientListe/Sortable-master/tests/single-list.html +25 -0
- package/client/clientListe/Sortable-master/tests/style.css +18 -0
- package/client/clientListe/clientListe.html +148 -0
- package/client/clientListe/clientListe.js +1508 -0
- package/client/clientListe/clientListebundle.js +13164 -0
- package/client/clientListe/images/poubelle.png +0 -0
- package/client/clientListe/images/start.png +0 -0
- package/client/clientListe/images/stop.png +0 -0
- package/client/clientListe/images/submit.png +0 -0
- package/client/clientListe/sortable-theme-bootstrap.css +90 -0
- package/client/configurateur/configReact.js +273 -0
- package/client/configurateur/configReactbundle.js +295 -0
- package/client/configurateur/configurateur.css +95 -0
- package/client/configurateur/configurateur.html +48 -0
- package/client/configurateur/lib/jexcel.css +755 -0
- package/client/configurateur/lib/jexcel.js +14970 -0
- package/client/configurateur/lib/jsuites.css +2801 -0
- package/client/configurateur/lib/jsuites.js +11822 -0
- package/client/configurateur/lib/react-dom.production.min.js +239 -0
- package/client/configurateur/lib/react.production.min.js +32 -0
- package/client/configurateur/src/configReact.js +247 -0
- package/client/controleur/clientcontroleur.js +536 -0
- package/client/controleur/clientcontroleur.test.js +282 -0
- package/client/controleur/controleur.html +51 -0
- package/client/controleur/controleurbundle.js +565 -0
- package/client/controleur/stylecontroleur.css +236 -0
- package/client/controleurHH/controleurHH.html +71 -0
- package/client/controleurHH/controleurHH.js +252 -0
- package/client/controleurHH/styles/index.css +320 -0
- package/client/controleurHH/styles/material.css +11552 -0
- package/client/parametrage/paramReact.js +473 -0
- package/client/parametrage/paramReactbundle.js +500 -0
- package/client/parametrage/parametrage.css +111 -0
- package/client/parametrage/parametrage.html +163 -0
- package/client/parametrage/src/paramReact.js +459 -0
- package/client/score/hash.js +83 -0
- package/client/score/p5.min.js +3 -0
- package/client/score/parto1.js +1171 -0
- package/client/score/parto1bundle.js +1181 -0
- package/client/score/processing.min.js +431 -0
- package/client/score/score.html +15 -0
- package/client/score/score.js +34 -0
- package/client/simulateurListe/simulateurFork.js +750 -0
- package/client/simulateurListe/simulateurFork.mjs +681 -0
- package/client/simulateurListe/simulateurForkSansReorg.js +569 -0
- package/client/simulateurListe/simulateurListe.js +628 -0
- package/myReact/archive/Nodeemitvaluedlocal1.hh.js +52 -0
- package/myReact/archive/abort-parNode.js +79 -0
- package/myReact/archive/abroNode.js +169 -0
- package/myReact/archive/abroNode2.js +80 -0
- package/myReact/archive/atom.compile.hh.js +51 -0
- package/myReact/archive/await-countNode.js +67 -0
- package/myReact/archive/await-nowvalNode.js +44 -0
- package/myReact/archive/callHH.js +96 -0
- package/myReact/archive/emit-if2.hh.compiled.js +113 -0
- package/myReact/archive/every1Node.js +35 -0
- package/myReact/archive/if-runNode.js +74 -0
- package/myReact/archive/if1Node.js +43 -0
- package/myReact/archive/makeawait.js +0 -0
- package/myReact/archive/myReact.old.js +684 -0
- package/myReact/archive/orchestration.js +281 -0
- package/myReact/archive/orchestration1.js +132 -0
- package/myReact/archive/orchestration1.xml +465 -0
- package/myReact/archive/orchestration2.js +161 -0
- package/myReact/archive/orchestrationHH.mano.js +280 -0
- package/myReact/archive/orchestrationHHTest.js +428 -0
- package/myReact/archive/orchestrationHHTest.xml +234 -0
- package/myReact/archive/orchestrationHHTestRun.js +104 -0
- package/myReact/archive/orchestrationHHTestRun.xml +34 -0
- package/myReact/archive/orchestrationTest0.js +178 -0
- package/myReact/archive/orchestrationTest1.js +181 -0
- package/myReact/archive/orchestrationTest2.js +281 -0
- package/myReact/archive/run3pointsNode.js +59 -0
- package/myReact/archive/runNode.js +123 -0
- package/myReact/archive/runNode2.js +91 -0
- package/myReact/archive/testAwait1.js +141 -0
- package/myReact/archive/testAwait1.xml +86 -0
- package/myReact/archive/testEvery1.js +122 -0
- package/myReact/archive/testEvery1.xml +79 -0
- package/myReact/archive/testHH1.js +135 -0
- package/myReact/archive/testHH1.xml +86 -0
- package/myReact/archive/testHH1revu.js +104 -0
- package/myReact/archive/testHH2.js +122 -0
- package/myReact/archive/testHH2.xml +79 -0
- package/myReact/archive/testHH3.js +130 -0
- package/myReact/archive/testHH3.xml +86 -0
- package/myReact/archive/testHHabort.js +121 -0
- package/myReact/archive/testHHabort.xml +83 -0
- package/myReact/archive/testMakeawait.js +202 -0
- package/myReact/archive/testRun1.js +168 -0
- package/myReact/archive/testRun1.xml +142 -0
- package/myReact/archive/titi.js +28 -0
- package/myReact/archive/titi.xml +110 -0
- package/myReact/archive/toto.js +73 -0
- package/myReact/archive/toto.xml +198 -0
- package/myReact/archive/trap-await-parallelNode.js +123 -0
- package/myReact/inutiles/hiver2022.xml +804 -0
- package/myReact/inutiles/hopeNode.xml +459 -0
- package/myReact/inutiles/mars2022.xml +871 -0
- package/myReact/inutiles/mystique1.xml +318 -0
- package/myReact/inutiles/mystiqueOSC.xml +277 -0
- package/myReact/inutiles/opus5Node.xml +1271 -0
- package/myReact/inutiles/opus5NodeLinux.xml +1241 -0
- package/myReact/inutiles/orchestrationHH.xml +541 -0
- package/myReact/inutiles/orchestrationHH2.xml +547 -0
- package/myReact/inutiles/testHH.xml +95 -0
- package/myReact/inutiles/trouveLaPercuTenor.xml +349 -0
- package/myReact/myReact.js +744 -0
- package/myReact/myReact.min.js +1 -0
- package/myReact/orchestrationHH.js +311 -0
- package/myReact/orchestrationHH.mjs +436 -0
- package/myReact/orchestrationHH.mjs.map +1 -0
- package/package.json +46 -0
- package/serveur/OSCandMidi.mjs +361 -0
- package/serveur/computeScore.mjs +415 -0
- package/serveur/controleDAW.mjs +1149 -0
- package/serveur/defaultSession.csv +2 -0
- package/serveur/defaultSkiniParametres.js +119 -0
- package/serveur/gameOSC.mjs +96 -0
- package/serveur/groupeClientsSons.mjs +1014 -0
- package/serveur/ipConfig.json +24 -0
- package/serveur/ipConfig127.json +19 -0
- package/serveur/ipConfig75.json +17 -0
- package/serveur/ipConfigBH.json +19 -0
- package/serveur/ipConfigLocal.json +19 -0
- package/serveur/midiConfig.json +26 -0
- package/serveur/midiConfigBH.json +26 -0
- package/serveur/midiConfigVoid.json +3 -0
- package/serveur/midimix.mjs +570 -0
- package/serveur/saveParam.mjs +159 -0
- package/serveur/skiniParametres.good.js +132 -0
- package/serveur/skiniParametres.js +106 -0
- package/serveur/utilsHHSkini.hh.js +64 -0
- package/serveur/utilsSkini.mjs +137 -0
- package/serveur/websocketServer.mjs +2052 -0
- package/serveur/workerInterfaceZ.mjs +327 -0
- package/serveur/workerSynchro.mjs +49 -0
- package/skini.mjs +141 -0
|
@@ -0,0 +1,113 @@
|
|
|
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");
|
|
@@ -0,0 +1,35 @@
|
|
|
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");
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use hopscript"
|
|
2
|
+
"use hiphop"
|
|
3
|
+
|
|
4
|
+
const hh = require( "hiphop" );
|
|
5
|
+
|
|
6
|
+
const pauseModule = hiphop module() {
|
|
7
|
+
yield;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
const m = new hh.ReactiveMachine(
|
|
11
|
+
hiphop module() {
|
|
12
|
+
loop {
|
|
13
|
+
hop { console.log( ">>> start" ) };
|
|
14
|
+
if( 1 ) {
|
|
15
|
+
run ${pauseModule}();
|
|
16
|
+
} else {
|
|
17
|
+
yield;
|
|
18
|
+
}
|
|
19
|
+
hop { console.log( ">>> end" ) }
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
);
|
|
23
|
+
|
|
24
|
+
m.react();
|
|
25
|
+
setTimeout( () => m.react(), 200 );
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
"use strict";
|
|
29
|
+
const hh=require("hiphop");
|
|
30
|
+
const pauseModule=(function (__hh_module){return
|
|
31
|
+
__hh_module.MODULE({"%location":{"filename":"if-run.hh.js","pos":90},"%tag":"module"},
|
|
32
|
+
__hh_module.PAUSE({"%location":{"filename":"if-run.hh.js","pos":104},"%tag":"yield"}));}
|
|
33
|
+
)(require("hiphop"));
|
|
34
|
+
|
|
35
|
+
const m=new hh.ReactiveMachine((function (__hh_module){
|
|
36
|
+
return __hh_module.MODULE({"%location":{"filename":"if-run.hh.js","pos":158},"%tag":"module"},
|
|
37
|
+
__hh_module.LOOP({"%location":{"filename":"if-run.hh.js","pos":175}},
|
|
38
|
+
__hh_module.ATOM({"%location":{"filename":"if-run.hh.js","pos":184},"%tag":"hop",
|
|
39
|
+
"apply":function (){console.log(">>> start");
|
|
40
|
+
}
|
|
41
|
+
}),
|
|
42
|
+
|
|
43
|
+
__hh_module.IF(
|
|
44
|
+
{
|
|
45
|
+
"%location":{"filename":"if-run.hh.js","pos":222},
|
|
46
|
+
"%tag":"if",
|
|
47
|
+
"apply":function (){
|
|
48
|
+
return 1;
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
__hh_module.SEQUENCE({"%location":{"filename":"if-run.hh.js","pos":230},"%tag":"sequence"},
|
|
52
|
+
__hh_module.RUN({"%location":{"filename":"if-run.hh.js","pos":237},"%tag":"run","module":pauseModule})
|
|
53
|
+
),
|
|
54
|
+
__hh_module.SEQUENCE({"%location":{"filename":"if-run.hh.js","pos":268},"%tag":"sequence"},
|
|
55
|
+
__hh_module.PAUSE({"%location":{"filename":"if-run.hh.js","pos":275},"%tag":"yield"})
|
|
56
|
+
)
|
|
57
|
+
),
|
|
58
|
+
|
|
59
|
+
__hh_module.ATOM(
|
|
60
|
+
{
|
|
61
|
+
"%location":{"filename":"if-run.hh.js","pos":288},
|
|
62
|
+
"%tag":"hop",
|
|
63
|
+
"apply":function (){
|
|
64
|
+
console.log(">>> end");
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
)
|
|
68
|
+
)
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
)(require("hiphop")));
|
|
72
|
+
|
|
73
|
+
m.react();
|
|
74
|
+
setTimeout((() => {return m.react();}),200);
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/*"use hopscript"
|
|
2
|
+
"use hiphop"
|
|
3
|
+
|
|
4
|
+
var hh = require( "hiphop" );
|
|
5
|
+
|
|
6
|
+
hiphop module prg( in I1, O1, in I2, O2 ) {
|
|
7
|
+
loop {
|
|
8
|
+
if( I1.now ) emit O1();
|
|
9
|
+
if( I2.nowval > 2 ) emit O2();
|
|
10
|
+
yield;
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
exports.prg = new hh.ReactiveMachine( prg, "if1" );*/
|
|
15
|
+
|
|
16
|
+
"use strict";
|
|
17
|
+
var hh;
|
|
18
|
+
|
|
19
|
+
var __hh_module;
|
|
20
|
+
let prg;
|
|
21
|
+
hh=require("hiphop")
|
|
22
|
+
;__hh_module=require("hiphop");
|
|
23
|
+
|
|
24
|
+
prg=__hh_module.MODULE({"id":"prg","%location":{"filename":"if1.hh.js","pos":68},"%tag":"module"},
|
|
25
|
+
__hh_module.SIGNAL({"%location":{"filename":"if1.hh.js","pos":80},"direction":"IN","name":"I1"}),
|
|
26
|
+
__hh_module.SIGNAL({"%location":{"filename":"if1.hh.js","pos":87},"direction":"INOUT","name":"O1"}),
|
|
27
|
+
__hh_module.SIGNAL({"%location":{"filename":"if1.hh.js","pos":91},"direction":"IN","name":"I2"}),
|
|
28
|
+
__hh_module.SIGNAL({"%location":{"filename":"if1.hh.js","pos":98},"direction":"INOUT","name":"O2"}),__hh_module.LOOP({"%location":{"filename":"if1.hh.js","pos":108}},__hh_module.IF({"%location":{"filename":"if1.hh.js","pos":121},"%tag":"if","apply":function (){return ((() => {const I1=this.I1;return I1.now;})());}
|
|
29
|
+
},
|
|
30
|
+
__hh_module.SIGACCESS({"signame":"I1","pre":false,"val":false,"cnt":false}),
|
|
31
|
+
__hh_module.EMIT({"%location":{"filename":"if1.hh.js","pos":139},"%tag":"emit","O1":"O1"})),
|
|
32
|
+
__hh_module.IF(
|
|
33
|
+
{"%location":{"filename":"if1.hh.js","pos":151},
|
|
34
|
+
"%tag":"if",
|
|
35
|
+
"apply":function (){
|
|
36
|
+
return ((() => {const I2=this.I2;return I2.nowval > 2;})());
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
__hh_module.SIGACCESS({"signame":"I2","pre":false,"val":true,"cnt":false}),
|
|
40
|
+
__hh_module.EMIT({"%location":{"filename":"if1.hh.js","pos":176},"%tag":"emit","O2":"O2"})),
|
|
41
|
+
__hh_module.PAUSE({"%location":{"filename":"if1.hh.js","pos":188},"%tag":"yield"})));
|
|
42
|
+
|
|
43
|
+
exports.prg=new hh.ReactiveMachine(prg,"if1");
|
|
Binary file
|