@cyklang/cli 0.2.2 → 0.2.3
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/build/AssetCommand.js +36 -15
- package/build/Cmd.js +18 -13
- package/build/DBClient.d.ts +1 -0
- package/build/DBClient.js +12 -0
- package/build/ModuleCommand.js +9 -1
- package/build/TestCommand.js +1 -1
- package/docker.env +2 -2
- package/package.json +2 -2
- package/src/AssetCommand.ts +50 -26
- package/src/Cmd.ts +18 -12
- package/src/DBClient.ts +16 -0
- package/src/ModuleCommand.ts +15 -9
- package/src/TestCommand.ts +1 -1
- package/test/t09.output +1 -1
- package/test/t09.xml +1 -1
- package/test/t17.output +2 -0
- package/test/t17.xml +3 -1
- package/test/t20.output +0 -0
- package/test/t20.xml +1 -1
- package/test/t21.xml +11 -5
- package/test/t22.output +0 -0
- package/test/t23.output +48 -0
- package/test/t23.xml +3 -3
- package/test/t24.output +1007 -0
- package/test/t24.xml +20 -0
- package/test/t25.output +4 -0
- package/test/t25.xml +23 -0
package/test/t24.xml
CHANGED
|
@@ -7,4 +7,24 @@
|
|
|
7
7
|
</block>
|
|
8
8
|
</function>
|
|
9
9
|
|
|
10
|
+
<string name="name">"Mortimer"</string>
|
|
11
|
+
<string name="country">"France"</string>
|
|
12
|
+
<string name="model" literal="">
|
|
13
|
+
My name is {{ name }}
|
|
14
|
+
I live in {{ country }}
|
|
15
|
+
</string>
|
|
16
|
+
<print>interpolate(model)</print>
|
|
17
|
+
<print>replace("php_script.php", "php","cyk", "g")</print>
|
|
18
|
+
|
|
19
|
+
<print>"while Loop "</print>
|
|
20
|
+
<number name="cpt">0</number>
|
|
21
|
+
<while>
|
|
22
|
+
<condition> <![CDATA[ cpt < 1000 ]]></condition>
|
|
23
|
+
<then>
|
|
24
|
+
<number name="nombre">1000</number>
|
|
25
|
+
<set name="cpt">cpt + 1</set>
|
|
26
|
+
<print>"cpt = " + cpt</print>
|
|
27
|
+
</then>
|
|
28
|
+
</while>
|
|
29
|
+
<print>"after 10 loop dcl NOMBRE and set"</print>
|
|
10
30
|
</module>
|
package/test/t25.output
ADDED
package/test/t25.xml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml-model href="https://www.cyklang.net/schema/cyklang.xsd" ?>
|
|
2
|
+
<module>
|
|
3
|
+
<function name="task" synchronized="">
|
|
4
|
+
<string name="name"/>
|
|
5
|
+
<number name="duration"/>
|
|
6
|
+
<block>
|
|
7
|
+
<print>name + " begins "</print>
|
|
8
|
+
<sleep>duration</sleep>
|
|
9
|
+
<print>name + " ended after " + duration </print>
|
|
10
|
+
</block>
|
|
11
|
+
</function>
|
|
12
|
+
<parallel>
|
|
13
|
+
<call function="task">
|
|
14
|
+
<string name="name">"task 1"</string>
|
|
15
|
+
<number name="duration">2000</number>
|
|
16
|
+
</call>
|
|
17
|
+
<call function="task">
|
|
18
|
+
<string name="name">"task 2"</string>
|
|
19
|
+
<number name="duration">1000</number>
|
|
20
|
+
</call>
|
|
21
|
+
</parallel>
|
|
22
|
+
|
|
23
|
+
</module>
|