pareto 0.59.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.
Files changed (86) hide show
  1. package/auto.dist/data/boekhouding.data.js +271 -271
  2. package/auto.dist/index.d.ts +1 -1
  3. package/auto.dist/index.js +3 -3
  4. package/auto.dist/public/modules/main/implementations/temp_$compile_$boekhouding.alg.js +20 -17
  5. package/auto.dist/public/modules/pareto__2__fountain__pen/implementations/compilationUnit_$2_$Indented_$Lines.alg.js +2 -2
  6. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.api.js +1 -1
  7. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.implementation.js +1 -1
  8. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.provided_interface_glossary.d.ts +7 -5
  9. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.provided_interface_glossary.js +1 -1
  10. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.provided_interface_glossary.shadow.d.ts +2 -2
  11. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.provided_interface_glossary.shadow.js +1 -1
  12. package/auto.dist/public/modules/string__aware__fountain__pen__2__fountain__pen/implementations/map.alg.js +65 -0
  13. package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/index.js +1 -1
  14. package/auto.pareto/$.data.ts +2 -3
  15. package/auto.pareto/auto.dependencies/index.ts +3 -3
  16. package/auto.pareto/auto.dependencies/pareto-pure/$.data.ts +11 -5
  17. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/index.ts +1 -1
  18. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/$.data.ts +6 -8
  19. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/array/api.data.ts +2 -0
  20. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/array/glossary.data.ts +89 -20
  21. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/buildInterfaceInitializers/glossary.data.ts +167 -0
  22. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/dictionary/glossary.data.ts +5 -2
  23. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/nested/api.data.ts +0 -1
  24. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/nested/glossary.data.ts +0 -6
  25. package/auto.pareto/auto.dependencies/{pareto-standard-library/modules/arithmetic → pareto-pure/auto.dependencies/pareto-standard-library/modules/number}/api.data.ts +0 -1
  26. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/{arithmetic → number}/glossary.data.ts +2 -11
  27. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/optional/api.data.ts +16 -0
  28. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/optional/glossary.data.ts +36 -0
  29. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/resolve/api.data.ts +0 -1
  30. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/resolve/glossary.data.ts +0 -14
  31. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/string/api.data.ts +9 -1
  32. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/string/glossary.data.ts +19 -1
  33. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/tostring/api.data.ts +0 -7
  34. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/tostring/glossary.data.ts +0 -13
  35. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/auto.graphviz.data.ts +668 -0
  36. package/auto.pareto/auto.dependencies/pareto-pure/glossaries/{alan_light_intermediate.data.ts → string_aware_fountain_pen.data.ts} +2 -0
  37. package/auto.pareto/{modules/alan_light_intermediate_2 fountain_pen/glossary.data.ts → auto.dependencies/pareto-pure/modules/alan_light_2_string_aware_fountain_pen/glossary.data.ts} +5 -5
  38. package/auto.pareto/auto.dependencies/pareto-pure/modules/astn_2_fountain_pen/api.data.ts +1 -1
  39. package/auto.pareto/auto.dependencies/pareto-pure/modules/astn_2_fountain_pen/glossary.data.ts +5 -5
  40. package/auto.pareto/auto.dependencies/pareto-pure/modules/cosmos_type_system_2_graphviz/api.data.ts +17 -0
  41. package/auto.pareto/auto.dependencies/pareto-pure/modules/cosmos_type_system_2_graphviz/glossary.data.ts +30 -0
  42. package/auto.pareto/auto.dependencies/pareto-pure/modules/cosmos_type_system_2_pareto/glossary.data.ts +6 -6
  43. package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen_2_fountain_pen/api.data.ts +1 -1
  44. package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen_2_fountain_pen/glossary.data.ts +11 -9
  45. package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen_2_lines/glossary.data.ts +7 -7
  46. package/auto.pareto/auto.dependencies/pareto-pure/modules/graphviz_2_string_aware_fountain_pen/api.data.ts +20 -0
  47. package/auto.pareto/auto.dependencies/pareto-pure/modules/{alan_light_2_alan_light_intermediate → graphviz_2_string_aware_fountain_pen}/glossary.data.ts +5 -5
  48. package/auto.pareto/auto.dependencies/pareto-pure/modules/pareto_2_typescript/glossary.data.ts +6 -6
  49. package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril_2_alan_light/glossary.data.ts +5 -5
  50. package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril_2_cosmos_type_system/glossary.data.ts +6 -6
  51. package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril_2_pareto/glossary.data.ts +6 -6
  52. package/auto.pareto/auto.dependencies/pareto-standard-library/$.data.ts +6 -8
  53. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/array/api.data.ts +2 -0
  54. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/array/glossary.data.ts +89 -20
  55. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/buildInterfaceInitializers/glossary.data.ts +167 -0
  56. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/dictionary/glossary.data.ts +5 -2
  57. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/nested/api.data.ts +0 -1
  58. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/nested/glossary.data.ts +0 -6
  59. package/auto.pareto/auto.dependencies/{pareto-pure/auto.dependencies/pareto-standard-library/modules/arithmetic → pareto-standard-library/modules/number}/api.data.ts +0 -1
  60. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/{arithmetic → number}/glossary.data.ts +2 -11
  61. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/optional/api.data.ts +16 -0
  62. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/optional/glossary.data.ts +36 -0
  63. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/resolve/api.data.ts +0 -1
  64. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/resolve/glossary.data.ts +0 -14
  65. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/string/api.data.ts +9 -1
  66. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/string/glossary.data.ts +19 -1
  67. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/tostring/api.data.ts +0 -7
  68. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/tostring/glossary.data.ts +0 -13
  69. package/auto.pareto/auto.dependencies/pareto-subatomic-library/$.data.ts +2 -0
  70. package/auto.pareto/auto.dependencies/pareto-subatomic-library/glossaries/lines.data.ts +27 -0
  71. package/auto.pareto/{modules/alan_light_intermediate_2 fountain_pen/api.data.ts → auto.dependencies/pareto-subatomic-library/modules/filesystem/api.data.ts} +1 -1
  72. package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/filesystem/glossary.data.ts +59 -0
  73. package/auto.pareto/modules/main/api.data.ts +0 -1
  74. package/auto.pareto/modules/string_aware_fountain_pen_2 fountain_pen/api.data.ts +15 -0
  75. package/auto.pareto/modules/string_aware_fountain_pen_2 fountain_pen/glossary.data.ts +27 -0
  76. package/package.json +5 -5
  77. package/auto.dist/public/modules/alan__light__intermediate__2__fountain__pen/implementations/map.alg.js +0 -61
  78. package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/build/glossary.data.ts +0 -125
  79. package/auto.pareto/auto.dependencies/pareto-standard-library/modules/build/glossary.data.ts +0 -125
  80. /package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.api.d.ts +0 -0
  81. /package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/auto.implementation.d.ts +0 -0
  82. /package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/implementations/map.alg.d.ts +0 -0
  83. /package/auto.dist/public/modules/{alan__light__intermediate__2__fountain__pen → string__aware__fountain__pen__2__fountain__pen}/index.d.ts +0 -0
  84. /package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/{build → buildInterfaceInitializers}/api.data.ts +0 -0
  85. /package/auto.pareto/auto.dependencies/pareto-pure/modules/{alan_light_2_alan_light_intermediate → alan_light_2_string_aware_fountain_pen}/api.data.ts +0 -0
  86. /package/auto.pareto/auto.dependencies/pareto-standard-library/modules/{build → buildInterfaceInitializers}/api.data.ts +0 -0
