pareto 0.58.0 → 0.59.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.
Files changed (141) hide show
  1. package/auto.dist/auto.bin/auto.boekhouding.d.ts +2 -0
  2. package/auto.dist/auto.bin/auto.boekhouding.js +40 -0
  3. package/auto.dist/data/boekhouding.data.d.ts +2 -0
  4. package/auto.dist/data/boekhouding.data.js +433 -0
  5. package/auto.dist/index.d.ts +4 -4
  6. package/auto.dist/index.js +6 -6
  7. package/auto.dist/public/modules/{alan__light__serialize → alan__light__intermediate__2__fountain__pen}/auto.api.js +1 -1
  8. package/auto.dist/public/modules/{tendril2alan__light → alan__light__intermediate__2__fountain__pen}/auto.implementation.js +1 -1
  9. package/auto.dist/public/modules/alan__light__intermediate__2__fountain__pen/auto.provided_interface_glossary.d.ts +88 -0
  10. package/auto.dist/public/modules/{tendril2alan__light → alan__light__intermediate__2__fountain__pen}/auto.provided_interface_glossary.js +1 -1
  11. package/auto.dist/public/modules/{tendril2alan__light → alan__light__intermediate__2__fountain__pen}/auto.provided_interface_glossary.shadow.d.ts +2 -2
  12. package/auto.dist/public/modules/{typescript__serialize → alan__light__intermediate__2__fountain__pen}/auto.provided_interface_glossary.shadow.js +1 -1
  13. package/auto.dist/public/modules/alan__light__intermediate__2__fountain__pen/implementations/map.alg.js +61 -0
  14. package/auto.dist/public/modules/{tendril2alan__light → alan__light__intermediate__2__fountain__pen}/index.js +1 -1
  15. package/auto.dist/public/modules/{alan__light__serialize → main}/auto.api.d.ts +1 -1
  16. package/auto.dist/public/modules/{pareto2typescript → main}/auto.api.js +1 -1
  17. package/auto.dist/public/modules/main/auto.implementation.d.ts +2 -0
  18. package/auto.dist/public/modules/main/auto.implementation.js +6 -0
  19. package/auto.dist/public/modules/main/auto.provided_interface_glossary.d.ts +31 -0
  20. package/auto.dist/public/modules/{pareto2typescript → main}/auto.provided_interface_glossary.js +1 -1
  21. package/auto.dist/public/modules/main/auto.provided_interface_glossary.shadow.d.ts +12 -0
  22. package/auto.dist/public/modules/{pareto2typescript → main}/auto.provided_interface_glossary.shadow.js +1 -1
  23. package/auto.dist/public/modules/main/implementations/temp_$compile_$boekhouding.alg.d.ts +2 -0
  24. package/auto.dist/public/modules/main/implementations/temp_$compile_$boekhouding.alg.js +80 -0
  25. package/auto.dist/public/modules/{pareto2typescript → main}/index.js +1 -1
  26. package/auto.dist/public/modules/{pareto2typescript → pareto__2__fountain__pen}/auto.api.d.ts +1 -1
  27. package/auto.dist/public/modules/{tendril2alan__light → pareto__2__fountain__pen}/auto.api.js +1 -1
  28. package/auto.dist/public/modules/pareto__2__fountain__pen/auto.implementation.d.ts +2 -0
  29. package/auto.dist/public/modules/pareto__2__fountain__pen/auto.implementation.js +6 -0
  30. package/auto.dist/public/modules/{pareto2typescript → pareto__2__fountain__pen}/auto.provided_interface_glossary.d.ts +22 -41
  31. package/auto.dist/public/modules/{alan__light__serialize → pareto__2__fountain__pen}/auto.provided_interface_glossary.js +1 -1
  32. package/auto.dist/public/modules/{pareto2typescript → pareto__2__fountain__pen}/auto.provided_interface_glossary.shadow.d.ts +11 -6
  33. package/auto.dist/public/modules/{tendril2alan__light → pareto__2__fountain__pen}/auto.provided_interface_glossary.shadow.js +1 -1
  34. package/auto.dist/public/modules/pareto__2__fountain__pen/implementations/compilationUnit_$2_$Indented_$Lines.alg.d.ts +2 -0
  35. package/auto.dist/public/modules/pareto__2__fountain__pen/implementations/compilationUnit_$2_$Indented_$Lines.alg.js +54 -0
  36. package/auto.dist/public/modules/{alan__light__serialize → pareto__2__fountain__pen}/index.js +1 -1
  37. package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/auto.api.d.ts +1 -0
  38. package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/auto.api.js +1 -1
  39. package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/auto.implementation.d.ts +1 -0
  40. package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/auto.implementation.js +4 -2
  41. package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/auto.provided_interface_glossary.d.ts +148 -0
  42. package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/auto.provided_interface_glossary.js +1 -1
  43. package/auto.dist/public/modules/{alan__light__serialize → typescript__intermediate__2__fountain__pen}/auto.provided_interface_glossary.shadow.d.ts +5 -7
  44. package/auto.dist/public/modules/{alan__light__serialize → typescript__intermediate__2__fountain__pen}/auto.provided_interface_glossary.shadow.js +1 -1
  45. package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createApostrophedString.alg.js +2 -3
  46. package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createBacktickedString.alg.js +2 -3
  47. package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createQuotedString.alg.js +3 -3
  48. package/auto.dist/public/modules/typescript__intermediate__2__fountain__pen/implementations/serialize.alg.js +95 -0
  49. package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/index.js +1 -1
  50. package/auto.dist/public/modules/typescript__naming/auto.provided_interface_glossary.d.ts +3 -2
  51. package/auto.dist/public/modules/typescript__naming/implementations/createIdentifier.alg.js +1 -1
  52. package/auto.pareto/$.data.ts +8 -9
  53. package/auto.pareto/auto.dependencies/index.ts +3 -3
  54. package/auto.pareto/auto.dependencies/pareto-pure/$.data.ts +35 -20
  55. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/index.ts +1 -1
  56. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/$.data.ts +0 -2
  57. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/arithmetic/api.data.ts +3 -0
  58. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/arithmetic/glossary.data.ts +9 -6
  59. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/build/api.data.ts +0 -1
  60. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/build/glossary.data.ts +0 -8
  61. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/dictionary/glossary.data.ts +0 -1
  62. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/tostring/api.data.ts +3 -1
  63. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/tostring/glossary.data.ts +1 -2
  64. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/alan_light_intermediate.data.ts +38 -0
  65. package/auto.pareto/auto.dependencies/{pareto-standard-library/modules/json/glossary.data.ts → pareto-pure/glossaries/astn.data.ts} +11 -14
  66. package/auto.pareto/auto.dependencies/pareto-pure/{modules/fountain_pen/glossary.data.ts → glossaries/fountain_pen.data.ts} +11 -18
  67. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/lines.data.ts +27 -0
  68. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/testresult.data.ts +137 -0
  69. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/typescript_intermediate.data.ts +68 -0
  70. package/auto.pareto/auto.dependencies/pareto-pure/modules/alan_light_2_alan_light_intermediate/api.data.ts +20 -0
  71. package/auto.pareto/auto.dependencies/pareto-pure/modules/alan_light_2_alan_light_intermediate/glossary.data.ts +40 -0
  72. package/auto.pareto/auto.dependencies/pareto-pure/modules/astn_2_fountain_pen/glossary.data.ts +39 -0
  73. package/auto.pareto/auto.dependencies/{pareto-standard-library/modules/json → pareto-pure/modules/fountain_pen_2_fountain_pen}/api.data.ts +3 -1
  74. package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen_2_fountain_pen/glossary.data.ts +34 -0
  75. package/auto.pareto/auto.dependencies/pareto-pure/modules/{fountain_pen → fountain_pen_2_lines}/api.data.ts +0 -1
  76. package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen_2_lines/glossary.data.ts +42 -0
  77. package/auto.pareto/auto.dependencies/pareto-pure/modules/pareto_2_typescript/api.data.ts +16 -0
  78. package/auto.pareto/auto.dependencies/pareto-pure/modules/pareto_2_typescript/glossary.data.ts +53 -0
  79. package/auto.pareto/{modules/tendril2alan_light → auto.dependencies/pareto-pure/modules/tendril_2_alan_light}/glossary.data.ts +2 -4
  80. package/auto.pareto/auto.dependencies/pareto-pure/modules/{tendril2pareto → tendril_2_pareto}/api.data.ts +2 -1
  81. package/auto.pareto/auto.dependencies/pareto-pure/modules/{tendril2pareto → tendril_2_pareto}/glossary.data.ts +1 -0
  82. package/auto.pareto/auto.dependencies/pareto-pure/modules/{testresult → testresult_2_testresult}/api.data.ts +0 -2
  83. package/auto.pareto/auto.dependencies/pareto-standard-library/$.data.ts +0 -2
  84. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/arithmetic/api.data.ts +3 -0
  85. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/arithmetic/glossary.data.ts +9 -6
  86. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/build/api.data.ts +0 -1
  87. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/build/glossary.data.ts +0 -8
  88. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/dictionary/glossary.data.ts +0 -1
  89. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/tostring/api.data.ts +3 -1
  90. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/tostring/glossary.data.ts +1 -2
  91. package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/array/glossary.data.ts +0 -1
  92. package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/json/api.data.ts +8 -2
  93. package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/json/glossary.data.ts +4 -3
  94. package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/string/api.data.ts +0 -1
  95. package/auto.pareto/modules/{alan_light_serialize/api.data.ts → alan_light_intermediate_2 fountain_pen/api.data.ts } +1 -1
  96. package/auto.pareto/modules/{alan_light_serialize/glossary.data.ts → alan_light_intermediate_2 fountain_pen/glossary.data.ts } +4 -5
  97. package/auto.pareto/modules/main/api.data.ts +15 -0
  98. package/auto.pareto/modules/main/glossary.data.ts +43 -0
  99. package/auto.pareto/modules/{pareto2typescript → pareto_2_fountain_pen}/api.data.ts +1 -4
  100. package/auto.pareto/modules/{pareto2typescript → pareto_2_fountain_pen}/glossary.data.ts +6 -9
  101. package/auto.pareto/modules/{typescript_serialize → typescript_intermediate_2_fountain_pen}/api.data.ts +7 -0
  102. package/auto.pareto/modules/{typescript_serialize → typescript_intermediate_2_fountain_pen}/glossary.data.ts +8 -0
  103. package/auto.pareto/modules/typescript_naming/glossary.data.ts +3 -2
  104. package/package.json +9 -5
  105. package/auto.dist/public/modules/alan__light__serialize/auto.implementation.d.ts +0 -2
  106. package/auto.dist/public/modules/alan__light__serialize/auto.implementation.js +0 -6
  107. package/auto.dist/public/modules/alan__light__serialize/auto.provided_interface_glossary.d.ts +0 -705
  108. package/auto.dist/public/modules/alan__light__serialize/implementations/serialize.alg.js +0 -115
  109. package/auto.dist/public/modules/pareto2typescript/auto.implementation.d.ts +0 -2
  110. package/auto.dist/public/modules/pareto2typescript/auto.implementation.js +0 -6
  111. package/auto.dist/public/modules/pareto2typescript/implementations/serializeCompilationUnit.alg.d.ts +0 -2
  112. package/auto.dist/public/modules/pareto2typescript/implementations/serializeCompilationUnit.alg.js +0 -529
  113. package/auto.dist/public/modules/tendril2alan__light/auto.provided_interface_glossary.d.ts +0 -1583
  114. package/auto.dist/public/modules/tendril2alan__light/implementations/map.alg.js +0 -141
  115. package/auto.dist/public/modules/typescript__serialize/auto.provided_interface_glossary.d.ts +0 -11
  116. package/auto.dist/public/modules/typescript__serialize/auto.provided_interface_glossary.shadow.d.ts +0 -11
  117. package/auto.dist/public/modules/typescript__serialize/implementations/escape.alg.d.ts +0 -0
  118. package/auto.dist/public/modules/typescript__serialize/implementations/escape.alg.js +0 -20
  119. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/json/glossary.data.ts +0 -47
  120. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/auto.alan.data.ts +0 -441
  121. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/auto.liana.data.ts +0 -1955
  122. package/auto.pareto/auto.dependencies/pareto-pure/modules/liana2tendril/api.data.ts +0 -24
  123. package/auto.pareto/auto.dependencies/pareto-pure/modules/liana2tendril/glossary.data.ts +0 -48
  124. /package/auto.dist/public/modules/{tendril2alan__light → alan__light__intermediate__2__fountain__pen}/auto.api.d.ts +0 -0
  125. /package/auto.dist/public/modules/{tendril2alan__light → alan__light__intermediate__2__fountain__pen}/auto.implementation.d.ts +0 -0
  126. /package/auto.dist/public/modules/{tendril2alan__light → alan__light__intermediate__2__fountain__pen}/implementations/map.alg.d.ts +0 -0
  127. /package/auto.dist/public/modules/{alan__light__serialize → alan__light__intermediate__2__fountain__pen}/index.d.ts +0 -0
  128. /package/auto.dist/public/modules/{pareto2typescript → main}/index.d.ts +0 -0
  129. /package/auto.dist/public/modules/{tendril2alan__light → pareto__2__fountain__pen}/index.d.ts +0 -0
  130. /package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createApostrophedString.alg.d.ts +0 -0
  131. /package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createBacktickedString.alg.d.ts +0 -0
  132. /package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/implementations/createQuotedString.alg.d.ts +0 -0
  133. /package/auto.dist/public/modules/{alan__light__serialize → typescript__intermediate__2__fountain__pen}/implementations/serialize.alg.d.ts +0 -0
  134. /package/auto.dist/public/modules/{typescript__serialize → typescript__intermediate__2__fountain__pen}/index.d.ts +0 -0
  135. /package/auto.pareto/auto.dependencies/pareto-pure/{auto.dependencies/pareto-standard-library/modules/json → modules/astn_2_fountain_pen}/api.data.ts +0 -0
  136. /package/auto.pareto/auto.dependencies/pareto-pure/modules/{cosmos2pareto → cosmos_type_system_2_pareto}/api.data.ts +0 -0
  137. /package/auto.pareto/auto.dependencies/pareto-pure/modules/{cosmos2pareto → cosmos_type_system_2_pareto}/glossary.data.ts +0 -0
  138. /package/auto.pareto/{modules/tendril2alan_light → auto.dependencies/pareto-pure/modules/tendril_2_alan_light}/api.data.ts +0 -0
  139. /package/auto.pareto/auto.dependencies/pareto-pure/modules/{tendril2cosmos_type_system → tendril_2_cosmos_type_system}/api.data.ts +0 -0
  140. /package/auto.pareto/auto.dependencies/pareto-pure/modules/{tendril2cosmos_type_system → tendril_2_cosmos_type_system}/glossary.data.ts +0 -0
  141. /package/auto.pareto/auto.dependencies/pareto-pure/modules/{testresult → testresult_2_testresult}/glossary.data.ts +0 -0
