pareto-lionweb 0.0.4 → 0.1.1
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/dist/bin/transform_lionweb_2023_1_language_to_astn.js +9 -3
- package/dist/bin/transform_lionweb_2024_1_language_to_astn.js +9 -3
- package/dist/globals.d.ts +2 -0
- package/dist/implementation/algorithms/procedures/unguaranteed/transform_lionweb_2023_1_language_to_astn.d.ts +11 -0
- package/dist/implementation/algorithms/procedures/unguaranteed/transform_lionweb_2023_1_language_to_astn.js +67 -0
- package/dist/implementation/algorithms/procedures/unguaranteed/transform_lionweb_2024_1_language_to_astn.d.ts +11 -0
- package/dist/implementation/algorithms/procedures/unguaranteed/transform_lionweb_2024_1_language_to_astn.js +66 -0
- package/dist/implementation/algorithms/purifiers/temp_2023_1.d.ts +5 -0
- package/dist/implementation/algorithms/purifiers/temp_2023_1.js +62 -0
- package/dist/implementation/algorithms/purifiers/temp_2024_1.d.ts +5 -0
- package/dist/implementation/algorithms/purifiers/temp_2024_1.js +62 -0
- package/dist/implementation/algorithms/refinements/2023_1_tree/2023_1_tree_to_M3.d.ts +8 -0
- package/dist/implementation/algorithms/refinements/2023_1_tree/2023_1_tree_to_M3.js +167 -0
- package/dist/implementation/algorithms/refinements/2024_1_tree/2024_1_tree_to_M3.d.ts +8 -0
- package/dist/implementation/algorithms/refinements/2024_1_tree/2024_1_tree_to_M3.js +167 -0
- package/dist/implementation/algorithms/refinements/context.d.ts +21 -0
- package/dist/implementation/algorithms/refinements/context.js +39 -0
- package/dist/implementation/algorithms/refinements/serialization_format/serialization_format_to_tree.d.ts +8 -0
- package/dist/implementation/algorithms/refinements/serialization_format/serialization_format_to_tree.js +80 -0
- package/dist/implementation/generated/pareto/generic/parse/ast.d.ts +10 -0
- package/dist/implementation/generated/pareto/generic/parse/ast.js +245 -0
- package/dist/implementation/generated/pareto/generic/parse/astn_parse_generic.d.ts +13 -0
- package/dist/implementation/generated/pareto/generic/parse/astn_parse_generic.js +50 -0
- package/dist/implementation/generated/pareto/generic/parse/parse.d.ts +6 -0
- package/dist/implementation/generated/pareto/generic/parse/parse.js +66 -0
- package/dist/implementation/generated/pareto/generic/parse/string_iterator.d.ts +40 -0
- package/dist/implementation/generated/pareto/generic/parse/string_iterator.js +109 -0
- package/dist/implementation/generated/pareto/generic/parse/token.d.ts +9 -0
- package/dist/implementation/generated/pareto/generic/parse/token.js +519 -0
- package/dist/implementation/generated/pareto/generic/resolve.d.ts +4 -4
- package/dist/implementation/generated/pareto/generic/resolve.js +8 -8
- package/dist/implementation/generated/pareto/generic/serialize.d.ts +4 -0
- package/dist/implementation/generated/pareto/generic/serialize.js +93 -0
- package/dist/implementation/generated/pareto/generic/unmarshall.d.ts +26 -26
- package/dist/implementation/generated/pareto/generic/unmarshall.js +41 -32
- package/dist/implementation/generated/pareto/schemas/lioncore/deserialize.d.ts +4 -0
- package/dist/implementation/generated/pareto/schemas/lioncore/deserialize.js +34 -0
- package/dist/implementation/generated/pareto/schemas/lioncore/marshall.d.ts +1 -1
- package/dist/implementation/generated/pareto/schemas/lioncore/marshall.js +77 -64
- package/dist/implementation/generated/pareto/schemas/lioncore/serialize.d.ts +4 -0
- package/dist/implementation/generated/pareto/schemas/lioncore/serialize.js +41 -0
- package/dist/implementation/generated/pareto/schemas/lioncore/unmarshall.d.ts +1 -1
- package/dist/implementation/generated/pareto/schemas/lioncore/unmarshall.js +86 -72
- package/dist/implementation/generated/pareto/schemas/serialization_chunk/deserialize.d.ts +4 -0
- package/dist/implementation/generated/pareto/schemas/serialization_chunk/deserialize.js +34 -0
- package/dist/implementation/generated/pareto/schemas/serialization_chunk/marshall.d.ts +4 -0
- package/dist/implementation/generated/pareto/schemas/serialization_chunk/marshall.js +114 -0
- package/dist/implementation/generated/pareto/schemas/serialization_chunk/serialize.d.ts +4 -0
- package/dist/implementation/generated/pareto/schemas/serialization_chunk/serialize.js +41 -0
- package/dist/implementation/generated/pareto/schemas/serialization_chunk/unmarshall.d.ts +4 -0
- package/dist/implementation/generated/pareto/schemas/serialization_chunk/unmarshall.js +158 -0
- package/dist/implementation/generated/pareto/schemas/serialization_tree/deserialize.d.ts +4 -0
- package/dist/implementation/generated/pareto/schemas/serialization_tree/deserialize.js +34 -0
- package/dist/implementation/generated/pareto/schemas/serialization_tree/marshall.d.ts +4 -0
- package/dist/implementation/generated/pareto/schemas/serialization_tree/marshall.js +84 -0
- package/dist/implementation/generated/pareto/schemas/serialization_tree/serialize.d.ts +4 -0
- package/dist/implementation/generated/pareto/schemas/serialization_tree/serialize.js +41 -0
- package/dist/implementation/generated/pareto/schemas/serialization_tree/unmarshall.d.ts +4 -0
- package/dist/implementation/generated/pareto/schemas/serialization_tree/unmarshall.js +108 -0
- package/dist/interface/algorithms/procedures/unguaranteed/transform_lionweb_2023_1_language_to_astn.d.ts +1 -0
- package/dist/interface/algorithms/procedures/unguaranteed/transform_lionweb_2023_1_language_to_astn.js +5 -0
- package/dist/interface/algorithms/procedures/unguaranteed/transform_lionweb_2024_1_language_to_astn.d.ts +1 -0
- package/dist/interface/algorithms/procedures/unguaranteed/transform_lionweb_2024_1_language_to_astn.js +5 -0
- package/dist/interface/algorithms/transformations/2023_1_tree/2023_1_tree_to_M3.d.ts +1 -0
- package/dist/interface/algorithms/transformations/2023_1_tree/2023_1_tree_to_M3.js +5 -0
- package/dist/interface/algorithms/transformations/2024_1_tree/2024_1_tree_to_M3.d.ts +1 -0
- package/dist/interface/algorithms/transformations/2024_1_tree/2024_1_tree_to_M3.js +5 -0
- package/dist/interface/algorithms/transformations/serialization_format/serialization_format_to_tree.d.ts +1 -0
- package/dist/interface/algorithms/transformations/serialization_format/serialization_format_to_tree.js +5 -0
- package/dist/interface/generated/pareto/core/astn_source.d.ts +18 -3
- package/dist/interface/generated/pareto/core/astn_target.d.ts +7 -7
- package/dist/interface/generated/pareto/core/parse_result.d.ts +25 -0
- package/dist/interface/generated/pareto/core/parse_result.js +3 -0
- package/dist/interface/generated/pareto/core/resolve.d.ts +3 -3
- package/dist/interface/generated/pareto/core/resolved.d.ts +12 -12
- package/dist/interface/generated/pareto/core/token.d.ts +49 -0
- package/dist/interface/generated/pareto/core/token.js +3 -0
- package/dist/interface/generated/pareto/core/unconstrained.d.ts +3 -3
- package/dist/interface/generated/pareto/core/unresolved.d.ts +10 -10
- package/dist/interface/generated/pareto/schemas/lioncore/data_types/source.d.ts +465 -416
- package/dist/interface/generated/pareto/schemas/lioncore/data_types/target.d.ts +465 -416
- package/dist/interface/generated/pareto/schemas/lioncore/deserialize.d.ts +80 -0
- package/dist/interface/generated/pareto/schemas/lioncore/deserialize.js +3 -0
- package/dist/interface/generated/pareto/schemas/lioncore/marshall.d.ts +12 -12
- package/dist/interface/generated/pareto/schemas/lioncore/migrate_boilerplate.d.ts +15 -15
- package/dist/interface/generated/pareto/schemas/lioncore/serialize.d.ts +80 -0
- package/dist/interface/generated/pareto/schemas/lioncore/serialize.js +3 -0
- package/dist/interface/generated/pareto/schemas/lioncore/unmarshall.d.ts +13 -13
- package/dist/interface/generated/pareto/schemas/lioncore/value_deserializers.d.ts +10 -10
- package/dist/interface/generated/pareto/schemas/lioncore/value_serializers.d.ts +10 -10
- package/dist/interface/generated/pareto/schemas/{m3-normalized → serialization_chunk}/data_types/resolve.js +1 -1
- package/dist/interface/generated/pareto/schemas/serialization_chunk/data_types/source.d.ts +319 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/data_types/source.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/data_types/target.d.ts +319 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/data_types/target.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/deserialize.d.ts +80 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/deserialize.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/marshall.d.ts +93 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/marshall.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/migrate_boilerplate.d.ts +68 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/migrate_boilerplate.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/serialize.d.ts +80 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/serialize.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_chunk/unmarshall.d.ts +93 -0
- package/dist/{implementation/generated/pareto/schemas/m3-normalized → interface/generated/pareto/schemas/serialization_chunk}/unmarshall.js +1 -1
- package/dist/interface/generated/pareto/schemas/{m3-normalized → serialization_chunk}/value_deserializers.js +1 -1
- package/dist/interface/generated/pareto/schemas/serialization_chunk/value_serializers.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/data_types/resolve.js +7 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/data_types/source.d.ts +145 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/data_types/source.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/data_types/target.d.ts +145 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/data_types/target.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/deserialize.d.ts +80 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/deserialize.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/marshall.d.ts +93 -0
- package/dist/{implementation/generated/pareto/schemas/m3-normalized → interface/generated/pareto/schemas/serialization_tree}/marshall.js +1 -1
- package/dist/interface/generated/pareto/schemas/serialization_tree/migrate_boilerplate.d.ts +68 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/migrate_boilerplate.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/serialize.d.ts +80 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/serialize.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/unmarshall.d.ts +93 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/unmarshall.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/value_deserializers.d.ts +44 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/value_deserializers.js +3 -0
- package/dist/interface/generated/pareto/schemas/serialization_tree/value_serializers.d.ts +44 -0
- package/dist/interface/generated/pareto/schemas/{m3-normalized → serialization_tree}/value_serializers.js +1 -1
- package/dist/temp/purification/Error.d.ts +7 -0
- package/dist/temp/purification/Error.js +3 -0
- package/dist/temp/purification/expect_optional_property.d.ts +2 -0
- package/dist/temp/purification/expect_optional_property.js +8 -0
- package/dist/temp/purification/expect_property.d.ts +4 -0
- package/dist/temp/purification/expect_property.js +10 -0
- package/dist/temp/purification/expect_type.d.ts +4 -0
- package/dist/temp/purification/expect_type.js +17 -0
- package/dist/temp/purification/on_property_exists.d.ts +2 -0
- package/dist/temp/purification/on_property_exists.js +8 -0
- package/dist/temp/unmarshall_json/helpers.d.ts +10 -0
- package/dist/temp/unmarshall_json/helpers.js +3 -0
- package/dist/temp/unmarshall_json/refinement.d.ts +4 -0
- package/dist/temp/unmarshall_json/refinement.js +104 -0
- package/dist/temp/unmarshall_json/unmarshall.d.ts +1 -0
- package/dist/temp/unmarshall_json/unmarshall.js +39 -0
- package/package.json +6 -14
- package/dist/implementation/generated/pareto/schemas/m3-normalized/unmarshall.d.ts +0 -1
- package/dist/implementation/procedures/unguaranteed/transform_lionweb_2023_1_language_to_astn.d.ts +0 -2
- package/dist/implementation/procedures/unguaranteed/transform_lionweb_2023_1_language_to_astn.js +0 -61
- package/dist/implementation/procedures/unguaranteed/transform_lionweb_2024_1_language_to_astn.d.ts +0 -2
- package/dist/implementation/procedures/unguaranteed/transform_lionweb_2024_1_language_to_astn.js +0 -57
- package/dist/implementation/transformations/2023_1_tree/2023_1_tree_to_M3.d.ts +0 -6
- package/dist/implementation/transformations/2023_1_tree/2023_1_tree_to_M3.js +0 -179
- package/dist/implementation/transformations/2024_1_tree/2024_1_tree_to_M3.d.ts +0 -6
- package/dist/implementation/transformations/2024_1_tree/2024_1_tree_to_M3.js +0 -177
- package/dist/implementation/transformations/serialization_format/serialization_format_to_tree.d.ts +0 -7
- package/dist/implementation/transformations/serialization_format/serialization_format_to_tree.js +0 -75
- package/dist/interface/generated/pareto/schemas/m3-normalized/data_types/source.d.ts +0 -1
- package/dist/interface/generated/pareto/schemas/m3-normalized/data_types/source.js +0 -7
- package/dist/interface/generated/pareto/schemas/m3-normalized/data_types/target.d.ts +0 -1
- package/dist/interface/generated/pareto/schemas/m3-normalized/data_types/target.js +0 -7
- package/dist/interface/generated/pareto/schemas/m3-normalized/marshall.d.ts +0 -1
- package/dist/interface/generated/pareto/schemas/m3-normalized/marshall.js +0 -7
- package/dist/interface/generated/pareto/schemas/m3-normalized/migrate_boilerplate.d.ts +0 -1
- package/dist/interface/generated/pareto/schemas/m3-normalized/migrate_boilerplate.js +0 -7
- package/dist/interface/generated/pareto/schemas/m3-normalized/unmarshall.d.ts +0 -1
- package/dist/interface/generated/pareto/schemas/m3-normalized/unmarshall.js +0 -7
- package/dist/temp/expect_helpers.d.ts +0 -5
- package/dist/temp/expect_helpers.js +0 -55
- package/dist/temp/temp_2023_1.d.ts +0 -1
- package/dist/temp/temp_2023_1.js +0 -91
- package/dist/temp/temp_2024_1.d.ts +0 -1
- package/dist/temp/temp_2024_1.js +0 -100
- package/dist/temp/temp_astn_target_to_fountain_pen_block.d.ts +0 -4
- package/dist/temp/temp_astn_target_to_fountain_pen_block.js +0 -123
- package/dist/temp/types/LionWeb_serialization_format.d.ts +0 -38
- package/dist/temp/types/LionWeb_serialization_format.js +0 -3
- package/dist/temp/types/LionWeb_tree.d.ts +0 -18
- package/dist/temp/types/LionWeb_tree.js +0 -3
- package/dist/temp/unmarshall.d.ts +0 -4
- package/dist/temp/unmarshall.js +0 -99
- package/dist/interface/generated/pareto/schemas/{m3-normalized → serialization_chunk}/data_types/resolve.d.ts +0 -0
- package/dist/interface/generated/pareto/schemas/{m3-normalized → serialization_chunk}/value_deserializers.d.ts +10 -10
- package/dist/interface/generated/pareto/schemas/{m3-normalized → serialization_chunk}/value_serializers.d.ts +10 -10
- /package/dist/{implementation/generated/pareto/schemas/m3-normalized/marshall.d.ts → interface/generated/pareto/schemas/serialization_tree/data_types/resolve.d.ts} +0 -0
|
@@ -25,6 +25,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
const _eb = __importStar(require("exupery-core-bin"));
|
|
28
|
-
const transform_lionweb_2023_1_language_to_astn_1 = require("../implementation/procedures/unguaranteed/transform_lionweb_2023_1_language_to_astn");
|
|
29
|
-
_eb.
|
|
30
|
-
|
|
28
|
+
const transform_lionweb_2023_1_language_to_astn_1 = require("../implementation/algorithms/procedures/unguaranteed/transform_lionweb_2023_1_language_to_astn");
|
|
29
|
+
_eb.run_main_procedure(($r) => {
|
|
30
|
+
return (0, transform_lionweb_2023_1_language_to_astn_1.$$)({
|
|
31
|
+
'write file': $r.commands['write file'],
|
|
32
|
+
}, {
|
|
33
|
+
'read file': $r.queries['read file']
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmb3JtX2xpb253ZWJfMjAyM18xX2xhbmd1YWdlX3RvX2FzdG4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYmluL3RyYW5zZm9ybV9saW9ud2ViXzIwMjNfMV9sYW5ndWFnZV90b19hc3RuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRUEsc0RBQXVDO0FBRXZDLDhKQUFnSTtBQUloSSxHQUFHLENBQUMsa0JBQWtCLENBQ2xCLENBQUMsRUFBRSxFQUFFLEVBQUU7SUFDSCxPQUFPLElBQUEsOENBQVMsRUFDWjtRQUNJLFlBQVksRUFBRSxFQUFFLENBQUMsUUFBUSxDQUFDLFlBQVksQ0FBQztLQUMxQyxFQUNEO1FBQ0ksV0FBVyxFQUFFLEVBQUUsQ0FBQyxPQUFPLENBQUMsV0FBVyxDQUFDO0tBQ3ZDLENBQ0osQ0FBQTtBQUNMLENBQUMsQ0FDSixDQUFBIn0=
|
|
@@ -25,6 +25,12 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
25
25
|
};
|
|
26
26
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
27
|
const _eb = __importStar(require("exupery-core-bin"));
|
|
28
|
-
const transform_lionweb_2024_1_language_to_astn_1 = require("../implementation/procedures/unguaranteed/transform_lionweb_2024_1_language_to_astn");
|
|
29
|
-
_eb.
|
|
30
|
-
|
|
28
|
+
const transform_lionweb_2024_1_language_to_astn_1 = require("../implementation/algorithms/procedures/unguaranteed/transform_lionweb_2024_1_language_to_astn");
|
|
29
|
+
_eb.run_main_procedure(($r) => {
|
|
30
|
+
return (0, transform_lionweb_2024_1_language_to_astn_1.$$)({
|
|
31
|
+
'write file': $r.commands['write file'],
|
|
32
|
+
}, {
|
|
33
|
+
'read file': $r.queries['read file']
|
|
34
|
+
});
|
|
35
|
+
});
|
|
36
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmb3JtX2xpb253ZWJfMjAyNF8xX2xhbmd1YWdlX3RvX2FzdG4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvYmluL3RyYW5zZm9ybV9saW9ud2ViXzIwMjRfMV9sYW5ndWFnZV90b19hc3RuLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRUEsc0RBQXVDO0FBRXZDLDhKQUFnSTtBQUloSSxHQUFHLENBQUMsa0JBQWtCLENBQ2xCLENBQUMsRUFBRSxFQUFFLEVBQUU7SUFDSCxPQUFPLElBQUEsOENBQVMsRUFDWjtRQUNJLFlBQVksRUFBRSxFQUFFLENBQUMsUUFBUSxDQUFDLFlBQVksQ0FBQztLQUMxQyxFQUNEO1FBQ0ksV0FBVyxFQUFFLEVBQUUsQ0FBQyxPQUFPLENBQUMsV0FBVyxDQUFDO0tBQ3ZDLENBQ0osQ0FBQTtBQUNMLENBQUMsQ0FDSixDQUFBIn0=
|
package/dist/globals.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as _et from 'exupery-core-types';
|
|
2
|
+
import * as d_read_file from "exupery-resources/dist/interface/generated/pareto/schemas/read_file/data_types/source";
|
|
3
|
+
import * as d_write_file from "exupery-resources/dist/interface/generated/pareto/schemas/write_file/data_types/source";
|
|
4
|
+
import * as d_main from "exupery-resources/dist/interface/temp_main";
|
|
5
|
+
export type Query_Resources = {
|
|
6
|
+
'read file': _et.Query<d_read_file.Result, d_read_file.Error, d_read_file.Parameters>;
|
|
7
|
+
};
|
|
8
|
+
export type Command_Resources = {
|
|
9
|
+
'write file': _et.Command<d_write_file.Error, d_write_file.Parameters>;
|
|
10
|
+
};
|
|
11
|
+
export declare const $$: _et.Command_Procedure<d_main.Error, d_main.Parameters, Command_Resources, Query_Resources>;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.$$ = void 0;
|
|
27
|
+
const _easync = __importStar(require("exupery-core-async"));
|
|
28
|
+
const _ed = __importStar(require("exupery-core-dev"));
|
|
29
|
+
const temp_2023_1_1 = require("../../purifiers/temp_2023_1");
|
|
30
|
+
const t_read_file_to_fountain_pen = __importStar(require("exupery-resources/dist/implementation/transformers/read_file/fountain_pen"));
|
|
31
|
+
// import * as t_write_file_to_fountain_pen from "exupery-resources/dist/implementation/transformers/write_file/lines"
|
|
32
|
+
const t_fountain_pen_to_text = __importStar(require("pareto-fountain-pen/dist/implementation/algorithms/transformations/block/text"));
|
|
33
|
+
// const settings = {
|
|
34
|
+
// 'in': "./data/lioncore-2023-1.json",
|
|
35
|
+
// 'out filename': "lioncore-2023.1.lioncore-2023.1.astn",
|
|
36
|
+
// }
|
|
37
|
+
const settings = {
|
|
38
|
+
'in': "./data/SysML_lionweb_lionweb.json",
|
|
39
|
+
'out filename': "sysml.m3.astn",
|
|
40
|
+
};
|
|
41
|
+
exports.$$ = _easync.create_command_procedure(($p, $cr, $qr) => [
|
|
42
|
+
_easync.p.query_without_error_transformation($qr['read file']({
|
|
43
|
+
'path': settings['in'],
|
|
44
|
+
'escape spaces in path': true
|
|
45
|
+
}, ($) => {
|
|
46
|
+
_ed.log_debug_message(`could not read file: ${t_fountain_pen_to_text.Block_Part(t_read_file_to_fountain_pen.Error($), { 'indentation': ` ` })}`, () => { });
|
|
47
|
+
return { 'exit code': 1 };
|
|
48
|
+
}).refine(($) => (0, temp_2023_1_1.$$)($), // <-- this is it; the acutal logic
|
|
49
|
+
($) => {
|
|
50
|
+
_ed.log_debug_message(`error during processing`, () => { });
|
|
51
|
+
return { 'exit code': 1 };
|
|
52
|
+
}).transform_result(($) => {
|
|
53
|
+
return {
|
|
54
|
+
'path': {
|
|
55
|
+
'path': settings['out filename'],
|
|
56
|
+
'escape spaces in path': true,
|
|
57
|
+
},
|
|
58
|
+
'data': $
|
|
59
|
+
};
|
|
60
|
+
}), ($v) => [
|
|
61
|
+
$cr['write file'].execute($v, ($) => {
|
|
62
|
+
_ed.log_debug_message(`failed to write converted dataset to ${settings['out filename']}`, () => { });
|
|
63
|
+
return ({ 'exit code': 1 });
|
|
64
|
+
})
|
|
65
|
+
])
|
|
66
|
+
]);
|
|
67
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmb3JtX2xpb253ZWJfMjAyM18xX2xhbmd1YWdlX3RvX2FzdG4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvaW1wbGVtZW50YXRpb24vYWxnb3JpdGhtcy9wcm9jZWR1cmVzL3VuZ3VhcmFudGVlZC90cmFuc2Zvcm1fbGlvbndlYl8yMDIzXzFfbGFuZ3VhZ2VfdG9fYXN0bi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVBLDREQUE2QztBQUM3QyxzREFBdUM7QUFPdkMsNkRBQTREO0FBSzVELHVJQUF3SDtBQUN4SCxzSEFBc0g7QUFDdEgsc0lBQXVIO0FBRXZILHFCQUFxQjtBQUNyQiwyQ0FBMkM7QUFDM0MsOERBQThEO0FBQzlELElBQUk7QUFDSixNQUFNLFFBQVEs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0FBQyxDQUFDLEVBQTJCLEVBQUU7UUFDOUMsT0FBTztZQUNILE1BQU0sRUFBRTtnQkFDSixNQUFNLEVBQUUsUUFBUSxDQUFDLGNBQWMsQ0FBQztnQkFDaEMsdUJBQXVCLEVBQUUsSUFBSTthQUNoQztZQUNELE1BQU0sRUFBRSxDQUFDO1NBQ1osQ0FBQTtJQUNMLENBQUMsQ0FBQyxFQUNGLENBQUMsRUFBRSxFQUFFLEVBQUUsQ0FBQztRQUNKLEdBQUcsQ0FBQyxZQUFZLENBQUMsQ0FBQyxPQUFPLENBQ3JCLEVBQUUsRUFDRixDQUFDLENBQUMsRUFBRSxFQUFFO1lBQ0YsR0FBRyxDQUFDLGlCQUFpQixDQUFDLHdDQUF3QyxRQUFRLENBQUMsY0FBYyxDQUFDLEVBQUUsRUFBRSxHQUFHLEVBQUUsR0FBRyxDQUFDLENBQUMsQ0FBQTtZQUNwRyxPQUFPLENBQUMsRUFBRSxXQUFXLEVBQUUsQ0FBQyxFQUFFLENBQUMsQ0FBQTtRQUMvQixDQUFDLENBRUo7S0FDSixDQUNKO0NBQ0osQ0FDSixDQUFBIn0=
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as _et from 'exupery-core-types';
|
|
2
|
+
import * as d_read_file from "exupery-resources/dist/interface/generated/pareto/schemas/read_file/data_types/source";
|
|
3
|
+
import * as d_write_file from "exupery-resources/dist/interface/generated/pareto/schemas/write_file/data_types/source";
|
|
4
|
+
import * as d_main from "exupery-resources/dist/interface/temp_main";
|
|
5
|
+
export type Query_Resources = {
|
|
6
|
+
'read file': _et.Query<d_read_file.Result, d_read_file.Error, d_read_file.Parameters>;
|
|
7
|
+
};
|
|
8
|
+
export type Command_Resources = {
|
|
9
|
+
'write file': _et.Command<d_write_file.Error, d_write_file.Parameters>;
|
|
10
|
+
};
|
|
11
|
+
export declare const $$: _et.Command_Procedure<d_main.Error, d_main.Parameters, Command_Resources, Query_Resources>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.$$ = void 0;
|
|
27
|
+
const _easync = __importStar(require("exupery-core-async"));
|
|
28
|
+
const _ed = __importStar(require("exupery-core-dev"));
|
|
29
|
+
const temp_2024_1_1 = require("../../purifiers/temp_2024_1");
|
|
30
|
+
const t_read_file_to_fountain_pen = __importStar(require("exupery-resources/dist/implementation/transformers/read_file/fountain_pen"));
|
|
31
|
+
const t_fountain_pen_to_text = __importStar(require("pareto-fountain-pen/dist/implementation/algorithms/transformations/block/text"));
|
|
32
|
+
// const settings = {
|
|
33
|
+
// 'in': "./data/lioncore-2024-1.json",
|
|
34
|
+
// 'out filename': "lioncore-2024.1.lioncore-2024.1.astn",
|
|
35
|
+
// }
|
|
36
|
+
const settings = {
|
|
37
|
+
'in': "./data/SysML_lionweb_lionweb.json",
|
|
38
|
+
'out filename': "sysml.m3.astn",
|
|
39
|
+
};
|
|
40
|
+
exports.$$ = _easync.create_command_procedure(($p, $cr, $qr) => [
|
|
41
|
+
_easync.p.query_without_error_transformation($qr['read file']({
|
|
42
|
+
'path': settings['in'],
|
|
43
|
+
'escape spaces in path': true
|
|
44
|
+
}, ($) => {
|
|
45
|
+
_ed.log_debug_message(`could not read file: ${t_fountain_pen_to_text.Block_Part(t_read_file_to_fountain_pen.Error($), { 'indentation': ` ` })}`, () => { });
|
|
46
|
+
return { 'exit code': 1 };
|
|
47
|
+
}).refine(($) => (0, temp_2024_1_1.$$)($), // <-- this is it; the acutal logic
|
|
48
|
+
($) => {
|
|
49
|
+
_ed.log_debug_message(`error during processing`, () => { });
|
|
50
|
+
return { 'exit code': 1 };
|
|
51
|
+
}).transform_result(($) => {
|
|
52
|
+
return {
|
|
53
|
+
'path': {
|
|
54
|
+
'path': settings['out filename'],
|
|
55
|
+
'escape spaces in path': true,
|
|
56
|
+
},
|
|
57
|
+
'data': $
|
|
58
|
+
};
|
|
59
|
+
}), ($v) => [
|
|
60
|
+
$cr['write file'].execute($v, ($) => {
|
|
61
|
+
_ed.log_debug_message(`failed to write converted dataset to ${settings['out filename']}`, () => { });
|
|
62
|
+
return ({ 'exit code': 1 });
|
|
63
|
+
})
|
|
64
|
+
])
|
|
65
|
+
]);
|
|
66
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidHJhbnNmb3JtX2xpb253ZWJfMjAyNF8xX2xhbmd1YWdlX3RvX2FzdG4uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvaW1wbGVtZW50YXRpb24vYWxnb3JpdGhtcy9wcm9jZWR1cmVzL3VuZ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FDLENBQUMsRUFBRSxFQUFFLENBQUMsSUFBQSxnQkFBUSxFQUFDLENBQUMsQ0FBQyxFQUFFLG1DQUFtQztJQUl2RCxDQUFDLENBQUMsRUFBZ0IsRUFBRTtRQUNoQixHQUFHLENBQUMsaUJBQWlCLENBQUMseUJBQXlCLEVBQUUsR0FBRyxFQUFFLEdBQUcsQ0FBQyxDQUFDLENBQUE7UUFDM0QsT0FBTyxFQUFFLFdBQVcsRUFBRSxDQUFDLEVBQUUsQ0FBQTtJQUM3QixDQUFDLENBQ0osQ0FBQyxnQkFBZ0IsQ0FBQyxDQUFDLENBQUMsRUFBMkIsRUFBRTtRQUM5QyxPQUFPO1lBQ0gsTUFBTSxFQUFFO2dCQUNKLE1BQU0sRUFBRSxRQUFRLENBQUMsY0FBYyxDQUFDO2dCQUNoQyx1QkFBdUIsRUFBRSxJQUFJO2FBQ2hDO1lBQ0QsTUFBTSxFQUFFLENBQUM7U0FDWixDQUFBO0lBQ0wsQ0FBQyxDQUFDLEVBQ0YsQ0FBQyxFQUFFLEVBQUUsRUFBRSxDQUFDO1FBQ0osR0FBRyxDQUFDLFlBQVksQ0FBQyxDQUFDLE9BQU8sQ0FDckIsRUFBRSxFQUNGLENBQUMsQ0FBQyxFQUFFLEVBQUU7WUFDRixHQUFHLENBQUMsaUJBQWlCLENBQUMsd0NBQXdDLFFBQVEsQ0FBQyxjQUFjLENBQUMsRUFBRSxFQUFFLEdBQUcsRUFBRSxHQUFHLENBQUMsQ0FBQyxDQUFBO1lBQ3BHLE9BQU8sQ0FBQyxFQUFFLFdBQVcsRUFBRSxDQUFDLEVBQUUsQ0FBQyxDQUFBO1FBQy9CLENBQUMsQ0FFSjtLQUNKLENBQ0o7Q0FDSixDQUNKLENBQUEifQ==
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as _et from 'exupery-core-types';
|
|
2
|
+
import * as r_sf_to_tree from "../refinements/serialization_format/serialization_format_to_tree";
|
|
3
|
+
import { Unmarshall_Error } from "../refinements/context";
|
|
4
|
+
export type Some_Error = ['deserialization error', r_sf_to_tree.Deserialization_Error] | ['unmarshalling error', Unmarshall_Error];
|
|
5
|
+
export declare const $$: (file_content: string) => _et.Refinement_Result<string, Some_Error>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.$$ = void 0;
|
|
27
|
+
const _ea = __importStar(require("exupery-core-alg"));
|
|
28
|
+
const r_sf_to_tree = __importStar(require("../refinements/serialization_format/serialization_format_to_tree"));
|
|
29
|
+
const r_tree = __importStar(require("../refinements/2023_1_tree/2023_1_tree_to_M3"));
|
|
30
|
+
const m_x = __importStar(require("../../generated/pareto/schemas/lioncore/marshall"));
|
|
31
|
+
const serialize = __importStar(require("../../generated/pareto/generic/serialize"));
|
|
32
|
+
const context_1 = require("../refinements/context");
|
|
33
|
+
const unmarshall_1 = require("../../../temp/unmarshall_json/unmarshall");
|
|
34
|
+
const serializer_1 = require("pareto-standard-operations/dist/implementation/algorithms/integer/decimal/serializer");
|
|
35
|
+
const serializer_2 = require("pareto-standard-operations/dist/implementation/algorithms/boolean/true_false/serializer");
|
|
36
|
+
const temp_serialize_should_be_generated = (m3, $p) => {
|
|
37
|
+
return serialize.Document(m_x.M3(m3, $p));
|
|
38
|
+
};
|
|
39
|
+
const $$ = (file_content) => {
|
|
40
|
+
return _ea.create_refinement_context(($) => ['deserialization error', $], abort => {
|
|
41
|
+
return r_sf_to_tree.Serialization_Chunk({
|
|
42
|
+
'chunk': (0, unmarshall_1.temp_json_unmarshall_should_be_done_extenally)(file_content),
|
|
43
|
+
}, abort);
|
|
44
|
+
}).refine(($) => {
|
|
45
|
+
return _ea.create_refinement_context(($) => ['unmarshalling error', $], abort => {
|
|
46
|
+
return r_tree.M3({
|
|
47
|
+
$: $,
|
|
48
|
+
'write id': false
|
|
49
|
+
}, (0, context_1.create_context)(abort));
|
|
50
|
+
});
|
|
51
|
+
}, ($) => $).transform_result(($) => {
|
|
52
|
+
return temp_serialize_should_be_generated($, {
|
|
53
|
+
'value serializers': {
|
|
54
|
+
'boolean': ($) => (0, serializer_2.$$)($),
|
|
55
|
+
'default number': ($) => (0, serializer_1.$$)($),
|
|
56
|
+
'custom numbers': null
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
exports.$$ = $$;
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcF8yMDIzXzEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvaW1wbGVtZ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7WUFDSixPQUFPLE1BQU0sQ0FBQyxFQUFFLENBQ1o7Z0JBQ0ksQ0FBQyxFQUFFLENBQUM7Z0JBQ0osVUFBVSxFQUFFLEtBQUs7YUFDcEIsRUFDRCxJQUFBLHdCQUFjLEVBQUMsS0FBSyxDQUFDLENBQ3hCLENBQUE7UUFDTCxDQUFDLENBQ0osQ0FBQTtJQUNMLENBQUMsRUFDRCxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUNYLENBQUMsZ0JBQWdCLENBQ2QsQ0FBQyxDQUFDLEVBQUUsRUFBRTtRQUNGLE9BQU8sa0NBQWtDLENBQ3JDLENBQUMsRUFDRDtZQUNJLG1CQUFtQixFQUFFO2dCQUNqQixTQUFTLEVBQUUsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLElBQUEsZUFBaUIsRUFBQyxDQUFDLENBQUM7Z0JBQ3RDLGdCQUFnQixFQUFFLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxJQUFBLGVBQWlCLEVBQUMsQ0FBQyxDQUFDO2dCQUM3QyxnQkFBZ0IsRUFBRSxJQUFJO2FBQ3pCO1NBQ0osQ0FDSixDQUFBO0lBQ0wsQ0FBQyxDQUNKLENBQUE7QUFFTCxDQUFDLENBQUE7QUEvQ1ksUUFBQSxFQUFFLE1BK0NkIn0=
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as _et from 'exupery-core-types';
|
|
2
|
+
import * as r_sf_to_tree from "../refinements/serialization_format/serialization_format_to_tree";
|
|
3
|
+
import { Unmarshall_Error } from "../refinements/context";
|
|
4
|
+
export type Some_Error = ['deserialization error', r_sf_to_tree.Deserialization_Error] | ['unmarshalling error', Unmarshall_Error];
|
|
5
|
+
export declare const $$: (file_content: string) => _et.Refinement_Result<string, Some_Error>;
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.$$ = void 0;
|
|
27
|
+
const _ea = __importStar(require("exupery-core-alg"));
|
|
28
|
+
const r_sf_to_tree = __importStar(require("../refinements/serialization_format/serialization_format_to_tree"));
|
|
29
|
+
const r_tree = __importStar(require("../refinements/2024_1_tree/2024_1_tree_to_M3"));
|
|
30
|
+
const m_x = __importStar(require("../../generated/pareto/schemas/lioncore/marshall"));
|
|
31
|
+
const serialize = __importStar(require("../../generated/pareto/generic/serialize"));
|
|
32
|
+
const serializer_1 = require("pareto-standard-operations/dist/implementation/algorithms/integer/decimal/serializer");
|
|
33
|
+
const serializer_2 = require("pareto-standard-operations/dist/implementation/algorithms/boolean/true_false/serializer");
|
|
34
|
+
const context_1 = require("../refinements/context");
|
|
35
|
+
const unmarshall_1 = require("../../../temp/unmarshall_json/unmarshall");
|
|
36
|
+
const temp_serialize_should_be_generated = (m3, $p) => {
|
|
37
|
+
return serialize.Document(m_x.M3(m3, $p));
|
|
38
|
+
};
|
|
39
|
+
const $$ = (file_content) => {
|
|
40
|
+
return _ea.create_refinement_context(($) => ['deserialization error', $], abort => {
|
|
41
|
+
return r_sf_to_tree.Serialization_Chunk({
|
|
42
|
+
'chunk': (0, unmarshall_1.temp_json_unmarshall_should_be_done_extenally)(file_content),
|
|
43
|
+
}, abort);
|
|
44
|
+
}).refine(($) => {
|
|
45
|
+
return _ea.create_refinement_context(($) => ['unmarshalling error', $], abort => {
|
|
46
|
+
return r_tree.M3({
|
|
47
|
+
$: $,
|
|
48
|
+
'write id': false
|
|
49
|
+
}, (0, context_1.create_context)(abort));
|
|
50
|
+
});
|
|
51
|
+
}, ($) => $).transform_result(($) => {
|
|
52
|
+
return temp_serialize_should_be_generated($, {
|
|
53
|
+
'value serializers': {
|
|
54
|
+
'boolean': ($) => (0, serializer_2.$$)($),
|
|
55
|
+
'default number': ($) => (0, serializer_1.$$)($),
|
|
56
|
+
'custom numbers': null
|
|
57
|
+
}
|
|
58
|
+
});
|
|
59
|
+
});
|
|
60
|
+
};
|
|
61
|
+
exports.$$ = $$;
|
|
62
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGVtcF8yMDI0XzEuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvaW1wbGVtZW50YXRpb24vYWxnb3JpdGhtcy9wdXJpZmllcnMvdGVtcF8yMDI0XzEudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFBQSxzREFBdUM7QUFTdkMsK0dBQWdHO0FBQ2hHLHFGQUFzRTtBQUV0RSxzRkFBdUU7QUFFdkUs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RCxDQUFDLENBQUMsRUFBRSxFQUFFLENBQUMsQ0FBQyxDQUNYLENBQUMsZ0JBQWdCLENBQ2QsQ0FBQyxDQUFDLEVBQUUsRUFBRTtRQUNGLE9BQU8sa0NBQWtDLENBQ3JDLENBQUMsRUFDRDtZQUNJLG1CQUFtQixFQUFFO2dCQUNqQixTQUFTLEVBQUUsQ0FBQyxDQUFDLEVBQUUsRUFBRSxDQUFDLElBQUEsZUFBaUIsRUFBQyxDQUFDLENBQUM7Z0JBQ3RDLGdCQUFnQixFQUFFLENBQUMsQ0FBQyxFQUFFLEVBQUUsQ0FBQyxJQUFBLGVBQWlCLEVBQUMsQ0FBQyxDQUFDO2dCQUM3QyxnQkFBZ0IsRUFBRSxJQUFJO2FBQ3pCO1NBQ0osQ0FDSixDQUFBO0lBQ0wsQ0FBQyxDQUNKLENBQUE7QUFFTCxDQUFDLENBQUE7QUEvQ1ksUUFBQSxFQUFFLE1BK0NkIn0=
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as d_in from "../../../../interface/generated/pareto/schemas/serialization_tree/data_types/source";
|
|
2
|
+
import * as d_out from "../../../../interface/generated/pareto/schemas/lioncore/data_types/target";
|
|
3
|
+
import * as h from "../context";
|
|
4
|
+
export declare const ID: ($: d_in.Node, id: string, write_id: boolean, context: h.Refinement_Context) => d_out.ID;
|
|
5
|
+
export declare const M3: ($p: {
|
|
6
|
+
$: d_in.Serialization_Chunk;
|
|
7
|
+
"write id": boolean;
|
|
8
|
+
}, context: h.Refinement_Context) => d_out.M3;
|
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
+
exports.M3 = exports.ID = void 0;
|
|
27
|
+
const _ea = __importStar(require("exupery-core-alg"));
|
|
28
|
+
const on_property_exists_1 = require("../../../../temp/purification/on_property_exists");
|
|
29
|
+
const expect_exactly_one_element_1 = require("pareto-standard-operations/dist/implementation/algorithms/operations/impure/list/expect_exactly_one_element");
|
|
30
|
+
const ID = ($, id, write_id, context) => {
|
|
31
|
+
return !write_id
|
|
32
|
+
? _ea.not_set()
|
|
33
|
+
: _ea.set({
|
|
34
|
+
'key': context.expect_property($.properties, "LionCore-M3:2023.1:IKeyed-key", id),
|
|
35
|
+
'id': id,
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
exports.ID = ID;
|
|
39
|
+
const M3 = ($p, context) => {
|
|
40
|
+
return {
|
|
41
|
+
'id': (0, exports.ID)($p.$['node tree'], $p.$['root node id'], $p['write id'], context),
|
|
42
|
+
'version': context.expect_property($p.$['node tree'].properties, "LionCore-M3:2023.1:Language-version", "version"),
|
|
43
|
+
'entities': context.rekey(context.expect_property($p.$['node tree'].containments, "LionCore-M3:2023.1:Language-entities", "entities").map(($, key) => {
|
|
44
|
+
const entity_id = key;
|
|
45
|
+
return {
|
|
46
|
+
'key': context.expect_property($.properties, "LionCore-builtins:2023.1:LionCore-builtins-INamed-name", `entities/${entity_id}`),
|
|
47
|
+
'value': {
|
|
48
|
+
'id': (0, exports.ID)($, key, $p['write id'], context),
|
|
49
|
+
'type': _ea.block(() => {
|
|
50
|
+
context.expect_type($.properties, _ea.dictionary_literal({
|
|
51
|
+
"LionCore-M3:2023.1:IKeyed-key": null,
|
|
52
|
+
"LionCore-builtins:2023.1:LionCore-builtins-INamed-name": null,
|
|
53
|
+
"LionCore-M3:2023.1:Concept-abstract": null,
|
|
54
|
+
"LionCore-M3:2023.1:Concept-partition": null,
|
|
55
|
+
}), "entity " + key + " properties");
|
|
56
|
+
context.expect_type($.containments, _ea.dictionary_literal({
|
|
57
|
+
"LionCore-M3:2023.1:Classifier-features": null,
|
|
58
|
+
"LionCore-M3:2023.1:Enumeration-literals": null,
|
|
59
|
+
}), "entity " + key + " containments");
|
|
60
|
+
context.expect_type($.references, _ea.dictionary_literal({
|
|
61
|
+
"LionCore-M3:2023.1:Concept-extends": null,
|
|
62
|
+
"LionCore-M3:2023.1:Concept-implements": null,
|
|
63
|
+
"LionCore-M3:2023.1:Interface-extends": null,
|
|
64
|
+
}), "entity " + key + " references");
|
|
65
|
+
switch ($.classifier) {
|
|
66
|
+
case "LionCore-M3:2023.1:Concept":
|
|
67
|
+
case "LionCore-M3:2023.1:Interface":
|
|
68
|
+
{
|
|
69
|
+
return ['classifier', {
|
|
70
|
+
'features': context.rekey(context.expect_property($.containments, "LionCore-M3:2023.1:Classifier-features", "features of entity " + key).map(($, key) => {
|
|
71
|
+
const feature_id = entity_id + ">" + key;
|
|
72
|
+
context.expect_type($.properties, _ea.dictionary_literal({
|
|
73
|
+
"LionCore-M3:2023.1:IKeyed-key": null,
|
|
74
|
+
"LionCore-builtins:2023.1:LionCore-builtins-INamed-name": null,
|
|
75
|
+
"LionCore-M3:2023.1:Feature-optional": null,
|
|
76
|
+
"LionCore-M3:2023.1:Link-multiple": null,
|
|
77
|
+
}), "feature properties of entity " + feature_id);
|
|
78
|
+
context.expect_type($.references, _ea.dictionary_literal({
|
|
79
|
+
"LionCore-M3:2023.1:Link-type": null,
|
|
80
|
+
"LionCore-M3:2023.1:Property-type": null,
|
|
81
|
+
}), "feature references of entity " + feature_id);
|
|
82
|
+
context.expect_type($.containments, _ea.dictionary_literal({
|
|
83
|
+
//empty
|
|
84
|
+
}), "feature containments of entity " + feature_id);
|
|
85
|
+
//FIXME
|
|
86
|
+
return {
|
|
87
|
+
'key': context.expect_property($.properties, key, "LionCore-builtins:2023.1:LionCore-builtins-INamed-name"),
|
|
88
|
+
'value': {
|
|
89
|
+
'id': (0, exports.ID)($, key, $p['write id'], context),
|
|
90
|
+
'optional': context.expect_property($.properties, "LionCore-M3:2023.1:Feature-optional", "optional property of feature: " + feature_id),
|
|
91
|
+
'type': (0, on_property_exists_1.$$)($.references, "LionCore-M3:2023.1:Link-type", (_dont_use_) => {
|
|
92
|
+
return ['link', {
|
|
93
|
+
'multiple': context.expect_property($.properties, "LionCore-M3:2023.1:Link-multiple", "multiple property of link: " + feature_id),
|
|
94
|
+
'type': (0, expect_exactly_one_element_1.$$)(context.expect_property($.references, "LionCore-M3:2023.1:Link-type", "type property of link: " + feature_id)).transform(($) => $, () => context.abort(['expected exactly one element for link type of feature', feature_id])),
|
|
95
|
+
'link type': _ea.cc($.classifier, ($) => {
|
|
96
|
+
switch ($) {
|
|
97
|
+
case "LionCore-M3:2023.1:Reference":
|
|
98
|
+
return ['reference', null];
|
|
99
|
+
case "LionCore-M3:2023.1:Containment":
|
|
100
|
+
return ['containment', null];
|
|
101
|
+
default: return context.abort(['unknown feature classifier type', feature_id]);
|
|
102
|
+
}
|
|
103
|
+
})
|
|
104
|
+
}];
|
|
105
|
+
}, () => {
|
|
106
|
+
return ['property', {
|
|
107
|
+
'type': (0, expect_exactly_one_element_1.$$)(context.expect_property($.references, "LionCore-M3:2023.1:Property-type", "type property of property: " + feature_id)).transform(($) => $, () => context.abort(['expected exactly one element for property type of feature', feature_id])),
|
|
108
|
+
}];
|
|
109
|
+
}),
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
})),
|
|
113
|
+
'type': _ea.block(() => {
|
|
114
|
+
switch ($.classifier) {
|
|
115
|
+
case "LionCore-M3:2023.1:Concept": {
|
|
116
|
+
return ['concept', {
|
|
117
|
+
'abstract': context.expect_property($.properties, "LionCore-M3:2023.1:Concept-abstract", "concept " + key),
|
|
118
|
+
'partition': context.expect_property($.properties, "LionCore-M3:2023.1:Concept-partition", "concept " + key),
|
|
119
|
+
'extends': (0, expect_exactly_one_element_1.$$)(context.expect_property($.references, "LionCore-M3:2023.1:Concept-extends", "concept " + key)),
|
|
120
|
+
'implements': context.expect_property($.references, "LionCore-M3:2023.1:Concept-implements", "concept " + key),
|
|
121
|
+
}];
|
|
122
|
+
}
|
|
123
|
+
case "LionCore-M3:2023.1:Interface": {
|
|
124
|
+
return ['interface', {
|
|
125
|
+
'extends': context.expect_property($.references, "LionCore-M3:2023.1:Interface-extends", "interface " + key),
|
|
126
|
+
}];
|
|
127
|
+
}
|
|
128
|
+
default: return context.abort(['unknown classifier type', entity_id]);
|
|
129
|
+
}
|
|
130
|
+
})
|
|
131
|
+
}];
|
|
132
|
+
}
|
|
133
|
+
case "LionCore-M3:2023.1:Enumeration": {
|
|
134
|
+
// temp_log_node(`Enumeration ${key}`, $)
|
|
135
|
+
return ['datatype', ['enumeration', context.rekey(context.expect_property($.containments, "LionCore-M3:2023.1:Enumeration-literals", "literals of enumeration " + key).map(($, key) => {
|
|
136
|
+
context.expect_type($.properties, _ea.dictionary_literal({
|
|
137
|
+
"LionCore-M3:2023.1:IKeyed-key": null,
|
|
138
|
+
"LionCore-builtins:2023.1:LionCore-builtins-INamed-name": null,
|
|
139
|
+
}), "literal properties of enumeration " + key);
|
|
140
|
+
context.expect_type($.references, _ea.dictionary_literal({
|
|
141
|
+
//empty
|
|
142
|
+
}), "literal references of enumeration " + key);
|
|
143
|
+
context.expect_type($.containments, _ea.dictionary_literal({
|
|
144
|
+
//empty
|
|
145
|
+
}), "literal containments of enumeration " + key);
|
|
146
|
+
return {
|
|
147
|
+
'key': context.expect_property($.properties, "LionCore-builtins:2023.1:LionCore-builtins-INamed-name", key),
|
|
148
|
+
'value': (0, exports.ID)($, key, $p['write id'], context),
|
|
149
|
+
};
|
|
150
|
+
}))]];
|
|
151
|
+
}
|
|
152
|
+
default: return context.abort(['unknown entity classifier type', entity_id]);
|
|
153
|
+
}
|
|
154
|
+
})
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
})),
|
|
158
|
+
'dependencies': context.expect_property($p.$['node tree'].references, "LionCore-M3:2023.1:Language-dependsOn", "dependencies").map(($) => {
|
|
159
|
+
return {
|
|
160
|
+
'resolveInfo': $.resolveInfo,
|
|
161
|
+
'reference': $.reference
|
|
162
|
+
};
|
|
163
|
+
}),
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
exports.M3 = M3;
|
|
167
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMjAyM18xX3RyZWVfdG9fTTMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9zcmMvaW1wbGVtZW50YXRpb24vYWxnb3JpdGhtcy9yZWZpbmVtZW50cy8yMDIzXzFfdHJlZS8yMDIzXzFfdHJlZV90b19NMy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OztBQUVBLHNEQUF1QztBQUt2Qyx5RkFBMkY7QUFFM0YsNEpBQXlKO0FBUWxKLE1BQU0sRUFBRSxHQUFHLENBQ2QsQ0FBWSxFQUNaLEVBQVUsRUFDVixRQUFpQ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BQyxlQUFlLENBQzFCLENBQUMsQ0FBQyxVQUFVLEVBQ1osd0RBQXdELEVBQ3hELEdBQUcsQ0FDTjtnREFDRCxPQUFPLEVBQUUsSUFBQSxVQUFFLEVBQUMsQ0FBQyxFQUFFLEdBQUcsRUFBRSxFQUFFLENBQUMsVUFBVSxDQUFDLEVBQUUsT0FBTyxDQUFDOzZDQUMvQyxDQUFBO3dDQUNMLENBQUMsQ0FBQyxDQUNMLENBQUMsQ0FBQyxDQUFBOzRCQUNQLENBQUM7NEJBQ0QsT0FBTyxDQUFDLENBQUMsT0FBTyxPQUFPLENBQUMsS0FBSyxDQUFDLENBQUMsZ0NBQWdDLEVBQUUsU0FBUyxDQUFDLENBQUMsQ0FBQTt3QkFDaEYsQ0FBQztvQkFDTCxDQUFDLENBQUM7aUJBQ0w7YUFDSixDQUFBO1FBQ0wsQ0FBQyxDQUFDLENBQ0w7UUFDRCxjQUFjLEVBQUUsT0FBTyxDQUFDLGVBQWUsQ0FDbkMsRUFBRSxDQUFDLENBQUMsQ0FBQyxXQUFXLENBQUMsQ0FBQyxVQUFVLEVBQzVCLHVDQUF1QyxFQUN2QyxjQUFjLENBQ2pCLENBQUMsR0FBRyxDQUFDLENBQUMsQ0FBQyxFQUFFLEVBQUU7WUFDUixPQUFPO2dCQUNILGFBQWEsRUFBRSxDQUFDLENBQUMsV0FBVztnQkFDNUIsV0FBVyxFQUFFLENBQUMsQ0FBQyxTQUFTO2FBQzNCLENBQUE7UUFDTCxDQUFDLENBQUM7S0FDTCxDQUFBO0FBQ0wsQ0FBQyxDQUFBO0FBL1BZLFFBQUEsRUFBRSxNQStQZCJ9
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as d_in from "../../../../interface/generated/pareto/schemas/serialization_tree/data_types/source";
|
|
2
|
+
import * as d_out from "../../../../interface/generated/pareto/schemas/lioncore/data_types/target";
|
|
3
|
+
import * as h from "../context";
|
|
4
|
+
export declare const ID: ($: d_in.Node, id: string, write_id: boolean, context: h.Refinement_Context) => d_out.ID;
|
|
5
|
+
export declare const M3: ($p: {
|
|
6
|
+
$: d_in.Serialization_Chunk;
|
|
7
|
+
"write id": boolean;
|
|
8
|
+
}, context: h.Refinement_Context) => d_out.M3;
|