@@ -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
+ }
@@ -110,8 +110,11 @@ export const $: g_glossary.D.Glossary = {
110
110
  typeReference("Dictionary", { "Type": typeParameter("Type") }),
111
111
  data(typeReference("MergeParameters", { "Type": typeParameter("Type") })),
112
112
  { "Type": null }
113
- ),
114
- "DecorateDictionaryEntriesWithKey": sfunction(typeReference("KeyValueDictionary", { "Type": typeParameter("Type") }), data(typeReference("Dictionary", { "Type": typeParameter("Type") })), { "Type": null }),
113
+ ),
114
+ "DecorateDictionaryEntriesWithKey": sfunction(
115
+ typeReference("KeyValueDictionary", { "Type": typeParameter("Type") }),
116
+ data(typeReference("Dictionary", { "Type": typeParameter("Type") })), { "Type": null }
117
+ ),
115
118
 
116
119
  }),
117
120
 
@@ -10,6 +10,5 @@ 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
- "flatten": algorithm("Flatten", null, {})
14
13
  }
15
14
  )
@@ -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
  }
@@ -11,7 +11,6 @@ export const $: g_project.D.API = api(
11
11
  glos,
12
12
  {
13
13
  "add": algorithm("Add", null, {}),
14
- "divideWithRemainder": algorithm("DivideWithRemainder", null, {}),
15
14
  "increment": algorithm("Increment", "IncrementConfig", {}),
16
15
  "min": algorithm("Min", null, {}),
17
16
  "max": algorithm("Max", null, {}),
@@ -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()),
@@ -52,10 +43,10 @@ export const $: g_glossary.D.Glossary = {
52
43
  // "Array Multiply": sfunction(typeReference("Number"), data(typeReference("NumberRange"))),
53
44
  "Negate": sfunction(typeReference("Number"), data(typeReference("Number"))),
54
45
  /**
55
- * if the denominator is 0, the return value is null
46
+ * if the denominator is 0, the return value is not set
56
47
  * (division by 0),
57
48
  */
58
- "DivideWithRemainder": sfunction(typeReference("DivisionResult"), data(typeReference("DivisionData"))),
49
+
59
50
  /**
60
51
  * calculates the max of an array of numbers. If there are no entries, the result value is 0
61
52
  */
@@ -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
+ }
@@ -10,6 +10,5 @@ import { glossary, group, member, number, sInterface, sInterfaceMethod, string,
10
10
  export const $: g_project.D.API = api(
11
11
  glos,
12
12
  {
13
- "unsafeSortTopologically": algorithm("SortTopologically", null, {}),
14
13
  }
15
14
  )
@@ -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
- "foo": algorithm("Foo", null, {}),
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,13 +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
-
15
- //this one implicitely sorts the keys
16
- //"getKeysAsString": algorithm("GetKeysAsString", "Configuration", {}),
17
-
18
- "getNumberOfKeysAsString": algorithm("GetNumberOfKeysAsString", null, {}),
19
12
 
20
13
  }
21
14
  )
