pareto-core 0.1.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/dist/__internals/async/asynchronous_collection_builder.d.ts +12 -0
- package/dist/__internals/async/asynchronous_collection_builder.js +35 -0
- package/dist/__internals/async/create_asynchronous_processes_monitor.d.ts +15 -0
- package/dist/__internals/async/create_asynchronous_processes_monitor.js +53 -0
- package/dist/__internals/async/create_refinement_context.d.ts +5 -0
- package/dist/__internals/async/create_refinement_context.js +29 -0
- package/dist/__internals/sync/expression/decide/index.d.ts +6 -0
- package/dist/__internals/sync/expression/decide/index.js +10 -0
- package/dist/__internals/sync/expression/decide/state_group/assert_unreachable.d.ts +15 -0
- package/dist/__internals/sync/expression/decide/state_group/assert_unreachable.js +21 -0
- package/dist/__internals/sync/expression/decide/state_group/select.d.ts +15 -0
- package/dist/__internals/sync/expression/decide/state_group/select.js +21 -0
- package/dist/__internals/sync/expression/decide/state_group/switch_state.d.ts +19 -0
- package/dist/__internals/sync/expression/decide/state_group/switch_state.js +24 -0
- package/dist/__internals/sync/expression/initialize.d.ts +66 -0
- package/dist/__internals/sync/expression/initialize.js +302 -0
- package/dist/__internals/sync/expression/literals/dictionary.d.ts +11 -0
- package/dist/__internals/sync/expression/literals/dictionary.js +110 -0
- package/dist/__internals/sync/expression/literals/list.d.ts +2 -0
- package/dist/__internals/sync/expression/literals/list.js +90 -0
- package/dist/__internals/sync/expression/literals/optional.d.ts +3 -0
- package/dist/__internals/sync/expression/literals/optional.js +48 -0
- package/dist/__internals/sync/expression/special.d.ts +49 -0
- package/dist/__internals/sync/expression/special.js +107 -0
- package/dist/__internals/sync/extracts/literal.d.ts +20 -0
- package/dist/__internals/sync/extracts/literal.js +54 -0
- package/dist/__internals/sync/get_location_info.d.ts +8 -0
- package/dist/__internals/sync/get_location_info.js +41 -0
- package/dist/command/Command_Block.d.ts +3 -0
- package/dist/command/Command_Block.js +3 -0
- package/dist/command/command.d.ts +2 -0
- package/dist/command/command.js +19 -0
- package/dist/command/command_procedure.d.ts +3 -0
- package/dist/command/command_procedure.js +22 -0
- package/dist/command/command_promise.d.ts +17 -0
- package/dist/command/command_promise.js +29 -0
- package/dist/command/handle_command_block.d.ts +3 -0
- package/dist/command/handle_command_block.js +21 -0
- package/dist/command/index.d.ts +10 -0
- package/dist/command/index.js +29 -0
- package/dist/command/statement.d.ts +27 -0
- package/dist/command/statement.js +271 -0
- package/dist/deserializer.d.ts +4 -0
- package/dist/deserializer.js +15 -0
- package/dist/interface/Deprecated_Source_Location.d.ts +5 -0
- package/dist/interface/Deprecated_Source_Location.js +3 -0
- package/dist/interface/Raw_Optional_Value.d.ts +1 -0
- package/dist/interface/Raw_Optional_Value.js +3 -0
- package/dist/interface/algorithm_signatures/Command.d.ts +8 -0
- package/dist/interface/algorithm_signatures/Command.js +3 -0
- package/dist/interface/algorithm_signatures/Deserializer.d.ts +17 -0
- package/dist/interface/algorithm_signatures/Deserializer.js +3 -0
- package/dist/interface/algorithm_signatures/Production.d.ts +6 -0
- package/dist/interface/algorithm_signatures/Production.js +3 -0
- package/dist/interface/algorithm_signatures/Query.d.ts +3 -0
- package/dist/interface/algorithm_signatures/Query.js +3 -0
- package/dist/interface/algorithm_signatures/Query_Function.d.ts +1 -0
- package/dist/interface/algorithm_signatures/Query_Function.js +3 -0
- package/dist/interface/algorithm_signatures/Refiner.d.ts +5 -0
- package/dist/interface/algorithm_signatures/Refiner.js +3 -0
- package/dist/interface/algorithm_signatures/Serializer.d.ts +9 -0
- package/dist/interface/algorithm_signatures/Serializer.js +3 -0
- package/dist/interface/algorithm_signatures/Transformer.d.ts +2 -0
- package/dist/interface/algorithm_signatures/Transformer.js +3 -0
- package/dist/interface/data/Circular_Dependency.d.ts +8 -0
- package/dist/interface/data/Circular_Dependency.js +3 -0
- package/dist/interface/data/Dictionary.d.ts +29 -0
- package/dist/interface/data/Dictionary.js +3 -0
- package/dist/interface/data/List.d.ts +26 -0
- package/dist/interface/data/List.js +3 -0
- package/dist/interface/data/Optional_Value.d.ts +16 -0
- package/dist/interface/data/Optional_Value.js +3 -0
- package/dist/interface/globals.d.ts +20 -0
- package/dist/interface/globals.js +2 -0
- package/dist/interface/index.d.ts +14 -0
- package/dist/interface/index.js +31 -0
- package/dist/interface/interfaces.d.ts +54 -0
- package/dist/interface/interfaces.js +3 -0
- package/dist/query/expression.d.ts +6 -0
- package/dist/query/expression.js +49 -0
- package/dist/query/index.d.ts +6 -0
- package/dist/query/index.js +23 -0
- package/dist/query/query.d.ts +4 -0
- package/dist/query/query.js +15 -0
- package/dist/query/query_function.d.ts +2 -0
- package/dist/query/query_function.js +15 -0
- package/dist/query/query_result.d.ts +10 -0
- package/dist/query/query_result.js +97 -0
- package/dist/refiner/index.d.ts +8 -0
- package/dist/refiner/index.js +45 -0
- package/dist/refiner/resolve.d.ts +176 -0
- package/dist/refiner/resolve.js +289 -0
- package/dist/serializer.d.ts +6 -0
- package/dist/serializer.js +33 -0
- package/dist/transformer/deprecated_shorthands_for_unresolved.d.ts +40 -0
- package/dist/transformer/deprecated_shorthands_for_unresolved.js +77 -0
- package/dist/transformer/index.d.ts +4 -0
- package/dist/transformer/index.js +24 -0
- package/package.json +26 -0
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.location_to_string = exports.iterate = void 0;
|
|
4
|
+
exports.assert = assert;
|
|
5
|
+
exports.deprecated_block = deprecated_block;
|
|
6
|
+
exports.deprecated_cc = deprecated_cc;
|
|
7
|
+
exports.panic = panic;
|
|
8
|
+
exports.unreachable_code_path = unreachable_code_path;
|
|
9
|
+
function assert(abort_callback, tester, normal_flow) {
|
|
10
|
+
const test_result = tester();
|
|
11
|
+
test_result.__extract_data(($) => {
|
|
12
|
+
abort_callback($);
|
|
13
|
+
}, () => {
|
|
14
|
+
});
|
|
15
|
+
return normal_flow();
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
*
|
|
19
|
+
* this function allows to create a statement block in an expression (without changing the context)
|
|
20
|
+
*
|
|
21
|
+
* example:
|
|
22
|
+
*
|
|
23
|
+
* const result = 5 + (() => {
|
|
24
|
+
* const intermediate_variable = 4
|
|
25
|
+
* return intermediate_variable
|
|
26
|
+
* })
|
|
27
|
+
*/
|
|
28
|
+
function deprecated_block(callback) {
|
|
29
|
+
return callback();
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* cc means 'change context'. It creates a new scope in which a variable name can be used again
|
|
33
|
+
* (usually '$', a variable name that indicates the current context in exupery)
|
|
34
|
+
*
|
|
35
|
+
* example:
|
|
36
|
+
*
|
|
37
|
+
* cc($[1], ($) => {
|
|
38
|
+
* //here $[1] has become $
|
|
39
|
+
* })
|
|
40
|
+
*
|
|
41
|
+
* @param input
|
|
42
|
+
* @param callback
|
|
43
|
+
* @returns
|
|
44
|
+
*/
|
|
45
|
+
function deprecated_cc(input, callback) {
|
|
46
|
+
return callback(input);
|
|
47
|
+
}
|
|
48
|
+
const iterate = ($, handler) => {
|
|
49
|
+
const length = $.__get_number_of_elements();
|
|
50
|
+
let position = 0;
|
|
51
|
+
return handler({
|
|
52
|
+
'look': () => {
|
|
53
|
+
return $.__get_element_at_raw(position);
|
|
54
|
+
},
|
|
55
|
+
'look ahead': (offset) => {
|
|
56
|
+
return $.__get_element_at_raw(position + offset);
|
|
57
|
+
},
|
|
58
|
+
'consume': (callback, abort) => {
|
|
59
|
+
const current = $.__get_element_at(position, () => abort(position));
|
|
60
|
+
position += 1;
|
|
61
|
+
const result = callback(current, position);
|
|
62
|
+
return result;
|
|
63
|
+
},
|
|
64
|
+
'discard': (callback) => {
|
|
65
|
+
position += 1;
|
|
66
|
+
return callback();
|
|
67
|
+
},
|
|
68
|
+
'get position': () => {
|
|
69
|
+
return position;
|
|
70
|
+
},
|
|
71
|
+
'assert finished': (callback, abort) => {
|
|
72
|
+
const result = callback();
|
|
73
|
+
if (position < length) {
|
|
74
|
+
return abort(null);
|
|
75
|
+
}
|
|
76
|
+
return result;
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
};
|
|
80
|
+
exports.iterate = iterate;
|
|
81
|
+
const location_to_string = ($) => {
|
|
82
|
+
return `${$.file}:${$.line}:${$.column}`;
|
|
83
|
+
};
|
|
84
|
+
exports.location_to_string = location_to_string;
|
|
85
|
+
/**
|
|
86
|
+
* call this function if an error is en encountered that is unrecoverable
|
|
87
|
+
* and the application should terminate immediately
|
|
88
|
+
* this avoids throwing an Error because those can always be caught, which could lead to
|
|
89
|
+
* misuse of library functionality
|
|
90
|
+
*
|
|
91
|
+
* @param message message to be printed on stderr
|
|
92
|
+
*/
|
|
93
|
+
function panic(...message) {
|
|
94
|
+
throw new Error(`PANIC: ${message.join(" ")}`);
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* call this function if an error is en encountered that is unrecoverable
|
|
98
|
+
* and the application should terminate immediately
|
|
99
|
+
* this avoids throwing an Error because those can always be caught, which could lead to
|
|
100
|
+
* misuse of library functionality
|
|
101
|
+
*
|
|
102
|
+
* @param message message to be printed on stderr
|
|
103
|
+
*/
|
|
104
|
+
function unreachable_code_path() {
|
|
105
|
+
throw new Error(`PANIC; this should have been an unreachable code path`);
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3BlY2lhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9fX2ludGVybmFscy9zeW5jL2V4cHJlc3Npb24vc3BlY2lhbC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFHQSx3QkFlQztBQWFELDRDQUVDO0FBZ0JELHNDQUVDO0FBNkRELHNCQUVDO0FBVUQsc0RBRUM7QUEzSEQsU0FBZ0IsTUFBTSxDQUNsQixjQUFnQyxFQUNoQyxNQUF1QyxFQUN2QyxXQUE4QjtJQ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UU5QjtBQUVEOzs7Ozs7O0dBT0c7QUFDSCxTQUFnQixLQUFLLENBQUMsR0FBRyxPQUFpQjtJQUN0QyxNQUFNLElBQUksS0FBSyxDQUFDLFVBQVUsT0FBTyxDQUFDLElBQUksQ0FBQyxHQUFHLENBQUMsRUFBRSxDQUFDLENBQUE7QUFDbEQsQ0FBQztBQUVEOzs7Ozs7O0dBT0c7QUFDSCxTQUFnQixxQkFBcUI7SUFDakMsTUFBTSxJQUFJLEtBQUssQ0FBQyx1REFBdUQsQ0FBQyxDQUFBO0FBQzVFLENBQUMifQ==
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { $$ as dictionary_literal } from "../expression/literals/dictionary";
|
|
2
|
+
import { $$ as list_literal } from "../expression/literals/list";
|
|
3
|
+
import * as initialize from "../expression/initialize";
|
|
4
|
+
export declare namespace dictionary {
|
|
5
|
+
const literal: typeof dictionary_literal;
|
|
6
|
+
}
|
|
7
|
+
export declare namespace integer {
|
|
8
|
+
}
|
|
9
|
+
export declare namespace list {
|
|
10
|
+
const literal: typeof list_literal;
|
|
11
|
+
const nested_literal: <T extends initialize.list.NonUndefined | {}>(lists: (undefined | T[] | import("../../../interface").List<T>)[]) => import("../../../interface").List<T>;
|
|
12
|
+
}
|
|
13
|
+
export declare namespace natural {
|
|
14
|
+
}
|
|
15
|
+
export declare namespace optional {
|
|
16
|
+
const set: typeof import("../expression/literals/optional").set;
|
|
17
|
+
const not_set: typeof import("../expression/literals/optional").not_set;
|
|
18
|
+
}
|
|
19
|
+
export declare namespace text {
|
|
20
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
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 () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.optional = exports.list = exports.dictionary = void 0;
|
|
37
|
+
const dictionary_1 = require("../expression/literals/dictionary");
|
|
38
|
+
const list_1 = require("../expression/literals/list");
|
|
39
|
+
const initialize = __importStar(require("../expression/initialize"));
|
|
40
|
+
var dictionary;
|
|
41
|
+
(function (dictionary) {
|
|
42
|
+
dictionary.literal = dictionary_1.$$;
|
|
43
|
+
})(dictionary || (exports.dictionary = dictionary = {}));
|
|
44
|
+
var list;
|
|
45
|
+
(function (list) {
|
|
46
|
+
list.literal = list_1.$$;
|
|
47
|
+
list.nested_literal = initialize.list.nested_literal_old;
|
|
48
|
+
})(list || (exports.list = list = {}));
|
|
49
|
+
var optional;
|
|
50
|
+
(function (optional) {
|
|
51
|
+
optional.set = initialize.optional.set;
|
|
52
|
+
optional.not_set = initialize.optional.not_set;
|
|
53
|
+
})(optional || (exports.optional = optional = {}));
|
|
54
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGl0ZXJhbC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL3NyYy9fX2ludGVybmFscy9zeW5jL2V4dHJhY3RzL2xpdGVyYWwudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQ0Esa0VBQTRFO0FBQzVFLHNEQUFnRTtBQUNoRSxxRUFBc0Q7QUFFdEQsSUFBaUIsVUFBVSxDQUkxQjtBQUpELFdBQWlCLFVBQVU7SUFFVixrQkFBTyxHQUFHLGVBQWtCLENBQUE7QUFFN0MsQ0FBQyxFQUpnQixVQUFVLDBCQUFWLFVBQVUsUUFJMUI7QUFNRCxJQUFpQixJQUFJLENBS3BCO0FBTEQsV0FBaUIsSUFBSTtJQUVKLFlBQU8sR0FBRyxTQUFZLENBQUE7SUFDdEIsbUJBQWMsR0FBRyxVQUFVLENBQUMsSUFBSSxDQUFDLGtCQUFrQixDQUFBO0FBRXBFLENBQUMsRUFMZ0IsSUFBSSxvQkFBSixJQUFJLFFBS3BCO0FBTUQsSUFBaUIsUUFBUSxDQUt4QjtBQUxELFdBQWlCLFFBQVE7SUFFUixZQUFHLEdBQUcsVUFBVSxDQUFDLFFBQVEsQ0FBQyxHQUFHLENBQUE7SUFDN0IsZ0JBQU8sR0FBRyxVQUFVLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQTtBQUV0RCxDQUFDLEVBTGdCLFFBQVEsd0JBQVIsUUFBUSxRQUt4QiJ9
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as _pi from "../../interface";
|
|
2
|
+
/**
|
|
3
|
+
* provides the source location (filepath and line number) of the source code file where this function is called,
|
|
4
|
+
* or if the depth is bigger than 0, the source location of the function at that stack depth
|
|
5
|
+
* @param depth
|
|
6
|
+
* @returns
|
|
7
|
+
*/
|
|
8
|
+
export declare function $$(depth: number): _pi.Deprecated_Source_Location;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.$$ = $$;
|
|
4
|
+
/**
|
|
5
|
+
* provides the source location (filepath and line number) of the source code file where this function is called,
|
|
6
|
+
* or if the depth is bigger than 0, the source location of the function at that stack depth
|
|
7
|
+
* @param depth
|
|
8
|
+
* @returns
|
|
9
|
+
*/
|
|
10
|
+
function $$(depth) {
|
|
11
|
+
//we create an error, not to be thrown but to be disected for its stack
|
|
12
|
+
const e = new Error(); //don't move this statement to another function, it will change the depth of its stack
|
|
13
|
+
function get_line(e, depth) {
|
|
14
|
+
if (e.stack === undefined) {
|
|
15
|
+
throw new Error(`NO STACK INFO`);
|
|
16
|
+
}
|
|
17
|
+
const line = e.stack.split("\n")[depth + 2]; //get the right line from the stack (the first two lines are "Error" and this function call)
|
|
18
|
+
const regex = /\((.*)\)$/; //matches the content inside parentheses at the end of a line (the file path with line and column)
|
|
19
|
+
const match = regex.exec(line);
|
|
20
|
+
if (match !== null) {
|
|
21
|
+
//we have a match
|
|
22
|
+
return match[1];
|
|
23
|
+
}
|
|
24
|
+
const begin = " at /";
|
|
25
|
+
if (line.startsWith(begin)) {
|
|
26
|
+
return line.substring(begin.length - 1);
|
|
27
|
+
}
|
|
28
|
+
throw new Error(`COULD NOT PARSE STACK LINE: ${line}`);
|
|
29
|
+
}
|
|
30
|
+
const line = get_line(e, depth);
|
|
31
|
+
const split = line.split(":");
|
|
32
|
+
if (split.length !== 3) {
|
|
33
|
+
throw new Error(`UNEXPECTED LOCATION FORMAT (CHECK THE DEPTH PARAMETER): ${line} (Expected 'file:line:column')`);
|
|
34
|
+
}
|
|
35
|
+
return {
|
|
36
|
+
'file': split[0],
|
|
37
|
+
'line': Number(split[1]),
|
|
38
|
+
'column': Number(split[2]),
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2V0X2xvY2F0aW9uX2luZm8uanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvX19pbnRlcm5hbHMvc3luYy9nZXRfbG9jYXRpb25faW5mby50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQVFBLGdCQTJDQztBQWpERDs7Ozs7R0FLRztBQUNILFNBQWdCLEVBQUUsQ0FBQyxLQUFhO0lBRTVCLHVFQUF1RTtJQUN2RSxNQUFNLENBQUMsR0FBRyxJQUFJLEtBQUssRUFBRSxDQUFDLENBQUMsc0ZBQXNGO0lBRzdHLFNBQVMsUUFBUSxDQUFDLENBQVEsRUFBRSxLQUFhO1FBR3JDLElBQUksQ0FBQyxDQUFDLEtBQUssS0FBSyxTQUFTLEVBQUUsQ0FBQztZQUN4QixNQUFNLElBQUksS0FBSyxDQUFDLGVBQWUsQ0FBQyxDQUFBO1FBQ3BDLENBQUM7UUFDRCxNQUFNLElBQUksR0FBRyxDQUFDLENBQUMsS0FBSyxDQUFDLEtBQUssQ0FBQyxJQUFJLENBQUMsQ0FBQyxLQUFLLEdBQUcsQ0FBQyxDQUFDLENBQUEsQ0FBRSw0RkFBNEY7UUFFekksTUFBTSxLQUFLLEdBQUcsV0FBVyxDQUFBLENBQUMsa0dBQWtHO1FBRTVILE1BQU0sS0FBSyxHQUFHLEtBQUssQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUM7UUFFL0IsSUFBSSxLQUFL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uIjozLCJmaWxlIjoiQ29tbWFuZF9CbG9jay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21tYW5kL0NvbW1hbmRfQmxvY2sudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiJ9
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.__command = void 0;
|
|
4
|
+
const command_promise_1 = require("./command_promise");
|
|
5
|
+
const __command = (handler) => {
|
|
6
|
+
return {
|
|
7
|
+
'execute': (parameters, error_transformer) => {
|
|
8
|
+
return (0, command_promise_1.__command_promise)({
|
|
9
|
+
'execute': (on_success, on_error) => {
|
|
10
|
+
handler(parameters).__start(on_success, (error) => {
|
|
11
|
+
on_error(error_transformer(error));
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
};
|
|
18
|
+
exports.__command = __command;
|
|
19
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21tYW5kL2NvbW1hbmQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQ0EsdURBQXFEO0FBRTlDLE1BQU0sU0FBUyxHQUFHLENBQ3JCLE9BQXNELEVBQ3hCLEVBQUU7SUFDaEMsT0FBTztRQUVILFNBQVMsRUFBRSxDQUFDLFVBQVUsRUFBRSxpQkFBaUIsRUFBRSxFQUFFO1lBQ3pDLE9BQU8sSUFBQSxtQ0FBaUIsRUFBQztnQkFDckIsU0FBUyxFQUFFLENBQUMsVUFBVSxFQUFFLFFBQVEsRUFBRSxFQUFFO29CQUNoQyxPQUFPLENBQUMsVUFBVSxDQUFDLENBQUMsT0FBTyxDQUN2QixVQUFVLEVBQ1YsQ0FBQyxLQUFLLEVBQUUsRUFBRTt3QkFDTixRQUFRLENBQ0osaUJBQWlCLENBQUMsS0FBSyxDQUFDLENBQzNCLENBQUE7b0JBQ0wsQ0FBQyxDQUNKLENBQUE7Z0JBQ0wsQ0FBQzthQUNKLENBQUMsQ0FBQTtRQUNOLENBQUM7S0FDSixDQUFBO0FBQ0wsQ0FBQyxDQUFBO0FBcEJZLFFBQUEsU0FBUyxhQW9CckIifQ==
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import * as _pi from "../interface";
|
|
2
|
+
import { Command_Block } from "./Command_Block";
|
|
3
|
+
export declare const command_procedure: <Error, Parameters, Command_Resources, Query_Resources>(execution_handler: ($p: Parameters, $cr: Command_Resources, $qr: Query_Resources) => Command_Block<Error>) => _pi.Command_Procedure<_pi.Command<Error, Parameters>, Command_Resources, Query_Resources>;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.command_procedure = void 0;
|
|
4
|
+
const command_promise_1 = require("./command_promise");
|
|
5
|
+
const handle_command_block_1 = require("./handle_command_block");
|
|
6
|
+
const command_procedure = (execution_handler) => {
|
|
7
|
+
return ($cr, $qr) => {
|
|
8
|
+
return {
|
|
9
|
+
'execute': (parameters, error_transformer) => {
|
|
10
|
+
return (0, command_promise_1.__command_promise)({
|
|
11
|
+
'execute': (on_success, on_error) => {
|
|
12
|
+
(0, handle_command_block_1.__handle_command_block)(execution_handler(parameters, $cr, $qr)).__start(on_success, ($) => {
|
|
13
|
+
on_error(error_transformer($));
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
exports.command_procedure = command_procedure;
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZF9wcm9jZWR1cmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29tbWFuZC9jb21tYW5kX3Byb2NlZHVyZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFHQSx1REFBcUQ7QUFDckQsaUVBQStEO0FBR3hELE1BQU0saUJBQWlCLEdBQUcsQ0FDN0IsaUJBSXlCLEVBQ2dFLEVBQUU7SUFDM0YsT0FBTyxDQUFDLEdBQUcsRUFBRSxHQUFHLEVBQUUsRUFBRTtRQUNoQixPQUFPO1lBQ0gsU0FBUyxFQUFFLENBQUMsVUFBVSxFQUFFLGlCQUFpQixFQUFFLEVBQUU7Z0JBQ3pDLE9BQU8sSUFBQSxtQ0FBaUIsRUFBQztvQkFDckIsU0FBUyxFQUFFLENBQUMsVUFBVSxFQUFFLFFBQVEsRUFBRSxFQUFFO3dCQUVoQyxJQUFBLDZDQUFzQixFQUFDLGlCQUFpQixDQUFDLFVBQVUsRUFBRSxHQUFHLEVBQUUsR0FBRyxDQUFDLENBQUMsQ0FBQyxPQUFPLENBQ25FLFVBQVUsRUFDVixDQUFDLENBQUMsRUFBRSxFQUFFOzRCQUNGLFFBQVEsQ0FDSixpQkFBaUIsQ0FBQyxDQUFDLENBQUMsQ0FDdkIsQ0FBQTt3QkFDTCxDQUFDLENBQ0osQ0FBQTtvQkFDTCxDQUFDO2lCQUNKLENBQUMsQ0FBQTtZQUNOLENBQUM7U0FDSixDQUFBO0lBQ0wsQ0FBQyxDQUFBO0FBQ0wsQ0FBQyxDQUFBO0FBMUJZLFFBQUEsaUJBQWlCLHFCQTBCN0IifQ==
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import * as _pi from "../interface";
|
|
2
|
+
/**
|
|
3
|
+
* this function contains the body in which the async value or error is executed
|
|
4
|
+
* after the execution, either the on_value or on_error callback will be called
|
|
5
|
+
* @param on_value the callback to call when a value is produced
|
|
6
|
+
* @param on_error the callback to call when an error is produced
|
|
7
|
+
*/
|
|
8
|
+
type Executer<E> = {
|
|
9
|
+
'execute': (on_success: () => void, on_error: ($: E) => void) => void;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* returns an {@link Async_Value }
|
|
13
|
+
* @param executer the function that produces the eventual value
|
|
14
|
+
* @returns
|
|
15
|
+
*/
|
|
16
|
+
export declare function __command_promise<E>(executer: Executer<E>): _pi.Command_Promise<E>;
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.__command_promise = __command_promise;
|
|
4
|
+
class Command_Promise_Class {
|
|
5
|
+
constructor(executer) {
|
|
6
|
+
this.executer = executer;
|
|
7
|
+
}
|
|
8
|
+
__start(on_success, on_error) {
|
|
9
|
+
this.executer.execute(on_success, on_error);
|
|
10
|
+
}
|
|
11
|
+
map_error(handle_error) {
|
|
12
|
+
return new Command_Promise_Class({
|
|
13
|
+
'execute': (on_success, on_error) => {
|
|
14
|
+
this.executer.execute(on_success, (error) => {
|
|
15
|
+
on_error(handle_error(error));
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* returns an {@link Async_Value }
|
|
23
|
+
* @param executer the function that produces the eventual value
|
|
24
|
+
* @returns
|
|
25
|
+
*/
|
|
26
|
+
function __command_promise(executer) {
|
|
27
|
+
return new Command_Promise_Class(executer);
|
|
28
|
+
}
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29tbWFuZF9wcm9taXNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2NvbW1hbmQvY29tbWFuZF9wcm9taXNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBa0RBLDhDQUtDO0FBdkNELE1BQU0scUJBQXFCO0lBRXZCLFlBQVksUUFBcUI7UUFDN0IsSUFBSSxDQUFDLFFBQVEsR0FBRyxRQUFRLENBQUE7SUFDNUIsQ0FBQztJQUVELE9BQU8sQ0FDSCxVQUFzQixFQUN0QixRQUF3QjtRQUV4QixJQUFJLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FBQyxVQUFVLEVBQUUsUUFBUSxDQUFDLENBQUE7SUFDL0MsQ0FBQztJQUVELFNBQVMsQ0FDTCxZQUE4QjtRQUU5QixPQUFPLElBQUkscUJBQXFCLENBQUs7WUFDakMsU0FBUyxFQUFFLENBQUMsVUFBVSxFQUFFLFFBQVEsRUFBRSxFQUFFO2dCQUNoQyxJQUFJLENBQUMsUUFBUSxDQUFDLE9BQU8sQ0FDakIsVUFBVSxFQUNWLENBQUMsS0FBSyxFQUFFLEVBQUU7b0JBQ04sUUFBUSxDQUFDLFlBQVksQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFBO2dCQUNqQyxDQUFDLENBQ0osQ0FBQTtZQUNMLENBQUM7U0FDSixDQUFDLENBQUE7SUFDTixDQUFDO0NBQ0o7QUFFRDs7OztHQUlHO0FBQ0gsU0FBZ0IsaUJBQWlCLENBQzdCLFFBQXFCO0lBRXJCLE9BQU8sSUFBSSxxQkFBcUIsQ0FBSSxRQUFRLENBQUMsQ0FBQTtBQUVqRCxDQUFDIn0=
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.__handle_command_block = void 0;
|
|
4
|
+
const command_promise_1 = require("./command_promise");
|
|
5
|
+
const __handle_command_block = (block) => {
|
|
6
|
+
return (0, command_promise_1.__command_promise)({
|
|
7
|
+
'execute': (on_success, on_error) => {
|
|
8
|
+
const length = block.length;
|
|
9
|
+
const runStep = (index) => {
|
|
10
|
+
if (index >= length) {
|
|
11
|
+
on_success();
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
block[index].__start(() => runStep(index + 1), on_error);
|
|
15
|
+
};
|
|
16
|
+
runStep(0);
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
exports.__handle_command_block = __handle_command_block;
|
|
21
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGFuZGxlX2NvbW1hbmRfYmxvY2suanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29tbWFuZC9oYW5kbGVfY29tbWFuZF9ibG9jay50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFDQSx1REFBcUQ7QUFHOUMsTUFBTSxzQkFBc0IsR0FBRyxDQUNsQyxLQUEyQixFQUNELEVBQUU7SUFDNUIsT0FBTyxJQUFBLG1DQUFpQixFQUFDO1FBQ3JCLFNBQVMsRUFBRSxDQUNQLFVBQVUsRUFDVixRQUFRLEVBQ1YsRUFBRTtZQUVBLE1BQU0sTUFBTSxHQUFHLEtBQUssQ0FBQyxNQUFNLENBQUE7WUFDM0IsTUFBTSxPQUFPLEdBQUcsQ0FBQyxLQUFhLEVBQUUsRUFBRTtnQkFDOUIsSUFBSSxLQUFLLElBQUksTUFBTSxFQUFFLENBQUM7b0JBQ2xCLFVBQVUsRUFBRSxDQUFBO29CQUNaLE9BQU07Z0JBQ1YsQ0FBQztnQkFDRCxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUMsT0FBTyxDQUNoQixHQUFHLEVBQUUsQ0FBQyxPQUFPLENBQUMsS0FBSyxHQUFHLENBQUMsQ0FBQyxFQUN4QixRQUFRLENBQ1gsQ0FBQTtZQUNMLENBQUMsQ0FBQTtZQUNELE9BQU8sQ0FBQyxDQUFDLENBQUMsQ0FBQTtRQUNkLENBQUM7S0FDSixDQUFDLENBQUE7QUFDTixDQUFDLENBQUE7QUF2QlksUUFBQSxzQkFBc0IsMEJBdUJsQyJ9
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* these functions coming from core-internals should be exposed for command development
|
|
3
|
+
*/
|
|
4
|
+
export { deprecated_cc } from "../__internals/sync/expression/special";
|
|
5
|
+
export * from "../__internals/sync/expression/decide";
|
|
6
|
+
export * from "../__internals/sync/extracts/literal";
|
|
7
|
+
export * from "./command_procedure";
|
|
8
|
+
export * from "./command_promise";
|
|
9
|
+
export * from "./command";
|
|
10
|
+
export * from "./statement";
|
|
@@ -0,0 +1,29 @@
|
|
|
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 __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.deprecated_cc = void 0;
|
|
18
|
+
/**
|
|
19
|
+
* these functions coming from core-internals should be exposed for command development
|
|
20
|
+
*/
|
|
21
|
+
var special_1 = require("../__internals/sync/expression/special");
|
|
22
|
+
Object.defineProperty(exports, "deprecated_cc", { enumerable: true, get: function () { return special_1.deprecated_cc; } });
|
|
23
|
+
__exportStar(require("../__internals/sync/expression/decide"), exports); //for handling instructions
|
|
24
|
+
__exportStar(require("../__internals/sync/extracts/literal"), exports);
|
|
25
|
+
__exportStar(require("./command_procedure"), exports);
|
|
26
|
+
__exportStar(require("./command_promise"), exports);
|
|
27
|
+
__exportStar(require("./command"), exports);
|
|
28
|
+
__exportStar(require("./statement"), exports);
|
|
29
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvY29tbWFuZC9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7OztBQUVBOztHQUVHO0FBQ0gsa0VBQXNFO0FBQTdELHdHQUFBLGFBQWEsT0FBQTtBQUV0Qix3RUFBcUQsQ0FBQywyQkFBMkI7QUFDakYsdUVBQW9EO0FBQ3BELHNEQUFtQztBQUNuQyxvREFBaUM7QUFDakMsNENBQXlCO0FBQ3pCLDhDQUEyQiJ9
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as _pi from "../interface";
|
|
2
|
+
import { Command_Block } from "./Command_Block";
|
|
3
|
+
export declare namespace listx {
|
|
4
|
+
const serie: <Error>(array: _pi.List<_pi.Command_Promise<Error>>) => _pi.Command_Promise<Error>;
|
|
5
|
+
}
|
|
6
|
+
export declare namespace dictionaryx {
|
|
7
|
+
const parallel: <T, Error, Entry_Error>(dictionary: _pi.Dictionary<T>, parametrized_command_block: (value: T, key: string) => Command_Block<Entry_Error>, aggregate_errors: _pi.Transformer<_pi.Dictionary<Entry_Error>, Error>) => _pi.Command_Promise<Error>;
|
|
8
|
+
namespace deprecated_parallel {
|
|
9
|
+
const query: <T, Error, Entry_Error>(query_result: _pi.Query_Result<_pi.Dictionary<T>, Error>, parametrized_command_block: (value: T, key: string) => Command_Block<Entry_Error>, aggregate_errors: _pi.Transformer<_pi.Dictionary<Entry_Error>, Error>) => _pi.Command_Promise<Error>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
export declare const create_error_handling_context: <Target_Error, Block_Error>(command_block: Command_Block<Block_Error>, parametrized_command_block: ($v: Block_Error) => Command_Block<Target_Error>, new_error: Target_Error) => _pi.Command_Promise<Target_Error>;
|
|
13
|
+
export declare const nothing: <Error>() => _pi.Command_Promise<Error>;
|
|
14
|
+
export declare const fail: <Error>(error: Error) => _pi.Command_Promise<Error>;
|
|
15
|
+
export declare const query: <Error, Query_Output, Refine_Output>(query_result: _pi.Query_Result<Query_Output, Error>, refine: _pi.Refiner<Refine_Output, Error, Query_Output>, parametrized_command_block: ($v: Refine_Output) => Command_Block<Error>) => _pi.Command_Promise<Error>;
|
|
16
|
+
export declare const query_stacked: <Error, Staging_Output, Parent_Data>(query_result: _pi.Query_Result<Staging_Output, Error>, parent_data: Parent_Data, parametrized_command_block: ($v: Staging_Output, $parent: Parent_Data) => Command_Block<Error>) => _pi.Command_Promise<Error>;
|
|
17
|
+
export declare const refine_without_error_transformation: <Error, Staging_Output>(//I doubt that this one is needed. Either parameters are refined or query results.. parameters should already be refined.
|
|
18
|
+
callback: (abort: _pi.Abort<Error>) => Staging_Output, parametrized_command_block: ($v: Staging_Output) => Command_Block<Error>) => _pi.Command_Promise<Error>;
|
|
19
|
+
export declare const refine_stacked: <Error, Staging_Output, Parent_Data>(callback: (abort: _pi.Abort<Error>) => Staging_Output, parent_data: Parent_Data, parametrized_command_block: ($v: Staging_Output, $parent: Parent_Data) => Command_Block<Error>) => _pi.Command_Promise<Error>;
|
|
20
|
+
export declare namespace if_ {
|
|
21
|
+
const direct: <Error>(precondition: boolean, command_block: Command_Block<Error>, else_command_block?: Command_Block<Error>) => _pi.Command_Promise<Error>;
|
|
22
|
+
const query: <Error>(precondition: _pi.Query_Result<boolean, Error>, command_block: Command_Block<Error>, else_command_block?: Command_Block<Error>) => _pi.Command_Promise<Error>;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace assert {
|
|
25
|
+
const direct: <Error>(assertion: boolean, error_if_failed: Error) => _pi.Command_Promise<Error>;
|
|
26
|
+
const query: <Error>(assertion: _pi.Query_Result<boolean, Error>, error_if_failed: Error) => _pi.Command_Promise<Error>;
|
|
27
|
+
}
|