pareto 0.58.0 → 0.60.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/auto.dist/auto.bin/auto.boekhouding.d.ts +2 -0
- package/auto.dist/auto.bin/auto.boekhouding.js +40 -0
- package/auto.dist/data/boekhouding.data.d.ts +2 -0
- package/auto.dist/data/boekhouding.data.js +433 -0
- package/auto.dist/index.d.ts +4 -4
- package/auto.dist/index.js +6 -6
- package/auto.dist/public/modules/{alan__light__serialize → main}/auto.api.d.ts +1 -1
- package/auto.dist/public/modules/{pareto2typescript → main}/auto.api.js +1 -1
- package/auto.dist/public/modules/main/auto.implementation.d.ts +2 -0
- package/auto.dist/public/modules/main/auto.implementation.js +6 -0
- package/auto.dist/public/modules/main/auto.provided_interface_glossary.d.ts +31 -0
- package/auto.dist/public/modules/{pareto2typescript → main}/auto.provided_interface_glossary.js +1 -1
- package/auto.dist/public/modules/main/auto.provided_interface_glossary.shadow.d.ts +12 -0
- package/auto.dist/public/modules/{pareto2typescript → main}/auto.provided_interface_glossary.shadow.js +1 -1
- package/auto.dist/public/modules/main/implementations/temp_$compile_$boekhouding.alg.d.ts +2 -0
- package/auto.dist/public/modules/main/implementations/temp_$compile_$boekhouding.alg.js +83 -0
- package/auto.dist/public/modules/{pareto2typescript → main}/index.js +1 -1
- package/auto.dist/public/modules/{pareto2typescript → pareto__2__fountain__pen}/auto.api.d.ts +1 -1
- package/auto.dist/public/modules/{tendril2alan__light → pareto__2__fountain__pen}/auto.api.js +1 -1
- package/auto.dist/public/modules/pareto__2__fountain__pen/auto.implementation.d.ts +2 -0
- package/auto.dist/public/modules/pareto__2__fountain__pen/auto.implementation.js +6 -0
- package/auto.dist/public/modules/{pareto2typescript → pareto__2__fountain__pen}/auto.provided_interface_glossary.d.ts +22 -41
- package/auto.dist/public/modules/{alan__light__serialize → pareto__2__fountain__pen}/auto.provided_interface_glossary.js +1 -1
- package/auto.dist/public/modules/{pareto2typescript → pareto__2__fountain__pen}/auto.provided_interface_glossary.shadow.d.ts +11 -6
- package/auto.dist/public/modules/{tendril2alan__light → pareto__2__fountain__pen}/auto.provided_interface_glossary.shadow.js +1 -1
- package/auto.dist/public/modules/pareto__2__fountain__pen/implementations/compilationUnit_$2_$Indented_$Lines.alg.d.ts +2 -0
- package/auto.dist/public/modules/pareto__2__fountain__pen/implementations/compilationUnit_$2_$Indented_$Lines.alg.js +54 -0
- package/auto.dist/public/modules/{alan__light__serialize → pareto__2__fountain__pen}/index.js +1 -1
- package/auto.dist/public/modules/{typescript__serialize → string__aware__fountain__pen__2__fountain__pen}/auto.api.js +1 -1
- package/auto.dist/public/modules/{tendril2alan__light → string__aware__fountain__pen__2__fountain__pen}/auto.implementation.js +1 -1
- package/auto.dist/public/modules/string__aware__fountain__pen__2__fountain__pen/auto.provided_interface_glossary.d.ts +90 -0
- package/auto.dist/public/modules/{typescript__serialize → string__aware__fountain__pen__2__fountain__pen}/auto.provided_interface_glossary.js +1 -1
- package/auto.dist/public/modules/{tendril2alan__light → string__aware__fountain__pen__2__fountain__pen}/auto.provided_interface_glossary.shadow.d.ts +2 -2
- package/auto.dist/public/modules/{typescript__serialize → string__aware__fountain__pen__2__fountain__pen}/auto.provided_interface_glossary.shadow.js +1 -1
- package/auto.dist/public/modules/string__aware__fountain__pen__2__fountain__pen/implementations/map.alg.js +65 -0
- package/auto.dist/public/modules/{typescript__serialize → string__aware__fountain__pen__2__fountain__pen}/index.js +1 -1
- package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/auto.api.d.ts +1 -0
- package/auto.dist/public/modules/{alan__light__serialize → typescript__intermediate__2__fountain__pen}/auto.api.js +1 -1
- package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/auto.implementation.d.ts +1 -0
- package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/auto.implementation.js +4 -2
- package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/auto.provided_interface_glossary.d.ts +148 -0
- package/auto.dist/public/modules/{tendril2alan__light → typescript__intermediate__2__fountain__pen}/auto.provided_interface_glossary.js +1 -1
- package/auto.dist/public/modules/{alan__light__serialize → typescript__intermediate__2__fountain__pen}/auto.provided_interface_glossary.shadow.d.ts +5 -7
- package/auto.dist/public/modules/{alan__light__serialize → typescript__intermediate__2__fountain__pen}/auto.provided_interface_glossary.shadow.js +1 -1
- package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createApostrophedString.alg.js +2 -3
- package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createBacktickedString.alg.js +2 -3
- package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createQuotedString.alg.js +3 -3
- package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/implementations/serialize.alg.js +95 -0
- package/auto.dist/public/modules/{tendril2alan__light → typescript__intermediate__2__fountain__pen}/index.js +1 -1
- package/auto.dist/public/modules/typescript__naming/auto.provided_interface_glossary.d.ts +3 -2
- package/auto.dist/public/modules/typescript__naming/implementations/createIdentifier.alg.js +1 -1
- package/auto.pareto/$.data.ts +8 -10
- package/auto.pareto/auto.dependencies/index.ts +3 -3
- package/auto.pareto/auto.dependencies/pareto-pure/$.data.ts +41 -20
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/index.ts +1 -1
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/$.data.ts +6 -10
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/array/api.data.ts +2 -0
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/array/glossary.data.ts +89 -20
- package/auto.pareto/auto.dependencies/{pareto-standard-library/modules/build → pareto-pure/auto.dependencies/pareto-standard-library/modules/buildInterfaceInitializers}/api.data.ts +0 -1
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/buildInterfaceInitializers/glossary.data.ts +167 -0
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/dictionary/glossary.data.ts +5 -3
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/nested/api.data.ts +0 -1
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/nested/glossary.data.ts +0 -6
- package/auto.pareto/auto.dependencies/{pareto-standard-library/modules/arithmetic → pareto-pure/auto.dependencies/pareto-standard-library/modules/number}/api.data.ts +3 -1
- package/auto.pareto/auto.dependencies/{pareto-standard-library/modules/arithmetic → pareto-pure/auto.dependencies/pareto-standard-library/modules/number}/glossary.data.ts +11 -17
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/optional/api.data.ts +16 -0
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/optional/glossary.data.ts +36 -0
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/resolve/api.data.ts +0 -1
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/resolve/glossary.data.ts +0 -14
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/string/api.data.ts +9 -1
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/string/glossary.data.ts +19 -1
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/tostring/api.data.ts +0 -5
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/tostring/glossary.data.ts +0 -14
- package/auto.pareto/auto.dependencies/pareto-pure/{auto.dependencies/pareto-standard-library/modules/json/glossary.data.ts → glossaries/astn.data.ts} +11 -14
- package/auto.pareto/auto.dependencies/pareto-pure/glossaries/{auto.alan.data.ts → auto.graphviz.data.ts} +491 -264
- package/auto.pareto/auto.dependencies/pareto-pure/{modules/fountain_pen/glossary.data.ts → glossaries/fountain_pen.data.ts} +11 -18
- package/auto.pareto/auto.dependencies/pareto-pure/glossaries/lines.data.ts +27 -0
- package/auto.pareto/auto.dependencies/pareto-pure/glossaries/string_aware_fountain_pen.data.ts +40 -0
- package/auto.pareto/auto.dependencies/pareto-pure/glossaries/testresult.data.ts +137 -0
- package/auto.pareto/auto.dependencies/pareto-pure/glossaries/typescript_intermediate.data.ts +68 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/alan_light_2_string_aware_fountain_pen/api.data.ts +20 -0
- package/auto.pareto/{modules/alan_light_serialize → auto.dependencies/pareto-pure/modules/alan_light_2_string_aware_fountain_pen}/glossary.data.ts +5 -6
- package/auto.pareto/auto.dependencies/pareto-pure/{auto.dependencies/pareto-standard-library/modules/json → modules/astn_2_fountain_pen}/api.data.ts +1 -1
- package/auto.pareto/auto.dependencies/pareto-pure/modules/astn_2_fountain_pen/glossary.data.ts +39 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/{tendril2pareto → cosmos_type_system_2_graphviz}/api.data.ts +3 -2
- package/auto.pareto/auto.dependencies/pareto-pure/modules/cosmos_type_system_2_graphviz/glossary.data.ts +30 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/{cosmos2pareto → cosmos_type_system_2_pareto}/glossary.data.ts +6 -6
- package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen_2_fountain_pen/api.data.ts +17 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen_2_fountain_pen/glossary.data.ts +36 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/{fountain_pen → fountain_pen_2_lines}/api.data.ts +0 -1
- package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen_2_lines/glossary.data.ts +42 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/graphviz_2_string_aware_fountain_pen/api.data.ts +20 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/graphviz_2_string_aware_fountain_pen/glossary.data.ts +40 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/pareto_2_typescript/api.data.ts +16 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/pareto_2_typescript/glossary.data.ts +53 -0
- package/auto.pareto/{modules/tendril2alan_light → auto.dependencies/pareto-pure/modules/tendril_2_alan_light}/glossary.data.ts +5 -7
- package/auto.pareto/auto.dependencies/pareto-pure/modules/{tendril2cosmos_type_system → tendril_2_cosmos_type_system}/glossary.data.ts +6 -6
- package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril_2_pareto/api.data.ts +17 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/{tendril2pareto → tendril_2_pareto}/glossary.data.ts +6 -5
- package/auto.pareto/auto.dependencies/pareto-pure/modules/{testresult → testresult_2_testresult}/api.data.ts +0 -2
- package/auto.pareto/auto.dependencies/pareto-standard-library/$.data.ts +6 -10
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/array/api.data.ts +2 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/array/glossary.data.ts +89 -20
- package/auto.pareto/auto.dependencies/{pareto-pure/auto.dependencies/pareto-standard-library/modules/build → pareto-standard-library/modules/buildInterfaceInitializers}/api.data.ts +0 -1
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/buildInterfaceInitializers/glossary.data.ts +167 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/dictionary/glossary.data.ts +5 -3
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/nested/api.data.ts +0 -1
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/nested/glossary.data.ts +0 -6
- package/auto.pareto/auto.dependencies/{pareto-pure/auto.dependencies/pareto-standard-library/modules/arithmetic → pareto-standard-library/modules/number}/api.data.ts +3 -1
- package/auto.pareto/auto.dependencies/{pareto-pure/auto.dependencies/pareto-standard-library/modules/arithmetic → pareto-standard-library/modules/number}/glossary.data.ts +11 -17
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/optional/api.data.ts +16 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/optional/glossary.data.ts +36 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/resolve/api.data.ts +0 -1
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/resolve/glossary.data.ts +0 -14
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/string/api.data.ts +9 -1
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/string/glossary.data.ts +19 -1
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/tostring/api.data.ts +0 -5
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/tostring/glossary.data.ts +0 -14
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/$.data.ts +2 -0
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/glossaries/lines.data.ts +27 -0
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/array/glossary.data.ts +0 -1
- package/auto.pareto/{modules/alan_light_serialize → auto.dependencies/pareto-subatomic-library/modules/filesystem}/api.data.ts +1 -1
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/filesystem/glossary.data.ts +59 -0
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/json/api.data.ts +8 -2
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/json/glossary.data.ts +4 -3
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/string/api.data.ts +0 -1
- package/auto.pareto/modules/main/api.data.ts +14 -0
- package/auto.pareto/modules/main/glossary.data.ts +43 -0
- package/auto.pareto/modules/{pareto2typescript → pareto_2_fountain_pen}/api.data.ts +1 -4
- package/auto.pareto/modules/{pareto2typescript → pareto_2_fountain_pen}/glossary.data.ts +6 -9
- package/auto.pareto/modules/string_aware_fountain_pen_2 fountain_pen/api.data.ts +15 -0
- package/auto.pareto/modules/string_aware_fountain_pen_2 fountain_pen/glossary.data.ts +27 -0
- package/auto.pareto/modules/{typescript_serialize → typescript_intermediate_2_fountain_pen}/api.data.ts +7 -0
- package/auto.pareto/modules/{typescript_serialize → typescript_intermediate_2_fountain_pen}/glossary.data.ts +8 -0
- package/auto.pareto/modules/typescript_naming/glossary.data.ts +3 -2
- package/package.json +9 -5
- package/auto.dist/public/modules/alan__light__serialize/auto.implementation.d.ts +0 -2
- package/auto.dist/public/modules/alan__light__serialize/auto.implementation.js +0 -6
- package/auto.dist/public/modules/alan__light__serialize/auto.provided_interface_glossary.d.ts +0 -705
- package/auto.dist/public/modules/alan__light__serialize/implementations/serialize.alg.js +0 -115
- package/auto.dist/public/modules/pareto2typescript/auto.implementation.d.ts +0 -2
- package/auto.dist/public/modules/pareto2typescript/auto.implementation.js +0 -6
- package/auto.dist/public/modules/pareto2typescript/implementations/serializeCompilationUnit.alg.d.ts +0 -2
- package/auto.dist/public/modules/pareto2typescript/implementations/serializeCompilationUnit.alg.js +0 -529
- package/auto.dist/public/modules/tendril2alan__light/auto.provided_interface_glossary.d.ts +0 -1583
- package/auto.dist/public/modules/tendril2alan__light/implementations/map.alg.js +0 -141
- package/auto.dist/public/modules/typescript__serialize/auto.provided_interface_glossary.d.ts +0 -11
- package/auto.dist/public/modules/typescript__serialize/auto.provided_interface_glossary.shadow.d.ts +0 -11
- package/auto.dist/public/modules/typescript__serialize/implementations/escape.alg.d.ts +0 -0
- package/auto.dist/public/modules/typescript__serialize/implementations/escape.alg.js +0 -20
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/build/glossary.data.ts +0 -133
- package/auto.pareto/auto.dependencies/pareto-pure/glossaries/auto.liana.data.ts +0 -1955
- package/auto.pareto/auto.dependencies/pareto-pure/modules/liana2tendril/api.data.ts +0 -24
- package/auto.pareto/auto.dependencies/pareto-pure/modules/liana2tendril/glossary.data.ts +0 -48
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/build/glossary.data.ts +0 -133
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/json/api.data.ts +0 -15
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/json/glossary.data.ts +0 -47
- /package/auto.dist/public/modules/{alan__light__serialize → main}/index.d.ts +0 -0
- /package/auto.dist/public/modules/{pareto2typescript → pareto__2__fountain__pen}/index.d.ts +0 -0
- /package/auto.dist/public/modules/{tendril2alan__light → string__aware__fountain__pen__2__fountain__pen}/auto.api.d.ts +0 -0
- /package/auto.dist/public/modules/{tendril2alan__light → string__aware__fountain__pen__2__fountain__pen}/auto.implementation.d.ts +0 -0
- /package/auto.dist/public/modules/{tendril2alan__light → string__aware__fountain__pen__2__fountain__pen}/implementations/map.alg.d.ts +0 -0
- /package/auto.dist/public/modules/{tendril2alan__light → string__aware__fountain__pen__2__fountain__pen}/index.d.ts +0 -0
- /package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createApostrophedString.alg.d.ts +0 -0
- /package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createBacktickedString.alg.d.ts +0 -0
- /package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createQuotedString.alg.d.ts +0 -0
- /package/auto.dist/public/modules/{alan__light__serialize → typescript__intermediate__2__fountain__pen}/implementations/serialize.alg.d.ts +0 -0
- /package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/index.d.ts +0 -0
- /package/auto.pareto/auto.dependencies/pareto-pure/modules/{cosmos2pareto → cosmos_type_system_2_pareto}/api.data.ts +0 -0
- /package/auto.pareto/{modules/tendril2alan_light → auto.dependencies/pareto-pure/modules/tendril_2_alan_light}/api.data.ts +0 -0
- /package/auto.pareto/auto.dependencies/pareto-pure/modules/{tendril2cosmos_type_system → tendril_2_cosmos_type_system}/api.data.ts +0 -0
- /package/auto.pareto/auto.dependencies/pareto-pure/modules/{testresult → testresult_2_testresult}/glossary.data.ts +0 -0
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import * as pd from 'pareto-core-data'
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
|
-
array, data, dictionary, externalTypeReference, group, member, number, optional, parametrizedType, ref, sfunction,
|
|
4
|
+
array, data, dictionary, externalTypeReference, group, member, null_, number, optional, parametrizedType, ref, sfunction,
|
|
5
|
+
string,
|
|
6
|
+
taggedUnion,
|
|
5
7
|
type, typeParameter, typeReference
|
|
6
8
|
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
7
9
|
|
|
@@ -16,37 +18,104 @@ export const $: g_glossary.D.Glossary = {
|
|
|
16
18
|
'root': {
|
|
17
19
|
'namespaces': d({}),
|
|
18
20
|
'data types': d({
|
|
19
|
-
|
|
20
|
-
"
|
|
21
|
+
//out
|
|
22
|
+
"Array": parametrizedType(
|
|
23
|
+
{ "Type": null },
|
|
24
|
+
array(ref(typeParameter("Type")))
|
|
25
|
+
),
|
|
21
26
|
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
27
|
+
"ZippedArray": parametrizedType(
|
|
28
|
+
{ "Benchmark": null, "Focus": null },
|
|
29
|
+
array(group({
|
|
30
|
+
"benchmark": member(ref(typeParameter("Benchmark"))),
|
|
31
|
+
"focus": member(ref(typeParameter("Focus"))),
|
|
32
|
+
}))
|
|
33
|
+
),
|
|
34
|
+
|
|
35
|
+
//in
|
|
36
|
+
"ArrayOfArrays": parametrizedType(
|
|
37
|
+
{ "Type": null },
|
|
38
|
+
array(ref(typeReference("Array", { "Type": typeParameter("Type") })))),
|
|
39
|
+
|
|
40
|
+
"AppendParameters": parametrizedType(
|
|
41
|
+
{ "Type": null },
|
|
42
|
+
group({
|
|
43
|
+
"array": member(ref(typeReference("Array", { "Type": typeParameter("Type") }))),
|
|
44
|
+
"element": member(ref(typeParameter("Type"))),
|
|
45
|
+
})
|
|
46
|
+
),
|
|
47
|
+
"PrependParameters": parametrizedType(
|
|
48
|
+
{ "Type": null },
|
|
49
|
+
group({
|
|
50
|
+
"array": member(ref(typeReference("Array", { "Type": typeParameter("Type") }))),
|
|
51
|
+
"element": member(ref(typeParameter("Type"))),
|
|
52
|
+
})
|
|
53
|
+
),
|
|
54
|
+
"ArrayTuple": parametrizedType(
|
|
55
|
+
{ "Benchmark": null, "Focus": null },
|
|
56
|
+
group({
|
|
57
|
+
"benchmark": member(ref(typeReference("Array", { "Type": typeParameter("Benchmark") }))),
|
|
58
|
+
"focus": member(ref(typeReference("Array", { "Type": typeParameter("Focus") }))),
|
|
59
|
+
})
|
|
60
|
+
),
|
|
61
|
+
"Nested": parametrizedType({ "Type": null }, taggedUnion({
|
|
62
|
+
"single": ref(typeParameter("Type")),
|
|
63
|
+
"multiple": array(ref(typeReference("Nested", { "Type": typeParameter("Type") }))),
|
|
64
|
+
"none": null_(),
|
|
33
65
|
})),
|
|
34
|
-
"
|
|
35
|
-
|
|
36
|
-
|
|
66
|
+
// "Array": parametrizedType({ "Type": null }, array(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
|
|
67
|
+
// "KeyValuePair": parametrizedType({ "Type": null }, group({
|
|
68
|
+
// "key": member(string()),
|
|
69
|
+
// "value": member(ref(typeParameter("Type"))),
|
|
70
|
+
// })),
|
|
71
|
+
|
|
72
|
+
"DependencyDictionary": parametrizedType({ "Type": null }, dictionary(group({
|
|
73
|
+
"value": member(ref(typeParameter("Type"))),
|
|
74
|
+
"dependencies": member(dictionary(null_())),
|
|
37
75
|
}))),
|
|
38
76
|
|
|
77
|
+
|
|
78
|
+
"KeyValuePairArray": parametrizedType({ "Type": null }, array(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
|
|
79
|
+
"KeyValuePair": parametrizedType({ "Type": null }, group({
|
|
80
|
+
"key": member(string()),
|
|
81
|
+
"value": member(ref(typeParameter("Type"))),
|
|
82
|
+
})),
|
|
83
|
+
|
|
39
84
|
}),
|
|
40
85
|
},
|
|
41
86
|
'interface types': d({}),
|
|
42
87
|
'algorithm types': d({
|
|
43
|
-
"Append": sfunction(
|
|
44
|
-
|
|
45
|
-
|
|
88
|
+
"Append": sfunction(
|
|
89
|
+
typeReference("Array", { "Type": typeParameter("Type") }),
|
|
90
|
+
data(typeReference("AppendParameters", { "Type": typeParameter("Type") })),
|
|
91
|
+
{ "Type": null }
|
|
92
|
+
),
|
|
93
|
+
"Prepend": sfunction(
|
|
94
|
+
typeReference("Array", { "Type": typeParameter("Type") }),
|
|
95
|
+
data(typeReference("PrependParameters", { "Type": typeParameter("Type") })),
|
|
96
|
+
{ "Type": null }
|
|
97
|
+
),
|
|
98
|
+
"FlattenArrayOfArrays": sfunction(
|
|
99
|
+
typeReference("Array", { "Type": typeParameter("Type") }),
|
|
100
|
+
data(typeReference("ArrayOfArrays", { "Type": typeParameter("Type") })),
|
|
101
|
+
{ "Type": null },
|
|
102
|
+
),
|
|
103
|
+
"FlattenTree": sfunction(
|
|
104
|
+
typeReference("Array", { "Type": typeParameter("Type") }),
|
|
105
|
+
data(typeReference("Nested", { "Type": typeParameter("Type") })),
|
|
106
|
+
{ "Type": null }
|
|
107
|
+
),
|
|
46
108
|
"Zip": sfunction(
|
|
47
109
|
typeReference("ZippedArray", { "Benchmark": typeParameter("Benchmark"), "Focus": typeParameter("Focus") }),
|
|
48
110
|
data(typeReference("ArrayTuple", { "Benchmark": typeParameter("Benchmark"), "Focus": typeParameter("Focus") })),
|
|
49
111
|
{ "Benchmark": null, "Focus": null }
|
|
50
112
|
),
|
|
113
|
+
|
|
114
|
+
|
|
115
|
+
"SortTopologically": sfunction(
|
|
116
|
+
typeReference("KeyValuePairArray", { "Type": typeParameter("Type") }),
|
|
117
|
+
data(typeReference("DependencyDictionary", { "Type": typeParameter("Type") })),
|
|
118
|
+
{ "Type": null }
|
|
119
|
+
),
|
|
51
120
|
}),
|
|
52
121
|
}
|
|
@@ -18,7 +18,6 @@ export const $: g_project.D.API = api(
|
|
|
18
18
|
"createSafeDictionaryBuilder": algorithm("CreateSafeDictionaryBuilder", "DictionaryBuildStrategy", {}),
|
|
19
19
|
"createArrayBuilder": algorithm("CreateArrayBuilder", null, {}),
|
|
20
20
|
|
|
21
|
-
|
|
22
21
|
"createStringBuilder": algorithm("CreateStringBuilder", "Startstring", {
|
|
23
22
|
}),
|
|
24
23
|
}
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
aInterfaceMethod,
|
|
5
|
+
aInterfaceReference,
|
|
6
|
+
array, dictionary, ref, typeParameter, group, sInf, member,
|
|
7
|
+
sfunction,
|
|
8
|
+
sInterfaceMethod, sInterfaceReference, streamconsumer, string, taggedUnion, type, typeReference, aInterface, sInterface, parametrizedType,
|
|
9
|
+
infInit
|
|
10
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
11
|
+
|
|
12
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
13
|
+
const d = pd.d
|
|
14
|
+
|
|
15
|
+
export const $: g_glossary.D.Glossary = {
|
|
16
|
+
'glossary parameters': d({}),
|
|
17
|
+
'imports': d({
|
|
18
|
+
}),
|
|
19
|
+
'root': {
|
|
20
|
+
'namespaces': d({}),
|
|
21
|
+
'data types': d({
|
|
22
|
+
"Simple Array": parametrizedType({ "Type": null }, array(ref(typeParameter("Type")))),
|
|
23
|
+
|
|
24
|
+
"Simple Dictionary": parametrizedType({ "Type": null }, dictionary(ref(typeParameter("Type")))),
|
|
25
|
+
"Simple String": type(string()),
|
|
26
|
+
|
|
27
|
+
"Array": parametrizedType({ "Type": null, "EndType": null }, group({
|
|
28
|
+
"array": member(array(ref(typeParameter("Type")))),
|
|
29
|
+
"end": member(ref(typeParameter("EndType"))),
|
|
30
|
+
})),
|
|
31
|
+
"Dictionary": parametrizedType({ "Type": null, "EndType": null }, group({
|
|
32
|
+
"dictionary": member(dictionary(ref(typeParameter("Type")))),
|
|
33
|
+
"end": member(ref(typeParameter("EndType"))),
|
|
34
|
+
})),
|
|
35
|
+
"String": parametrizedType({ "EndType": null }, group({
|
|
36
|
+
"string": member(string()),
|
|
37
|
+
"end": member(ref(typeParameter("EndType"))),
|
|
38
|
+
})),
|
|
39
|
+
"KeyValuePair": parametrizedType({ "Type": null }, group({
|
|
40
|
+
"key": member(string()),
|
|
41
|
+
"value": member(ref(typeParameter("Type"))),
|
|
42
|
+
})),
|
|
43
|
+
|
|
44
|
+
"DictionaryBuildStrategy": type(taggedUnion({
|
|
45
|
+
"ignore": group({}),
|
|
46
|
+
"overwrite": group({}),
|
|
47
|
+
})),
|
|
48
|
+
"Startstring": type(string()),
|
|
49
|
+
}),
|
|
50
|
+
},
|
|
51
|
+
'interface types': d({
|
|
52
|
+
"Array": aInterface(
|
|
53
|
+
aInterfaceMethod(typeReference("Array", {
|
|
54
|
+
"Type": typeParameter("Type"),
|
|
55
|
+
"EndType": typeParameter("EndType")
|
|
56
|
+
})),
|
|
57
|
+
{ "Type": null, "EndType": null }
|
|
58
|
+
),
|
|
59
|
+
"Dictionary": aInterface(
|
|
60
|
+
aInterfaceMethod(typeReference("Dictionary", {
|
|
61
|
+
"Type": typeParameter("Type"),
|
|
62
|
+
"EndType": typeParameter("EndType")
|
|
63
|
+
})),
|
|
64
|
+
{ "Type": null, "EndType": null }
|
|
65
|
+
),
|
|
66
|
+
"Elements": aInterface(
|
|
67
|
+
streamconsumer(
|
|
68
|
+
aInterfaceMethod(typeParameter("Type")),
|
|
69
|
+
aInterfaceMethod(typeParameter("EndType")),
|
|
70
|
+
),
|
|
71
|
+
{ "Type": null, "EndType": null }
|
|
72
|
+
),
|
|
73
|
+
"Entries": aInterface(
|
|
74
|
+
streamconsumer(
|
|
75
|
+
aInterfaceMethod(typeReference("KeyValuePair", { "Type": typeParameter("Type") })),
|
|
76
|
+
aInterfaceMethod(typeParameter("EndType")),
|
|
77
|
+
),
|
|
78
|
+
{ "Type": null, "EndType": null }
|
|
79
|
+
),
|
|
80
|
+
"DuplicatesHandler": aInterface(
|
|
81
|
+
streamconsumer(
|
|
82
|
+
aInterfaceMethod(typeReference("Simple String")),
|
|
83
|
+
aInterfaceMethod(null),
|
|
84
|
+
)
|
|
85
|
+
),
|
|
86
|
+
"StringConsumer": aInterface(
|
|
87
|
+
aInterfaceMethod(typeReference("String", { "EndType": typeParameter("EndType") })),
|
|
88
|
+
{ "EndType": null }
|
|
89
|
+
),
|
|
90
|
+
"StringStreamConsumer": aInterface(
|
|
91
|
+
streamconsumer(
|
|
92
|
+
aInterfaceMethod(typeReference("Simple String")),
|
|
93
|
+
aInterfaceMethod(typeParameter("EndType")),
|
|
94
|
+
),
|
|
95
|
+
{ "EndType": null }
|
|
96
|
+
),
|
|
97
|
+
"Add": sInterface(
|
|
98
|
+
sInterfaceMethod(typeReference("KeyValuePair", { "Type": typeParameter("Type") })),
|
|
99
|
+
{ "Type": null }
|
|
100
|
+
),
|
|
101
|
+
"Push": sInterface(
|
|
102
|
+
sInterfaceMethod(typeParameter("Type")),
|
|
103
|
+
{ "Type": null }
|
|
104
|
+
),
|
|
105
|
+
}),
|
|
106
|
+
'algorithm types': d({
|
|
107
|
+
"CreateArrayBuilder": infInit(
|
|
108
|
+
aInterfaceReference("Elements", {
|
|
109
|
+
"Type": typeParameter("Type"),
|
|
110
|
+
"EndType": typeParameter("EndType"),
|
|
111
|
+
}),
|
|
112
|
+
{
|
|
113
|
+
"handler": aInterfaceReference("Array", {
|
|
114
|
+
"Type": typeParameter("Type"),
|
|
115
|
+
"EndType": typeParameter("EndType"),
|
|
116
|
+
}),
|
|
117
|
+
},
|
|
118
|
+
{ "Type": null, "EndType": null }
|
|
119
|
+
),
|
|
120
|
+
"CreateUnsafeDictionaryBuilder": infInit(
|
|
121
|
+
aInterfaceReference("Entries", {
|
|
122
|
+
"Type": typeParameter("Type"),
|
|
123
|
+
"EndType": typeParameter("EndType"),
|
|
124
|
+
}),
|
|
125
|
+
{
|
|
126
|
+
"handler": aInterfaceReference("Dictionary", {
|
|
127
|
+
"Type": typeParameter("Type"),
|
|
128
|
+
"EndType": typeParameter("EndType")
|
|
129
|
+
}),
|
|
130
|
+
},
|
|
131
|
+
{ "Type": null, "EndType": null }
|
|
132
|
+
),
|
|
133
|
+
"CreateSafeDictionaryBuilder": infInit(
|
|
134
|
+
aInterfaceReference("Entries", {
|
|
135
|
+
"Type": typeParameter("Type"),
|
|
136
|
+
"EndType": typeParameter("EndType"),
|
|
137
|
+
}),
|
|
138
|
+
{
|
|
139
|
+
"handler": aInterfaceReference("Dictionary", {
|
|
140
|
+
"Type": typeParameter("Type"),
|
|
141
|
+
"EndType": typeParameter("EndType")
|
|
142
|
+
}),
|
|
143
|
+
"duplicatesHandler": aInterfaceReference("DuplicatesHandler"),
|
|
144
|
+
|
|
145
|
+
},
|
|
146
|
+
{ "Type": null, "EndType": null }
|
|
147
|
+
),
|
|
148
|
+
"CreateStringBuilder": infInit(
|
|
149
|
+
aInterfaceReference("StringStreamConsumer", { "EndType": typeParameter("EndType") }),
|
|
150
|
+
{
|
|
151
|
+
"handler": aInterfaceReference("StringConsumer", { "EndType": typeParameter("EndType") }),
|
|
152
|
+
},
|
|
153
|
+
{ "EndType": null }
|
|
154
|
+
),
|
|
155
|
+
// "BuildArray": sfunction(typeReference("Simple Array", {
|
|
156
|
+
// "Type": typeParameter("Type"),
|
|
157
|
+
// }), sInf(sInterfaceReference("Push", { "Type": typeParameter("Type") })), { "Type": null }),
|
|
158
|
+
// "BuildUnsafeDictionary": sfunction(typeReference("Simple Dictionary", {
|
|
159
|
+
// "Type": typeParameter("Type"),
|
|
160
|
+
// }), sInf(sInterfaceReference("Add", { "Type": typeParameter("Type") })), { "Type": null }),
|
|
161
|
+
// "BuildSafeDictionary": sfunction(typeReference("Simple Dictionary", {
|
|
162
|
+
// "Type": typeParameter("Type"),
|
|
163
|
+
// }), sInf(sInterfaceReference("Add", { "Type": typeParameter("Type") })), { "Type": null }),
|
|
164
|
+
|
|
165
|
+
}),
|
|
166
|
+
|
|
167
|
+
}
|
|
@@ -64,7 +64,6 @@ export const $: g_glossary.D.Glossary = {
|
|
|
64
64
|
})),
|
|
65
65
|
"KeyValueDictionary": parametrizedType({ "Type": null }, dictionary(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
|
|
66
66
|
|
|
67
|
-
|
|
68
67
|
"RekeyDictionary": parametrizedType({ "Type": null }, dictionary(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
|
|
69
68
|
|
|
70
69
|
}),
|
|
@@ -111,8 +110,11 @@ export const $: g_glossary.D.Glossary = {
|
|
|
111
110
|
typeReference("Dictionary", { "Type": typeParameter("Type") }),
|
|
112
111
|
data(typeReference("MergeParameters", { "Type": typeParameter("Type") })),
|
|
113
112
|
{ "Type": null }
|
|
114
|
-
),
|
|
115
|
-
|
|
113
|
+
),
|
|
114
|
+
"DecorateDictionaryEntriesWithKey": sfunction(
|
|
115
|
+
typeReference("KeyValueDictionary", { "Type": typeParameter("Type") }),
|
|
116
|
+
data(typeReference("Dictionary", { "Type": typeParameter("Type") })), { "Type": null }
|
|
117
|
+
),
|
|
116
118
|
|
|
117
119
|
}),
|
|
118
120
|
|
|
@@ -14,16 +14,10 @@ export const $: g_glossary.D.Glossary = {
|
|
|
14
14
|
'root': {
|
|
15
15
|
'namespaces': d({}),
|
|
16
16
|
'data types': d({
|
|
17
|
-
"Nested": parametrizedType({ "Type": null }, taggedUnion({
|
|
18
|
-
"single": ref(typeParameter("Type")),
|
|
19
|
-
"multiple": array(ref(typeReference("Nested", { "Type": typeParameter("Type")}))),
|
|
20
|
-
"none": null_(),
|
|
21
|
-
})),
|
|
22
17
|
"Array": parametrizedType({ "Type": null }, array(ref(typeParameter("Type"))))
|
|
23
18
|
}),
|
|
24
19
|
},
|
|
25
20
|
'interface types': d({}),
|
|
26
21
|
'algorithm types': d({
|
|
27
|
-
"Flatten": sfunction(typeReference("Array", { "Type": typeParameter("Type")}), data(typeReference("Nested", { "Type": typeParameter("Type")})), { "Type": null })
|
|
28
22
|
}),
|
|
29
23
|
}
|
|
@@ -10,9 +10,11 @@ import { glossary, group, member, number, type } from "pareto-pure/auto.dist/pub
|
|
|
10
10
|
export const $: g_project.D.API = api(
|
|
11
11
|
glos,
|
|
12
12
|
{
|
|
13
|
-
"
|
|
13
|
+
"add": algorithm("Add", null, {}),
|
|
14
14
|
"increment": algorithm("Increment", "IncrementConfig", {}),
|
|
15
|
+
"min": algorithm("Min", null, {}),
|
|
15
16
|
"max": algorithm("Max", null, {}),
|
|
17
|
+
"multiply": algorithm("Multiply", null, {}),
|
|
16
18
|
"negate": algorithm("Negate", null, {}),
|
|
17
19
|
"subtract": algorithm("Subtract", null, {}),
|
|
18
20
|
}
|
|
@@ -19,19 +19,10 @@ export const $: g_glossary.D.Glossary = {
|
|
|
19
19
|
"Number": type(number()),
|
|
20
20
|
"OptionalNumber": type(optional(number())),
|
|
21
21
|
"NumberRange": type(array(number())),
|
|
22
|
-
"DivisionData": type(group({
|
|
23
|
-
"numerator": member(number()),
|
|
24
|
-
"denominator": member(number()),
|
|
25
|
-
})),
|
|
26
22
|
"NumberTuple": type(group({
|
|
27
23
|
"yin": member(number()),
|
|
28
24
|
"yang": member(number()),
|
|
29
25
|
})),
|
|
30
|
-
"DivisionResult": type(optional(group({
|
|
31
|
-
"quotient": member(number()),
|
|
32
|
-
"remainder": member(number()),
|
|
33
|
-
|
|
34
|
-
}))),
|
|
35
26
|
"SubtractData": type(group({
|
|
36
27
|
"minuend": member(number()),
|
|
37
28
|
"subtrahend": member(number()),
|
|
@@ -46,30 +37,33 @@ export const $: g_glossary.D.Glossary = {
|
|
|
46
37
|
},
|
|
47
38
|
'interface types': d({}),
|
|
48
39
|
'algorithm types': d({
|
|
40
|
+
"Add": sfunction(typeReference("Number"), data(typeReference("NumberTuple"))),
|
|
41
|
+
"Multiply": sfunction(typeReference("Number"), data(typeReference("NumberTuple"))),
|
|
49
42
|
"Increment": sfunction(typeReference("Number"), data(typeReference("Number"))),
|
|
50
|
-
"Array Multiply": sfunction(typeReference("Number"), data(typeReference("NumberRange"))),
|
|
43
|
+
// "Array Multiply": sfunction(typeReference("Number"), data(typeReference("NumberRange"))),
|
|
51
44
|
"Negate": sfunction(typeReference("Number"), data(typeReference("Number"))),
|
|
52
45
|
/**
|
|
53
|
-
* if the denominator is 0, the return value is
|
|
46
|
+
* if the denominator is 0, the return value is not set
|
|
54
47
|
* (division by 0),
|
|
55
48
|
*/
|
|
56
|
-
|
|
49
|
+
|
|
57
50
|
/**
|
|
58
51
|
* calculates the max of an array of numbers. If there are no entries, the result value is 0
|
|
59
52
|
*/
|
|
60
|
-
"ArrayMax": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberArray"))),
|
|
61
|
-
"ArrayMin": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberArray"))),
|
|
62
|
-
"ArraySum": sfunction(typeReference("Number"), data(typeReference("NumberArray"))),
|
|
53
|
+
// "ArrayMax": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberArray"))),
|
|
54
|
+
// "ArrayMin": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberArray"))),
|
|
55
|
+
// "ArraySum": sfunction(typeReference("Number"), data(typeReference("NumberArray"))),
|
|
63
56
|
/**
|
|
64
57
|
* calculates the max of a dictionary of number. If there are no entries, the result value is 0
|
|
65
58
|
*/
|
|
66
|
-
"DictionaryMax": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberDictionary"))),
|
|
67
|
-
"DictionaryMin": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberDictionary"))),
|
|
59
|
+
// "DictionaryMax": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberDictionary"))),
|
|
60
|
+
// "DictionaryMin": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberDictionary"))),
|
|
68
61
|
/**
|
|
69
62
|
* calculates the max of a tuple of numbers
|
|
70
63
|
*/
|
|
71
64
|
"DictionarySum": sfunction(typeReference("Number"), data(typeReference("NumberDictionary"))),
|
|
72
65
|
|
|
66
|
+
"Min": sfunction(typeReference("Number"), data(typeReference("NumberTuple"))),
|
|
73
67
|
"Max": sfunction(typeReference("Number"), data(typeReference("NumberTuple"))),
|
|
74
68
|
"Subtract": sfunction(typeReference("Number"), data(typeReference("SubtractData"))),
|
|
75
69
|
}),
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import { algorithm, algref, api } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
4
|
+
|
|
5
|
+
import * as g_project from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
6
|
+
|
|
7
|
+
import { $ as glos } from "./glossary.data"
|
|
8
|
+
import { glossary, group, member, number, type } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
9
|
+
|
|
10
|
+
export const $: g_project.D.API = api(
|
|
11
|
+
glos,
|
|
12
|
+
{
|
|
13
|
+
"divide": algorithm("Divide", null, {}),
|
|
14
|
+
"divisionRemainder": algorithm("DivisionRemainder", null, {}),
|
|
15
|
+
}
|
|
16
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
array, boolean, data, dictionary, externalTypeReference, group, member, number, optional, sfunction,
|
|
5
|
+
type, typeReference
|
|
6
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
7
|
+
|
|
8
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
9
|
+
|
|
10
|
+
const d = pd.d
|
|
11
|
+
|
|
12
|
+
export const $: g_glossary.D.Glossary = {
|
|
13
|
+
'glossary parameters': d({}),
|
|
14
|
+
'imports': d({
|
|
15
|
+
}),
|
|
16
|
+
'root': {
|
|
17
|
+
'namespaces': d({}),
|
|
18
|
+
'data types': d({
|
|
19
|
+
"OptionalNumber": type(optional(number())),
|
|
20
|
+
"DivisionData": type(group({
|
|
21
|
+
"numerator": member(number()),
|
|
22
|
+
"denominator": member(number()),
|
|
23
|
+
})),
|
|
24
|
+
}),
|
|
25
|
+
},
|
|
26
|
+
'interface types': d({}),
|
|
27
|
+
'algorithm types': d({
|
|
28
|
+
/**
|
|
29
|
+
* if the denominator is 0, the return value is not set
|
|
30
|
+
* (division by 0),
|
|
31
|
+
*/
|
|
32
|
+
"Divide": sfunction(typeReference("OptionalNumber"), data(typeReference("DivisionData"))),
|
|
33
|
+
"DivisionRemainder": sfunction(typeReference("OptionalNumber"), data(typeReference("DivisionData"))),
|
|
34
|
+
}),
|
|
35
|
+
|
|
36
|
+
}
|
|
@@ -29,24 +29,10 @@ export const $: g_glossary.D.Glossary = {
|
|
|
29
29
|
'root': {
|
|
30
30
|
'namespaces': d({}),
|
|
31
31
|
'data types': d({
|
|
32
|
-
"Array": parametrizedType({ "Type": null }, array(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
|
|
33
|
-
"KeyValuePair": parametrizedType({ "Type": null }, group({
|
|
34
|
-
"key": member(string()),
|
|
35
|
-
"value": member(ref(typeParameter("Type"))),
|
|
36
|
-
})),
|
|
37
32
|
|
|
38
|
-
"DependencyDictionary": parametrizedType({ "Type": null }, dictionary(group({
|
|
39
|
-
"value": member(ref(typeParameter("Type"))),
|
|
40
|
-
"dependencies": member(dictionary(null_())),
|
|
41
|
-
}))),
|
|
42
33
|
}),
|
|
43
34
|
},
|
|
44
35
|
'interface types': d({}),
|
|
45
36
|
'algorithm types': d({
|
|
46
|
-
"SortTopologically": sfunction(
|
|
47
|
-
typeReference("Array", { "Type": typeParameter("Type") }),
|
|
48
|
-
data(typeReference("DependencyDictionary", { "Type": typeParameter("Type") })),
|
|
49
|
-
{ "Type": null }
|
|
50
|
-
),
|
|
51
37
|
}),
|
|
52
38
|
}
|
|
@@ -12,6 +12,14 @@ export const $: g_project.D.API = api(
|
|
|
12
12
|
{
|
|
13
13
|
"join": algorithm("Join", null, {}),
|
|
14
14
|
"repeat": algorithm("Repeat", null, {}),
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
"getArrayAsString": algorithm("GetArrayAsString", "Configuration", {}),
|
|
18
|
+
"getLengthAsString": algorithm("GetLengthAsString", null, {}),
|
|
19
|
+
|
|
20
|
+
//this one implicitely sorts the keys
|
|
21
|
+
//"getKeysAsString": algorithm("GetKeysAsString", "Configuration", {}),
|
|
22
|
+
|
|
23
|
+
"getNumberOfKeysAsString": algorithm("GetNumberOfKeysAsString", null, {}),
|
|
16
24
|
}
|
|
17
25
|
)
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
aInterface,
|
|
5
5
|
aInterfaceMethod,
|
|
6
6
|
aInterfaceReference,
|
|
7
|
-
array, boolean, data, group, member, number, optional, sfunction, streamconsumer, string, type, typeReference
|
|
7
|
+
array, boolean, data, dictionary, group, member, number, optional, parametrizedType, ref, sfunction, streamconsumer, string, type, typeParameter, typeReference
|
|
8
8
|
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
9
9
|
|
|
10
10
|
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
@@ -27,6 +27,19 @@ export const $: g_glossary.D.Glossary = {
|
|
|
27
27
|
"contextString": member(string()),
|
|
28
28
|
"times": member(number()),
|
|
29
29
|
})),
|
|
30
|
+
|
|
31
|
+
"StringArray": type(array(string())),
|
|
32
|
+
|
|
33
|
+
"Configuration": type(group({
|
|
34
|
+
"separator": member(string()),
|
|
35
|
+
"maximum": member(optional(group({
|
|
36
|
+
"maximum": member(number()),
|
|
37
|
+
"suffix": member(string()),
|
|
38
|
+
}))),
|
|
39
|
+
})),
|
|
40
|
+
"Dictionary": parametrizedType({ "Type": null }, dictionary(ref(typeParameter("Type")))),
|
|
41
|
+
"Array": parametrizedType({ "Type": null }, array(ref(typeParameter("Type")))),
|
|
42
|
+
|
|
30
43
|
}),
|
|
31
44
|
},
|
|
32
45
|
'interface types': d({}),
|
|
@@ -35,5 +48,10 @@ export const $: g_glossary.D.Glossary = {
|
|
|
35
48
|
"Join": sfunction(typeReference("String"), data(typeReference("JoinData"))),
|
|
36
49
|
"Repeat": sfunction(typeReference("String"), data(typeReference("RepeatData"))),
|
|
37
50
|
"Foo": sfunction(typeReference("String"), data(typeReference("String"))),
|
|
51
|
+
|
|
52
|
+
"GetLengthAsString": sfunction(typeReference("String"), data(typeReference("Array", { "T": typeParameter("T") })), { "T": null }),
|
|
53
|
+
"GetArrayAsString": sfunction(typeReference("String"), data(typeReference("StringArray"))),
|
|
54
|
+
//"GetKeysAsString": sfunction(typeReference("String"), data(typeReference("Dictionary", { "T": typeParameter("T") })), { "T": null}),
|
|
55
|
+
"GetNumberOfKeysAsString": sfunction(typeReference("String"), data(typeReference("Dictionary", { "T": typeParameter("T") })), { "T": null }),
|
|
38
56
|
}),
|
|
39
57
|
}
|
|
@@ -9,11 +9,6 @@ import { glossary, member, type, group, string, optional, number } from "pareto-
|
|
|
9
9
|
export const $: g_project.D.API = api(
|
|
10
10
|
glos,
|
|
11
11
|
{
|
|
12
|
-
"getArrayAsString": algorithm("GetArrayAsString", "Configuration", {}),
|
|
13
|
-
"getLengthAsString": algorithm("GetLengthAsString", null, {}),
|
|
14
|
-
"getKeysAsString": algorithm("GetKeysAsString", "Configuration", {}),
|
|
15
|
-
|
|
16
|
-
"getNumberOfKeysAsString": algorithm("GetNumberOfKeysAsString", null, {}),
|
|
17
12
|
|
|
18
13
|
}
|
|
19
14
|
)
|
|
@@ -19,24 +19,10 @@ export const $: g_glossary.D.Glossary = {
|
|
|
19
19
|
'data types': d({
|
|
20
20
|
"String": type(string()),
|
|
21
21
|
"Array": parametrizedType({ "T": null }, array(ref(typeParameter("T")))),
|
|
22
|
-
"StringArray": type(array(string())),
|
|
23
22
|
"Dictionary": parametrizedType({ "T": null }, dictionary(ref(typeParameter("T")))),
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
"Configuration": type(group({
|
|
27
|
-
"separator": member(string()),
|
|
28
|
-
"maximum": member(optional(group({
|
|
29
|
-
"maximum": member(number()),
|
|
30
|
-
"suffix": member(string()),
|
|
31
|
-
}))),
|
|
32
|
-
})),
|
|
33
23
|
}),
|
|
34
24
|
},
|
|
35
25
|
'interface types': d({}),
|
|
36
26
|
'algorithm types': d({
|
|
37
|
-
"GetLengthAsString": sfunction(typeReference("String"), data(typeReference("Array", { "T": typeParameter("T") })), { "T": null}),
|
|
38
|
-
"GetArrayAsString": sfunction(typeReference("String"), data(typeReference("StringArray"))),
|
|
39
|
-
"GetKeysAsString": sfunction(typeReference("String"), data(typeReference("Dictionary", { "T": typeParameter("T") })), { "T": null}),
|
|
40
|
-
"GetNumberOfKeysAsString": sfunction(typeReference("String"), data(typeReference("Dictionary", { "T": typeParameter("T") })), { "T": null}),
|
|
41
27
|
}),
|
|
42
28
|
}
|