@@ -19,23 +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
- "Configuration": type(group({
26
- "separator": member(string()),
27
- "maximum": member(optional(group({
28
- "maximum": member(number()),
29
- "suffix": member(string()),
30
- }))),
31
- })),
32
23
  }),
33
24
  },
34
25
  'interface types': d({}),
35
26
  'algorithm types': d({
36
- "GetLengthAsString": sfunction(typeReference("String"), data(typeReference("Array", { "T": typeParameter("T") })), { "T": null}),
37
- "GetArrayAsString": sfunction(typeReference("String"), data(typeReference("StringArray"))),
38
- //"GetKeysAsString": sfunction(typeReference("String"), data(typeReference("Dictionary", { "T": typeParameter("T") })), { "T": null}),
39
- "GetNumberOfKeysAsString": sfunction(typeReference("String"), data(typeReference("Dictionary", { "T": typeParameter("T") })), { "T": null}),
40
27
  }),
41
28
  }
@@ -7,6 +7,7 @@ import { } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
7
7
 
8
8
  import { $ as d_array } from "./modules/array/api.data"
9
9
  import { $ as d_dictionary } from "./modules/dictionary/api.data"
10
+ import { $ as d_filesystem } from "./modules/filesystem/api.data"
10
11
  import { $ as d_json } from "./modules/json/api.data"
11
12
  import { $ as d_numerical_predicates } from "./modules/numerical_predicates/api.data"
12
13
  import { $ as d_string } from "./modules/string/api.data"
@@ -23,6 +24,7 @@ export const $: g_project.D.Library = {
23
24
  'modules': d({
24
25
  "array": d_array,
25
26
  "dictionary": d_dictionary,
27
+ "filesystem": d_filesystem,
26
28
  "json": d_json,
27
29
  "numerical predicates": d_numerical_predicates,
28
30
  "string": d_string,
@@ -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
+ }
@@ -10,6 +10,6 @@ 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
- "map": algorithm("Map", null, {}),
13
+ "createFileWriter": algorithm("CreateFileWriter", null, {}),
14
14
  }
15
15
  )
