@cyklang/cli 0.17.9 → 0.17.12
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/index.js +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
- package/test/db/t23.output +6 -41
- package/test/db/t23.xml +2 -1
- package/test/db/t33.output +2 -95
- package/test/db/t33.xml +1 -1
- package/test/t0.output +2 -0
- package/test/t0.xml +12 -2
- package/test/t31.output +7 -4
- package/test/t31.xml +4 -0
- package/test/t32.output +1 -0
- package/test/t32.xml +1 -0
- package/test/t34.output +1 -0
- package/test/t35.output +7 -0
- package/test/t35.xml +2 -0
- package/test/t36.output +5 -0
- package/test/t37.output +4 -8
- package/test/t39.output +10 -0
- package/test/t39.xml +18 -0
- package/test/t40.output +109 -0
- package/test/t40.xml +23 -0
- package/test/t_report.output +0 -0
package/build/index.js
CHANGED
|
@@ -182,7 +182,7 @@ class StopCommand extends commander_1.Command {
|
|
|
182
182
|
*/
|
|
183
183
|
const program = new commander_1.Command();
|
|
184
184
|
program.name('cyk').description('cyklang CLI')
|
|
185
|
-
.version('0.17.
|
|
185
|
+
.version('0.17.12');
|
|
186
186
|
program.addCommand(new StartCommand('start'));
|
|
187
187
|
program.addCommand(new StopCommand('stop'));
|
|
188
188
|
program.addCommand(new InstallCommand_1.InstallCommand('install'));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyklang/cli",
|
|
3
|
-
"version": "0.17.
|
|
3
|
+
"version": "0.17.12",
|
|
4
4
|
"description": "cyklang CLI",
|
|
5
5
|
"main": "build/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"author": "",
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@cyklang/core": "^0.
|
|
22
|
+
"@cyklang/core": "^0.47.0",
|
|
23
23
|
"commander": "^9.4.0",
|
|
24
24
|
"dotenv": "^16.0.1",
|
|
25
25
|
"form-data": "^4.0.0",
|
package/src/index.ts
CHANGED
|
@@ -176,7 +176,7 @@ class StopCommand extends Command {
|
|
|
176
176
|
*/
|
|
177
177
|
const program = new Command()
|
|
178
178
|
program.name('cyk').description('cyklang CLI')
|
|
179
|
-
.version('0.17.
|
|
179
|
+
.version('0.17.12')
|
|
180
180
|
program.addCommand(new StartCommand('start'))
|
|
181
181
|
program.addCommand(new StopCommand('stop'))
|
|
182
182
|
program.addCommand(new InstallCommand('install'))
|
package/test/db/t23.output
CHANGED
|
@@ -2,45 +2,10 @@ Third (1 sec)
|
|
|
2
2
|
Second (2 sec)
|
|
3
3
|
First (3 sec)
|
|
4
4
|
AFTER parallel
|
|
5
|
-
<
|
|
6
|
-
<
|
|
7
|
-
<object name="t_actor">
|
|
8
|
-
</object>
|
|
9
|
-
<object name="t_film">
|
|
10
|
-
</object>
|
|
11
|
-
</type>
|
|
12
|
-
</object>
|
|
13
|
-
<object name="resultset">
|
|
14
|
-
<object>
|
|
15
|
-
<object name="t_actor">
|
|
16
|
-
<object>
|
|
17
|
-
<number name="actor_id">1</number>
|
|
18
|
-
<string name="first_name" literal="">Maria</string>
|
|
19
|
-
<string name="last_name" literal="">DUPONT</string>
|
|
20
|
-
<string name="last_update">
|
|
21
|
-
</string>
|
|
22
|
-
<string name="cyk_remark" literal="">remarque</string>
|
|
23
|
-
<string name="cyk_disable">
|
|
24
|
-
</string>
|
|
25
|
-
<object name="t_actor__meta">
|
|
26
|
-
<string name="user_name" literal="">cyk</string>
|
|
27
|
-
<number name="last_update">1722224037733</number>
|
|
28
|
-
</object>
|
|
29
|
-
</object>
|
|
30
|
-
</object>
|
|
31
|
-
<object name="t_film">
|
|
32
|
-
<object>
|
|
33
|
-
<number name="film_id">1</number>
|
|
34
|
-
<string name="title" literal="">La mélodie du bonheur</string>
|
|
35
|
-
<string name="description" literal="">Le film préféré de Mao</string>
|
|
36
|
-
<number name="release_year">1965</number>
|
|
37
|
-
<number name="length">60</number>
|
|
38
|
-
<number name="language_id">1</number>
|
|
39
|
-
<object name="t_film__meta">
|
|
40
|
-
<string name="user_name" literal="">cyk</string>
|
|
41
|
-
<number name="last_update">1722224037859</number>
|
|
42
|
-
</object>
|
|
43
|
-
</object>
|
|
44
|
-
</object>
|
|
5
|
+
<type name="resultset">
|
|
6
|
+
<object name="t_actor">
|
|
45
7
|
</object>
|
|
46
|
-
|
|
8
|
+
<object name="t_film">
|
|
9
|
+
</object>
|
|
10
|
+
</type>
|
|
11
|
+
t_actor.length = 3, t_film.length() = 1
|
package/test/db/t23.xml
CHANGED
|
@@ -44,6 +44,7 @@
|
|
|
44
44
|
<object name="cache"/>
|
|
45
45
|
<db.call module="t22" method="t_load_cache" returns="cache"/>
|
|
46
46
|
|
|
47
|
-
<print>cache</print>
|
|
47
|
+
<print>cache.meta</print>
|
|
48
|
+
<print>format("t_actor.length = {0}, t_film.length() = {1}",cache.resultset.at(0).t_actor.length(),cache.resultset.at(0).t_film.length())</print>
|
|
48
49
|
|
|
49
50
|
</module>
|
package/test/db/t33.output
CHANGED
|
@@ -1,98 +1,5 @@
|
|
|
1
1
|
test dlookup: Maria
|
|
2
|
-
|
|
3
|
-
<xsl:stylesheet version="1.0"
|
|
4
|
-
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
5
|
-
xmlns:fo="http://www.w3.org/1999/XSL/Format"
|
|
6
|
-
xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java">
|
|
7
|
-
|
|
8
|
-
<xsl:template match="object[@name='resultset']">
|
|
9
|
-
|
|
10
|
-
<fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format">
|
|
11
|
-
<fo:layout-master-set>
|
|
12
|
-
<!-- Définition du layout -->
|
|
13
|
-
<fo:simple-page-master master-name="page" page-height="29.7cm" page-width="21cm" margin="1.5cm">
|
|
14
|
-
<fo:region-body margin-top="2cm"/>
|
|
15
|
-
<fo:region-before extent="4cm"/>
|
|
16
|
-
</fo:simple-page-master>
|
|
17
|
-
</fo:layout-master-set>
|
|
18
|
-
|
|
19
|
-
<!-- Début du document -->
|
|
20
|
-
<fo:page-sequence master-reference="page">
|
|
21
|
-
<!-- En-tête de page -->
|
|
22
|
-
<fo:static-content flow-name="xsl-region-before">
|
|
23
|
-
<fo:block>
|
|
24
|
-
<fo:table width="100%" table-layout="fixed">
|
|
25
|
-
<fo:table-column column-width="proportional-column-width(1)"/>
|
|
26
|
-
<fo:table-column column-width="proportional-column-width(1)"/>
|
|
27
|
-
<fo:table-body>
|
|
28
|
-
<fo:table-row border-bottom="1pt solid black" border-top="1pt solid black" font="8pt Helvetica" font-weight="bold">
|
|
29
|
-
<fo:table-cell background-color="lightgray" padding="5pt" >
|
|
30
|
-
<fo:block>First Name</fo:block>
|
|
31
|
-
</fo:table-cell>
|
|
32
|
-
<fo:table-cell background-color="lightgray" padding="5pt" >
|
|
33
|
-
<fo:block>Last Name</fo:block>
|
|
34
|
-
</fo:table-cell>
|
|
35
|
-
<!-- Ajoutez autant de colonnes que nécessaire -->
|
|
36
|
-
</fo:table-row>
|
|
37
|
-
</fo:table-body>
|
|
38
|
-
</fo:table>
|
|
39
|
-
</fo:block>
|
|
40
|
-
<!-- Entête avec des rectangles -->
|
|
41
|
-
<fo:block>
|
|
42
|
-
<fo:table width="100%" table-layout="fixed">
|
|
43
|
-
<fo:table-column column-width="proportional-column-width(1)"/>
|
|
44
|
-
<fo:table-column column-width="proportional-column-width(1)"/>
|
|
45
|
-
<fo:table-body>
|
|
46
|
-
<fo:table-row border-bottom="1pt solid black" border-top="1pt solid black" font="8pt Helvetica" font-weight="bold">
|
|
47
|
-
<fo:table-cell background-color="lightgray" padding="5pt" >
|
|
48
|
-
<fo:block>First Name</fo:block>
|
|
49
|
-
</fo:table-cell>
|
|
50
|
-
<fo:table-cell background-color="lightgray" padding="5pt" >
|
|
51
|
-
<fo:block>Last Name</fo:block>
|
|
52
|
-
</fo:table-cell>
|
|
53
|
-
<!-- Ajoutez autant de colonnes que nécessaire -->
|
|
54
|
-
</fo:table-row>
|
|
55
|
-
</fo:table-body>
|
|
56
|
-
</fo:table>
|
|
57
|
-
</fo:block>
|
|
58
|
-
</fo:static-content>
|
|
59
|
-
|
|
60
|
-
<!-- Corps de la page -->
|
|
61
|
-
<fo:flow flow-name="xsl-region-body">
|
|
62
|
-
<!-- Tableau de données -->
|
|
63
|
-
<fo:block >
|
|
64
|
-
<fo:table width="100%" table-layout="fixed" font="8pt Helvetica">
|
|
65
|
-
<fo:table-column column-width="proportional-column-width(1)"/>
|
|
66
|
-
<fo:table-column column-width="proportional-column-width(1)"/>
|
|
67
|
-
<!-- Ajoutez autant de colonnes que nécessaire-->
|
|
68
|
-
<fo:table-body>
|
|
69
|
-
<!-- Lignes de données -->
|
|
70
|
-
<xsl:apply-templates select="object[@type='t__t_actor']"/>
|
|
71
|
-
</fo:table-body>
|
|
72
|
-
</fo:table>
|
|
73
|
-
</fo:block>
|
|
74
|
-
</fo:flow>
|
|
75
|
-
</fo:page-sequence>
|
|
76
|
-
</fo:root>
|
|
77
|
-
|
|
78
|
-
</xsl:template>
|
|
79
|
-
|
|
80
|
-
<xsl:template match="/object/object[@name='resultset']/object[@type='t__t_actor']">
|
|
81
|
-
<fo:table-row border-bottom="1pt solid black" border-top="1pt solid black">
|
|
82
|
-
<fo:table-cell padding="5pt" >
|
|
83
|
-
<fo:block ><xsl:apply-templates select="string[@name='first_name']"/></fo:block>
|
|
84
|
-
</fo:table-cell>
|
|
85
|
-
<fo:table-cell padding="5pt" >
|
|
86
|
-
<fo:block><xsl:apply-templates select="string[@name='last_name']"/></fo:block>
|
|
87
|
-
</fo:table-cell>
|
|
88
|
-
<!-- Ajoutez autant de cellules que nécessaire -->
|
|
89
|
-
</fo:table-row>
|
|
90
|
-
<xsl:apply-templates/>
|
|
91
|
-
</xsl:template>
|
|
92
|
-
|
|
93
|
-
</xsl:stylesheet>
|
|
94
|
-
|
|
95
|
-
dcount(actor_id, t_actor) = 2
|
|
2
|
+
dcount(actor_id, t_actor) = 4
|
|
96
3
|
dcount(actor_id, t_actor, actor_id < 2) = 1
|
|
97
|
-
dsum(actor_id, t_actor) =
|
|
4
|
+
dsum(actor_id, t_actor) = 10
|
|
98
5
|
dsum(actor_id, t_actor, actor_id < 2) = 1
|
package/test/db/t33.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml-model href="https://www.cyklang.net/schema/cyklang.xsd" ?>
|
|
2
2
|
<module>
|
|
3
3
|
<print>"test dlookup: " + dlookup('first_name', 't_actor', 'actor_id=1')</print>
|
|
4
|
-
<print>hex2string(dlookup('asset_content','cyk_asset', "asset_route='/test/tableau.xml'"))</print>
|
|
4
|
+
<!-- <print>hex2string(dlookup('asset_content','cyk_asset', "asset_route='/test/tableau.xml'"))</print> -->
|
|
5
5
|
<print>"dcount(actor_id, t_actor) = " + dcount("actor_id", "t_actor")</print>
|
|
6
6
|
<print>"dcount(actor_id, t_actor, actor_id < 2) = " + dcount("actor_id", "t_actor", "actor_id < 2")</print>
|
|
7
7
|
|
package/test/t0.output
CHANGED
package/test/t0.xml
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
<?xml-model href="https://www.cyklang.net/schema/cyklang.xsd" ?>
|
|
2
|
+
<module>
|
|
2
3
|
<type name="Dossier">
|
|
3
4
|
<number name="id" />
|
|
4
5
|
<string name="libelle" />
|
|
@@ -23,4 +24,13 @@
|
|
|
23
24
|
<let name="dos1.libelle">"DUPONT"</let>
|
|
24
25
|
<print>"dos1.id = "+ dos1.id + " dos.libelle = " + dos1.libelle</print>
|
|
25
26
|
|
|
26
|
-
|
|
27
|
+
<call object="dos1" method="foreach">
|
|
28
|
+
<function>
|
|
29
|
+
<string name="value"/>
|
|
30
|
+
<string name="name"/>
|
|
31
|
+
<block>
|
|
32
|
+
<print>format("name = {0}, value = {1}",name,value)</print>
|
|
33
|
+
</block>
|
|
34
|
+
</function>
|
|
35
|
+
</call>
|
|
36
|
+
</module>
|
package/test/t31.output
CHANGED
|
@@ -3,10 +3,10 @@ resume: John DOE : Le soldat inconnu
|
|
|
3
3
|
name: John WAYNE
|
|
4
4
|
resume: John WAYNE : Le cow-boy
|
|
5
5
|
dtbirth: 04/11/1963 14:00
|
|
6
|
-
dtbirth:
|
|
7
|
-
numberformat(123456.789) : 123
|
|
8
|
-
moneyformat(123456.789) : 123
|
|
9
|
-
moneyformat(123456.789, 'USD') : 123
|
|
6
|
+
dtbirth: November 1963
|
|
7
|
+
numberformat(123456.789) : 123,456.789
|
|
8
|
+
moneyformat(123456.789) : €123,456.79
|
|
9
|
+
moneyformat(123456.789, 'USD') : $123,456.79
|
|
10
10
|
v._010_ = 1000
|
|
11
11
|
v.AA = 2000
|
|
12
12
|
v.AB = 500
|
|
@@ -21,3 +21,6 @@ v = <object>
|
|
|
21
21
|
<number name="AC">200</number>
|
|
22
22
|
<number name="AD">1300</number>
|
|
23
23
|
</object>
|
|
24
|
+
Compteur chiffres : 3
|
|
25
|
+
Compteur 5 chiffres : 00003
|
|
26
|
+
Nombre réél : 3.14
|
package/test/t31.xml
CHANGED
package/test/t32.output
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
application/pdf
|
package/test/t32.xml
CHANGED
package/test/t34.output
CHANGED
|
@@ -24,3 +24,4 @@ split of text3 : <string literal="">" 02/01/2023"</string>
|
|
|
24
24
|
<string literal="">-00000000016,99</string>
|
|
25
25
|
<string literal="">"EUR "</string>
|
|
26
26
|
date_1: " 02/01/2023", date_2: " 02/01/2023"
|
|
27
|
+
result_sendmail.accepted : <string literal="">philippe.cyk@gmail.com</string>
|
package/test/t35.output
CHANGED
package/test/t35.xml
CHANGED
package/test/t36.output
CHANGED
package/test/t37.output
CHANGED
|
@@ -14,20 +14,16 @@ result = <boolean name="ok">true</boolean>
|
|
|
14
14
|
<number name="Id">2</number>
|
|
15
15
|
<string name="Nom" literal="">LAU</string>
|
|
16
16
|
<string name="Prénom" literal="">érika</string>
|
|
17
|
-
<number name="Salaire">
|
|
18
|
-
|
|
19
|
-
<string name="Commentaire">
|
|
20
|
-
</string>
|
|
17
|
+
<number name="Salaire"></number>
|
|
18
|
+
<string name="Commentaire"></string>
|
|
21
19
|
<string name="Naissance" literal="">1934-03-17</string>
|
|
22
20
|
</object>
|
|
23
21
|
<object>
|
|
24
22
|
<number name="Id">3</number>
|
|
25
23
|
<string name="Nom" literal="">CYK</string>
|
|
26
24
|
<string name="Prénom" literal="">Léon</string>
|
|
27
|
-
<number name="Salaire">
|
|
28
|
-
|
|
29
|
-
<string name="Commentaire">
|
|
30
|
-
</string>
|
|
25
|
+
<number name="Salaire"></number>
|
|
26
|
+
<string name="Commentaire"></string>
|
|
31
27
|
<string name="Naissance">
|
|
32
28
|
</string>
|
|
33
29
|
</object>
|
package/test/t39.output
CHANGED
|
@@ -1 +1,11 @@
|
|
|
1
1
|
SUCCES : item_codes has 120 with max = 120
|
|
2
|
+
name = 1, variable = 1
|
|
3
|
+
name = 2, variable = 1
|
|
4
|
+
name = 3, variable = 1
|
|
5
|
+
name = 4, variable = 1
|
|
6
|
+
name = 5, variable = 1
|
|
7
|
+
name = 6, variable = 1
|
|
8
|
+
name = 7, variable = 1
|
|
9
|
+
name = 8, variable = 1
|
|
10
|
+
name = 9, variable = 1
|
|
11
|
+
name = 10, variable = 1
|
package/test/t39.xml
CHANGED
|
@@ -34,4 +34,22 @@
|
|
|
34
34
|
|
|
35
35
|
</if>
|
|
36
36
|
|
|
37
|
+
<call object="item_codes" method="foreach">
|
|
38
|
+
<function>
|
|
39
|
+
<number name="variable"/>
|
|
40
|
+
<string name="name"/>
|
|
41
|
+
<block>
|
|
42
|
+
<print>format("name = {0}, variable = {1}",name,variable)</print>
|
|
43
|
+
<if>
|
|
44
|
+
<condition>name == "10"</condition>
|
|
45
|
+
<then>
|
|
46
|
+
<throw>format("Limte de 10 atteinte")</throw>
|
|
47
|
+
</then>
|
|
48
|
+
</if>
|
|
49
|
+
</block>
|
|
50
|
+
</function>
|
|
51
|
+
</call>
|
|
52
|
+
|
|
53
|
+
<print>format("Ne doit pas s'afficher")</print>
|
|
54
|
+
|
|
37
55
|
</module>
|
package/test/t40.output
ADDED
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
0 = zéro euro
|
|
2
|
+
1 = un euro
|
|
3
|
+
15.50 = quinze euros et cinquante centimes
|
|
4
|
+
123.45 = cent vingt-trois euros et quarante-cinq centimes
|
|
5
|
+
1001 = mille un euros
|
|
6
|
+
1234567.89 = un million deux cent trente-quatre mille cinq cent soixante-sept euros et quatre-ving-neuf centimes
|
|
7
|
+
71 = soixante et onze euros
|
|
8
|
+
0.71 = zéro euro et soixante et onze centimes
|
|
9
|
+
0 = zéro euro
|
|
10
|
+
1 = un euro
|
|
11
|
+
2 = deux euros
|
|
12
|
+
3 = trois euros
|
|
13
|
+
4 = quatre euros
|
|
14
|
+
5 = cinq euros
|
|
15
|
+
6 = six euros
|
|
16
|
+
7 = sept euros
|
|
17
|
+
8 = huit euros
|
|
18
|
+
9 = neuf euros
|
|
19
|
+
10 = dix euros
|
|
20
|
+
11 = onze euros
|
|
21
|
+
12 = douze euros
|
|
22
|
+
13 = treize euros
|
|
23
|
+
14 = quatorze euros
|
|
24
|
+
15 = quinze euros
|
|
25
|
+
16 = seize euros
|
|
26
|
+
17 = dix-sept euros
|
|
27
|
+
18 = dix-huit euros
|
|
28
|
+
19 = dix-neuf euros
|
|
29
|
+
20 = vingt euros
|
|
30
|
+
21 = vingt et un euros
|
|
31
|
+
22 = vingt-deux euros
|
|
32
|
+
23 = vingt-trois euros
|
|
33
|
+
24 = vingt-quatre euros
|
|
34
|
+
25 = vingt-cinq euros
|
|
35
|
+
26 = vingt-six euros
|
|
36
|
+
27 = vingt-sept euros
|
|
37
|
+
28 = vingt-huit euros
|
|
38
|
+
29 = vingt-neuf euros
|
|
39
|
+
30 = trente euros
|
|
40
|
+
31 = trente et un euros
|
|
41
|
+
32 = trente-deux euros
|
|
42
|
+
33 = trente-trois euros
|
|
43
|
+
34 = trente-quatre euros
|
|
44
|
+
35 = trente-cinq euros
|
|
45
|
+
36 = trente-six euros
|
|
46
|
+
37 = trente-sept euros
|
|
47
|
+
38 = trente-huit euros
|
|
48
|
+
39 = trente-neuf euros
|
|
49
|
+
40 = quarante euros
|
|
50
|
+
41 = quarante et un euros
|
|
51
|
+
42 = quarante-deux euros
|
|
52
|
+
43 = quarante-trois euros
|
|
53
|
+
44 = quarante-quatre euros
|
|
54
|
+
45 = quarante-cinq euros
|
|
55
|
+
46 = quarante-six euros
|
|
56
|
+
47 = quarante-sept euros
|
|
57
|
+
48 = quarante-huit euros
|
|
58
|
+
49 = quarante-neuf euros
|
|
59
|
+
50 = cinquante euros
|
|
60
|
+
51 = cinquante et un euros
|
|
61
|
+
52 = cinquante-deux euros
|
|
62
|
+
53 = cinquante-trois euros
|
|
63
|
+
54 = cinquante-quatre euros
|
|
64
|
+
55 = cinquante-cinq euros
|
|
65
|
+
56 = cinquante-six euros
|
|
66
|
+
57 = cinquante-sept euros
|
|
67
|
+
58 = cinquante-huit euros
|
|
68
|
+
59 = cinquante-neuf euros
|
|
69
|
+
60 = soixante euros
|
|
70
|
+
61 = soixante et un euros
|
|
71
|
+
62 = soixante-deux euros
|
|
72
|
+
63 = soixante-trois euros
|
|
73
|
+
64 = soixante-quatre euros
|
|
74
|
+
65 = soixante-cinq euros
|
|
75
|
+
66 = soixante-six euros
|
|
76
|
+
67 = soixante-sept euros
|
|
77
|
+
68 = soixante-huit euros
|
|
78
|
+
69 = soixante-neuf euros
|
|
79
|
+
70 = soixante-dix euros
|
|
80
|
+
71 = soixante et onze euros
|
|
81
|
+
72 = soixante-douze euros
|
|
82
|
+
73 = soixante-treize euros
|
|
83
|
+
74 = soixante-quatorze euros
|
|
84
|
+
75 = soixante-quinze euros
|
|
85
|
+
76 = soixante-seize euros
|
|
86
|
+
77 = soixante-dix-sept euros
|
|
87
|
+
78 = soixante-dix-huit euros
|
|
88
|
+
79 = soixante-dix-neuf euros
|
|
89
|
+
80 = quatre-vingts euros
|
|
90
|
+
81 = quatre-ving-un euros
|
|
91
|
+
82 = quatre-ving-deux euros
|
|
92
|
+
83 = quatre-ving-trois euros
|
|
93
|
+
84 = quatre-ving-quatre euros
|
|
94
|
+
85 = quatre-ving-cinq euros
|
|
95
|
+
86 = quatre-ving-six euros
|
|
96
|
+
87 = quatre-ving-sept euros
|
|
97
|
+
88 = quatre-ving-huit euros
|
|
98
|
+
89 = quatre-ving-neuf euros
|
|
99
|
+
90 = quatre-vingt-dix euros
|
|
100
|
+
91 = quatre-vingt-onze euros
|
|
101
|
+
92 = quatre-vingt-douze euros
|
|
102
|
+
93 = quatre-vingt-treize euros
|
|
103
|
+
94 = quatre-vingt-quatorze euros
|
|
104
|
+
95 = quatre-vingt-quinze euros
|
|
105
|
+
96 = quatre-vingt-seize euros
|
|
106
|
+
97 = quatre-vingt-dix-sept euros
|
|
107
|
+
98 = quatre-vingt-dix-huit euros
|
|
108
|
+
99 = quatre-vingt-dix-neuf euros
|
|
109
|
+
100 = cent euros
|
package/test/t40.xml
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml-model href="https://www.cyklang.net/schema/cyklang.xsd" ?>
|
|
2
|
+
|
|
3
|
+
<module>
|
|
4
|
+
<block>
|
|
5
|
+
<print>format("0 = {0}", montant_en_lettres(0))</print>
|
|
6
|
+
<print>format("1 = {0}", montant_en_lettres(1))</print>
|
|
7
|
+
<print>format("15.50 = {0}", montant_en_lettres(15.50))</print>
|
|
8
|
+
<print>format("123.45 = {0}", montant_en_lettres(123.45))</print>
|
|
9
|
+
<print>format("1001 = {0}", montant_en_lettres(1001))</print>
|
|
10
|
+
<print>format("1234567.89 = {0}", montant_en_lettres(1234567.89))</print>
|
|
11
|
+
<print>format("71 = {0}", montant_en_lettres(71))</print>
|
|
12
|
+
<print>format("0.71 = {0}", montant_en_lettres(0.71))</print>
|
|
13
|
+
|
|
14
|
+
<number name="indice">0</number>
|
|
15
|
+
<while>
|
|
16
|
+
<condition><![CDATA[ indice <= 100 ]]></condition>
|
|
17
|
+
<then>
|
|
18
|
+
<print>format("{0} = {1}",indice,montant_en_lettres(indice))</print>
|
|
19
|
+
<set name="indice">indice + 1</set>
|
|
20
|
+
</then>
|
|
21
|
+
</while>
|
|
22
|
+
</block>
|
|
23
|
+
</module>
|
|
File without changes
|