@@ -46,8 +46,10 @@ export const $: g_glossary.D.Glossary = {
46
46
  },
47
47
  'interface types': d({}),
48
48
  'algorithm types': d({
49
+ "Add": sfunction(typeReference("Number"), data(typeReference("NumberTuple"))),
50
+ "Multiply": sfunction(typeReference("Number"), data(typeReference("NumberTuple"))),
49
51
  "Increment": sfunction(typeReference("Number"), data(typeReference("Number"))),
50
- "Array Multiply": sfunction(typeReference("Number"), data(typeReference("NumberRange"))),
52
+ // "Array Multiply": sfunction(typeReference("Number"), data(typeReference("NumberRange"))),
51
53
  "Negate": sfunction(typeReference("Number"), data(typeReference("Number"))),
52
54
  /**
53
55
  * if the denominator is 0, the return value is null
@@ -57,19 +59,20 @@ export const $: g_glossary.D.Glossary = {
57
59
  /**
58
60
  * calculates the max of an array of numbers. If there are no entries, the result value is 0
59
61
  */
60
- "ArrayMax": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberArray"))),
61
- "ArrayMin": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberArray"))),
62
- "ArraySum": sfunction(typeReference("Number"), data(typeReference("NumberArray"))),
62
+ // "ArrayMax": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberArray"))),
63
+ // "ArrayMin": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberArray"))),
64
+ // "ArraySum": sfunction(typeReference("Number"), data(typeReference("NumberArray"))),
63
65
  /**
64
66
  * calculates the max of a dictionary of number. If there are no entries, the result value is 0
65
67
  */
66
- "DictionaryMax": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberDictionary"))),
67
- "DictionaryMin": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberDictionary"))),
68
+ // "DictionaryMax": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberDictionary"))),
69
+ // "DictionaryMin": sfunction(typeReference("OptionalNumber"), data(typeReference("NumberDictionary"))),
68
70
  /**
69
71
  * calculates the max of a tuple of numbers
70
72
  */
71
73
  "DictionarySum": sfunction(typeReference("Number"), data(typeReference("NumberDictionary"))),
72
74
 
75
+ "Min": sfunction(typeReference("Number"), data(typeReference("NumberTuple"))),
73
76
  "Max": sfunction(typeReference("Number"), data(typeReference("NumberTuple"))),
74
77
  "Subtract": sfunction(typeReference("Number"), data(typeReference("SubtractData"))),
75
78
  }),