@@ -0,0 +1,59 @@
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
+ infInit,
17
+ aInterfaceReference,
18
+ aInterface,
19
+ aInterfaceMethod,
20
+ ref,
21
+ infref,
22
+ } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
23
+
24
+ import { $ as d_lines } from "../../glossaries/lines.data"
25
+
26
+ import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
27
+ const d = pd.d
28
+
29
+ export const $: g_glossary.D.Glossary = {
30
+ 'glossary parameters': d({}),
31
+ 'imports': d({
32
+ "lines": imp(d_lines, {}),
33
+ }),
34
+ 'root': {
35
+ 'namespaces': d({}),
36
+ 'data types': d({
37
+ "File Path": type(array(string())),
38
+ "File Write Data": type(group({
39
+ "directory path": member(ref(typeReference("File Path"))),
40
+ "file name": member(string()),
41
+ "data": member(ref(externalTypeReference("lines", "Lines"))),
42
+ })),
43
+ "Root Data": type(group({
44
+ "context directory": member(string()),
45
+ })),
46
+ }),
47
+ },
48
+ 'interface types': d({
49
+ "RootFileWriter": aInterface(aInterfaceMethod(typeReference("Root Data"), infref(aInterfaceReference("FileWriter")))),
50
+ "FileWriter": aInterface(aInterfaceMethod(typeReference("File Write Data"))),
51
+ "ErrorsHandler": aInterface(aInterfaceMethod(null)),
52
+ }),
53
+ 'algorithm types': d({
54
+ "CreateFileWriter": infInit(aInterfaceReference("RootFileWriter"), {
55
+ "errorshandler": aInterfaceReference("ErrorsHandler"),
56
+ })
57
+ }),
58
+
59
+ }
@@ -5,7 +5,6 @@ import { algorithm, api } from "pareto-pure/auto.dist/public/shorthands/cosmos_t
5
5
  import * as g_project from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
6
6
 
7
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
8
 
10
9
  export const $: g_project.D.API = api(
11
10
  glos,
@@ -0,0 +1,15 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import * as sh 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 = sh.api(
11
+ glos,
12
+ {
13
+ "map": sh.algorithm("Map", null, {}),
14
+ }
15
+ )
@@ -0,0 +1,27 @@
1
+ import * as pd from 'pareto-core-data'
2
+
3
+ import * as sh from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
4
+
5
+ import { $ as d_in } from "../../auto.dependencies/pareto-pure/glossaries/string_aware_fountain_pen.data"
6
+ import { $ as d_out } from "../../auto.dependencies/pareto-pure/glossaries/fountain_pen.data"
7
+
8
+ import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
9
+ const d = pd.d
10
+
11
+ export const $: g_glossary.D.Glossary = {
12
+ 'glossary parameters': d({}),
13
+ 'imports': d({
14
+ "in": sh.imp(d_in, {}),
15
+ "out": sh.imp(d_out, {}),
16
+ }),
17
+ 'root': {
18
+ 'namespaces': d({}),
19
+ 'data types': d({
20
+ }),
21
+ },
22
+ 'interface types': d({}),
23
+ 'algorithm types': d({
24
+ "Map": sh.sfunction(sh.externalTypeReference("out", "Block"), sh.data(sh.externalTypeReference("in", "Block"))),
25
+ }),
26
+
27
+ }
package/package.json CHANGED
@@ -7,9 +7,9 @@
7
7
  "pareto-core-bin": "^0.1.3",
8
8
  "pareto-core-data": "^0.7.2",
9
9
  "pareto-core-dev": "^0.9.1",
10
- "pareto-pure": "^0.19.0",
11
- "pareto-standard-library": "^0.6.0",
12
- "pareto-subatomic-library": "^0.5.0"
10
+ "pareto-pure": "^0.20.0",
11
+ "pareto-standard-library": "^0.7.0",
12
+ "pareto-subatomic-library": "^0.6.0"
13
13
  },
14
14
  "bin": {
15
15
  "boekhouding": "auto.dist/auto.bin/auto.boekhouding.js"
@@ -25,6 +25,6 @@
25
25
  "main": "auto.dist/index.js",
26
26
  "types": "auto.dist/index.d.ts",
27
27
  "name": "pareto",
28
- "version": "0.59.0",
29
- "content-fingerprint": "b603a114314867b038e8055cafdd1004322aab3a"
28
+ "version": "0.60.0",
29
+ "content-fingerprint": "6221e14fa15197c1d4d3c3dc085e3de3c5fad9ea"
30
30
  }