eliscript 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/README.md +9 -8
- package/bootstrap/compiler/emitter.eli +161 -63
- package/bootstrap/host/check-cli.mjs +0 -1
- package/bootstrap/host/check-cli.mjs.map +1 -1
- package/bootstrap/host/compiler-session.eli +2 -1
- package/bootstrap/host/eliscript-cli.mjs +2 -9
- package/bootstrap/host/eliscript-cli.mjs.map +1 -1
- package/bootstrap/host/project-cli.mjs +1 -11
- package/bootstrap/host/project-cli.mjs.map +1 -1
- package/bootstrap/host/project.mjs +2 -8
- package/bootstrap/host/project.mjs.map +1 -1
- package/browser/README.md +1 -1
- package/compiler/README.md +2 -2
- package/compiler/eliscript-emitter.el +229 -85
- package/compiler/eliscript-ir-emitter.el +64 -34
- package/compiler/eliscript-project.el +20 -5
- package/dist/backends/async.mjs +1 -90
- package/dist/backends/async.mjs.map +1 -1
- package/dist/backends/binary.mjs +1 -91
- package/dist/backends/binary.mjs.map +1 -1
- package/dist/backends/capabilities.mjs +1 -90
- package/dist/backends/capabilities.mjs.map +1 -1
- package/dist/backends/elf.mjs +1 -90
- package/dist/backends/elf.mjs.map +1 -1
- package/dist/backends/managed.mjs +1 -94
- package/dist/backends/managed.mjs.map +1 -1
- package/dist/backends/memory.mjs +1 -90
- package/dist/backends/memory.mjs.map +1 -1
- package/dist/backends/native.mjs +1 -91
- package/dist/backends/native.mjs.map +1 -1
- package/dist/backends/numeric.mjs +1 -90
- package/dist/backends/numeric.mjs.map +1 -1
- package/dist/backends/optimize.mjs +1 -90
- package/dist/backends/optimize.mjs.map +1 -1
- package/dist/backends/regexp.mjs +1 -91
- package/dist/backends/regexp.mjs.map +1 -1
- package/dist/backends/sha256.mjs +2 -96
- package/dist/backends/sha256.mjs.map +1 -1
- package/dist/backends/wasm.mjs +1 -90
- package/dist/backends/wasm.mjs.map +1 -1
- package/dist/bootstrap/analyzer.mjs +1 -95
- package/dist/bootstrap/analyzer.mjs.map +1 -1
- package/dist/bootstrap/compiler.mjs +1 -105
- package/dist/bootstrap/compiler.mjs.map +1 -1
- package/dist/bootstrap/emitter.mjs +848 -807
- package/dist/bootstrap/emitter.mjs.map +1 -1
- package/dist/bootstrap/expander.mjs +1 -96
- package/dist/bootstrap/expander.mjs.map +1 -1
- package/dist/bootstrap/formatter.mjs +1 -104
- package/dist/bootstrap/formatter.mjs.map +1 -1
- package/dist/bootstrap/ir.mjs +18 -172
- package/dist/bootstrap/ir.mjs.map +1 -1
- package/dist/bootstrap/lower.mjs +1 -92
- package/dist/bootstrap/lower.mjs.map +1 -1
- package/dist/bootstrap/project.mjs +23 -209
- package/dist/bootstrap/project.mjs.map +1 -1
- package/dist/bootstrap/reader.mjs +1 -96
- package/dist/bootstrap/reader.mjs.map +1 -1
- package/dist/bootstrap/source-map.mjs +7 -112
- package/dist/bootstrap/source-map.mjs.map +1 -1
- package/dist/bootstrap/symbol.mjs +7 -114
- package/dist/bootstrap/symbol.mjs.map +1 -1
- package/dist/bootstrap/syntax.mjs +10 -176
- package/dist/bootstrap/syntax.mjs.map +1 -1
- package/dist/bootstrap/transient-analysis.mjs +1 -93
- package/dist/bootstrap/transient-analysis.mjs.map +1 -1
- package/dist/browser/compiler.js +105 -104
- package/dist/browser/loader.js +1 -1
- package/dist/browser/loader.mjs +5 -124
- package/dist/compiler-artifact.json +1 -1
- package/dist/host/compiler-session.mjs +205 -297
- package/dist/host/compiler-session.mjs.map +1 -1
- package/dist/host/compiler-tools.mjs +1 -91
- package/dist/host/compiler-tools.mjs.map +1 -1
- package/dist/literal-sources/runtime/core/order.eli +32 -10
- package/dist/literal-sources/runtime/core/sequence.eli +69 -28
- package/dist/literal-sources/runtime/core/vector.eli +2 -4
- package/dist/literal-sources/stdlib/managed-literal-protocols.eli +5 -5
- package/dist/literal-sources/stdlib/managed-literals.eli +1 -1
- package/dist/package.json +1 -0
- package/dist/runtime/math.mjs +62 -252
- package/dist/runtime/math.mjs.map +1 -1
- package/dist/runtime/prelude.mjs +95 -0
- package/dist/runtime/prelude.mjs.macro-origins.json +1 -0
- package/dist/runtime/prelude.mjs.map +1 -0
- package/dist/runtime/unicode-case-data.mjs +1 -95
- package/dist/runtime/unicode-case-data.mjs.map +1 -1
- package/dist/runtime/unicode-case.mjs +3 -97
- package/dist/runtime/unicode-case.mjs.map +1 -1
- package/dist/stage3-release.json +1 -1
- package/editor/README.md +9 -4
- package/editor/eliscript-abi.el +170 -0
- package/editor/eliscript-async.el +375 -0
- package/editor/eliscript-bind.el +822 -0
- package/editor/eliscript-compat.el +346 -0
- package/editor/eliscript-contract.el +334 -0
- package/editor/eliscript-data.el +1544 -0
- package/editor/eliscript-js.el +318 -0
- package/editor/eliscript-mode.el +1 -1
- package/editor/eliscript-module.el +340 -0
- package/editor/eliscript-repl.el +1 -1
- package/package.json +4 -1
- package/runtime/README.md +21 -1
- package/runtime/core/protocol-impl.mjs +1 -115
- package/runtime/core/protocol-impl.mjs.map +1 -1
- package/runtime/core/text-impl.mjs +1 -90
- package/runtime/core/text-impl.mjs.map +1 -1
- package/runtime/core/vector.eli +1 -1
- package/runtime/core/vector.mjs +0 -9
- package/runtime/emacs-compat.eli +5957 -0
- package/runtime/emacs-compat.mjs +13734 -0
- package/runtime/emacs-compat.mjs.map +1 -0
- package/runtime/math.mjs +62 -252
- package/runtime/math.mjs.map +1 -1
- package/runtime/prelude.eli +4 -0
- package/runtime/prelude.mjs +95 -0
- package/runtime/prelude.mjs.map +1 -0
- package/runtime/unicode-case-data.mjs +1 -95
- package/runtime/unicode-case-data.mjs.map +1 -1
- package/runtime/unicode-case.mjs +3 -97
- package/runtime/unicode-case.mjs.map +1 -1
- package/stdlib/managed-literals.eli +1 -1
- package/stdlib/managed-runtime-vector.eli +2 -4
- package/tools/backends/compiler-build.mjs +3 -93
- package/tools/backends/compiler-cli.mjs +2 -15
- package/tools/backends/compiler-corpus-bit.mjs +2 -95
- package/tools/backends/compiler-corpus-cli-adapters.mjs +1 -97
- package/tools/backends/compiler-corpus-debugging.mjs +2 -95
- package/tools/backends/compiler-corpus-emitter.mjs +1 -97
- package/tools/backends/compiler-corpus-execution.mjs +2 -108
- package/tools/backends/compiler-corpus-fuzz.mjs +2 -95
- package/tools/backends/compiler-corpus-host-context.mjs +2 -99
- package/tools/backends/compiler-corpus-identity-host.mjs +18 -123
- package/tools/backends/compiler-corpus-identity-value-adapters.mjs +0 -9
- package/tools/backends/compiler-corpus-literal-provider.mjs +1 -91
- package/tools/backends/compiler-corpus-managed-adapters.mjs +1 -99
- package/tools/backends/compiler-corpus-managed-fixtures.mjs +2 -113
- package/tools/backends/compiler-corpus-matchers.mjs +3 -106
- package/tools/backends/compiler-corpus-original-program.mjs +1 -91
- package/tools/backends/compiler-corpus-process.mjs +1 -92
- package/tools/backends/compiler-corpus-program-driver.mjs +1 -3
- package/tools/backends/compiler-corpus-project-adapters.mjs +1 -95
- package/tools/backends/compiler-corpus-project-entry-host.mjs +2 -92
- package/tools/backends/compiler-corpus-project-transport.mjs +1 -90
- package/tools/backends/compiler-corpus-raw-fixture-observer.mjs +1 -91
- package/tools/backends/compiler-corpus-raw-language-fixtures.mjs +1 -92
- package/tools/backends/compiler-corpus-raw-math-fixture.mjs +1 -91
- package/tools/backends/compiler-corpus-raw-special-fixtures.mjs +1 -91
- package/tools/backends/compiler-corpus-reference.mjs +1 -90
- package/tools/backends/compiler-corpus-runtime-adapters.mjs +2 -110
- package/tools/backends/compiler-corpus-tools-cli.mjs +1 -95
- package/tools/backends/compiler-corpus-tools-reference.mjs +22 -163
- package/tools/backends/compiler-corpus.mjs +3 -125
- package/tools/backends/compiler-matrix.mjs +1 -92
- package/tools/backends/compiler-package-browser.mjs +1 -90
- package/tools/backends/compiler-package.mjs +3 -95
- package/tools/backends/compiler-unicode-profile-host.mjs +1 -91
- package/tools/backends/dist/bootstrap-js-stages.mjs +1 -91
- package/tools/backends/dist/bootstrap-js-stages.mjs.map +1 -1
- package/tools/backends/dist/managed-ir-inventory.mjs +1 -91
- package/tools/backends/dist/managed-ir-inventory.mjs.map +1 -1
- package/tools/backends/dist/record-grid.mjs +1 -91
- package/tools/backends/dist/record-grid.mjs.map +1 -1
- package/tools/backends/dist/release-cli.mjs +4 -94
- package/tools/backends/dist/release-cli.mjs.map +1 -1
- package/tools/backends/dist/run-artifact.mjs +1 -91
- package/tools/backends/dist/run-artifact.mjs.map +1 -1
- package/tools/backends/eliscript/compiler-corpus-bit.eli +1 -0
- package/tools/backends/managed-foreign-binding.mjs +1 -95
- package/tools/backends/managed-host-lifecycle.mjs +1 -91
- package/tools/backends/managed-host-object-provider.mjs +18 -59
- package/tools/backends/managed-host-object-realm.mjs +1 -91
- package/tools/backends/managed-host-proxy.mjs +9 -18
- package/tools/backends/managed-host-runtime.mjs +3 -105
- package/tools/backends/managed-host.mjs +1 -104
- package/tools/backends/managed-module-graph.mjs +1 -97
- package/tools/backends/managed-runtime.mjs +1 -96
- package/tools/backends/managed-source-view.mjs +13 -108
- package/tools/backends/native-managed-runtime.mjs +1 -91
- package/tools/backends/native-memory.mjs +1 -91
- package/tools/backends/stage3-targets.mjs +1 -91
- package/tools/bootstrap-runtime.el +3 -2
- package/tools/project/project.eli +1 -1
- package/tools/testing/stdlib-bit-corpus-host.mjs +1 -90
- package/tools/testing/stdlib-bit.mjs +1 -90
- package/dist/bootstrap/package.json +0 -1
- package/dist/bootstrap/runtime/math.mjs +0 -1117
- package/dist/bootstrap/runtime/math.mjs.map +0 -1
- package/dist/bootstrap/runtime/unicode-case-data.mjs +0 -10125
- package/dist/bootstrap/runtime/unicode-case-data.mjs.map +0 -1
- package/dist/bootstrap/runtime/unicode-case.mjs +0 -281
- package/dist/bootstrap/runtime/unicode-case.mjs.map +0 -1
|
@@ -1,241 +1,55 @@
|
|
|
1
1
|
// Generated by Eliscript. Do not edit.
|
|
2
2
|
import { tdz as __eliscript_tdz_error, immutable as __eliscript_const_error } from "data:text/javascript;base64,Y29uc3QgRSA9IFJlZmVyZW5jZUVycm9yOyBjb25zdCBUID0gVHlwZUVycm9yOyBleHBvcnQgZnVuY3Rpb24gdGR6KG5hbWUpIHsgdGhyb3cgbmV3IEUoIkNhbm5vdCBhY2Nlc3MgJyIgKyBuYW1lICsgIicgYmVmb3JlIGluaXRpYWxpemF0aW9uIik7IH0gZXhwb3J0IGZ1bmN0aW9uIGltbXV0YWJsZSgpIHsgdGhyb3cgbmV3IFQoIkFzc2lnbm1lbnQgdG8gY29uc3RhbnQgdmFyaWFibGUuIik7IH0K";
|
|
3
|
-
var __eliscript_tdz_ready_0;
|
|
4
|
-
function __eliscript_tdz_read_0() { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("project_plan_format"); return project_plan_format; }
|
|
5
|
-
function __eliscript_tdz_write_0(__eliscript_tdz_value_0) { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("project_plan_format"); return __eliscript_const_error(); }
|
|
6
|
-
var __eliscript_tdz_ready_1;
|
|
7
|
-
function __eliscript_tdz_read_1() { if (__eliscript_tdz_ready_1 !== true) __eliscript_tdz_error("project_plan_version"); return project_plan_version; }
|
|
8
|
-
function __eliscript_tdz_write_1(__eliscript_tdz_value_1) { if (__eliscript_tdz_ready_1 !== true) __eliscript_tdz_error("project_plan_version"); return __eliscript_const_error(); }
|
|
9
|
-
var __eliscript_tdz_ready_2;
|
|
10
|
-
function __eliscript_tdz_read_2() { if (__eliscript_tdz_ready_2 !== true) __eliscript_tdz_error("project_plan_max_iterations"); return project_plan_max_iterations; }
|
|
11
|
-
function __eliscript_tdz_write_2(__eliscript_tdz_value_2) { if (__eliscript_tdz_ready_2 !== true) __eliscript_tdz_error("project_plan_max_iterations"); return __eliscript_const_error(); }
|
|
12
|
-
var __eliscript_tdz_ready_3;
|
|
13
|
-
function __eliscript_tdz_read_3() { if (__eliscript_tdz_ready_3 !== true) __eliscript_tdz_error("project_build_report_format"); return project_build_report_format; }
|
|
14
|
-
function __eliscript_tdz_write_3(__eliscript_tdz_value_3) { if (__eliscript_tdz_ready_3 !== true) __eliscript_tdz_error("project_build_report_format"); return __eliscript_const_error(); }
|
|
15
|
-
var __eliscript_tdz_ready_4;
|
|
16
|
-
function __eliscript_tdz_read_4() { if (__eliscript_tdz_ready_4 !== true) __eliscript_tdz_error("project_build_report_version"); return project_build_report_version; }
|
|
17
|
-
function __eliscript_tdz_write_4(__eliscript_tdz_value_4) { if (__eliscript_tdz_ready_4 !== true) __eliscript_tdz_error("project_build_report_version"); return __eliscript_const_error(); }
|
|
18
|
-
var __eliscript_tdz_ready_5;
|
|
19
|
-
function __eliscript_tdz_read_5() { if (__eliscript_tdz_ready_5 !== true) __eliscript_tdz_error("project_build_report_multi_version"); return project_build_report_multi_version; }
|
|
20
|
-
function __eliscript_tdz_write_5(__eliscript_tdz_value_5) { if (__eliscript_tdz_ready_5 !== true) __eliscript_tdz_error("project_build_report_multi_version"); return __eliscript_const_error(); }
|
|
21
|
-
var __eliscript_tdz_ready_6;
|
|
22
|
-
function __eliscript_tdz_read_6() { if (__eliscript_tdz_ready_6 !== true) __eliscript_tdz_error("project_request_format"); return project_request_format; }
|
|
23
|
-
function __eliscript_tdz_write_6(__eliscript_tdz_value_6) { if (__eliscript_tdz_ready_6 !== true) __eliscript_tdz_error("project_request_format"); return __eliscript_const_error(); }
|
|
24
|
-
var __eliscript_tdz_ready_7;
|
|
25
|
-
function __eliscript_tdz_read_7() { if (__eliscript_tdz_ready_7 !== true) __eliscript_tdz_error("project_request_version"); return project_request_version; }
|
|
26
|
-
function __eliscript_tdz_write_7(__eliscript_tdz_value_7) { if (__eliscript_tdz_ready_7 !== true) __eliscript_tdz_error("project_request_version"); return __eliscript_const_error(); }
|
|
27
|
-
var __eliscript_tdz_ready_8;
|
|
28
|
-
function __eliscript_tdz_read_8() { if (__eliscript_tdz_ready_8 !== true) __eliscript_tdz_error("project_request_multi_version"); return project_request_multi_version; }
|
|
29
|
-
function __eliscript_tdz_write_8(__eliscript_tdz_value_8) { if (__eliscript_tdz_ready_8 !== true) __eliscript_tdz_error("project_request_multi_version"); return __eliscript_const_error(); }
|
|
30
|
-
var __eliscript_tdz_ready_9;
|
|
31
|
-
function __eliscript_tdz_read_9() { if (__eliscript_tdz_ready_9 !== true) __eliscript_tdz_error("project_configuration_version"); return project_configuration_version; }
|
|
32
|
-
function __eliscript_tdz_write_9(__eliscript_tdz_value_9) { if (__eliscript_tdz_ready_9 !== true) __eliscript_tdz_error("project_configuration_version"); return __eliscript_const_error(); }
|
|
33
|
-
var __eliscript_tdz_ready_10;
|
|
34
|
-
function __eliscript_tdz_read_10() { if (__eliscript_tdz_ready_10 !== true) __eliscript_tdz_error("project_configuration_multi_version"); return project_configuration_multi_version; }
|
|
35
|
-
function __eliscript_tdz_write_10(__eliscript_tdz_value_10) { if (__eliscript_tdz_ready_10 !== true) __eliscript_tdz_error("project_configuration_multi_version"); return __eliscript_const_error(); }
|
|
36
|
-
var __eliscript_tdz_ready_11;
|
|
37
|
-
function __eliscript_tdz_read_11() { if (__eliscript_tdz_ready_11 !== true) __eliscript_tdz_error("build_operation_format"); return build_operation_format; }
|
|
38
|
-
function __eliscript_tdz_write_11(__eliscript_tdz_value_11) { if (__eliscript_tdz_ready_11 !== true) __eliscript_tdz_error("build_operation_format"); return __eliscript_const_error(); }
|
|
39
|
-
var __eliscript_tdz_ready_12;
|
|
40
|
-
function __eliscript_tdz_read_12() { if (__eliscript_tdz_ready_12 !== true) __eliscript_tdz_error("build_operation_version"); return build_operation_version; }
|
|
41
|
-
function __eliscript_tdz_write_12(__eliscript_tdz_value_12) { if (__eliscript_tdz_ready_12 !== true) __eliscript_tdz_error("build_operation_version"); return __eliscript_const_error(); }
|
|
42
|
-
var __eliscript_tdz_ready_13;
|
|
43
|
-
function __eliscript_tdz_read_13() { if (__eliscript_tdz_ready_13 !== true) __eliscript_tdz_error("build_operation_multi_version"); return build_operation_multi_version; }
|
|
44
|
-
function __eliscript_tdz_write_13(__eliscript_tdz_value_13) { if (__eliscript_tdz_ready_13 !== true) __eliscript_tdz_error("build_operation_multi_version"); return __eliscript_const_error(); }
|
|
45
|
-
var __eliscript_tdz_ready_14;
|
|
46
|
-
function __eliscript_tdz_read_14() { if (__eliscript_tdz_ready_14 !== true) __eliscript_tdz_error("check_operation_format"); return check_operation_format; }
|
|
47
|
-
function __eliscript_tdz_write_14(__eliscript_tdz_value_14) { if (__eliscript_tdz_ready_14 !== true) __eliscript_tdz_error("check_operation_format"); return __eliscript_const_error(); }
|
|
48
|
-
var __eliscript_tdz_ready_15;
|
|
49
|
-
function __eliscript_tdz_read_15() { if (__eliscript_tdz_ready_15 !== true) __eliscript_tdz_error("check_operation_version"); return check_operation_version; }
|
|
50
|
-
function __eliscript_tdz_write_15(__eliscript_tdz_value_15) { if (__eliscript_tdz_ready_15 !== true) __eliscript_tdz_error("check_operation_version"); return __eliscript_const_error(); }
|
|
51
|
-
var __eliscript_tdz_ready_16;
|
|
52
|
-
function __eliscript_tdz_read_16() { if (__eliscript_tdz_ready_16 !== true) __eliscript_tdz_error("project_check_report_format"); return project_check_report_format; }
|
|
53
|
-
function __eliscript_tdz_write_16(__eliscript_tdz_value_16) { if (__eliscript_tdz_ready_16 !== true) __eliscript_tdz_error("project_check_report_format"); return __eliscript_const_error(); }
|
|
54
|
-
var __eliscript_tdz_ready_17;
|
|
55
|
-
function __eliscript_tdz_read_17() { if (__eliscript_tdz_ready_17 !== true) __eliscript_tdz_error("project_check_report_version"); return project_check_report_version; }
|
|
56
|
-
function __eliscript_tdz_write_17(__eliscript_tdz_value_17) { if (__eliscript_tdz_ready_17 !== true) __eliscript_tdz_error("project_check_report_version"); return __eliscript_const_error(); }
|
|
57
|
-
var __eliscript_tdz_ready_18;
|
|
58
|
-
function __eliscript_tdz_read_18() { if (__eliscript_tdz_ready_18 !== true) __eliscript_tdz_error("project_cache_format"); return project_cache_format; }
|
|
59
|
-
function __eliscript_tdz_write_18(__eliscript_tdz_value_18) { if (__eliscript_tdz_ready_18 !== true) __eliscript_tdz_error("project_cache_format"); return __eliscript_const_error(); }
|
|
60
|
-
var __eliscript_tdz_ready_19;
|
|
61
|
-
function __eliscript_tdz_read_19() { if (__eliscript_tdz_ready_19 !== true) __eliscript_tdz_error("project_cache_version"); return project_cache_version; }
|
|
62
|
-
function __eliscript_tdz_write_19(__eliscript_tdz_value_19) { if (__eliscript_tdz_ready_19 !== true) __eliscript_tdz_error("project_cache_version"); return __eliscript_const_error(); }
|
|
63
|
-
var __eliscript_tdz_ready_20;
|
|
64
|
-
function __eliscript_tdz_read_20() { if (__eliscript_tdz_ready_20 !== true) __eliscript_tdz_error("project_cache_legacy_version"); return project_cache_legacy_version; }
|
|
65
|
-
function __eliscript_tdz_write_20(__eliscript_tdz_value_20) { if (__eliscript_tdz_ready_20 !== true) __eliscript_tdz_error("project_cache_legacy_version"); return __eliscript_const_error(); }
|
|
66
3
|
var __eliscript_tdz_ready_21;
|
|
67
4
|
function __eliscript_tdz_read_21() { if (__eliscript_tdz_ready_21 !== true) __eliscript_tdz_error("fail"); return fail; }
|
|
68
|
-
function __eliscript_tdz_write_21(__eliscript_tdz_value_21) { if (__eliscript_tdz_ready_21 !== true) __eliscript_tdz_error("fail"); return __eliscript_const_error(); }
|
|
69
5
|
var __eliscript_tdz_ready_22;
|
|
70
6
|
function __eliscript_tdz_read_22() { if (__eliscript_tdz_ready_22 !== true) __eliscript_tdz_error("array_p"); return array_p; }
|
|
71
|
-
function __eliscript_tdz_write_22(__eliscript_tdz_value_22) { if (__eliscript_tdz_ready_22 !== true) __eliscript_tdz_error("array_p"); return __eliscript_const_error(); }
|
|
72
7
|
var __eliscript_tdz_ready_23;
|
|
73
8
|
function __eliscript_tdz_read_23() { if (__eliscript_tdz_ready_23 !== true) __eliscript_tdz_error("object_p"); return object_p; }
|
|
74
|
-
function __eliscript_tdz_write_23(__eliscript_tdz_value_23) { if (__eliscript_tdz_ready_23 !== true) __eliscript_tdz_error("object_p"); return __eliscript_const_error(); }
|
|
75
9
|
var __eliscript_tdz_ready_24;
|
|
76
10
|
function __eliscript_tdz_read_24() { if (__eliscript_tdz_ready_24 !== true) __eliscript_tdz_error("sorted_set_values"); return sorted_set_values; }
|
|
77
|
-
function __eliscript_tdz_write_24(__eliscript_tdz_value_24) { if (__eliscript_tdz_ready_24 !== true) __eliscript_tdz_error("sorted_set_values"); return __eliscript_const_error(); }
|
|
78
11
|
var __eliscript_tdz_ready_25;
|
|
79
12
|
function __eliscript_tdz_read_25() { if (__eliscript_tdz_ready_25 !== true) __eliscript_tdz_error("nonnegative_number_p"); return nonnegative_number_p; }
|
|
80
|
-
function __eliscript_tdz_write_25(__eliscript_tdz_value_25) { if (__eliscript_tdz_ready_25 !== true) __eliscript_tdz_error("nonnegative_number_p"); return __eliscript_const_error(); }
|
|
81
13
|
var __eliscript_tdz_ready_26;
|
|
82
14
|
function __eliscript_tdz_read_26() { if (__eliscript_tdz_ready_26 !== true) __eliscript_tdz_error("boolean_p"); return boolean_p; }
|
|
83
|
-
function __eliscript_tdz_write_26(__eliscript_tdz_value_26) { if (__eliscript_tdz_ready_26 !== true) __eliscript_tdz_error("boolean_p"); return __eliscript_const_error(); }
|
|
84
15
|
var __eliscript_tdz_ready_27;
|
|
85
16
|
function __eliscript_tdz_read_27() { if (__eliscript_tdz_ready_27 !== true) __eliscript_tdz_error("safe_relative_path_p"); return safe_relative_path_p; }
|
|
86
|
-
function __eliscript_tdz_write_27(__eliscript_tdz_value_27) { if (__eliscript_tdz_ready_27 !== true) __eliscript_tdz_error("safe_relative_path_p"); return __eliscript_const_error(); }
|
|
87
17
|
var __eliscript_tdz_ready_28;
|
|
88
18
|
function __eliscript_tdz_read_28() { if (__eliscript_tdz_ready_28 !== true) __eliscript_tdz_error("project_request_fail"); return project_request_fail; }
|
|
89
|
-
function __eliscript_tdz_write_28(__eliscript_tdz_value_28) { if (__eliscript_tdz_ready_28 !== true) __eliscript_tdz_error("project_request_fail"); return __eliscript_const_error(); }
|
|
90
19
|
var __eliscript_tdz_ready_29;
|
|
91
20
|
function __eliscript_tdz_read_29() { if (__eliscript_tdz_ready_29 !== true) __eliscript_tdz_error("project_configuration_fail"); return project_configuration_fail; }
|
|
92
|
-
function __eliscript_tdz_write_29(__eliscript_tdz_value_29) { if (__eliscript_tdz_ready_29 !== true) __eliscript_tdz_error("project_configuration_fail"); return __eliscript_const_error(); }
|
|
93
21
|
var __eliscript_tdz_ready_30;
|
|
94
22
|
function __eliscript_tdz_read_30() { if (__eliscript_tdz_ready_30 !== true) __eliscript_tdz_error("project_configuration_keys_v1"); return project_configuration_keys_v1; }
|
|
95
|
-
function __eliscript_tdz_write_30(__eliscript_tdz_value_30) { if (__eliscript_tdz_ready_30 !== true) __eliscript_tdz_error("project_configuration_keys_v1"); return __eliscript_const_error(); }
|
|
96
23
|
var __eliscript_tdz_ready_31;
|
|
97
24
|
function __eliscript_tdz_read_31() { if (__eliscript_tdz_ready_31 !== true) __eliscript_tdz_error("project_configuration_keys_v2"); return project_configuration_keys_v2; }
|
|
98
|
-
function __eliscript_tdz_write_31(__eliscript_tdz_value_31) { if (__eliscript_tdz_ready_31 !== true) __eliscript_tdz_error("project_configuration_keys_v2"); return __eliscript_const_error(); }
|
|
99
25
|
var __eliscript_tdz_ready_32;
|
|
100
26
|
function __eliscript_tdz_read_32() { if (__eliscript_tdz_ready_32 !== true) __eliscript_tdz_error("supported_macro_capabilities"); return supported_macro_capabilities; }
|
|
101
|
-
function __eliscript_tdz_write_32(__eliscript_tdz_value_32) { if (__eliscript_tdz_ready_32 !== true) __eliscript_tdz_error("supported_macro_capabilities"); return __eliscript_const_error(); }
|
|
102
27
|
import "eliscript/runtime/unicode-case.mjs";
|
|
103
28
|
import "eliscript/runtime/math.mjs";
|
|
104
|
-
import {
|
|
29
|
+
import { __eliscript_at, __eliscript_at_direct, __eliscript_to_number, __eliscript_numeric_decrement, __eliscript_numeric_relation, __eliscript_numeric_sub, __eliscript_numeric_mul, __eliscript_numeric_div, __eliscript_numeric_rem, __eliscript_numeric_and, __eliscript_numeric_or, __eliscript_numeric_xor, __eliscript_numeric_shl, __eliscript_numeric_shr, __eliscript_numeric_ushr, __eliscript_numeric_neg, __eliscript_numeric_int32, __eliscript_numeric_uint32, __eliscript_numeric_not } from "eliscript/runtime/prelude.mjs";
|
|
105
30
|
const __eliscript_truthy = (value) => value !== false && value != null;
|
|
106
|
-
const __eliscript_number_intrinsic = globalThis.Number;
|
|
107
|
-
const __eliscript_bigint_intrinsic = globalThis.BigInt;
|
|
108
|
-
const __eliscript_numeric_apply = globalThis.Reflect.apply;
|
|
109
|
-
const __eliscript_numeric_symbol = globalThis.Symbol.toPrimitive;
|
|
110
|
-
const __eliscript_numeric_error = globalThis.TypeError;
|
|
111
|
-
const __eliscript_numeric_trim = globalThis.String.prototype.trim;
|
|
112
|
-
const __eliscript_numeric_slice = globalThis.String.prototype.slice;
|
|
113
|
-
const __eliscript_numeric_exec = globalThis.RegExp.prototype.exec;
|
|
114
|
-
const __eliscript_numeric_radix = /^(?:0[xX][0-9a-fA-F]+|0[oO][0-7]+|0[bB][01]+)$/;
|
|
115
|
-
const __eliscript_numeric_object = (value) => value !== null && (typeof value === "object" || typeof value === "function" || (typeof value === "undefined" && value !== void 0));
|
|
116
|
-
const __eliscript_numeric_primitive = (value) => {
|
|
117
|
-
if (!__eliscript_numeric_object(value)) return value;
|
|
118
|
-
const exotic = value[__eliscript_numeric_symbol];
|
|
119
|
-
if (exotic !== void 0 && exotic !== null) {
|
|
120
|
-
const result = __eliscript_numeric_apply(exotic, value, ["number"]);
|
|
121
|
-
if (!__eliscript_numeric_object(result)) return result;
|
|
122
|
-
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
123
|
-
}
|
|
124
|
-
for (let index = 0; index < 2; index++) {
|
|
125
|
-
const method = value[index === 0 ? "valueOf" : "toString"];
|
|
126
|
-
if (typeof method === "function" || (typeof method === "undefined" && method !== void 0)) {
|
|
127
|
-
const result = __eliscript_numeric_apply(method, value, []);
|
|
128
|
-
if (!__eliscript_numeric_object(result)) return result;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
132
|
-
};
|
|
133
|
-
const __eliscript_to_number = (value) => {
|
|
134
|
-
const primitive = __eliscript_numeric_primitive(value);
|
|
135
|
-
if (typeof primitive === "string") {
|
|
136
|
-
const text = __eliscript_numeric_apply(__eliscript_numeric_trim, primitive, []);
|
|
137
|
-
if (__eliscript_numeric_apply(__eliscript_numeric_exec, __eliscript_numeric_radix, [text]) !== null) {
|
|
138
|
-
let first = 2;
|
|
139
|
-
while (first < text.length && text[first] === "0") first++;
|
|
140
|
-
if (first === text.length) return 0;
|
|
141
|
-
const prefix = text[1];
|
|
142
|
-
const limit = prefix === "x" || prefix === "X" ? 256 : prefix === "b" || prefix === "B" ? 1024 : 342;
|
|
143
|
-
if (text.length - first > limit) return 1 / 0;
|
|
144
|
-
const token = __eliscript_numeric_apply(__eliscript_numeric_slice, text, [0, 2]) + __eliscript_numeric_apply(__eliscript_numeric_slice, text, [first]);
|
|
145
|
-
return __eliscript_number_intrinsic(__eliscript_bigint_intrinsic(token));
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
return __eliscript_number_intrinsic(primitive);
|
|
149
|
-
};
|
|
150
|
-
const __eliscript_numeric = (value) => {
|
|
151
|
-
if (typeof value === "number" || typeof value === "bigint") return value;
|
|
152
|
-
const primitive = __eliscript_numeric_primitive(value);
|
|
153
|
-
if (typeof primitive === "number" || typeof primitive === "bigint") return primitive;
|
|
154
|
-
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
155
|
-
};
|
|
156
|
-
const __eliscript_implicit_number = (value) => {
|
|
157
|
-
if (typeof value === "number") return value;
|
|
158
|
-
const primitive = __eliscript_numeric_primitive(value);
|
|
159
|
-
if (typeof primitive === "bigint") throw new __eliscript_numeric_error("Cannot convert a BigInt value to a number");
|
|
160
|
-
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
161
|
-
};
|
|
162
|
-
const __eliscript_numeric_decrement = (value) => __eliscript_implicit_number(value) - 1;
|
|
163
|
-
const __eliscript_numeric_sub = (a, b) => { if (typeof a === "number" && typeof b === "number") return a - b; return __eliscript_numeric(a) - __eliscript_numeric(b); };
|
|
164
|
-
const __eliscript_numeric_mul = (a, b) => { if (typeof a === "number" && typeof b === "number") return a * b; return __eliscript_numeric(a) * __eliscript_numeric(b); };
|
|
165
|
-
const __eliscript_numeric_div = (a, b) => { if (typeof a === "number" && typeof b === "number") return a / b; return __eliscript_numeric(a) / __eliscript_numeric(b); };
|
|
166
|
-
const __eliscript_numeric_rem = (a, b) => { if (typeof a === "number" && typeof b === "number") return a % b; return __eliscript_numeric(a) % __eliscript_numeric(b); };
|
|
167
|
-
const __eliscript_numeric_and = (a, b) => { if (typeof a === "number" && typeof b === "number") return a & b; return __eliscript_numeric(a) & __eliscript_numeric(b); };
|
|
168
|
-
const __eliscript_numeric_or = (a, b) => { if (typeof a === "number" && typeof b === "number") return a | b; return __eliscript_numeric(a) | __eliscript_numeric(b); };
|
|
169
|
-
const __eliscript_numeric_xor = (a, b) => { if (typeof a === "number" && typeof b === "number") return a ^ b; return __eliscript_numeric(a) ^ __eliscript_numeric(b); };
|
|
170
|
-
const __eliscript_numeric_shl = (a, b) => { if (typeof a === "number" && typeof b === "number") return a << b; return __eliscript_numeric(a) << __eliscript_numeric(b); };
|
|
171
|
-
const __eliscript_numeric_shr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >> b; return __eliscript_numeric(a) >> __eliscript_numeric(b); };
|
|
172
|
-
const __eliscript_numeric_ushr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >>> b; return __eliscript_numeric(a) >>> __eliscript_numeric(b); };
|
|
173
|
-
const __eliscript_numeric_neg = (a) => typeof a === "number" ? -a : -__eliscript_numeric(a);
|
|
174
|
-
const __eliscript_numeric_int32 = (a) => typeof a === "number" ? a | 0 : __eliscript_numeric(a) | 0;
|
|
175
|
-
const __eliscript_numeric_uint32 = (a) => typeof a === "number" ? a >>> 0 : __eliscript_numeric(a) >>> 0;
|
|
176
|
-
const __eliscript_numeric_not = (a) => typeof a === "number" ? ~a : ~__eliscript_numeric(a);
|
|
177
|
-
const __eliscript_numeric_relation = (operator, left, right) => {
|
|
178
|
-
if (typeof left === "number" && typeof right === "number") {
|
|
179
|
-
if (operator === "<") return left < right;
|
|
180
|
-
if (operator === "<=") return left <= right;
|
|
181
|
-
if (operator === ">") return left > right;
|
|
182
|
-
return left >= right;
|
|
183
|
-
}
|
|
184
|
-
let a = __eliscript_numeric_primitive(left);
|
|
185
|
-
let b = __eliscript_numeric_primitive(right);
|
|
186
|
-
const x = typeof a, y = typeof b;
|
|
187
|
-
if (!((x === "string" && y === "string") || (x === "bigint" && y === "string") || (x === "string" && y === "bigint"))) {
|
|
188
|
-
a = __eliscript_numeric(a);
|
|
189
|
-
b = __eliscript_numeric(b);
|
|
190
|
-
}
|
|
191
|
-
if (operator === "<") return a < b;
|
|
192
|
-
if (operator === "<=") return a <= b;
|
|
193
|
-
if (operator === ">") return a > b;
|
|
194
|
-
return a >= b;
|
|
195
|
-
};
|
|
196
31
|
|
|
197
32
|
const project_plan_format = "eliscript-project-plan";
|
|
198
|
-
__eliscript_tdz_ready_0 = true;
|
|
199
33
|
const project_plan_version = 1;
|
|
200
|
-
__eliscript_tdz_ready_1 = true;
|
|
201
34
|
const project_plan_max_iterations = 100000;
|
|
202
|
-
__eliscript_tdz_ready_2 = true;
|
|
203
35
|
const project_build_report_format = "eliscript-build-report";
|
|
204
|
-
__eliscript_tdz_ready_3 = true;
|
|
205
36
|
const project_build_report_version = 1;
|
|
206
|
-
__eliscript_tdz_ready_4 = true;
|
|
207
37
|
const project_build_report_multi_version = 2;
|
|
208
|
-
__eliscript_tdz_ready_5 = true;
|
|
209
38
|
const project_request_format = "eliscript-project-request";
|
|
210
|
-
__eliscript_tdz_ready_6 = true;
|
|
211
39
|
const project_request_version = 1;
|
|
212
|
-
__eliscript_tdz_ready_7 = true;
|
|
213
40
|
const project_request_multi_version = 2;
|
|
214
|
-
__eliscript_tdz_ready_8 = true;
|
|
215
41
|
const project_configuration_version = 1;
|
|
216
|
-
__eliscript_tdz_ready_9 = true;
|
|
217
42
|
const project_configuration_multi_version = 2;
|
|
218
|
-
__eliscript_tdz_ready_10 = true;
|
|
219
43
|
const build_operation_format = "eliscript-build-operation";
|
|
220
|
-
__eliscript_tdz_ready_11 = true;
|
|
221
44
|
const build_operation_version = 1;
|
|
222
|
-
__eliscript_tdz_ready_12 = true;
|
|
223
45
|
const build_operation_multi_version = 2;
|
|
224
|
-
__eliscript_tdz_ready_13 = true;
|
|
225
46
|
const check_operation_format = "eliscript-check-operation";
|
|
226
|
-
__eliscript_tdz_ready_14 = true;
|
|
227
47
|
const check_operation_version = 1;
|
|
228
|
-
__eliscript_tdz_ready_15 = true;
|
|
229
48
|
const project_check_report_format = "eliscript-check-report";
|
|
230
|
-
__eliscript_tdz_ready_16 = true;
|
|
231
49
|
const project_check_report_version = 1;
|
|
232
|
-
__eliscript_tdz_ready_17 = true;
|
|
233
50
|
const project_cache_format = "eliscript-project-cache";
|
|
234
|
-
__eliscript_tdz_ready_18 = true;
|
|
235
51
|
const project_cache_version = 2;
|
|
236
|
-
__eliscript_tdz_ready_19 = true;
|
|
237
52
|
const project_cache_legacy_version = 1;
|
|
238
|
-
__eliscript_tdz_ready_20 = true;
|
|
239
53
|
function utf16_string_order(left, right) {
|
|
240
54
|
if (__eliscript_numeric_relation("<", left, right)) {
|
|
241
55
|
return -1;
|
|
@@ -485,9 +299,9 @@ function project_request(input) {
|
|
|
485
299
|
(globalThis.Object)["freeze"](macro_file_dependencies);
|
|
486
300
|
(globalThis.Object)["freeze"](entries);
|
|
487
301
|
if (__eliscript_truthy(multi)) {
|
|
488
|
-
return (globalThis.Object)["freeze"](({"format":
|
|
302
|
+
return (globalThis.Object)["freeze"](({"format": project_request_format, "version": project_request_multi_version, "entries": entries, "outDir": out_dir, "root": root, "portableEntries": portable_entries, "macroCapabilities": macro_capabilities, "macroFileDependencies": macro_file_dependencies, "useCache": use_cache}));
|
|
489
303
|
} else {
|
|
490
|
-
return (globalThis.Object)["freeze"](({"format":
|
|
304
|
+
return (globalThis.Object)["freeze"](({"format": project_request_format, "version": project_request_version, "entry": entry, "outDir": out_dir, "root": root, "portableEntries": portable_entries, "macroCapabilities": macro_capabilities, "macroFileDependencies": macro_file_dependencies, "useCache": use_cache}));
|
|
491
305
|
}
|
|
492
306
|
}
|
|
493
307
|
}
|
|
@@ -544,7 +358,7 @@ function build_operation_request(input) {
|
|
|
544
358
|
{
|
|
545
359
|
let portable_entries = __eliscript_value_34;
|
|
546
360
|
(globalThis.Object)["freeze"](portable_entries);
|
|
547
|
-
return (globalThis.Object)["freeze"](({"format":
|
|
361
|
+
return (globalThis.Object)["freeze"](({"format": build_operation_format, "version": build_operation_version, "mode": "single", "input": source_input, "output": output, "sourceMap": source_map, "portableEntries": portable_entries}));
|
|
548
362
|
}
|
|
549
363
|
}
|
|
550
364
|
}
|
|
@@ -554,10 +368,10 @@ function build_operation_request(input) {
|
|
|
554
368
|
const __eliscript_value_35 = project_request(input);
|
|
555
369
|
{
|
|
556
370
|
let request = __eliscript_value_35;
|
|
557
|
-
if (((request)["version"] ===
|
|
558
|
-
return (globalThis.Object)["freeze"](({"format":
|
|
371
|
+
if (((request)["version"] === project_request_multi_version)) {
|
|
372
|
+
return (globalThis.Object)["freeze"](({"format": build_operation_format, "version": build_operation_multi_version, "mode": "project", "entries": (request)["entries"], "outDir": (request)["outDir"], "root": (request)["root"], "portableEntries": (request)["portableEntries"], "macroCapabilities": (request)["macroCapabilities"], "macroFileDependencies": (request)["macroFileDependencies"], "useCache": (request)["useCache"]}));
|
|
559
373
|
} else {
|
|
560
|
-
return (globalThis.Object)["freeze"](({"format":
|
|
374
|
+
return (globalThis.Object)["freeze"](({"format": build_operation_format, "version": build_operation_version, "mode": "project", "entry": (request)["entry"], "outDir": (request)["outDir"], "root": (request)["root"], "portableEntries": (request)["portableEntries"], "macroCapabilities": (request)["macroCapabilities"], "macroFileDependencies": (request)["macroFileDependencies"], "useCache": (request)["useCache"]}));
|
|
561
375
|
}
|
|
562
376
|
}
|
|
563
377
|
}
|
|
@@ -574,9 +388,9 @@ function check_operation_request(input) {
|
|
|
574
388
|
}
|
|
575
389
|
{
|
|
576
390
|
let request = project_request(({"entry": (input)["entry"], "entries": (input)["entries"], "outDir": ".", "root": object_field(input, "root", null), "portableEntries": object_field(input, "portableEntries", []), "macroCapabilities": object_field(input, "macroCapabilities", []), "macroFileDependencies": object_field(input, "macroFileDependencies", []), "useCache": false}));
|
|
577
|
-
let entries = (((request)["version"] ===
|
|
391
|
+
let entries = (((request)["version"] === project_request_multi_version) ? (request)["entries"] : [(request)["entry"]]);
|
|
578
392
|
(globalThis.Object)["freeze"](entries);
|
|
579
|
-
return (globalThis.Object)["freeze"](({"format":
|
|
393
|
+
return (globalThis.Object)["freeze"](({"format": check_operation_format, "version": check_operation_version, "mode": "project", "entries": entries, "root": (request)["root"], "portableEntries": (request)["portableEntries"], "macroCapabilities": (request)["macroCapabilities"], "macroFileDependencies": (request)["macroFileDependencies"]}));
|
|
580
394
|
}
|
|
581
395
|
}
|
|
582
396
|
function project_configuration(input, filename) {
|
|
@@ -585,7 +399,7 @@ function project_configuration(input, filename) {
|
|
|
585
399
|
}
|
|
586
400
|
{
|
|
587
401
|
let schema_version = object_field(input, "schemaVersion", undefined);
|
|
588
|
-
let configuration_keys = ((schema_version ===
|
|
402
|
+
let configuration_keys = ((schema_version === project_configuration_version) ? (__eliscript_tdz_read_30()) : ((schema_version === project_configuration_multi_version) ? (__eliscript_tdz_read_31()) : (__eliscript_tdz_read_29())((String("unsupported schemaVersion: ") + String(schema_version)), filename)));
|
|
589
403
|
{
|
|
590
404
|
const __eliscript_value_36 = [];
|
|
591
405
|
{
|
|
@@ -632,7 +446,7 @@ function project_configuration(input, filename) {
|
|
|
632
446
|
{
|
|
633
447
|
let macro_file_dependencies = __eliscript_value_40;
|
|
634
448
|
{
|
|
635
|
-
const __eliscript_value_41 = ((schema_version ===
|
|
449
|
+
const __eliscript_value_41 = ((schema_version === project_configuration_multi_version) ? (() => {
|
|
636
450
|
if ((!__eliscript_truthy(((__eliscript_value_42) => (__eliscript_truthy(__eliscript_value_42) ? ((__eliscript_value_43) => (__eliscript_truthy(__eliscript_value_43) ? (entries_input)["every"](((source) => {
|
|
637
451
|
return ((typeof source === "string") && __eliscript_numeric_relation(">", (source)["length"], 0));
|
|
638
452
|
})) : __eliscript_value_43))(__eliscript_numeric_relation(">", (entries_input)["length"], 0)) : __eliscript_value_42))((__eliscript_tdz_read_22())(entries_input))))) {
|
|
@@ -674,7 +488,7 @@ function project_configuration(input, filename) {
|
|
|
674
488
|
if ((!__eliscript_truthy((__eliscript_tdz_read_27())(source_root)))) {
|
|
675
489
|
(__eliscript_tdz_read_29())("sourceRoot must be a contained relative path", filename);
|
|
676
490
|
}
|
|
677
|
-
if ((schema_version ===
|
|
491
|
+
if ((schema_version === project_configuration_multi_version)) {
|
|
678
492
|
if ((!((entries)["length"] === (entries_input)["length"]))) {
|
|
679
493
|
(__eliscript_tdz_read_29())("entries must not contain duplicates", filename);
|
|
680
494
|
}
|
|
@@ -700,10 +514,10 @@ function project_configuration(input, filename) {
|
|
|
700
514
|
(globalThis.Object)["freeze"](macro_capabilities);
|
|
701
515
|
(globalThis.Object)["freeze"](macro_file_dependencies);
|
|
702
516
|
(globalThis.Object)["freeze"](entries);
|
|
703
|
-
if ((schema_version ===
|
|
704
|
-
return (globalThis.Object)["freeze"](({"format":
|
|
517
|
+
if ((schema_version === project_configuration_multi_version)) {
|
|
518
|
+
return (globalThis.Object)["freeze"](({"format": project_request_format, "version": project_request_multi_version, "sourceRoot": source_root, "entries": entries, "outDir": out_dir, "portableEntries": portable_entries, "macroCapabilities": macro_capabilities, "macroFileDependencies": macro_file_dependencies, "cache": cache}));
|
|
705
519
|
} else {
|
|
706
|
-
return (globalThis.Object)["freeze"](({"format":
|
|
520
|
+
return (globalThis.Object)["freeze"](({"format": project_request_format, "version": project_request_version, "sourceRoot": source_root, "entry": entry, "outDir": out_dir, "portableEntries": portable_entries, "macroCapabilities": macro_capabilities, "macroFileDependencies": macro_file_dependencies, "cache": cache}));
|
|
707
521
|
}
|
|
708
522
|
}
|
|
709
523
|
}
|
|
@@ -779,7 +593,7 @@ function project_plan(entries, dependencies_for) {
|
|
|
779
593
|
let iterations = 0;
|
|
780
594
|
while (__eliscript_numeric_relation(">", (pending)["size"], 0)) {
|
|
781
595
|
((iterations = (iterations + 1)));
|
|
782
|
-
if (__eliscript_numeric_relation(">", iterations,
|
|
596
|
+
if (__eliscript_numeric_relation(">", iterations, project_plan_max_iterations)) {
|
|
783
597
|
(__eliscript_tdz_read_21())("project graph exceeded the planning iteration limit");
|
|
784
598
|
}
|
|
785
599
|
{
|
|
@@ -815,7 +629,7 @@ function project_plan(entries, dependencies_for) {
|
|
|
815
629
|
return (modules)["push"]((records)["get"](module_id));
|
|
816
630
|
}));
|
|
817
631
|
(globalThis.Object)["freeze"](modules);
|
|
818
|
-
return (globalThis.Object)["freeze"](({"format":
|
|
632
|
+
return (globalThis.Object)["freeze"](({"format": project_plan_format, "version": project_plan_version, "mode": "standard", "entries": (globalThis.Object)["freeze"](entry_list), "modules": modules}));
|
|
819
633
|
}
|
|
820
634
|
}
|
|
821
635
|
}
|
|
@@ -858,7 +672,7 @@ function portable_project_plan(initial_requests, dependencies_for) {
|
|
|
858
672
|
}));
|
|
859
673
|
while (__eliscript_numeric_relation(">", (pending)["size"], 0)) {
|
|
860
674
|
((iterations = (iterations + 1)));
|
|
861
|
-
if (__eliscript_numeric_relation(">", iterations,
|
|
675
|
+
if (__eliscript_numeric_relation(">", iterations, project_plan_max_iterations)) {
|
|
862
676
|
(__eliscript_tdz_read_21())("portable project graph exceeded the planning iteration limit");
|
|
863
677
|
}
|
|
864
678
|
{
|
|
@@ -888,7 +702,7 @@ function portable_project_plan(initial_requests, dependencies_for) {
|
|
|
888
702
|
return (modules)["push"]((records)["get"](module_id));
|
|
889
703
|
}));
|
|
890
704
|
(globalThis.Object)["freeze"](modules);
|
|
891
|
-
return (globalThis.Object)["freeze"](({"format":
|
|
705
|
+
return (globalThis.Object)["freeze"](({"format": project_plan_format, "version": project_plan_version, "mode": "portable", "entries": initial, "modules": modules}));
|
|
892
706
|
}
|
|
893
707
|
}
|
|
894
708
|
}
|
|
@@ -897,10 +711,10 @@ function project_cache_miss(reason) {
|
|
|
897
711
|
return (globalThis.Object)["freeze"](({"cache": null, "reason": reason}));
|
|
898
712
|
}
|
|
899
713
|
function project_cache_version_kind(cache) {
|
|
900
|
-
if ((((cache)["format"] ===
|
|
714
|
+
if ((((cache)["format"] === project_cache_format) && ((cache)["version"] === project_cache_version))) {
|
|
901
715
|
return "current";
|
|
902
716
|
} else {
|
|
903
|
-
if ((((cache)["format"] === undefined) && ((cache)["version"] ===
|
|
717
|
+
if ((((cache)["format"] === undefined) && ((cache)["version"] === project_cache_legacy_version))) {
|
|
904
718
|
return "legacy";
|
|
905
719
|
} else {
|
|
906
720
|
return false;
|
|
@@ -1186,7 +1000,7 @@ function project_build_report(build) {
|
|
|
1186
1000
|
(globalThis.Object)["freeze"](entries);
|
|
1187
1001
|
(globalThis.Object)["freeze"](entry_outputs);
|
|
1188
1002
|
{
|
|
1189
|
-
const __eliscript_value_86 = ({"format":
|
|
1003
|
+
const __eliscript_value_86 = ({"format": project_build_report_format, "version": (__eliscript_truthy(multi) ? project_build_report_multi_version : project_build_report_version), "mode": mode, "root": require_string((build)["root"], "build report root"), "outDir": require_string((build)["outDir"], "build report output directory"), "manifest": require_string((build)["manifest"], "build report manifest"), "digest": require_string((build)["digest"], "build report digest"), "portableEntries": (globalThis.Object)["freeze"](normalize_strings((build)["portableEntries"], "build report portable entries", false)), "cache": (globalThis.Object)["freeze"](({"enabled": (__eliscript_truthy(cache_enabled) ? true : false), "status": cache_status, "reason": cache_reason})), "counts": (globalThis.Object)["freeze"](({"modules": (modules)["length"], "compiled": compiled, "reused": reused})), "timings": (globalThis.Object)["freeze"](({"cacheReadMs": report_milliseconds((timings)["cacheReadMs"], "build report cache read time"), "workMs": report_milliseconds((timings)["workMs"], "build report work time"), "manifestWriteMs": report_milliseconds((timings)["manifestWriteMs"], "build report manifest write time"), "totalMs": report_milliseconds((timings)["totalMs"], "build report total time")})), "modules": modules});
|
|
1190
1004
|
{
|
|
1191
1005
|
let common = __eliscript_value_86;
|
|
1192
1006
|
if (__eliscript_truthy(multi)) {
|
|
@@ -1249,7 +1063,7 @@ function project_check_report(check) {
|
|
|
1249
1063
|
}
|
|
1250
1064
|
(globalThis.Object)["freeze"](entries);
|
|
1251
1065
|
(globalThis.Object)["freeze"](portable_entries);
|
|
1252
|
-
return (globalThis.Object)["freeze"](({"format":
|
|
1066
|
+
return (globalThis.Object)["freeze"](({"format": project_check_report_format, "version": project_check_report_version, "status": "ok", "mode": mode, "root": require_string((check)["root"], "project check report root"), "entries": entries, "portableEntries": portable_entries, "counts": (globalThis.Object)["freeze"](({"modules": (modules)["length"]})), "modules": modules}));
|
|
1253
1067
|
}
|
|
1254
1068
|
}
|
|
1255
1069
|
export {project_plan_format, project_plan_version, project_plan, portable_project_plan, project_build_report_format, project_build_report_version, project_build_report_multi_version, project_build_report, project_request_format, project_request_version, project_request_multi_version, project_request, project_configuration, build_operation_format, build_operation_version, build_operation_multi_version, build_operation_request, check_operation_format, check_operation_version, check_operation_request, project_check_report_format, project_check_report_version, project_check_report, project_cache_format, project_cache_version, project_cache_lookup, project_cache_decision};
|