pareto 0.56.0 → 0.58.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/index.d.ts +5 -3
- package/auto.dist/index.js +7 -5
- package/auto.dist/public/modules/alan__light__serialize/auto.api.js +3 -0
- package/auto.dist/public/{fountain__pen → modules/alan__light__serialize}/auto.implementation.js +1 -1
- package/auto.dist/public/modules/alan__light__serialize/auto.provided_interface_glossary.d.ts +705 -0
- package/auto.dist/public/modules/alan__light__serialize/auto.provided_interface_glossary.js +3 -0
- package/auto.dist/public/modules/alan__light__serialize/auto.provided_interface_glossary.shadow.d.ts +34 -0
- package/auto.dist/public/modules/alan__light__serialize/auto.provided_interface_glossary.shadow.js +3 -0
- package/auto.dist/public/modules/alan__light__serialize/implementations/serialize.alg.js +115 -0
- package/auto.dist/public/modules/alan__light__serialize/index.js +19 -0
- package/auto.dist/public/{pareto__2__typescript → modules/pareto2typescript}/auto.api.js +1 -1
- package/auto.dist/public/{pareto__2__typescript → modules/pareto2typescript}/auto.implementation.js +1 -1
- package/auto.dist/public/{pareto__2__typescript → modules/pareto2typescript}/auto.provided_interface_glossary.d.ts +45 -8
- package/auto.dist/public/{cosmos__2__pareto → modules/pareto2typescript}/auto.provided_interface_glossary.js +1 -1
- package/auto.dist/public/{pareto__2__typescript → modules/pareto2typescript}/auto.provided_interface_glossary.shadow.d.ts +4 -0
- package/auto.dist/public/modules/pareto2typescript/auto.provided_interface_glossary.shadow.js +3 -0
- package/auto.dist/public/modules/pareto2typescript/implementations/serializeCompilationUnit.alg.js +529 -0
- package/auto.dist/public/{cosmos__2__pareto → modules/pareto2typescript}/index.js +1 -1
- package/auto.dist/public/{cosmos__2__pareto → modules/tendril2alan__light}/auto.api.d.ts +1 -1
- package/auto.dist/public/{cosmos__2__pareto → modules/tendril2alan__light}/auto.api.js +1 -1
- package/auto.dist/public/modules/tendril2alan__light/auto.implementation.d.ts +2 -0
- package/auto.dist/public/modules/tendril2alan__light/auto.implementation.js +6 -0
- package/auto.dist/public/modules/tendril2alan__light/auto.provided_interface_glossary.d.ts +1583 -0
- package/auto.dist/public/{fountain__pen → modules/tendril2alan__light}/auto.provided_interface_glossary.js +1 -1
- package/auto.dist/public/{cosmos__2__pareto → modules/tendril2alan__light}/auto.provided_interface_glossary.shadow.d.ts +3 -3
- package/auto.dist/public/modules/tendril2alan__light/auto.provided_interface_glossary.shadow.js +3 -0
- package/auto.dist/public/modules/tendril2alan__light/implementations/map.alg.d.ts +2 -0
- package/auto.dist/public/modules/tendril2alan__light/implementations/map.alg.js +141 -0
- package/auto.dist/public/{pareto__2__typescript → modules/tendril2alan__light}/index.js +1 -1
- package/auto.dist/public/modules/typescript__naming/auto.api.d.ts +6 -0
- package/auto.dist/public/{fountain__pen → modules/typescript__naming}/auto.api.js +1 -1
- package/auto.dist/public/modules/typescript__naming/auto.implementation.d.ts +2 -0
- package/auto.dist/public/modules/typescript__naming/auto.implementation.js +6 -0
- package/auto.dist/public/modules/typescript__naming/auto.provided_interface_glossary.d.ts +9 -0
- package/auto.dist/public/{pareto__2__typescript → modules/typescript__naming}/auto.provided_interface_glossary.js +1 -1
- package/auto.dist/public/{fountain__pen → modules/typescript__naming}/auto.provided_interface_glossary.shadow.d.ts +1 -1
- package/auto.dist/public/modules/typescript__naming/auto.provided_interface_glossary.shadow.js +3 -0
- package/auto.dist/public/modules/typescript__naming/implementations/createIdentifier.alg.d.ts +2 -0
- package/auto.dist/public/modules/typescript__naming/implementations/createIdentifier.alg.js +248 -0
- package/auto.dist/public/modules/typescript__naming/index.d.ts +2 -0
- package/auto.dist/public/{fountain__pen → modules/typescript__naming}/index.js +1 -1
- package/auto.dist/public/modules/typescript__serialize/auto.api.d.ts +8 -0
- package/auto.dist/public/modules/typescript__serialize/auto.api.js +3 -0
- package/auto.dist/public/modules/typescript__serialize/auto.implementation.d.ts +4 -0
- package/auto.dist/public/modules/typescript__serialize/auto.implementation.js +10 -0
- package/auto.dist/public/modules/typescript__serialize/auto.provided_interface_glossary.d.ts +11 -0
- package/auto.dist/public/modules/typescript__serialize/auto.provided_interface_glossary.js +3 -0
- package/auto.dist/public/modules/typescript__serialize/auto.provided_interface_glossary.shadow.d.ts +11 -0
- package/auto.dist/public/modules/typescript__serialize/auto.provided_interface_glossary.shadow.js +3 -0
- package/auto.dist/public/modules/typescript__serialize/implementations/createApostrophedString.alg.d.ts +2 -0
- package/auto.dist/public/modules/typescript__serialize/implementations/createApostrophedString.alg.js +62 -0
- package/auto.dist/public/modules/typescript__serialize/implementations/createBacktickedString.alg.d.ts +2 -0
- package/auto.dist/public/modules/typescript__serialize/implementations/createBacktickedString.alg.js +62 -0
- package/auto.dist/public/modules/typescript__serialize/implementations/createQuotedString.alg.d.ts +2 -0
- package/auto.dist/public/modules/typescript__serialize/implementations/createQuotedString.alg.js +45 -0
- 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 +20 -0
- package/auto.dist/public/modules/typescript__serialize/index.d.ts +2 -0
- package/auto.dist/public/modules/typescript__serialize/index.js +19 -0
- package/auto.pareto/$.data.ts +13 -19
- package/auto.pareto/auto.dependencies/index.ts +6 -4
- package/auto.pareto/auto.dependencies/pareto-pure/$.data.ts +65 -0
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/index.ts +7 -0
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/$.data.ts +3 -15
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/arithmetic/api.data.ts +19 -0
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/modules/arithmetic/glossary.data.ts +2 -2
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/array/api.data.ts +19 -0
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/modules/array/glossary.data.ts +11 -19
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/modules/boolean/api.data.ts +3 -3
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/modules/boolean/glossary.data.ts +2 -2
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/modules/build/api.data.ts +3 -3
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/modules/build/glossary.data.ts +2 -2
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/modules/dictionary/api.data.ts +5 -16
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/modules/dictionary/glossary.data.ts +9 -20
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/json/api.data.ts +15 -0
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/json/glossary.data.ts +47 -0
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/nested/api.data.ts +15 -0
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/modules/nested/glossary.data.ts +2 -2
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/resolve/api.data.ts +15 -0
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/resolve/glossary.data.ts +52 -0
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/string/api.data.ts +17 -0
- package/auto.pareto/auto.dependencies/pareto-pure/auto.dependencies/pareto-standard-library/modules/string/glossary.data.ts +39 -0
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/modules/tostring/api.data.ts +3 -3
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-pure/auto.dependencies/pareto-standard-library}/modules/tostring/glossary.data.ts +2 -2
- package/auto.pareto/auto.dependencies/pareto-pure/glossaries/auto.alan.data.ts +441 -0
- package/auto.pareto/auto.dependencies/pareto-pure/glossaries/auto.alan_light.data.ts +441 -0
- package/auto.pareto/{glossaries → auto.dependencies/pareto-pure/glossaries}/auto.cosmos_type_system.data.ts +20 -13
- package/auto.pareto/auto.dependencies/pareto-pure/glossaries/auto.cosmos_typescript.data.ts +122 -0
- package/auto.pareto/{glossaries → auto.dependencies/pareto-pure/glossaries}/auto.grammar.data.ts +1 -1
- package/auto.pareto/{glossaries → auto.dependencies/pareto-pure/glossaries}/auto.liana.data.ts +1 -1
- package/auto.pareto/{glossaries → auto.dependencies/pareto-pure/glossaries}/auto.pareto.data.ts +1 -1
- package/auto.pareto/{glossaries → auto.dependencies/pareto-pure/glossaries}/auto.tendril.data.ts +18 -181
- package/auto.pareto/auto.dependencies/pareto-pure/glossaries/auto.tendril_resolved.data.ts +862 -0
- package/auto.pareto/{modules → auto.dependencies/pareto-pure/modules}/cosmos2pareto/api.data.ts +2 -2
- package/auto.pareto/{modules → auto.dependencies/pareto-pure/modules}/cosmos2pareto/glossary.data.ts +5 -13
- package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen/api.data.ts +19 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/fountain_pen/glossary.data.ts +55 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/liana2tendril/api.data.ts +24 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/liana2tendril/glossary.data.ts +48 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril2cosmos_type_system/api.data.ts +16 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril2cosmos_type_system/glossary.data.ts +73 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril2pareto/api.data.ts +16 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/tendril2pareto/glossary.data.ts +33 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/testresult/api.data.ts +26 -0
- package/auto.pareto/auto.dependencies/pareto-pure/modules/testresult/glossary.data.ts +144 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/$.data.ts +46 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/arithmetic/api.data.ts +19 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/arithmetic/glossary.data.ts +76 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/array/api.data.ts +19 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/array/glossary.data.ts +52 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/boolean/api.data.ts +21 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/boolean/glossary.data.ts +45 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/build/api.data.ts +25 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/build/glossary.data.ts +133 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/dictionary/api.data.ts +49 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/dictionary/glossary.data.ts +119 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/json/api.data.ts +15 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/json/glossary.data.ts +47 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/nested/api.data.ts +15 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/nested/glossary.data.ts +29 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/resolve/api.data.ts +15 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/resolve/glossary.data.ts +52 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/string/api.data.ts +17 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/string/glossary.data.ts +39 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/tostring/api.data.ts +19 -0
- package/auto.pareto/auto.dependencies/pareto-standard-library/modules/tostring/glossary.data.ts +42 -0
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/$.data.ts +36 -0
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/array/api.data.ts +23 -0
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/array/glossary.data.ts +88 -0
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/dictionary/api.data.ts +27 -0
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/dictionary/glossary.data.ts +82 -0
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-subatomic-library}/modules/json/api.data.ts +3 -3
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-subatomic-library}/modules/json/glossary.data.ts +8 -8
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-subatomic-library}/modules/numerical_predicates/api.data.ts +3 -3
- package/auto.pareto/auto.dependencies/{pareto-standard-impure-library → pareto-subatomic-library}/modules/numerical_predicates/glossary.data.ts +2 -2
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/string/api.data.ts +42 -0
- package/auto.pareto/auto.dependencies/pareto-subatomic-library/modules/string/glossary.data.ts +109 -0
- package/auto.pareto/modules/alan_light_serialize/api.data.ts +15 -0
- package/auto.pareto/modules/alan_light_serialize/glossary.data.ts +41 -0
- package/auto.pareto/modules/pareto2typescript/api.data.ts +10 -13
- package/auto.pareto/modules/pareto2typescript/glossary.data.ts +35 -24
- package/auto.pareto/modules/tendril2alan_light/api.data.ts +17 -0
- package/auto.pareto/modules/tendril2alan_light/glossary.data.ts +51 -0
- package/auto.pareto/modules/typescript_naming/api.data.ts +28 -0
- package/auto.pareto/{auto.dependencies/res-typescript/modules/naming → modules/typescript_naming}/glossary.data.ts +2 -2
- package/auto.pareto/{auto.dependencies/res-typescript/modules/serialize → modules/typescript_serialize}/api.data.ts +3 -4
- package/auto.pareto/{auto.dependencies/res-typescript/modules/serialize → modules/typescript_serialize}/glossary.data.ts +2 -8
- package/package.json +6 -5
- package/auto.dist/public/cosmos__2__pareto/auto.implementation.d.ts +0 -2
- package/auto.dist/public/cosmos__2__pareto/auto.implementation.js +0 -6
- package/auto.dist/public/cosmos__2__pareto/auto.provided_interface_glossary.d.ts +0 -3281
- package/auto.dist/public/cosmos__2__pareto/auto.provided_interface_glossary.shadow.js +0 -3
- package/auto.dist/public/cosmos__2__pareto/implementations/library2ParetoComparators.alg.d.ts +0 -2
- package/auto.dist/public/cosmos__2__pareto/implementations/library2ParetoComparators.alg.js +0 -359
- package/auto.dist/public/fountain__pen/auto.provided_interface_glossary.d.ts +0 -29
- package/auto.dist/public/fountain__pen/auto.provided_interface_glossary.shadow.js +0 -3
- package/auto.dist/public/fountain__pen/implementations/serialize.alg.js +0 -98
- package/auto.dist/public/glossaries/cosmos__type__system.d.ts +0 -1760
- package/auto.dist/public/glossaries/cosmos__type__system.js +0 -3
- package/auto.dist/public/glossaries/cosmos__type__system.shadow.d.ts +0 -8
- package/auto.dist/public/glossaries/cosmos__type__system.shadow.js +0 -3
- package/auto.dist/public/glossaries/grammar.d.ts +0 -260
- package/auto.dist/public/glossaries/grammar.js +0 -3
- package/auto.dist/public/glossaries/grammar.shadow.d.ts +0 -8
- package/auto.dist/public/glossaries/grammar.shadow.js +0 -3
- package/auto.dist/public/glossaries/liana.d.ts +0 -2433
- package/auto.dist/public/glossaries/liana.js +0 -3
- package/auto.dist/public/glossaries/liana.shadow.d.ts +0 -8
- package/auto.dist/public/glossaries/liana.shadow.js +0 -3
- package/auto.dist/public/glossaries/pareto.d.ts +0 -1503
- package/auto.dist/public/glossaries/pareto.js +0 -3
- package/auto.dist/public/glossaries/pareto.shadow.d.ts +0 -8
- package/auto.dist/public/glossaries/pareto.shadow.js +0 -3
- package/auto.dist/public/glossaries/tendril.d.ts +0 -1425
- package/auto.dist/public/glossaries/tendril.js +0 -3
- package/auto.dist/public/glossaries/tendril.shadow.d.ts +0 -8
- package/auto.dist/public/glossaries/tendril.shadow.js +0 -3
- package/auto.dist/public/pareto__2__typescript/auto.provided_interface_glossary.shadow.js +0 -3
- package/auto.dist/public/pareto__2__typescript/implementations/serializeCompilationUnit.alg.js +0 -558
- package/auto.dist/public/shorthands/cosmos.d.ts +0 -50
- package/auto.dist/public/shorthands/cosmos.js +0 -512
- package/auto.dist/public/shorthands/grammar.d.ts +0 -13
- package/auto.dist/public/shorthands/grammar.js +0 -110
- package/auto.dist/public/shorthands/liana.d.ts +0 -66
- package/auto.dist/public/shorthands/liana.js +0 -728
- package/auto.dist/public/shorthands/pareto.d.ts +0 -48
- package/auto.dist/public/shorthands/pareto.js +0 -243
- package/auto.dist/public/shorthands/tendril.d.ts +0 -48
- package/auto.dist/public/shorthands/tendril.js +0 -402
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/arithmetic/api.data.ts +0 -26
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/array/api.data.ts +0 -21
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/collation/api.data.ts +0 -15
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/collation/glossary.data.ts +0 -34
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/filesystem/api.data.ts +0 -19
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/filesystem/glossary.data.ts +0 -189
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/foreach/api.data.ts +0 -25
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/foreach/glossary.data.ts +0 -78
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/http/api.data.ts +0 -16
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/http/glossary.data.ts +0 -69
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/nested/api.data.ts +0 -15
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/path/api.data.ts +0 -19
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/path/glossary.data.ts +0 -35
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/resolve/api.data.ts +0 -20
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/resolve/glossary.data.ts +0 -84
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/string/api.data.ts +0 -26
- package/auto.pareto/auto.dependencies/pareto-standard-impure-library/modules/string/glossary.data.ts +0 -75
- package/auto.pareto/auto.dependencies/res-typescript/$.data.ts +0 -35
- package/auto.pareto/auto.dependencies/res-typescript/modules/naming/api.data.ts +0 -15
- package/auto.pareto/modules/fountain_pen/api.data.ts +0 -17
- package/auto.pareto/modules/fountain_pen/glossary.data.ts +0 -32
- /package/auto.dist/public/{fountain__pen → modules/alan__light__serialize}/auto.api.d.ts +0 -0
- /package/auto.dist/public/{fountain__pen → modules/alan__light__serialize}/auto.implementation.d.ts +0 -0
- /package/auto.dist/public/{fountain__pen → modules/alan__light__serialize}/implementations/serialize.alg.d.ts +0 -0
- /package/auto.dist/public/{cosmos__2__pareto → modules/alan__light__serialize}/index.d.ts +0 -0
- /package/auto.dist/public/{pareto__2__typescript → modules/pareto2typescript}/auto.api.d.ts +0 -0
- /package/auto.dist/public/{pareto__2__typescript → modules/pareto2typescript}/auto.implementation.d.ts +0 -0
- /package/auto.dist/public/{pareto__2__typescript → modules/pareto2typescript}/implementations/serializeCompilationUnit.alg.d.ts +0 -0
- /package/auto.dist/public/{fountain__pen → modules/pareto2typescript}/index.d.ts +0 -0
- /package/auto.dist/public/{pareto__2__typescript → modules/tendril2alan__light}/index.d.ts +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
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
|
+
"flattenArrayOfArrays": algorithm("FlattenArrayOfArrays", null, {}),
|
|
14
|
+
"append": algorithm("Append", null, {}),
|
|
15
|
+
"prepend": algorithm("Prepend", null, {}),
|
|
16
|
+
"zip": algorithm("Zip", null, {}),
|
|
17
|
+
|
|
18
|
+
}
|
|
19
|
+
)
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
array, data, dictionary, externalTypeReference, group, member, number, optional, parametrizedType, ref, sfunction,
|
|
5
|
+
type, typeParameter, 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
|
+
"Array": parametrizedType({ "Type": null }, array(ref(typeParameter("Type")))),
|
|
20
|
+
"ArrayOfArrays": parametrizedType({ "Type": null }, array(ref(typeReference("Array", { "Type": typeParameter("Type") })))),
|
|
21
|
+
|
|
22
|
+
"AppendParameters": parametrizedType({ "Type": null }, group({
|
|
23
|
+
"array": member(ref(typeReference("Array", { "Type": typeParameter("Type") }))),
|
|
24
|
+
"element": member(ref(typeParameter("Type"))),
|
|
25
|
+
})),
|
|
26
|
+
"PrependParameters": parametrizedType({ "Type": null }, group({
|
|
27
|
+
"array": member(ref(typeReference("Array", { "Type": typeParameter("Type") }))),
|
|
28
|
+
"element": member(ref(typeParameter("Type"))),
|
|
29
|
+
})),
|
|
30
|
+
"ArrayTuple": parametrizedType({ "Benchmark": null, "Focus": null }, group({
|
|
31
|
+
"benchmark": member(ref(typeReference("Array", { "Type": typeParameter("Benchmark") }))),
|
|
32
|
+
"focus": member(ref(typeReference("Array", { "Type": typeParameter("Focus") }))),
|
|
33
|
+
})),
|
|
34
|
+
"ZippedArray": parametrizedType({ "Benchmark": null, "Focus": null }, array(group({
|
|
35
|
+
"benchmark": member(ref(typeParameter("Benchmark"))),
|
|
36
|
+
"focus": member(ref(typeParameter("Focus"))),
|
|
37
|
+
}))),
|
|
38
|
+
|
|
39
|
+
}),
|
|
40
|
+
},
|
|
41
|
+
'interface types': d({}),
|
|
42
|
+
'algorithm types': d({
|
|
43
|
+
"Append": sfunction(typeReference("Array", { "Type": typeParameter("Type") }), data(typeReference("AppendParameters", { "Type": typeParameter("Type") })), { "Type": null }),
|
|
44
|
+
"Prepend": sfunction(typeReference("Array", { "Type": typeParameter("Type") }), data(typeReference("PrependParameters", { "Type": typeParameter("Type") })), { "Type": null }),
|
|
45
|
+
"FlattenArrayOfArrays": sfunction(typeReference("Array", { "Type": typeParameter("Type") }), data(typeReference("ArrayOfArrays", { "Type": typeParameter("Type") })), { "Type": null }),
|
|
46
|
+
"Zip": sfunction(
|
|
47
|
+
typeReference("ZippedArray", { "Benchmark": typeParameter("Benchmark"), "Focus": typeParameter("Focus") }),
|
|
48
|
+
data(typeReference("ArrayTuple", { "Benchmark": typeParameter("Benchmark"), "Focus": typeParameter("Focus") })),
|
|
49
|
+
{ "Benchmark": null, "Focus": null }
|
|
50
|
+
),
|
|
51
|
+
}),
|
|
52
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
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
|
+
"array_and": algorithm("Array And", null, {}),
|
|
14
|
+
"array_or": algorithm("Array Or", null, {}),
|
|
15
|
+
"array_xor": algorithm("Array Xor", null, {}),
|
|
16
|
+
"and": algorithm("And", null, {}),
|
|
17
|
+
"or": algorithm("Or", null, {}),
|
|
18
|
+
"xor": algorithm("Xor", null, {}),
|
|
19
|
+
"not": algorithm("Not", null, {}),
|
|
20
|
+
}
|
|
21
|
+
)
|
package/auto.pareto/auto.dependencies/pareto-standard-library/modules/boolean/glossary.data.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
array,
|
|
5
|
+
boolean,
|
|
6
|
+
data,
|
|
7
|
+
externalTypeReference,
|
|
8
|
+
group,
|
|
9
|
+
member,
|
|
10
|
+
number,
|
|
11
|
+
sfunction,
|
|
12
|
+
type,
|
|
13
|
+
typeReference,
|
|
14
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
15
|
+
|
|
16
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
17
|
+
const d = pd.d
|
|
18
|
+
|
|
19
|
+
export const $: g_glossary.D.Glossary = {
|
|
20
|
+
'glossary parameters': d({}),
|
|
21
|
+
'imports': d({
|
|
22
|
+
}),
|
|
23
|
+
'root': {
|
|
24
|
+
'namespaces': d({}),
|
|
25
|
+
'data types': d({
|
|
26
|
+
"Boolean": type(boolean()),
|
|
27
|
+
"Pair Of Booleans": type(group({
|
|
28
|
+
"yin": member(boolean()),
|
|
29
|
+
"yang": member(boolean()),
|
|
30
|
+
})),
|
|
31
|
+
"Array Of Booleans": type(array(boolean())),
|
|
32
|
+
}),
|
|
33
|
+
},
|
|
34
|
+
'interface types': d({}),
|
|
35
|
+
'algorithm types': d({
|
|
36
|
+
"Array And": sfunction(typeReference("Boolean"), data(typeReference("Array Of Booleans"))),
|
|
37
|
+
"Array Or": sfunction(typeReference("Boolean"), data(typeReference("Array Of Booleans"))),
|
|
38
|
+
"Array Xor": sfunction(typeReference("Boolean"), data(typeReference("Array Of Booleans"))),
|
|
39
|
+
"And": sfunction(typeReference("Boolean"), data(typeReference("Pair Of Booleans"))),
|
|
40
|
+
"Or": sfunction(typeReference("Boolean"), data(typeReference("Pair Of Booleans"))),
|
|
41
|
+
"Xor": sfunction(typeReference("Boolean"), data(typeReference("Pair Of Booleans"))),
|
|
42
|
+
"Not": sfunction(typeReference("Boolean"), data(typeReference("Boolean"))),
|
|
43
|
+
}),
|
|
44
|
+
|
|
45
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
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, sInterface, sInterfaceMethod, string, taggedUnion, type, typeReference } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
9
|
+
|
|
10
|
+
export const $: g_project.D.API = api(
|
|
11
|
+
glos,
|
|
12
|
+
{
|
|
13
|
+
// "buildArray": algorithm("BuildArray", null, {}),
|
|
14
|
+
// "buildUnsafeDictionary": algorithm("BuildUnsafeDictionary", null, {}),
|
|
15
|
+
// "buildSafeDictionary": algorithm("BuildSafeDictionary", "DictionaryBuildStrategy", {}, {
|
|
16
|
+
// }),
|
|
17
|
+
"createUnsafeDictionaryBuilder": algorithm("CreateUnsafeDictionaryBuilder", null, {}),
|
|
18
|
+
"createSafeDictionaryBuilder": algorithm("CreateSafeDictionaryBuilder", "DictionaryBuildStrategy", {}),
|
|
19
|
+
"createArrayBuilder": algorithm("CreateArrayBuilder", null, {}),
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
"createStringBuilder": algorithm("CreateStringBuilder", "Startstring", {
|
|
23
|
+
}),
|
|
24
|
+
}
|
|
25
|
+
)
|
|
@@ -0,0 +1,133 @@
|
|
|
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
|
+
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
"DictionaryBuildStrategy": type(taggedUnion({
|
|
49
|
+
"ignore": group({}),
|
|
50
|
+
"overwrite": group({}),
|
|
51
|
+
})),
|
|
52
|
+
"Startstring": type(string()),
|
|
53
|
+
}),
|
|
54
|
+
},
|
|
55
|
+
'interface types': d({
|
|
56
|
+
"Array": aInterface(aInterfaceMethod(typeReference("Array", {
|
|
57
|
+
"Type": typeParameter("Type"),
|
|
58
|
+
"EndType": typeParameter("EndType")
|
|
59
|
+
})), { "Type": null, "EndType": null }),
|
|
60
|
+
"Dictionary": aInterface(aInterfaceMethod(typeReference("Dictionary", {
|
|
61
|
+
"Type": typeParameter("Type"),
|
|
62
|
+
"EndType": typeParameter("EndType")
|
|
63
|
+
})), { "Type": null, "EndType": null }),
|
|
64
|
+
"Elements": aInterface(streamconsumer(
|
|
65
|
+
aInterfaceMethod(typeParameter("Type")),
|
|
66
|
+
aInterfaceMethod(typeParameter("EndType")),
|
|
67
|
+
), { "Type": null, "EndType": null }),
|
|
68
|
+
"Entries": aInterface(streamconsumer(
|
|
69
|
+
aInterfaceMethod(typeReference("KeyValuePair", { "Type": typeParameter("Type") })),
|
|
70
|
+
aInterfaceMethod(typeParameter("EndType")),
|
|
71
|
+
), { "Type": null, "EndType": null }),
|
|
72
|
+
"DuplicatesHandler": aInterface(streamconsumer(
|
|
73
|
+
aInterfaceMethod(typeReference("Simple String")),
|
|
74
|
+
aInterfaceMethod(null),
|
|
75
|
+
)),
|
|
76
|
+
"StringConsumer": aInterface(aInterfaceMethod(typeReference("String", { "EndType": typeParameter("EndType") })), { "EndType": null }),
|
|
77
|
+
"StringStreamConsumer": aInterface(streamconsumer(
|
|
78
|
+
aInterfaceMethod(typeReference("Simple String")),
|
|
79
|
+
aInterfaceMethod(typeParameter("EndType")),
|
|
80
|
+
), { "EndType": null }),
|
|
81
|
+
"Add": sInterface(sInterfaceMethod(typeReference("KeyValuePair", { "Type": typeParameter("Type") })), { "Type": null }),
|
|
82
|
+
"Push": sInterface(sInterfaceMethod(typeParameter("Type")), { "Type": null }),
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
}),
|
|
88
|
+
'algorithm types': d({
|
|
89
|
+
"CreateArrayBuilder": infInit(aInterfaceReference("Elements", {
|
|
90
|
+
"Type": typeParameter("Type"),
|
|
91
|
+
"EndType": typeParameter("EndType"),
|
|
92
|
+
}), {
|
|
93
|
+
"handler": aInterfaceReference("Array", {
|
|
94
|
+
"Type": typeParameter("Type"),
|
|
95
|
+
"EndType": typeParameter("EndType"),
|
|
96
|
+
}),
|
|
97
|
+
}, { "Type": null, "EndType": null }),
|
|
98
|
+
"CreateUnsafeDictionaryBuilder": infInit(aInterfaceReference("Entries", {
|
|
99
|
+
"Type": typeParameter("Type"),
|
|
100
|
+
"EndType": typeParameter("EndType"),
|
|
101
|
+
}), {
|
|
102
|
+
"handler": aInterfaceReference("Dictionary", {
|
|
103
|
+
"Type": typeParameter("Type"),
|
|
104
|
+
"EndType": typeParameter("EndType")
|
|
105
|
+
}),
|
|
106
|
+
}, { "Type": null, "EndType": null }),
|
|
107
|
+
"CreateSafeDictionaryBuilder": infInit(aInterfaceReference("Entries", {
|
|
108
|
+
"Type": typeParameter("Type"),
|
|
109
|
+
"EndType": typeParameter("EndType"),
|
|
110
|
+
}), {
|
|
111
|
+
"handler": aInterfaceReference("Dictionary", {
|
|
112
|
+
"Type": typeParameter("Type"),
|
|
113
|
+
"EndType": typeParameter("EndType")
|
|
114
|
+
}),
|
|
115
|
+
"duplicatesHandler": aInterfaceReference("DuplicatesHandler"),
|
|
116
|
+
|
|
117
|
+
}, { "Type": null, "EndType": null }),
|
|
118
|
+
"CreateStringBuilder": infInit(aInterfaceReference("StringStreamConsumer", { "EndType": typeParameter("EndType") }), {
|
|
119
|
+
"handler": aInterfaceReference("StringConsumer", { "EndType": typeParameter("EndType") }),
|
|
120
|
+
}, { "EndType": null }),
|
|
121
|
+
// "BuildArray": sfunction(typeReference("Simple Array", {
|
|
122
|
+
// "Type": typeParameter("Type"),
|
|
123
|
+
// }), sInf(sInterfaceReference("Push", { "Type": typeParameter("Type") })), { "Type": null }),
|
|
124
|
+
// "BuildUnsafeDictionary": sfunction(typeReference("Simple Dictionary", {
|
|
125
|
+
// "Type": typeParameter("Type"),
|
|
126
|
+
// }), sInf(sInterfaceReference("Add", { "Type": typeParameter("Type") })), { "Type": null }),
|
|
127
|
+
// "BuildSafeDictionary": sfunction(typeReference("Simple Dictionary", {
|
|
128
|
+
// "Type": typeParameter("Type"),
|
|
129
|
+
// }), sInf(sInterfaceReference("Add", { "Type": typeParameter("Type") })), { "Type": null }),
|
|
130
|
+
|
|
131
|
+
}),
|
|
132
|
+
|
|
133
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
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 { aInterface, aInterfaceMethod, glossary, group, member, number, sInterface, sInterfaceMethod, streamconsumer, string, type, typeReference } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
9
|
+
|
|
10
|
+
export const $: g_project.D.API = api(
|
|
11
|
+
glos,
|
|
12
|
+
{
|
|
13
|
+
"filter": algorithm("Filter", null, {}),
|
|
14
|
+
/**
|
|
15
|
+
* a dictionary with containing entries with values and a key candidate is transformed
|
|
16
|
+
* into a dictionary where the new key of the entry is the candidate. If candidates are not unique
|
|
17
|
+
* the function panics
|
|
18
|
+
*/
|
|
19
|
+
"unsafeRekey": algorithm("UnsafeRekey", null, {}),
|
|
20
|
+
/**
|
|
21
|
+
* 2 dictionaries are combined into 1 dictionary. If keys are not unique this function panics.
|
|
22
|
+
*/
|
|
23
|
+
"unsafeMerge": algorithm("UnsafeMerge", null, {}),
|
|
24
|
+
/**
|
|
25
|
+
* a key/value pair is added to a dictionary resulting in a new dictionary.
|
|
26
|
+
* if the key is not unique the function panics
|
|
27
|
+
*/
|
|
28
|
+
"unsafeAddEntry": algorithm("UnsafeAddEntry", null, {}),
|
|
29
|
+
/**
|
|
30
|
+
* a focus dictionary is matched to a benchmark dictionary resulting in a result dictionary
|
|
31
|
+
* this last dictionary contains all entries found in the benchmark dictionary.
|
|
32
|
+
* each entry value is optionally supplemented with the value of the focus entry, if found.
|
|
33
|
+
*/
|
|
34
|
+
"zip": algorithm("Zip", null, {}),
|
|
35
|
+
/**
|
|
36
|
+
* 2 dictionaries are combined into 1 dictionary. is a key exists in both directories, only the entry of the last dictionary will be used.
|
|
37
|
+
*/
|
|
38
|
+
"mergeAndOverwrite": algorithm("MergeAndOverwrite", null, {}),
|
|
39
|
+
/**
|
|
40
|
+
* the keys of the outermost dictionary is combined with the key of the innermost dictionary
|
|
41
|
+
*/
|
|
42
|
+
"flattenDictionaryOfDictionaries": algorithm("FlattenDictionaryOfDictionaries", null, {}),
|
|
43
|
+
/**
|
|
44
|
+
* 2 dictionaries are combined into 1 dictionary. is a key exists in both directories, only the entry of the first dictionary will be used.
|
|
45
|
+
*/
|
|
46
|
+
"mergeAndIgnore": algorithm("MergeAndIgnore", null, {}),
|
|
47
|
+
"decorateDictionaryEntriesWithKey": algorithm("DecorateDictionaryEntriesWithKey", null, {}),
|
|
48
|
+
}
|
|
49
|
+
)
|
package/auto.pareto/auto.dependencies/pareto-standard-library/modules/dictionary/glossary.data.ts
ADDED
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
dictionary,
|
|
5
|
+
typeReference,
|
|
6
|
+
data,
|
|
7
|
+
sfunction,
|
|
8
|
+
ref,
|
|
9
|
+
typeParameter,
|
|
10
|
+
externalTypeReference,
|
|
11
|
+
parametrizedType,
|
|
12
|
+
optional,
|
|
13
|
+
group,
|
|
14
|
+
member,
|
|
15
|
+
aInterface,
|
|
16
|
+
streamconsumer,
|
|
17
|
+
aInterfaceMethod,
|
|
18
|
+
type,
|
|
19
|
+
string,
|
|
20
|
+
boolean,
|
|
21
|
+
sInterface,
|
|
22
|
+
sInterfaceMethod,
|
|
23
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
24
|
+
|
|
25
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
26
|
+
const d = pd.d
|
|
27
|
+
|
|
28
|
+
export const $: g_glossary.D.Glossary = {
|
|
29
|
+
'glossary parameters': d({}),
|
|
30
|
+
'imports': d({
|
|
31
|
+
}),
|
|
32
|
+
'root': {
|
|
33
|
+
'namespaces': d({}),
|
|
34
|
+
'data types': d({
|
|
35
|
+
"Boolean": type(boolean()),
|
|
36
|
+
"String": type(string()),
|
|
37
|
+
"KeyValuePair": parametrizedType({ "Type": null }, group({
|
|
38
|
+
"key": member(string()),
|
|
39
|
+
"value": member(ref(typeParameter("Type"))),
|
|
40
|
+
})),
|
|
41
|
+
"Dictionary": parametrizedType({ "Type": null }, dictionary(ref(typeParameter("Type")))),
|
|
42
|
+
"FilterableDictionary": parametrizedType({ "Type": null }, dictionary(optional(ref(typeParameter("Type"))))),
|
|
43
|
+
"MergeParameters": parametrizedType({ "Type": null }, group({
|
|
44
|
+
"primary": member(ref(typeReference("Dictionary", { "Type": typeParameter("Type") }))),
|
|
45
|
+
"secondary": member(ref(typeReference("Dictionary", { "Type": typeParameter("Type") }))),
|
|
46
|
+
})),
|
|
47
|
+
"ZippedDictionary": parametrizedType({ "Benchmark": null, "Focus": null }, dictionary(group({
|
|
48
|
+
"benchmark": member(ref(typeParameter("Benchmark"))),
|
|
49
|
+
"focus": member(optional(ref(typeParameter("Focus")))),
|
|
50
|
+
}))),
|
|
51
|
+
|
|
52
|
+
"DictionaryTuple": parametrizedType({ "Benchmark": null, "Focus": null }, group({
|
|
53
|
+
"benchmark": member(ref(typeReference("Dictionary", { "Type": typeParameter("Benchmark") }))),
|
|
54
|
+
"focus": member(ref(typeReference("Dictionary", { "Type": typeParameter("Focus") }))),
|
|
55
|
+
})),
|
|
56
|
+
"FlattenDictionaryOfDictionariesParameters": parametrizedType({ "Type": null }, group({
|
|
57
|
+
"dictionaries": member(dictionary(ref(typeReference("Dictionary", { "Type": typeParameter("Type") })))),
|
|
58
|
+
"separator": member(string()),
|
|
59
|
+
"escape": member(string()),// to escape if the separator appears in the key of the top level dictionary
|
|
60
|
+
})),
|
|
61
|
+
"UnsafeAddEntryParameters": parametrizedType({ "Type": null }, group({
|
|
62
|
+
"dictionary": member(ref(typeReference("Dictionary", { "Type": typeParameter("Type") }))),
|
|
63
|
+
"keyValuePair": member(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))
|
|
64
|
+
})),
|
|
65
|
+
"KeyValueDictionary": parametrizedType({ "Type": null }, dictionary(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
"RekeyDictionary": parametrizedType({ "Type": null }, dictionary(ref(typeReference("KeyValuePair", { "Type": typeParameter("Type") })))),
|
|
69
|
+
|
|
70
|
+
}),
|
|
71
|
+
},
|
|
72
|
+
'interface types': d({
|
|
73
|
+
}),
|
|
74
|
+
'algorithm types': d({
|
|
75
|
+
"Filter": sfunction(
|
|
76
|
+
typeReference("Dictionary", { "Type": typeParameter("Type") }),
|
|
77
|
+
data(typeReference("FilterableDictionary", { "Type": typeParameter("Type") })),
|
|
78
|
+
{ "Type": null }
|
|
79
|
+
),
|
|
80
|
+
"UnsafeRekey": sfunction(
|
|
81
|
+
typeReference("Dictionary", { "Type": typeParameter("Type") }),
|
|
82
|
+
data(typeReference("RekeyDictionary", { "Type": typeParameter("Type") })),
|
|
83
|
+
{ "Type": null }
|
|
84
|
+
),
|
|
85
|
+
"UnsafeMerge": sfunction(
|
|
86
|
+
typeReference("Dictionary", { "Type": typeParameter("Type") }),
|
|
87
|
+
data(typeReference("MergeParameters", { "Type": typeParameter("Type") })),
|
|
88
|
+
{ "Type": null }
|
|
89
|
+
),
|
|
90
|
+
"UnsafeAddEntry": sfunction(
|
|
91
|
+
typeReference("Dictionary", { "Type": typeParameter("Type") }),
|
|
92
|
+
data(typeReference("UnsafeAddEntryParameters", { "Type": typeParameter("Type") })),
|
|
93
|
+
{ "Type": null }
|
|
94
|
+
),
|
|
95
|
+
"MergeAndIgnore": sfunction(
|
|
96
|
+
typeReference("Dictionary", { "Type": typeParameter("Type") }),
|
|
97
|
+
data(typeReference("MergeParameters", { "Type": typeParameter("Type") })),
|
|
98
|
+
{ "Type": null }
|
|
99
|
+
),
|
|
100
|
+
"Zip": sfunction(
|
|
101
|
+
typeReference("ZippedDictionary", { "Benchmark": typeParameter("Benchmark"), "Focus": typeParameter("Focus") }),
|
|
102
|
+
data(typeReference("DictionaryTuple", { "Benchmark": typeParameter("Benchmark"), "Focus": typeParameter("Focus") })),
|
|
103
|
+
{ "Benchmark": null, "Focus": null }
|
|
104
|
+
),
|
|
105
|
+
"FlattenDictionaryOfDictionaries": sfunction(
|
|
106
|
+
typeReference("Dictionary", { "Type": typeParameter("Type") }),
|
|
107
|
+
data(typeReference("FlattenDictionaryOfDictionariesParameters", { "Type": typeParameter("Type") })),
|
|
108
|
+
{ "Type": null }
|
|
109
|
+
),
|
|
110
|
+
"MergeAndOverwrite": sfunction(
|
|
111
|
+
typeReference("Dictionary", { "Type": typeParameter("Type") }),
|
|
112
|
+
data(typeReference("MergeParameters", { "Type": typeParameter("Type") })),
|
|
113
|
+
{ "Type": null }
|
|
114
|
+
),
|
|
115
|
+
"DecorateDictionaryEntriesWithKey": sfunction(typeReference("KeyValueDictionary", { "Type": typeParameter("Type") }), data(typeReference("Dictionary", { "Type": typeParameter("Type") })), { "Type": null }),
|
|
116
|
+
|
|
117
|
+
}),
|
|
118
|
+
|
|
119
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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, sInterface, sInterfaceMethod, string, type, typeReference } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
9
|
+
|
|
10
|
+
export const $: g_project.D.API = api(
|
|
11
|
+
glos,
|
|
12
|
+
{
|
|
13
|
+
"serialize": algorithm("Serialize", null, {}),
|
|
14
|
+
}
|
|
15
|
+
)
|
|
@@ -0,0 +1,47 @@
|
|
|
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
|
+
} 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
|
+
|
|
14
|
+
const d = pd.d
|
|
15
|
+
|
|
16
|
+
export const $: g_glossary.D.Glossary = {
|
|
17
|
+
'glossary parameters': d({
|
|
18
|
+
}),
|
|
19
|
+
'imports': d({}),
|
|
20
|
+
'root': {
|
|
21
|
+
'namespaces': d({}),
|
|
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
|
+
"Value": type(taggedUnion({
|
|
30
|
+
"object": dictionary(ref(typeReference("Value"))),
|
|
31
|
+
"array": array(ref(typeReference("Value"))),
|
|
32
|
+
"string": string(),
|
|
33
|
+
"number": number(),
|
|
34
|
+
"boolean": boolean(),
|
|
35
|
+
"null": null_(),
|
|
36
|
+
})),
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
}),
|
|
40
|
+
},
|
|
41
|
+
'interface types': d({
|
|
42
|
+
|
|
43
|
+
}),
|
|
44
|
+
'algorithm types': d({
|
|
45
|
+
"Serialize": sfunction(typeReference("String"), data(typeReference("Value"))),
|
|
46
|
+
}),
|
|
47
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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
|
+
"flatten": algorithm("Flatten", null, {})
|
|
14
|
+
}
|
|
15
|
+
)
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
array, data, dictionary, externalTypeReference, glossaryParameter, group, 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
|
+
const d = pd.d
|
|
9
|
+
|
|
10
|
+
export const $: g_glossary.D.Glossary = {
|
|
11
|
+
'glossary parameters': d({}),
|
|
12
|
+
'imports': d({
|
|
13
|
+
}),
|
|
14
|
+
'root': {
|
|
15
|
+
'namespaces': d({}),
|
|
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
|
+
"Array": parametrizedType({ "Type": null }, array(ref(typeParameter("Type"))))
|
|
23
|
+
}),
|
|
24
|
+
},
|
|
25
|
+
'interface types': d({}),
|
|
26
|
+
'algorithm types': d({
|
|
27
|
+
"Flatten": sfunction(typeReference("Array", { "Type": typeParameter("Type")}), data(typeReference("Nested", { "Type": typeParameter("Type")})), { "Type": null })
|
|
28
|
+
}),
|
|
29
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
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, sInterface, sInterfaceMethod, string, type, typeReference } from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
9
|
+
|
|
10
|
+
export const $: g_project.D.API = api(
|
|
11
|
+
glos,
|
|
12
|
+
{
|
|
13
|
+
"unsafeSortTopologically": algorithm("SortTopologically", null, {}),
|
|
14
|
+
}
|
|
15
|
+
)
|
package/auto.pareto/auto.dependencies/pareto-standard-library/modules/resolve/glossary.data.ts
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import * as pd from 'pareto-core-data'
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
string, member, group,
|
|
5
|
+
typeReference,
|
|
6
|
+
data,
|
|
7
|
+
sfunction,
|
|
8
|
+
type,
|
|
9
|
+
externalTypeReference,
|
|
10
|
+
boolean,
|
|
11
|
+
parametrizedType,
|
|
12
|
+
dictionary,
|
|
13
|
+
ref,
|
|
14
|
+
typeParameter,
|
|
15
|
+
array,
|
|
16
|
+
null_,
|
|
17
|
+
computed,
|
|
18
|
+
sInterface,
|
|
19
|
+
sInterfaceMethod,
|
|
20
|
+
} from "pareto-pure/auto.dist/public/shorthands/cosmos_type_system.sh"
|
|
21
|
+
|
|
22
|
+
import * as g_glossary from "pareto-pure/auto.dist/public/auto.glossaries/auto.cosmos__type__system"
|
|
23
|
+
const d = pd.d
|
|
24
|
+
|
|
25
|
+
export const $: g_glossary.D.Glossary = {
|
|
26
|
+
'glossary parameters': d({}),
|
|
27
|
+
'imports': d({
|
|
28
|
+
}),
|
|
29
|
+
'root': {
|
|
30
|
+
'namespaces': d({}),
|
|
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
|
+
|
|
38
|
+
"DependencyDictionary": parametrizedType({ "Type": null }, dictionary(group({
|
|
39
|
+
"value": member(ref(typeParameter("Type"))),
|
|
40
|
+
"dependencies": member(dictionary(null_())),
|
|
41
|
+
}))),
|
|
42
|
+
}),
|
|
43
|
+
},
|
|
44
|
+
'interface types': d({}),
|
|
45
|
+
'algorithm types': d({
|
|
46
|
+
"SortTopologically": sfunction(
|
|
47
|
+
typeReference("Array", { "Type": typeParameter("Type") }),
|
|
48
|
+
data(typeReference("DependencyDictionary", { "Type": typeParameter("Type") })),
|
|
49
|
+
{ "Type": null }
|
|
50
|
+
),
|
|
51
|
+
}),
|
|
52
|
+
}
|