@@ -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
  }
@@ -41,10 +41,6 @@ export const $: g_glossary.D.Glossary = {
41
41
  "value": member(ref(typeParameter("Type"))),
42
42
  })),
43
43
 
44
-
45
-
46
-
47
-
48
44
  "DictionaryBuildStrategy": type(taggedUnion({
49
45
  "ignore": group({}),
50
46
  "overwrite": group({}),
@@ -80,10 +76,6 @@ export const $: g_glossary.D.Glossary = {
80
76
  ), { "EndType": null }),
81
77
  "Add": sInterface(sInterfaceMethod(typeReference("KeyValuePair", { "Type": typeParameter("Type") })), { "Type": null }),
82
78
  "Push": sInterface(sInterfaceMethod(typeParameter("Type")), { "Type": null }),
83
-
84
-
85
-
86
-
87
79
  }),
88
80
  'algorithm types': d({
89
81
  "CreateArrayBuilder": infInit(aInterfaceReference("Elements", {
@@ -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
  }),
@@ -11,7 +11,9 @@ export const $: g_project.D.API = api(
11
11
  {
12
12
  "getArrayAsString": algorithm("GetArrayAsString", "Configuration", {}),
13
13
  "getLengthAsString": algorithm("GetLengthAsString", null, {}),
14
- "getKeysAsString": algorithm("GetKeysAsString", "Configuration", {}),
14
+
15
+ //this one implicitely sorts the keys
16
+ //"getKeysAsString": algorithm("GetKeysAsString", "Configuration", {}),
15
17
 
16
18
  "getNumberOfKeysAsString": algorithm("GetNumberOfKeysAsString", null, {}),
17
19
 
@@ -22,7 +22,6 @@ export const $: g_glossary.D.Glossary = {
22
22
  "StringArray": type(array(string())),
23
23
  "Dictionary": parametrizedType({ "T": null }, dictionary(ref(typeParameter("T")))),
24
24
 
25
-
26
25
  "Configuration": type(group({
27
26
  "separator": member(string()),
28
27
  "maximum": member(optional(group({
@@ -36,7 +35,7 @@ export const $: g_glossary.D.Glossary = {
36
35
  'algorithm types': d({
37
36
  "GetLengthAsString": sfunction(typeReference("String"), data(typeReference("Array", { "T": typeParameter("T") })), { "T": null}),
38
37
  "GetArrayAsString": sfunction(typeReference("String"), data(typeReference("StringArray"))),
39
- "GetKeysAsString": sfunction(typeReference("String"), data(typeReference("Dictionary", { "T": typeParameter("T") })), { "T": null}),
38
+ //"GetKeysAsString": sfunction(typeReference("String"), data(typeReference("Dictionary", { "T": typeParameter("T") })), { "T": null}),
40
39
  "GetNumberOfKeysAsString": sfunction(typeReference("String"), data(typeReference("Dictionary", { "T": typeParameter("T") })), { "T": null}),
41
40
  }),
42
41
  }
@@ -0,0 +1,38 @@
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
+ "indent": ref(typeReference("Block"))
28
+ }))),
29
+ "Lines": type(array(group({
30
+ "indentation": member(number()),
31
+ "text": member(string()),
32
+ }))),
33
+ }),
34
+ },
35
+ 'interface types': d({}),
36
+ 'algorithm types': d({
37
+ }),
38
+ }
@@ -20,28 +20,25 @@ export const $: g_glossary.D.Glossary = {
20
20
  'root': {
21
21
  'namespaces': d({}),
22
22
  'data types': d({
23
- "String": type(string()),
24
- "Result": type(taggedUnion({
25
- "success": ref(typeReference("Value")),
26
- "error": string(),
27
- })),
28
- //"Result": type(ref(glossaryParameter("Type"))),
29
23
  "Value": type(taggedUnion({
30
- "object": dictionary(ref(typeReference("Value"))),
24
+ "verbose type": dictionary(ref(typeReference("Value"))),
25
+ "shorthand type": array(ref(typeReference("Value"))),
26
+ "dictionary": dictionary(ref(typeReference("Value"))),
31
27
  "array": array(ref(typeReference("Value"))),
32
- "string": string(),
33
- "number": number(),
34
- "boolean": boolean(),
35
- "null": null_(),
28
+ "quoted string": string(),
29
+ "apostrophed string": string(),
30
+ "backticked string": string(),
31
+ "raw string": string(),
32
+ "tagged union": group({
33
+ "option": member(string()),
34
+ "value": member(ref(typeReference("Value"))),
35
+ })
36
36
  })),
37
-
38
-
39
37
  }),
40
38
  },
41
39
  'interface types': d({
42
40
 
43
41
  }),
44
42
  'algorithm types': d({
45
- "Serialize": sfunction(typeReference("String"), data(typeReference("Value"))),
46
43
  }),
47
44
  }
@@ -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
+ }
@@ -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
+ )
@@ -0,0 +1,40 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import {
4
+ data,
5
+ sfunction,
6
+ type,
7
+ group,
8
+ typeReference,
9
+ member,
10
+ string,
11
+ dictionary,
12
+ null_,
13
+ array,
14
+ imp,
15
+ externalTypeReference,
16
+ } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
17
+
18
+ import { $ as d_alan_light } from "../../glossaries/auto.alan_light.data"
19
+ import { $ as d_alan_light_intermediate } from "../../glossaries/alan_light_intermediate.data"
20
+
21
+ import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
22
+ const d = pd.d
23
+
24
+ export const $: g_glossary.D.Glossary = {
25
+ 'glossary parameters': d({}),
26
+ 'imports': d({
27
+ "alan light": imp(d_alan_light, {}),
28
+ "alan light intermediate": imp(d_alan_light_intermediate, {}),
29
+ }),
30
+ 'root': {
31
+ 'namespaces': d({}),
32
+ 'data types': d({
33
+ }),
34
+ },
35
+ 'interface types': d({}),
36
+ 'algorithm types': d({
37
+ "Map": sfunction(externalTypeReference("alan light intermediate", "Block"), data(externalTypeReference("alan light", "Root"))),
38
+ }),
39
+
40
+ }
@@ -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_astn } from "../../glossaries/astn.data"
17
+ import { $ as d_fp } 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
+ "astn": imp(d_astn, {}),
26
+ "fountain pen": imp(d_fp, {}),
27
+ }),
28
+ 'root': {
29
+ 'namespaces': d({}),
30
+ 'data types': d({
31
+ }),
32
+ },
33
+ 'interface types': d({
34
+
35
+ }),
36
+ 'algorithm types': d({
37
+ "Serialize": sfunction(externalTypeReference("fountain pen", "Block"), data(externalTypeReference("astn", "Value"))),
38
+ }),
39
+ }
@@ -1,3 +1,5 @@
1
+
2
+
1
3
  import * as pd from 'pareto-core-data'
