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
|
@@ -20,36 +20,29 @@ export const $: g_glossary.D.Glossary = {
|
|
|
20
20
|
"Block": type(array(taggedUnion({
|
|
21
21
|
"nested line": ref(typeReference("Line")),
|
|
22
22
|
"line": string(),
|
|
23
|
+
/**
|
|
24
|
+
* this one can be used to make code generation easier.
|
|
25
|
+
* it will be inlined
|
|
26
|
+
*/
|
|
27
|
+
"sub block": ref(typeReference("Block")),
|
|
23
28
|
}))),
|
|
24
29
|
"Line": type(array(taggedUnion({
|
|
25
30
|
"snippet": string(),
|
|
26
|
-
"indent": ref(typeReference("Block"))
|
|
31
|
+
"indent": ref(typeReference("Block")),
|
|
32
|
+
/**
|
|
33
|
+
* this one can be used to make code generation easier.
|
|
34
|
+
* it will be inlined
|
|
35
|
+
*/
|
|
36
|
+
"sub line": ref(typeReference("Line")),
|
|
27
37
|
}))),
|
|
28
38
|
"Lines": type(array(group({
|
|
29
39
|
"indentation": member(number()),
|
|
30
40
|
"text": member(string()),
|
|
31
41
|
}))),
|
|
32
|
-
"Indented Lines": type(array(string())),
|
|
33
|
-
"SerializeData": type(group({
|
|
34
|
-
"block": member(ref(typeReference("Block"))),
|
|
35
|
-
"indentation": member(string()),
|
|
36
|
-
})),
|
|
37
|
-
"IndentData": type(group({
|
|
38
|
-
"lines": member(ref(typeReference("Lines"))),
|
|
39
|
-
"indentation": member(string()),
|
|
40
|
-
})),
|
|
41
|
-
"String": type(string()),
|
|
42
42
|
}),
|
|
43
43
|
},
|
|
44
44
|
'interface types': d({
|
|
45
|
-
"Lines": aInterface(aInterfaceMethod(typeReference("Lines"))),
|
|
46
|
-
"Indented Lines": aInterface(streamconsumer(aInterfaceMethod(typeReference("String")), null)),
|
|
47
45
|
}),
|
|
48
46
|
'algorithm types': d({
|
|
49
|
-
"Indent": sfunction(typeReference("Indented Lines"), data(typeReference("IndentData"))),
|
|
50
|
-
"Serialize": sfunction(typeReference("Lines"), data(typeReference("Block"))),
|
|
51
|
-
"Stream": infInit(aInterfaceReference("Lines"), {
|
|
52
|
-
"handler": aInterfaceReference("Indented Lines")
|
|
53
|
-
}),
|
|
54
47
|
}),
|
|
55
48
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
aInterface,
|
|
5
|
+
aInterfaceMethod,
|
|
6
|
+
aInterfaceReference,
|
|
7
|
+
array, data, dictionary, externalTypeReference, glossaryParameter, group, infInit, member, null_, number, parametrizedType, ref, sfunction, streamconsumer, string, taggedUnion, type, typeParameter, typeReference
|
|
8
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
9
|
+
|
|
10
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
11
|
+
const d = pd.d
|
|
12
|
+
|
|
13
|
+
export const $: g_glossary.D.Glossary = {
|
|
14
|
+
'glossary parameters': d({}),
|
|
15
|
+
'imports': d({
|
|
16
|
+
}),
|
|
17
|
+
'root': {
|
|
18
|
+
'namespaces': d({}),
|
|
19
|
+
'data types': d({
|
|
20
|
+
"Lines": type(array(string())),
|
|
21
|
+
}),
|
|
22
|
+
},
|
|
23
|
+
'interface types': d({
|
|
24
|
+
}),
|
|
25
|
+
'algorithm types': d({
|
|
26
|
+
}),
|
|
27
|
+
}
|
package/auto.pareto/auto.dependencies/pareto-pure/glossaries/string_aware_fountain_pen.data.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
aInterface,
|
|
5
|
+
aInterfaceMethod,
|
|
6
|
+
aInterfaceReference,
|
|
7
|
+
array, data, dictionary, externalTypeReference, glossaryParameter, group, imp, infInit, member, null_, number, parametrizedType, ref, sfunction, streamconsumer, string, taggedUnion, type, typeParameter, typeReference
|
|
8
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
9
|
+
|
|
10
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
11
|
+
const d = pd.d
|
|
12
|
+
|
|
13
|
+
export const $: g_glossary.D.Glossary = {
|
|
14
|
+
'glossary parameters': d({}),
|
|
15
|
+
'imports': d({
|
|
16
|
+
}),
|
|
17
|
+
'root': {
|
|
18
|
+
'namespaces': d({}),
|
|
19
|
+
'data types': d({
|
|
20
|
+
"Block": type(array(taggedUnion({
|
|
21
|
+
"nested line": ref(typeReference("Line")),
|
|
22
|
+
"line": string(),
|
|
23
|
+
}))),
|
|
24
|
+
"Line": type(array(taggedUnion({
|
|
25
|
+
"snippet": string(),
|
|
26
|
+
"apostrophed string": string(),
|
|
27
|
+
"quoted string": string(),
|
|
28
|
+
"backticked string": string(),
|
|
29
|
+
"indent": ref(typeReference("Block"))
|
|
30
|
+
}))),
|
|
31
|
+
"Lines": type(array(group({
|
|
32
|
+
"indentation": member(number()),
|
|
33
|
+
"text": member(string()),
|
|
34
|
+
}))),
|
|
35
|
+
}),
|
|
36
|
+
},
|
|
37
|
+
'interface types': d({}),
|
|
38
|
+
'algorithm types': d({
|
|
39
|
+
}),
|
|
40
|
+
}
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
array, boolean, data, dictionary, externalTypeReference, glossaryParameter, group, member, null_, number, optional, parametrizedType, procedure, ref, sfunction, sInterface, sInterfaceMethod, sInterfaceReference, string, taggedUnion, type, typeParameter, typeReference
|
|
5
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
6
|
+
|
|
7
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
8
|
+
|
|
9
|
+
const d = pd.d
|
|
10
|
+
|
|
11
|
+
export const $: g_glossary.D.Glossary = {
|
|
12
|
+
'glossary parameters': d({}),
|
|
13
|
+
'imports': d({
|
|
14
|
+
}),
|
|
15
|
+
'root': {
|
|
16
|
+
'namespaces': d({
|
|
17
|
+
// "intermediate": {
|
|
18
|
+
// 'namespaces': d({
|
|
19
|
+
|
|
20
|
+
// }),
|
|
21
|
+
// 'data types': d({}),
|
|
22
|
+
// },
|
|
23
|
+
// "summary": {
|
|
24
|
+
// 'namespaces': d({
|
|
25
|
+
|
|
26
|
+
// }),
|
|
27
|
+
// 'data types': d({}),
|
|
28
|
+
// },
|
|
29
|
+
}),
|
|
30
|
+
'data types': d({
|
|
31
|
+
"Library": type(group({
|
|
32
|
+
"public": member(ref(typeReference("Module Set"))),
|
|
33
|
+
"private": member(ref(typeReference("Module Set"))),
|
|
34
|
+
})),
|
|
35
|
+
"Module Set": type(dictionary(ref(typeReference("Module")))),
|
|
36
|
+
"Module": type(dictionary(ref(typeReference("Algorithm")))),
|
|
37
|
+
"Algorithm": type(group({
|
|
38
|
+
"location": member(ref(typeReference("Source Location"))),
|
|
39
|
+
"tests": member(optional(dictionary(ref(typeReference("Test"))))),
|
|
40
|
+
})),
|
|
41
|
+
"Source Location": type(group({
|
|
42
|
+
"file": member(string()),
|
|
43
|
+
"line": member(number()),
|
|
44
|
+
"column": member(number()),
|
|
45
|
+
})),
|
|
46
|
+
"Test": type(array(ref(typeReference("Error")))),
|
|
47
|
+
"Error": type(taggedUnion({
|
|
48
|
+
"content": ref(typeReference("Compare Error"))
|
|
49
|
+
})),
|
|
50
|
+
"Compare Error": type(group({
|
|
51
|
+
"location": member(ref(typeReference("Source Location"))),
|
|
52
|
+
"path": member(string()),
|
|
53
|
+
"type": member(taggedUnion({
|
|
54
|
+
"wrong number": group({
|
|
55
|
+
"found": member(number()),
|
|
56
|
+
}),
|
|
57
|
+
"wrong text": group({
|
|
58
|
+
"found": member(string()),
|
|
59
|
+
}),
|
|
60
|
+
"wrong boolean": group({
|
|
61
|
+
"found": member(boolean())
|
|
62
|
+
}),
|
|
63
|
+
"optional value expected not to be set": null_(),
|
|
64
|
+
"optional value expected to be set": null_(),
|
|
65
|
+
"not the right state": group({
|
|
66
|
+
"found": member(string())
|
|
67
|
+
}),
|
|
68
|
+
"not enough elements": null_(),
|
|
69
|
+
"too many elements": null_(),
|
|
70
|
+
"superfluous entries": group({
|
|
71
|
+
"keys": member(dictionary(null_()))
|
|
72
|
+
}),
|
|
73
|
+
"missing dictionary entry": group({
|
|
74
|
+
"key": member(string()),
|
|
75
|
+
}),
|
|
76
|
+
})),
|
|
77
|
+
|
|
78
|
+
})),
|
|
79
|
+
"Summary": type(group({
|
|
80
|
+
"number of tests": member(number()),
|
|
81
|
+
"number of missing tests": member(number()),
|
|
82
|
+
"number of errors": member(number()),
|
|
83
|
+
})),
|
|
84
|
+
|
|
85
|
+
"intLibrary": type(group({
|
|
86
|
+
"public": member(ref(typeReference("intModule Set"))),
|
|
87
|
+
"private": member(ref(typeReference("intModule Set"))),
|
|
88
|
+
})),
|
|
89
|
+
"intModule Set": type(dictionary(ref(typeReference("intModule")))),
|
|
90
|
+
"intModule": type(dictionary(ref(typeReference("intAlgorithm")))),
|
|
91
|
+
"intAlgorithm": type(group({
|
|
92
|
+
"location": member(ref(typeReference("Source Location"))),
|
|
93
|
+
"status": member(taggedUnion({
|
|
94
|
+
"no tests": null_(),
|
|
95
|
+
"skipped": null_(),
|
|
96
|
+
"has tests": dictionary(ref(typeReference("intTest"))),
|
|
97
|
+
})),
|
|
98
|
+
})),
|
|
99
|
+
"intTest": type(taggedUnion({
|
|
100
|
+
"has errors": array(ref(typeReference("Error"))),
|
|
101
|
+
"has no errors": null_(),
|
|
102
|
+
})),
|
|
103
|
+
"annotatedStatus": type(taggedUnion({
|
|
104
|
+
"has errors": null_(), // red
|
|
105
|
+
"missing tests": null_(), // yellow
|
|
106
|
+
"no tests": null_(), // grey
|
|
107
|
+
"success": null_(), // green
|
|
108
|
+
})),
|
|
109
|
+
"annotatedLibrary": type(group({
|
|
110
|
+
"public": member(ref(typeReference("annotatedModule Set"))),
|
|
111
|
+
"private": member(ref(typeReference("annotatedModule Set"))),
|
|
112
|
+
})),
|
|
113
|
+
"annotatedModule Set": type(group({
|
|
114
|
+
"status": member(ref(typeReference("annotatedStatus"))),
|
|
115
|
+
"modules": member(dictionary(ref(typeReference("annotatedModule")))),
|
|
116
|
+
})),
|
|
117
|
+
"annotatedModule": type(group({
|
|
118
|
+
"status": member(ref(typeReference("annotatedStatus"))),
|
|
119
|
+
"algorithms": member(dictionary(ref(typeReference("annotatedAlgorithm")))),
|
|
120
|
+
})),
|
|
121
|
+
"annotatedAlgorithm": type(group({
|
|
122
|
+
"location": member(ref(typeReference("Source Location"))),
|
|
123
|
+
"status": member(ref(typeReference("annotatedStatus"))),
|
|
124
|
+
"tests": member(dictionary(ref(typeReference("annotatedTest")))),
|
|
125
|
+
})),
|
|
126
|
+
"annotatedTest": type(group({
|
|
127
|
+
"status": member(ref(typeReference("annotatedStatus"))),
|
|
128
|
+
"errors": member(array(ref(typeReference("Error")))),
|
|
129
|
+
})),
|
|
130
|
+
}),
|
|
131
|
+
},
|
|
132
|
+
'interface types': d({
|
|
133
|
+
|
|
134
|
+
}),
|
|
135
|
+
'algorithm types': d({
|
|
136
|
+
}),
|
|
137
|
+
}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
aInterface,
|
|
5
|
+
aInterfaceMethod,
|
|
6
|
+
aInterfaceReference,
|
|
7
|
+
array, boolean, data, dictionary, externalTypeReference, glossaryParameter, group, imp, infInit, member, null_, number, parametrizedType, ref, sfunction, streamconsumer, string, taggedUnion, type, typeParameter, typeReference
|
|
8
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
9
|
+
|
|
10
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
11
|
+
const d = pd.d
|
|
12
|
+
|
|
13
|
+
export const $: g_glossary.D.Glossary = {
|
|
14
|
+
'glossary parameters': d({}),
|
|
15
|
+
'imports': d({
|
|
16
|
+
}),
|
|
17
|
+
'root': {
|
|
18
|
+
'namespaces': d({}),
|
|
19
|
+
'data types': d({
|
|
20
|
+
"Block": type(array(taggedUnion({
|
|
21
|
+
"nested line": ref(typeReference("Line")),
|
|
22
|
+
"line": string(),
|
|
23
|
+
|
|
24
|
+
//specials
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* this one can be used to transform a dictionary into an array of blocks. The order is not controllable.
|
|
28
|
+
*/
|
|
29
|
+
"block dictionary": dictionary(ref(typeReference("Block"))),
|
|
30
|
+
}))),
|
|
31
|
+
"Line": type(array(taggedUnion({
|
|
32
|
+
"snippet": string(),
|
|
33
|
+
"indent": ref(typeReference("Block")),
|
|
34
|
+
|
|
35
|
+
//specials
|
|
36
|
+
"apostrophed string": string(),
|
|
37
|
+
"quoted string": string(),
|
|
38
|
+
"backticked string": string(),
|
|
39
|
+
"identifier": string(),
|
|
40
|
+
// /**
|
|
41
|
+
// * this one is necessary because TypeScript does not allow trailing commas in certain places.
|
|
42
|
+
// * for example in type arguments.
|
|
43
|
+
// */
|
|
44
|
+
// "array without trailing commas": array(ref(typeReference("Line"))),
|
|
45
|
+
/**
|
|
46
|
+
* this one can be used to transform a dictionary into an array of line parts. The order is not controllable.
|
|
47
|
+
* typescript sometimes handles empty dictoinaries in impure ways and sometimes doesn't accept a trailing comma.
|
|
48
|
+
*/
|
|
49
|
+
"line dictionary": group({
|
|
50
|
+
"dictionary": member(dictionary(ref(typeReference("Line")))),
|
|
51
|
+
"if empty": member(ref(typeReference("Line"))),
|
|
52
|
+
"if not empty": member(group({
|
|
53
|
+
"prefix": member(ref(typeReference("Line"))),
|
|
54
|
+
"suffix": member(ref(typeReference("Line"))),
|
|
55
|
+
"add commas in between": member(boolean()),
|
|
56
|
+
})),
|
|
57
|
+
}),
|
|
58
|
+
}))),
|
|
59
|
+
"Lines": type(array(group({
|
|
60
|
+
"indentation": member(number()),
|
|
61
|
+
"text": member(string()),
|
|
62
|
+
}))),
|
|
63
|
+
}),
|
|
64
|
+
},
|
|
65
|
+
'interface types': d({}),
|
|
66
|
+
'algorithm types': d({
|
|
67
|
+
}),
|
|
68
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import { algorithm, 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
|
+
/**
|
|
14
|
+
* use this function to serialize to an intermediate format.
|
|
15
|
+
* Serialization to this format can be done in a pure way.
|
|
16
|
+
* serialization from this format to an array of strings is not pure, specifically for 1 reason so far: apostrophed strings.
|
|
17
|
+
*/
|
|
18
|
+
"map": algorithm("Map", null, {}),
|
|
19
|
+
}
|
|
20
|
+
)
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
externalTypeReference,
|
|
16
16
|
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
17
17
|
|
|
18
|
-
import { $ as
|
|
19
|
-
import { $ as
|
|
18
|
+
import { $ as d_in } from "../../glossaries/auto.alan_light.data"
|
|
19
|
+
import { $ as d_out } from "../../glossaries/string_aware_fountain_pen.data"
|
|
20
20
|
|
|
21
21
|
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
22
22
|
const d = pd.d
|
|
@@ -24,18 +24,17 @@ const d = pd.d
|
|
|
24
24
|
export const $: g_glossary.D.Glossary = {
|
|
25
25
|
'glossary parameters': d({}),
|
|
26
26
|
'imports': d({
|
|
27
|
-
"
|
|
28
|
-
"
|
|
27
|
+
"in": imp(d_in, {}),
|
|
28
|
+
"out": imp(d_out, {}),
|
|
29
29
|
}),
|
|
30
30
|
'root': {
|
|
31
31
|
'namespaces': d({}),
|
|
32
32
|
'data types': d({
|
|
33
|
-
"String": type(string()),
|
|
34
33
|
}),
|
|
35
34
|
},
|
|
36
35
|
'interface types': d({}),
|
|
37
36
|
'algorithm types': d({
|
|
38
|
-
"
|
|
37
|
+
"Map": sfunction(externalTypeReference("out", "Block"), data(externalTypeReference("in", "Root"))),
|
|
39
38
|
}),
|
|
40
39
|
|
|
41
40
|
}
|
package/auto.pareto/auto.dependencies/pareto-pure/modules/astn_2_fountain_pen/glossary.data.ts
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
array, afunction, boolean, computed, data, dictionary,
|
|
5
|
+
glossaryParameter, group, member, number, optional, ref, sfunction, string, type, typeReference,
|
|
6
|
+
taggedUnion,
|
|
7
|
+
null_,
|
|
8
|
+
sInterface,
|
|
9
|
+
sInterfaceMethod,
|
|
10
|
+
imp,
|
|
11
|
+
externalTypeReference
|
|
12
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
13
|
+
|
|
14
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
15
|
+
|
|
16
|
+
import { $ as d_in } from "../../glossaries/astn.data"
|
|
17
|
+
import { $ as d_out } from "../../glossaries/fountain_pen.data"
|
|
18
|
+
|
|
19
|
+
const d = pd.d
|
|
20
|
+
|
|
21
|
+
export const $: g_glossary.D.Glossary = {
|
|
22
|
+
'glossary parameters': d({
|
|
23
|
+
}),
|
|
24
|
+
'imports': d({
|
|
25
|
+
"in": imp(d_in, {}),
|
|
26
|
+
"out": imp(d_out, {}),
|
|
27
|
+
}),
|
|
28
|
+
'root': {
|
|
29
|
+
'namespaces': d({}),
|
|
30
|
+
'data types': d({
|
|
31
|
+
}),
|
|
32
|
+
},
|
|
33
|
+
'interface types': d({
|
|
34
|
+
|
|
35
|
+
}),
|
|
36
|
+
'algorithm types': d({
|
|
37
|
+
"Map": sfunction(externalTypeReference("out", "Block"), data(externalTypeReference("in", "Value"))),
|
|
38
|
+
}),
|
|
39
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
array, data, dictionary, externalTypeReference, glossaryParameter, group, imp, member, null_, parametrizedType, ref, sfunction, string, taggedUnion, type, typeParameter, typeReference
|
|
5
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
6
|
+
|
|
7
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
8
|
+
|
|
9
|
+
import { $ as d_out } from "../../glossaries/auto.graphviz.data"
|
|
10
|
+
import { $ as d_in } from "../../glossaries/auto.cosmos_type_system.data"
|
|
11
|
+
|
|
12
|
+
const d = pd.d
|
|
13
|
+
|
|
14
|
+
export const $: g_glossary.D.Glossary = {
|
|
15
|
+
'glossary parameters': d({}),
|
|
16
|
+
'imports': d({
|
|
17
|
+
"in": imp(d_in, {}),
|
|
18
|
+
"out": imp(d_out, {}),
|
|
19
|
+
}),
|
|
20
|
+
'root': {
|
|
21
|
+
'namespaces': d({}),
|
|
22
|
+
'data types': d({
|
|
23
|
+
}),
|
|
24
|
+
},
|
|
25
|
+
'interface types': d({}),
|
|
26
|
+
'algorithm types': d({
|
|
27
|
+
"Map": sfunction(externalTypeReference("out", "Graph"), data(externalTypeReference("in", "Glossary"))),
|
|
28
|
+
|
|
29
|
+
}),
|
|
30
|
+
}
|
|
@@ -6,28 +6,28 @@ import {
|
|
|
6
6
|
|
|
7
7
|
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
8
8
|
|
|
9
|
-
import { $ as
|
|
10
|
-
import { $ as
|
|
9
|
+
import { $ as d_out } from "../../glossaries/auto.pareto.data"
|
|
10
|
+
import { $ as d_in } from "../../glossaries/auto.cosmos_type_system.data"
|
|
11
11
|
|
|
12
12
|
const d = pd.d
|
|
13
13
|
|
|
14
14
|
export const $: g_glossary.D.Glossary = {
|
|
15
15
|
'glossary parameters': d({}),
|
|
16
16
|
'imports': d({
|
|
17
|
-
"
|
|
18
|
-
"
|
|
17
|
+
"in": imp(d_in, {}),
|
|
18
|
+
"out": imp(d_out, {}),
|
|
19
19
|
}),
|
|
20
20
|
'root': {
|
|
21
21
|
'namespaces': d({}),
|
|
22
22
|
'data types': d({
|
|
23
23
|
"Library2ParetoComparatorsData": type(group({
|
|
24
|
-
"library": member(ref(externalTypeReference("
|
|
24
|
+
"library": member(ref(externalTypeReference("in", "Library"))),
|
|
25
25
|
})),
|
|
26
26
|
}),
|
|
27
27
|
},
|
|
28
28
|
'interface types': d({}),
|
|
29
29
|
'algorithm types': d({
|
|
30
|
-
"Library2ParetoComparators": sfunction(externalTypeReference("
|
|
30
|
+
"Library2ParetoComparators": sfunction(externalTypeReference("out", "Compilation Unit"), data(typeReference("Library2ParetoComparatorsData"))),
|
|
31
31
|
|
|
32
32
|
}),
|
|
33
33
|
}
|
package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen_2_fountain_pen/api.data.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
import * as pd from 'pareto-core-data'
|
|
4
|
+
|
|
5
|
+
import { algorithm, algref, api } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
6
|
+
|
|
7
|
+
import * as g_project from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
8
|
+
|
|
9
|
+
import { $ as glos } from "./glossary.data"
|
|
10
|
+
import { glossary, group, member, number, type } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
11
|
+
|
|
12
|
+
export const $: g_project.D.API = api(
|
|
13
|
+
glos,
|
|
14
|
+
{
|
|
15
|
+
"map": algorithm("Map", null, {}),
|
|
16
|
+
}
|
|
17
|
+
)
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
aInterface,
|
|
5
|
+
aInterfaceMethod,
|
|
6
|
+
aInterfaceReference,
|
|
7
|
+
array, data, dictionary, externalTypeReference, glossaryParameter, group, imp, infInit, member, null_, number, parametrizedType, ref, sfunction, streamconsumer, string, taggedUnion, type, typeParameter, typeReference
|
|
8
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
9
|
+
|
|
10
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
11
|
+
const d = pd.d
|
|
12
|
+
|
|
13
|
+
import { $ as d_in } from "../../glossaries/fountain_pen.data"
|
|
14
|
+
import { $ as d_out } from "../../glossaries/fountain_pen.data"
|
|
15
|
+
|
|
16
|
+
export const $: g_glossary.D.Glossary = {
|
|
17
|
+
'glossary parameters': d({}),
|
|
18
|
+
'imports': d({
|
|
19
|
+
|
|
20
|
+
"in": imp(d_in, {}),
|
|
21
|
+
"out": imp(d_out, {}),
|
|
22
|
+
}),
|
|
23
|
+
'root': {
|
|
24
|
+
'namespaces': d({}),
|
|
25
|
+
'data types': d({
|
|
26
|
+
// "SerializeData": type(group({
|
|
27
|
+
// "block": member(ref(externalTypeReference("in", "Block"))),
|
|
28
|
+
// })),
|
|
29
|
+
// "String": type(string()),
|
|
30
|
+
}),
|
|
31
|
+
},
|
|
32
|
+
'interface types': d({}),
|
|
33
|
+
'algorithm types': d({
|
|
34
|
+
"Map": sfunction(externalTypeReference("out", "Lines"), data(externalTypeReference("in", "Block"))),
|
|
35
|
+
}),
|
|
36
|
+
}
|
package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen_2_lines/glossary.data.ts
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
aInterface,
|
|
5
|
+
aInterfaceMethod,
|
|
6
|
+
aInterfaceReference,
|
|
7
|
+
array, data, dictionary, externalTypeReference, glossaryParameter, group, imp, infInit, member, null_, number, parametrizedType, ref, sfunction, streamconsumer, string, taggedUnion, type, typeParameter, typeReference
|
|
8
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
9
|
+
|
|
10
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
11
|
+
const d = pd.d
|
|
12
|
+
|
|
13
|
+
import { $ as d_in } from "../../glossaries/fountain_pen.data"
|
|
14
|
+
import { $ as d_out } from "../../glossaries/lines.data"
|
|
15
|
+
|
|
16
|
+
export const $: g_glossary.D.Glossary = {
|
|
17
|
+
'glossary parameters': d({}),
|
|
18
|
+
'imports': d({
|
|
19
|
+
"in": imp(d_in, {}),
|
|
20
|
+
"out": imp(d_out, {}),
|
|
21
|
+
}),
|
|
22
|
+
'root': {
|
|
23
|
+
'namespaces': d({}),
|
|
24
|
+
'data types': d({
|
|
25
|
+
"IndentData": type(group({
|
|
26
|
+
"lines": member(ref(externalTypeReference("in", "Lines"))),
|
|
27
|
+
"indentation": member(string()),
|
|
28
|
+
})),
|
|
29
|
+
"String": type(string()),
|
|
30
|
+
}),
|
|
31
|
+
},
|
|
32
|
+
'interface types': d({
|
|
33
|
+
"Lines": aInterface(aInterfaceMethod(externalTypeReference("in", "Lines"))),
|
|
34
|
+
"Indented Lines": aInterface(streamconsumer(aInterfaceMethod(typeReference("String")), null)),
|
|
35
|
+
}),
|
|
36
|
+
'algorithm types': d({
|
|
37
|
+
"Indent": sfunction(externalTypeReference("out", "Lines"), data(typeReference("IndentData"))),
|
|
38
|
+
"Stream": infInit(aInterfaceReference("Lines"), {
|
|
39
|
+
"handler": aInterfaceReference("Indented Lines")
|
|
40
|
+
}),
|
|
41
|
+
}),
|
|
42
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import { algorithm, 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
|
+
/**
|
|
14
|
+
* use this function to serialize to an intermediate format.
|
|
15
|
+
* Serialization to this format can be done in a pure way.
|
|
16
|
+
* serialization from this format to an array of strings is not pure, specifically for 1 reason so far: apostrophed strings.
|
|
17
|
+
*/
|
|
18
|
+
"map": algorithm("Map", null, {}),
|
|
19
|
+
}
|
|
20
|
+
)
|