2
4
 
3
5
  import { algorithm, algref, api } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
@@ -5,7 +7,7 @@ import { algorithm, algref, api } from "pareto-pure/auto.dist/public/shorthands/
5
7
  import * as g_project from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
6
8
 
7
9
  import { $ as glos } from "./glossary.data"
8
- import { glossary, group, member, number, sInterface, sInterfaceMethod, string, type, typeReference } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
10
+ import { glossary, group, member, number, type } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
9
11
 
10
12
  export const $: g_project.D.API = api(
11
13
  glos,
@@ -0,0 +1,34 @@
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_fountain_pen } from "../../glossaries/fountain_pen.data"
14
+
15
+ export const $: g_glossary.D.Glossary = {
16
+ 'glossary parameters': d({}),
17
+ 'imports': d({
18
+ "fp": imp(d_fountain_pen, {}),
19
+ }),
20
+ 'root': {
21
+ 'namespaces': d({}),
22
+ 'data types': d({
23
+ "SerializeData": type(group({
24
+ "block": member(ref(externalTypeReference("fp", "Block"))),
25
+ })),
26
+ "String": type(string()),
27
+ }),
28
+ },
29
+ 'interface types': d({ }),
30
+ 'algorithm types': d({
31
+ "Serialize": sfunction(externalTypeReference("fp", "Lines"), data(externalTypeReference("fp", "Block"))),
32
+
33
+ }),
34
+ }
@@ -13,7 +13,6 @@ export const $: g_project.D.API = api(
13
13
  glos,
14
14
  {
15
15
  "indent": algorithm("Indent", null, {}),
16
- "serialize": algorithm("Serialize", null, {}),
17
16
  "stream": algorithm("Stream", null, {}),
18
17
  }
19
18
  )