eliscript 0.0.1 → 0.0.2
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 +59 -0
- package/bootstrap/README.md +26 -0
- package/bootstrap/backends/README.md +515 -0
- package/bootstrap/backends/async.eli +230 -0
- package/bootstrap/backends/binary.eli +173 -0
- package/bootstrap/backends/capabilities.eli +74 -0
- package/bootstrap/backends/elf.eli +246 -0
- package/bootstrap/backends/managed.eli +5976 -0
- package/bootstrap/backends/memory.eli +100 -0
- package/bootstrap/backends/native.eli +2000 -0
- package/bootstrap/backends/numeric.eli +1362 -0
- package/bootstrap/backends/optimize.eli +79 -0
- package/bootstrap/backends/regexp.eli +2263 -0
- package/bootstrap/backends/sha256.eli +138 -0
- package/bootstrap/backends/wasm.eli +1161 -0
- package/bootstrap/compiler/analyzer.eli +165 -77
- package/bootstrap/compiler/compiler.eli +43 -19
- package/bootstrap/compiler/emitter.eli +780 -170
- package/bootstrap/compiler/expander.eli +136 -45
- package/bootstrap/compiler/formatter.eli +8 -1
- package/bootstrap/compiler/ir.eli +148 -45
- package/bootstrap/compiler/lower.eli +29 -2
- package/bootstrap/compiler/project.eli +51 -21
- package/bootstrap/compiler/reader.eli +128 -36
- package/bootstrap/compiler/source-map.eli +46 -4
- package/bootstrap/compiler/symbol.eli +2 -1
- package/bootstrap/compiler/syntax.eli +47 -12
- package/bootstrap/compiler/transient-analysis.eli +40 -4
- package/bootstrap/host/check-cli-legacy.mjs +163 -0
- package/bootstrap/host/check-cli.mjs +59 -158
- package/bootstrap/host/check-cli.mjs.map +1 -0
- package/bootstrap/host/compiler-session.eli +1579 -0
- package/bootstrap/host/compiler-tools.eli +513 -0
- package/bootstrap/host/eliscript-cli-legacy.mjs +37 -0
- package/bootstrap/host/eliscript-cli.mjs +53 -33
- package/bootstrap/host/eliscript-cli.mjs.map +1 -0
- package/bootstrap/host/project-cli-legacy.mjs +295 -0
- package/bootstrap/host/project-cli.mjs +74 -289
- package/bootstrap/host/project-cli.mjs.map +1 -0
- package/bootstrap/host/project-legacy.mjs +1080 -0
- package/bootstrap/host/project.mjs +210 -1060
- package/bootstrap/host/project.mjs.map +1 -0
- package/bootstrap/runtime/UNICODE-LICENSE.txt +39 -0
- package/bootstrap/runtime/memory.eli +30379 -0
- package/browser/host.mjs +89 -0
- package/compiler/eliscript-analyzer.el +371 -4
- package/compiler/eliscript-cli.el +84 -1
- package/compiler/eliscript-emitter.el +1189 -256
- package/compiler/eliscript-expander.el +147 -10
- package/compiler/eliscript-ir-emitter.el +725 -208
- package/compiler/eliscript-lower.el +127 -1
- package/compiler/eliscript-portable.el +177 -51
- package/compiler/eliscript-project.el +20 -2
- package/compiler/eliscript-reader.el +141 -57
- package/compiler/eliscript-source-map.el +26 -12
- package/compiler/eliscript-transient-analysis.el +382 -19
- package/dist/backends/async.mjs +561 -0
- package/dist/backends/async.mjs.macro-origins.json +1 -0
- package/dist/backends/async.mjs.map +1 -0
- package/dist/backends/binary.mjs +381 -0
- package/dist/backends/binary.mjs.macro-origins.json +1 -0
- package/dist/backends/binary.mjs.map +1 -0
- package/dist/backends/capabilities.mjs +237 -0
- package/dist/backends/capabilities.mjs.macro-origins.json +1 -0
- package/dist/backends/capabilities.mjs.map +1 -0
- package/dist/backends/elf.mjs +540 -0
- package/dist/backends/elf.mjs.macro-origins.json +1 -0
- package/dist/backends/elf.mjs.map +1 -0
- package/dist/backends/managed.mjs +10616 -0
- package/dist/backends/managed.mjs.macro-origins.json +1 -0
- package/dist/backends/managed.mjs.map +1 -0
- package/dist/backends/memory.mjs +278 -0
- package/dist/backends/memory.mjs.macro-origins.json +1 -0
- package/dist/backends/memory.mjs.map +1 -0
- package/dist/backends/native.mjs +4099 -0
- package/dist/backends/native.mjs.macro-origins.json +1 -0
- package/dist/backends/native.mjs.map +1 -0
- package/dist/backends/numeric.mjs +2458 -0
- package/dist/backends/numeric.mjs.macro-origins.json +1 -0
- package/dist/backends/numeric.mjs.map +1 -0
- package/dist/backends/optimize.mjs +204 -0
- package/dist/backends/optimize.mjs.macro-origins.json +1 -0
- package/dist/backends/optimize.mjs.map +1 -0
- package/dist/backends/regexp.mjs +2033 -0
- package/dist/backends/regexp.mjs.macro-origins.json +1 -0
- package/dist/backends/regexp.mjs.map +1 -0
- package/dist/backends/sha256.mjs +310 -0
- package/dist/backends/sha256.mjs.macro-origins.json +1 -0
- package/dist/backends/sha256.mjs.map +1 -0
- package/dist/backends/wasm.mjs +2258 -0
- package/dist/backends/wasm.mjs.macro-origins.json +1 -0
- package/dist/backends/wasm.mjs.map +1 -0
- package/dist/bootstrap/analyzer.mjs +1908 -776
- package/dist/bootstrap/analyzer.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/analyzer.mjs.map +1 -1
- package/dist/bootstrap/compiler.mjs +450 -142
- package/dist/bootstrap/compiler.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/compiler.mjs.map +1 -1
- package/dist/bootstrap/emitter.mjs +3083 -909
- package/dist/bootstrap/emitter.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/emitter.mjs.map +1 -1
- package/dist/bootstrap/expander.mjs +2887 -1233
- package/dist/bootstrap/expander.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/expander.mjs.map +1 -1
- package/dist/bootstrap/formatter.mjs +582 -218
- package/dist/bootstrap/formatter.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/formatter.mjs.map +1 -1
- package/dist/bootstrap/ir.mjs +670 -116
- package/dist/bootstrap/ir.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/ir.mjs.map +1 -1
- package/dist/bootstrap/lower.mjs +866 -257
- package/dist/bootstrap/lower.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/lower.mjs.map +1 -1
- package/dist/bootstrap/package.json +1 -0
- package/dist/bootstrap/project.mjs +1168 -498
- package/dist/bootstrap/project.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/project.mjs.map +1 -1
- package/dist/bootstrap/reader.mjs +674 -175
- package/dist/bootstrap/reader.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/reader.mjs.map +1 -1
- package/dist/bootstrap/runtime/math.mjs +1117 -0
- package/dist/bootstrap/runtime/math.mjs.map +1 -0
- package/dist/bootstrap/runtime/unicode-case-data.mjs +10125 -0
- package/dist/bootstrap/runtime/unicode-case-data.mjs.map +1 -0
- package/dist/bootstrap/runtime/unicode-case.mjs +281 -0
- package/dist/bootstrap/runtime/unicode-case.mjs.map +1 -0
- package/dist/bootstrap/source-map.mjs +430 -119
- package/dist/bootstrap/source-map.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/source-map.mjs.map +1 -1
- package/dist/bootstrap/symbol.mjs +229 -53
- package/dist/bootstrap/symbol.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/symbol.mjs.map +1 -1
- package/dist/bootstrap/syntax.mjs +205 -7
- package/dist/bootstrap/syntax.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/syntax.mjs.map +1 -1
- package/dist/bootstrap/transient-analysis.mjs +1185 -489
- package/dist/bootstrap/transient-analysis.mjs.macro-origins.json +1 -0
- package/dist/bootstrap/transient-analysis.mjs.map +1 -1
- package/dist/browser/compiler.js +199 -6478
- package/dist/browser/host.mjs +446 -0
- package/dist/browser/loader.js +1 -0
- package/dist/browser/loader.mjs +231 -0
- package/dist/browser/worker.mjs +60 -0
- package/dist/compiler-artifact.json +1 -0
- package/dist/host/compiler-session.mjs +2980 -0
- package/dist/host/compiler-session.mjs.macro-origins.json +1 -0
- package/dist/host/compiler-session.mjs.map +1 -0
- package/dist/host/compiler-tools.mjs +1084 -0
- package/dist/host/compiler-tools.mjs.macro-origins.json +1 -0
- package/dist/host/compiler-tools.mjs.map +1 -0
- package/dist/literal-sources/runtime/core/collection-internals.eli +60 -0
- package/dist/literal-sources/runtime/core/collection.eli +579 -0
- package/dist/literal-sources/runtime/core/data-text.eli +290 -0
- package/dist/literal-sources/runtime/core/data.eli +22 -0
- package/dist/literal-sources/runtime/core/identifier.eli +44 -0
- package/dist/literal-sources/runtime/core/lazy-sequence.eli +131 -0
- package/dist/literal-sources/runtime/core/list.eli +19 -0
- package/dist/literal-sources/runtime/core/map.eli +9 -0
- package/dist/literal-sources/runtime/core/metadata-internals.eli +6 -0
- package/dist/literal-sources/runtime/core/metadata.eli +23 -0
- package/dist/literal-sources/runtime/core/object.eli +8 -0
- package/dist/literal-sources/runtime/core/order.eli +123 -0
- package/dist/literal-sources/runtime/core/persistent-kind.eli +28 -0
- package/dist/literal-sources/runtime/core/protocol-error.eli +32 -0
- package/dist/literal-sources/runtime/core/protocol.eli +28 -0
- package/dist/literal-sources/runtime/core/queue.eli +9 -0
- package/dist/literal-sources/runtime/core/record.eli +191 -0
- package/dist/literal-sources/runtime/core/regex.eli +158 -0
- package/dist/literal-sources/runtime/core/sequence.eli +305 -0
- package/dist/literal-sources/runtime/core/set-algebra.eli +28 -0
- package/dist/literal-sources/runtime/core/set.eli +9 -0
- package/dist/literal-sources/runtime/core/sorted.eli +408 -0
- package/dist/literal-sources/runtime/core/text.eli +14 -0
- package/dist/literal-sources/runtime/core/transducer.eli +268 -0
- package/dist/literal-sources/runtime/core/transient.eli +17 -0
- package/dist/literal-sources/runtime/core/truth.eli +4 -0
- package/dist/literal-sources/runtime/core/type.eli +232 -0
- package/dist/literal-sources/runtime/core/value-internals.eli +13 -0
- package/dist/literal-sources/runtime/core/value.eli +19 -0
- package/dist/literal-sources/runtime/core/vector.eli +20 -0
- package/dist/literal-sources/runtime/literals.eli +23 -0
- package/dist/literal-sources/runtime/testing/value.eli +6 -0
- package/dist/literal-sources/runtime/wire/http-rpc.eli +362 -0
- package/dist/literal-sources/runtime/wire/markdown.eli +275 -0
- package/dist/literal-sources/runtime/wire/schema.eli +193 -0
- package/dist/literal-sources/stdlib/bit.eli +36 -0
- package/dist/literal-sources/stdlib/core/data.eli +306 -0
- package/dist/literal-sources/stdlib/core/object.eli +89 -0
- package/dist/literal-sources/stdlib/core/protocol.eli +451 -0
- package/dist/literal-sources/stdlib/core/set.eli +312 -0
- package/dist/literal-sources/stdlib/core/text.eli +103 -0
- package/dist/literal-sources/stdlib/managed-literal-protocols.eli +483 -0
- package/dist/literal-sources/stdlib/managed-literals.eli +1414 -0
- package/dist/literal-sources/stdlib/managed-queue-state.eli +65 -0
- package/dist/literal-sources/stdlib/managed-sorted-state.eli +233 -0
- package/dist/literal-sources/stdlib/managed-transient-state.eli +348 -0
- package/dist/literal-sources/stdlib/managed-value-state.eli +153 -0
- package/dist/literal-sources/stdlib/managed-vector-view-state.eli +102 -0
- package/dist/literal-sources/stdlib/persistent-list.eli +145 -0
- package/dist/literal-sources/stdlib/persistent-map.eli +724 -0
- package/dist/literal-sources/stdlib/persistent-set.eli +236 -0
- package/dist/literal-sources/stdlib/persistent-vector.eli +359 -0
- package/dist/literal-sources/stdlib/value.eli +325 -0
- package/dist/package.json +10 -0
- package/dist/runtime/math.mjs +1116 -0
- package/dist/runtime/math.mjs.macro-origins.json +1 -0
- package/dist/runtime/math.mjs.map +1 -0
- package/dist/runtime/unicode-case-data.mjs +10124 -0
- package/dist/runtime/unicode-case-data.mjs.macro-origins.json +1 -0
- package/dist/runtime/unicode-case-data.mjs.map +1 -0
- package/dist/runtime/unicode-case.mjs +280 -0
- package/dist/runtime/unicode-case.mjs.macro-origins.json +1 -0
- package/dist/runtime/unicode-case.mjs.map +1 -0
- package/dist/runtime.eli +30379 -0
- package/dist/stage3-release.json +1 -0
- package/editor/README.md +1 -1
- package/editor/eliscript-mode.el +1 -1
- package/editor/eliscript-repl.el +1 -1
- package/package.json +97 -10
- package/platform/http.mjs +20 -0
- package/runtime/array-text.mjs +159 -0
- package/runtime/core/map-internals.mjs +27 -9
- package/runtime/core/object-impl.mjs +26 -17
- package/runtime/core/object-impl.mjs.map +1 -1
- package/runtime/core/protocol-impl.mjs +682 -255
- package/runtime/core/protocol-impl.mjs.map +1 -1
- package/runtime/core/protocol.mjs +4 -0
- package/runtime/core/record.mjs +23 -2
- package/runtime/core/regex.mjs +4 -0
- package/runtime/core/sorted.mjs +53 -0
- package/runtime/core/text-impl.mjs +167 -48
- package/runtime/core/text-impl.mjs.map +1 -1
- package/runtime/core/type.mjs +75 -3
- package/runtime/core/vector.mjs +6 -0
- package/runtime/math.eli +429 -0
- package/runtime/math.mjs +1116 -0
- package/runtime/math.mjs.map +1 -0
- package/runtime/number-radix.mjs +105 -0
- package/runtime/unicode-case-data.eli +29 -0
- package/runtime/unicode-case-data.mjs +10124 -0
- package/runtime/unicode-case-data.mjs.map +1 -0
- package/runtime/unicode-case.eli +100 -0
- package/runtime/unicode-case.mjs +280 -0
- package/runtime/unicode-case.mjs.map +1 -0
- package/runtime/wire/http-rpc.mjs +168 -0
- package/runtime/wire/markdown.mjs +196 -0
- package/runtime/wire/schema.mjs +109 -0
- package/stdlib/README.md +54 -0
- package/stdlib/core/protocol.eli +81 -17
- package/stdlib/core/seq.eli +1 -1
- package/stdlib/core/zipper.eli +114 -47
- package/stdlib/gepo.eli +12 -0
- package/stdlib/interop/js.eli +56 -15
- package/stdlib/managed-literal-protocols.eli +483 -0
- package/stdlib/managed-literals.eli +1414 -0
- package/stdlib/managed-protocol-error.eli +32 -0
- package/stdlib/managed-queue-state.eli +65 -0
- package/stdlib/managed-runtime-collection-internals.eli +60 -0
- package/stdlib/managed-runtime-collection.eli +579 -0
- package/stdlib/managed-runtime-data-text.eli +290 -0
- package/stdlib/managed-runtime-data.eli +22 -0
- package/stdlib/managed-runtime-identifier.eli +44 -0
- package/stdlib/managed-runtime-lazy-sequence.eli +131 -0
- package/stdlib/managed-runtime-list.eli +19 -0
- package/stdlib/managed-runtime-literals.eli +23 -0
- package/stdlib/managed-runtime-map.eli +9 -0
- package/stdlib/managed-runtime-metadata-internals.eli +6 -0
- package/stdlib/managed-runtime-metadata.eli +23 -0
- package/stdlib/managed-runtime-object.eli +8 -0
- package/stdlib/managed-runtime-order.eli +123 -0
- package/stdlib/managed-runtime-persistent-kind.eli +28 -0
- package/stdlib/managed-runtime-protocol.eli +28 -0
- package/stdlib/managed-runtime-queue.eli +9 -0
- package/stdlib/managed-runtime-record.eli +191 -0
- package/stdlib/managed-runtime-regex.eli +158 -0
- package/stdlib/managed-runtime-sequence.eli +305 -0
- package/stdlib/managed-runtime-set-algebra.eli +28 -0
- package/stdlib/managed-runtime-set.eli +9 -0
- package/stdlib/managed-runtime-sorted.eli +408 -0
- package/stdlib/managed-runtime-text.eli +14 -0
- package/stdlib/managed-runtime-transducer.eli +268 -0
- package/stdlib/managed-runtime-transient.eli +17 -0
- package/stdlib/managed-runtime-truth.eli +4 -0
- package/stdlib/managed-runtime-type.eli +232 -0
- package/stdlib/managed-runtime-value-internals.eli +13 -0
- package/stdlib/managed-runtime-value.eli +19 -0
- package/stdlib/managed-runtime-vector.eli +20 -0
- package/stdlib/managed-sorted-state.eli +233 -0
- package/stdlib/managed-testing-value.eli +6 -0
- package/stdlib/managed-transient-state.eli +348 -0
- package/stdlib/managed-value-state.eli +153 -0
- package/stdlib/managed-vector-view-state.eli +102 -0
- package/stdlib/managed-wire-http-rpc.eli +362 -0
- package/stdlib/managed-wire-markdown.eli +275 -0
- package/stdlib/managed-wire-schema.eli +193 -0
- package/stdlib/mdp.eli +7 -0
- package/stdlib/mds.eli +4 -0
- package/stdlib/persistent-vector.eli +23 -6
- package/tools/acceptance/check-legacy.mjs +687 -0
- package/tools/acceptance/check.eli +431 -0
- package/tools/acceptance/compile-evidence.el +49 -0
- package/tools/acceptance/finalize-legacy.mjs +498 -0
- package/tools/acceptance/finalize.eli +270 -0
- package/tools/backends/benchmark.mjs +175 -0
- package/tools/backends/build.mjs +135 -0
- package/tools/backends/compile.mjs +94 -0
- package/tools/backends/compiler-bootstrap.mjs +1001 -0
- package/tools/backends/compiler-browser.mjs +361 -0
- package/tools/backends/compiler-build.mjs +1628 -0
- package/tools/backends/compiler-cli-legacy.mjs +334 -0
- package/tools/backends/compiler-cli.mjs +29 -0
- package/tools/backends/compiler-corpus-bit.mjs +234 -0
- package/tools/backends/compiler-corpus-cli-adapters-legacy.mjs +362 -0
- package/tools/backends/compiler-corpus-cli-adapters.mjs +247 -0
- package/tools/backends/compiler-corpus-debugging.mjs +221 -0
- package/tools/backends/compiler-corpus-emitter.mjs +324 -0
- package/tools/backends/compiler-corpus-evaluation-adapters.mjs +65 -0
- package/tools/backends/compiler-corpus-execution-legacy.mjs +769 -0
- package/tools/backends/compiler-corpus-execution.mjs +3324 -0
- package/tools/backends/compiler-corpus-fuzz.mjs +229 -0
- package/tools/backends/compiler-corpus-generations.mjs +208 -0
- package/tools/backends/compiler-corpus-host-context-legacy.mjs +114 -0
- package/tools/backends/compiler-corpus-host-context.mjs +550 -0
- package/tools/backends/compiler-corpus-identity-host.mjs +553 -0
- package/tools/backends/compiler-corpus-identity-value-adapters-legacy.mjs +298 -0
- package/tools/backends/compiler-corpus-identity-value-adapters.mjs +69 -0
- package/tools/backends/compiler-corpus-isolated-exports.mjs +21 -0
- package/tools/backends/compiler-corpus-legacy.mjs +1155 -0
- package/tools/backends/compiler-corpus-literal-provider.mjs +282 -0
- package/tools/backends/compiler-corpus-managed-adapters-legacy.mjs +334 -0
- package/tools/backends/compiler-corpus-managed-adapters.mjs +937 -0
- package/tools/backends/compiler-corpus-managed-cases.mjs +179 -0
- package/tools/backends/compiler-corpus-managed-fixtures-legacy.mjs +879 -0
- package/tools/backends/compiler-corpus-managed-fixtures.mjs +1287 -0
- package/tools/backends/compiler-corpus-matchers.mjs +173 -0
- package/tools/backends/compiler-corpus-original-program.mjs +612 -0
- package/tools/backends/compiler-corpus-process.mjs +765 -0
- package/tools/backends/compiler-corpus-program-driver.mjs +306 -0
- package/tools/backends/compiler-corpus-project-adapters-legacy.mjs +497 -0
- package/tools/backends/compiler-corpus-project-adapters.mjs +340 -0
- package/tools/backends/compiler-corpus-project-entry-host.mjs +511 -0
- package/tools/backends/compiler-corpus-project-transport.mjs +151 -0
- package/tools/backends/compiler-corpus-raw-fixture-observer.mjs +1438 -0
- package/tools/backends/compiler-corpus-raw-language-fixtures.mjs +1456 -0
- package/tools/backends/compiler-corpus-raw-math-fixture.mjs +346 -0
- package/tools/backends/compiler-corpus-raw-special-fixtures.mjs +523 -0
- package/tools/backends/compiler-corpus-reference-legacy.mjs +263 -0
- package/tools/backends/compiler-corpus-reference.mjs +241 -0
- package/tools/backends/compiler-corpus-runtime-adapters-legacy.mjs +843 -0
- package/tools/backends/compiler-corpus-runtime-adapters.mjs +663 -0
- package/tools/backends/compiler-corpus-source-archive.mjs +206 -0
- package/tools/backends/compiler-corpus-tools-artifact-adapters.mjs +410 -0
- package/tools/backends/compiler-corpus-tools-cli.mjs +363 -0
- package/tools/backends/compiler-corpus-tools-reference.mjs +264 -0
- package/tools/backends/compiler-corpus.mjs +2054 -0
- package/tools/backends/compiler-debug.mjs +142 -0
- package/tools/backends/compiler-matrix.mjs +1955 -0
- package/tools/backends/compiler-metadata.mjs +203 -0
- package/tools/backends/compiler-package-browser.mjs +120 -0
- package/tools/backends/compiler-package-legacy.mjs +654 -0
- package/tools/backends/compiler-package.mjs +464 -0
- package/tools/backends/compiler-project.mjs +126 -0
- package/tools/backends/compiler-session.mjs +843 -0
- package/tools/backends/compiler-sha256.mjs +152 -0
- package/tools/backends/compiler-unicode-profile-host.mjs +196 -0
- package/tools/backends/compiler-worker.mjs +573 -0
- package/tools/backends/dist/bootstrap-js-stages.mjs +919 -0
- package/tools/backends/dist/bootstrap-js-stages.mjs.map +1 -0
- package/tools/backends/dist/managed-ir-inventory.mjs +488 -0
- package/tools/backends/dist/managed-ir-inventory.mjs.map +1 -0
- package/tools/backends/dist/record-grid.mjs +1256 -0
- package/tools/backends/dist/record-grid.mjs.map +1 -0
- package/tools/backends/dist/release-cli.mjs +460 -0
- package/tools/backends/dist/release-cli.mjs.map +1 -0
- package/tools/backends/dist/run-artifact.mjs +517 -0
- package/tools/backends/dist/run-artifact.mjs.map +1 -0
- package/tools/backends/eliscript/compiler-corpus-bit.eli +77 -0
- package/tools/backends/eliscript/compiler-corpus-debugging.eli +70 -0
- package/tools/backends/eliscript/compiler-corpus-project-entry-host.eli +256 -0
- package/tools/backends/managed-foreign-binding.mjs +497 -0
- package/tools/backends/managed-host-legacy.mjs +1181 -0
- package/tools/backends/managed-host-lifecycle.mjs +310 -0
- package/tools/backends/managed-host-object-provider.mjs +155 -0
- package/tools/backends/managed-host-object-realm.mjs +797 -0
- package/tools/backends/managed-host-proxy.mjs +71 -0
- package/tools/backends/managed-host-runtime.mjs +5868 -0
- package/tools/backends/managed-host.mjs +716 -0
- package/tools/backends/managed-module-graph-legacy.mjs +308 -0
- package/tools/backends/managed-module-graph.mjs +694 -0
- package/tools/backends/managed-runtime-host-legacy.mjs +195 -0
- package/tools/backends/managed-runtime.mjs +939 -0
- package/tools/backends/managed-source-view-legacy.mjs +332 -0
- package/tools/backends/managed-source-view.mjs +959 -0
- package/tools/backends/memory-runtime.mjs +100 -0
- package/tools/backends/native-benchmark.mjs +88 -0
- package/tools/backends/native-managed-runtime.mjs +677 -0
- package/tools/backends/native-memory.mjs +768 -0
- package/tools/backends/native-node-memory.mjs +142 -0
- package/tools/backends/native-node-runner.mjs +99 -0
- package/tools/backends/native-node-watchdog.mjs +19 -0
- package/tools/backends/native-node-worker.mjs +75 -0
- package/tools/backends/stage3-targets.mjs +486 -0
- package/tools/bootstrap-command.el +13 -0
- package/tools/bootstrap-runtime.el +101 -0
- package/tools/bootstrap-seed.el +55 -0
- package/tools/project/check-cli.eli +31 -0
- package/tools/project/project-cli.eli +42 -0
- package/tools/project/project.eli +122 -0
- package/tools/runtime/unicode-case-profiles.mjs +13 -0
- package/tools/runtime/unicode-case-runtime.el +57 -0
- package/tools/testing/source-debugging-corpus-host.eli +16 -0
- package/tools/testing/source-debugging.eli +139 -0
- package/tools/testing/stdlib-bit-corpus-host.eli +21 -0
- package/tools/testing/stdlib-bit-corpus-host.mjs +118 -0
- package/tools/testing/stdlib-bit.eli +104 -0
- package/tools/testing/stdlib-bit.mjs +255 -0
- package/bin/eliscript-bootstrap +0 -15
|
@@ -0,0 +1,612 @@
|
|
|
1
|
+
// Generated by Eliscript. Do not edit.
|
|
2
|
+
import "eliscript/runtime/unicode-case.mjs";
|
|
3
|
+
import { c as __eliscript_at, d as __eliscript_at_direct } from "data:text/javascript;base64,dmFyIG09UmVmbGVjdC5hcHBseSx0dD1OdW1iZXIucHJvdG90eXBlLnZhbHVlT2Ysaj1OdW1iZXIucHJvdG90eXBlLnRvU3RyaW5nLFU9TnVtYmVyLG50PU9iamVjdC5jcmVhdGUsaD1CaWdJbnQsZXQ9RGF0YVZpZXcsb3Q9QXJyYXlCdWZmZXIsaXQ9RGF0YVZpZXcucHJvdG90eXBlLnNldEZsb2F0NjQsSj1EYXRhVmlldy5wcm90b3R5cGUuZ2V0VWludDMyLHJ0PVJhbmdlRXJyb3I7ZnVuY3Rpb24gY3QodCxuKXtsZXQgZT1oKG4pLG89aCh0KSxpPSIiO2lmKG88MG4pbz0tbztkb3tsZXQgZj1vJWU7aT0iMDEyMzQ1Njc4OWFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6IltVKGYpXStpLG8vPWV9d2hpbGUobyE9PTBuKTtyZXR1cm4gdDwwPyItIitpOml9ZnVuY3Rpb24gc3QodCxuKXtsZXQgZT1uZXcgZXQobmV3IG90KDgpKTttKGl0LGUsWzAsdCwhMV0pO2xldCBvPW0oSixlLFswLCExXSksaT1tKEosZSxbNCwhMV0pLGY9bz4+PjIwJjIwNDcsYj1vJjEwNDg1NzUscD1vPj4+MzEscj1oKGIpPDwzMm58aChpKTtpZihmIT09MClyKz0xbjw8NTJuO3I8PD0ybjtsZXQgbD00bix1PWY+MSYmYj09PTAmJmk9PT0wPzFuOjJuLGs9Mm47aWYoZj49MTA3NSl7bGV0IGM9aChmLTEwNzUpO3I8PD1jLHU8PD1jLGs8PD1jfWVsc2UgbDw8PWgoZj09PTA/MTA3NDoxMDc1LWYpO2xldCBkPWgobiksZz1udChudWxsKSxhPTAsUz0wLEQ9MDtpZihyPGwpd2hpbGUocjxsKXtpZihyKjJuPmwmJnIraz5sKWJyZWFrO3IqPWQsdSo9ZCxrKj1kLFMtLX1lbHNlIHdoaWxlKHI+PWwqZClsKj1kLFMrKztmb3IoOzspe2xldCBjPVUoci9sKTtyJT1sO2xldCBJPXI8dSx4PXIraz5sO2dbYSsrXT1jLEQ9RCoobiYxKStjJjE7bGV0IHE9cioybixQPXE+bHx8cT09PWwmJkQ9PT0xO2lmKFAmJnh8fCFQJiZJKXtpZihQKXtsZXQgUj1hLEI9ITA7d2hpbGUoUj4wJiZCKXtSLS07bGV0IEg9Z1tSXSsxO2lmKEg9PT1uKWdbUl09MDtlbHNlIGdbUl09SCxCPSExfWlmKEIpZ1swXT0xLFMrK31icmVha31pZihhPj02NCl0aHJvdyBuZXcgcnQoIm51bWJlciByYWRpeCBmb3JtYXR0aW5nIGRpZCBub3QgY29udmVyZ2UiKTtyKj1kLHUqPWQsayo9ZH13aGlsZShhPjEmJmdbYS0xXT09PTApYS0tO2xldCB3PSIiO2lmKFM8MCl7dz0iMC4iO2ZvcihsZXQgYz0wO2M8LTEtUztjKyspdys9IjAiO2ZvcihsZXQgYz0wO2M8YTtjKyspdys9IjAxMjM0NTY3ODlhYmNkZWZnaGlqa2xtbm9wcXJzdHV2d3h5eiJbZ1tjXV19ZWxzZXtsZXQgYz1TKzEsST1jPmE/YzphO2ZvcihsZXQgeD0wO3g8STt4Kyspe2lmKHg9PT1jJiZjPGEpdys9Ii4iO3crPXg8YT8iMDEyMzQ1Njc4OWFiY2RlZmdoaWprbG1ub3BxcnN0dXZ3eHl6IltnW3hdXToiMCJ9fXJldHVybiBwPyItIit3Ond9ZnVuY3Rpb24gRyh0LG4pe2xldCBlO3RyeXtlPW0odHQsdCxbXSl9Y2F0Y2h7cmV0dXJuIG0oaix0LFtuXSl9bGV0IG89MTA7aWYobiE9PXZvaWQgMCl7bGV0IGk9K247aWYobz1pIT09aT8wOmktaSUxLG88Mnx8bz4zNnx8byE9PW8pcmV0dXJuIG0oaixlLFtvXSl9aWYobz09PTEwfHxlPT09MHx8ZSE9PWV8fGU9PT0xLzB8fGU9PT0tMS8wKXJldHVybiBtKGosZSxbMTBdKTtyZXR1cm4gZSUxPT09MD9jdChlLG8pOnN0KGUsbyl9dmFyIHM9UmVmbGVjdC5hcHBseSxNPUZ1bmN0aW9uLnByb3RvdHlwZS5jYWxsLE49RnVuY3Rpb24ucHJvdG90eXBlLmFwcGx5LEU9RnVuY3Rpb24ucHJvdG90eXBlLmJpbmQsVD1PYmplY3QuZGVmaW5lUHJvcGVydHksbHQ9T2JqZWN0LmdldE93blByb3BlcnR5RGVzY3JpcHRvcixmdD1PYmplY3QuZ2V0UHJvdG90eXBlT2YsdXQ9T2JqZWN0LnNldFByb3RvdHlwZU9mLGF0PVJlZmxlY3Qub3duS2V5cyxwdD1TeW1ib2wuaGFzSW5zdGFuY2UsVj1BcnJheS5pc0FycmF5LEs9QXJyYXkucHJvdG90eXBlLmpvaW4sej1BcnJheS5wcm90b3R5cGUudG9TdHJpbmcseXQ9T2JqZWN0LnByb3RvdHlwZS50b1N0cmluZyxidD1TdHJpbmcsQz1UeXBlRXJyb3IsZHQ9U3ltYm9sLnRvUHJpbWl0aXZlLGd0PVdlYWtTZXQucHJvdG90eXBlLmhhcyx3dD1XZWFrU2V0LnByb3RvdHlwZS5hZGQseHQ9V2Vha1NldC5wcm90b3R5cGUuZGVsZXRlLEY9bmV3IFdlYWtTZXQsTz1udWxsLFc9KHQpPT50IT09bnVsbCYmKHR5cGVvZiB0PT09Im9iamVjdCJ8fHR5cGVvZiB0PT09ImZ1bmN0aW9uInx8dHlwZW9mIHQ+InUiJiZ0IT09dm9pZCAwKSxBPSh0KT0+dHlwZW9mIHQ9PT0iZnVuY3Rpb24ifHx0eXBlb2YgdD4idSImJnQhPT12b2lkIDA7ZnVuY3Rpb24gaHQoKXtsZXQgbj1uZXcgQygiY3ljbGljIGFycmF5IHRleHQgY29udmVyc2lvbiIpO3Rocm93IG4uZWxpc2NyaXB0RGlhZ25vc3RpYz17Zm9ybWF0OiJlbGlzY3JpcHQtZGlhZ25vc3RpYyIsdmVyc2lvbjoxLGNvZGU6IkVMSS1SVDAwMDkiLHNldmVyaXR5OiJlcnJvciIscGhhc2U6InJ1bnRpbWUiLG1lc3NhZ2U6ImN5Y2xpYyBhcnJheSB0ZXh0IGNvbnZlcnNpb24ifSxufWZ1bmN0aW9uIG10KHQpe2lmKCFXKHQpKXJldHVybiB0O2xldCBuPXRbZHRdO2lmKG4hPT12b2lkIDAmJm4hPT1udWxsKXtsZXQgZT1zKG4sdCxbInN0cmluZyJdKTtpZighVyhlKSlyZXR1cm4gZTt0aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgb2JqZWN0IHRvIHByaW1pdGl2ZSB2YWx1ZSIpfWZvcihsZXQgZT0wO2U8MjtlKyspe2xldCBvPXRbZT09PTA/InRvU3RyaW5nIjoidmFsdWVPZiJdO2lmKEEobykpe2xldCBpPW89PT16JiZWKHQpP3YodCk6cyhvLHQsW10pO2lmKCFXKGkpKXJldHVybiBpfX10aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgb2JqZWN0IHRvIHByaW1pdGl2ZSB2YWx1ZSIpfWZ1bmN0aW9uIFEodCl7bGV0IG49bXQodCk7aWYodHlwZW9mIG49PT0ic3ltYm9sIil0aHJvdyBuZXcgQygiQ2Fubm90IGNvbnZlcnQgYSBTeW1ib2wgdmFsdWUgdG8gYSBzdHJpbmciKTtyZXR1cm4gYnQobil9ZnVuY3Rpb24gXyh0LG4pe2xldCBlPSt0Lmxlbmd0aCxvPWUhPT1lfHxlPD0wPzA6ZT49OTAwNzE5OTI1NDc0MDk5MT85MDA3MTk5MjU0NzQwOTkxOmUtZSUxLGk9bj09PXZvaWQgMD8iLCI6UShuKSxmPU89PT1udWxsO2lmKGYpTz10O2Vsc2V7aWYodD09PU98fHMoZ3QsRixbdF0pKWh0KCk7cyh3dCxGLFt0XSl9dHJ5e2xldCBiPSIiO2ZvcihsZXQgcD0wO3A8bztwKyspe2lmKHApYis9aTtsZXQgcj10W3BdO2lmKHIhPT1udWxsJiZyIT09dm9pZCAwKWIrPVEocil9cmV0dXJuIGJ9ZmluYWxseXtpZihmKU89bnVsbDtlbHNlIHMoeHQsRixbdF0pfX1mdW5jdGlvbiB2KHQpe2xldCBuPXQuam9pbjtyZXR1cm4gQShuKT9uPT09Sz9fKHQsdm9pZCAwKTpzKG4sdCxbXSk6cyh5dCx0LFtdKX1mdW5jdGlvbiB5KHQsbil7cmV0dXJuIG48dC5sZW5ndGg/dFtuXTp2b2lkIDB9ZnVuY3Rpb24gWCh0LG4pe2xldCBlPVtdO2ZvcihsZXQgbz1uO288dC5sZW5ndGg7bysrKVQoZSxlLmxlbmd0aCx7dmFsdWU6dFtvXSx3cml0YWJsZTohMCxlbnVtZXJhYmxlOiEwLGNvbmZpZ3VyYWJsZTohMH0pO3JldHVybiBlfWZ1bmN0aW9uIFN0KHQsbil7bGV0IGU9W107Zm9yKGxldCBvPTA7bzx0Lmxlbmd0aCtuLmxlbmd0aDtvKyspVChlLG8se3ZhbHVlOm88dC5sZW5ndGg/dFtvXTpuW28tdC5sZW5ndGhdLHdyaXRhYmxlOiEwLGVudW1lcmFibGU6ITAsY29uZmlndXJhYmxlOiEwfSk7cmV0dXJuIGV9ZnVuY3Rpb24gWSguLi50KXtyZXR1cm4gdH1mdW5jdGlvbiBaKHQsbil7cmV0dXJuIG4/cyhOLFksW3ZvaWQgMCx0XSk6cyhZLHZvaWQgMCx0KX1mdW5jdGlvbiBMKHQsbixlKXtmb3IoOzspe2lmKHQ9PT1qKXJldHVybiBHKG4seShlLDApKTtpZih0PT09SyYmVihuKSlyZXR1cm4gXyhuLHkoZSwwKSk7aWYodD09PXomJlYobikpcmV0dXJuIHYobik7aWYodD09PU0pe2lmKCFBKG4pKXJldHVybiBzKHQsbixlKTtsZXQgbz1uLGk9eShlLDApO2U9WChlLDEpLHQ9byxuPWk7Y29udGludWV9aWYodD09PU4pe2lmKCFBKG4pKXJldHVybiBzKHQsbixlKTtsZXQgbz1uLGk9eShlLDApO2U9Wih5KGUsMSksITApLHQ9byxuPWk7Y29udGludWV9aWYodD09PXMpe2xldCBvPXkoZSwwKSxpPXkoZSwxKTtpZighQShvKSlyZXR1cm4gcyh0LG4sZSk7ZT1aKHkoZSwyKSwhMSksdD1vLG49aTtjb250aW51ZX1pZih0PT09RSl7bGV0IG89cyh0LG4sZSk7aWYobiE9PWomJm4hPT1LJiZuIT09eiYmbiE9PU0mJm4hPT1OJiZuIT09cyYmbiE9PUUpcmV0dXJuIG87bGV0IGk9bixmPXkoZSwwKSxiPVgoZSwxKSxwPSguLi51KT0+TChpLGYsU3QoYix1KSk7VChwLHB0LHt2YWx1ZToodSk9PnUgaW5zdGFuY2VvZiBpLGNvbmZpZ3VyYWJsZTohMH0pO2xldCByPXMoRSxwLFt2b2lkIDBdKTt1dChyLGZ0KG8pKTtsZXQgbD1hdChvKTtmb3IobGV0IHU9MDt1PGwubGVuZ3RoO3UrKylUKHIsbFt1XSxsdChvLGxbdV0pKTtyZXR1cm4gcn1yZXR1cm4gcyh0LG4sZSl9fWZ1bmN0aW9uIFJ0KHQsbil7bGV0IGU9dFtuXTtyZXR1cm4oLi4ubyk9PkwoZSx0LG8pfWZ1bmN0aW9uIEF0KHQsbiwuLi5lKXtsZXQgbz10W25dO3JldHVybiBMKG8sdCxlKX1leHBvcnR7UnQgYXMgYyxBdCBhcyBkfTs=";
|
|
4
|
+
const __eliscript_truthy = (value) => value !== false && value != null;
|
|
5
|
+
const __eliscript_number_intrinsic = globalThis.Number;
|
|
6
|
+
const __eliscript_bigint_intrinsic = globalThis.BigInt;
|
|
7
|
+
const __eliscript_numeric_apply = globalThis.Reflect.apply;
|
|
8
|
+
const __eliscript_numeric_symbol = globalThis.Symbol.toPrimitive;
|
|
9
|
+
const __eliscript_numeric_error = globalThis.TypeError;
|
|
10
|
+
const __eliscript_numeric_trim = globalThis.String.prototype.trim;
|
|
11
|
+
const __eliscript_numeric_slice = globalThis.String.prototype.slice;
|
|
12
|
+
const __eliscript_numeric_exec = globalThis.RegExp.prototype.exec;
|
|
13
|
+
const __eliscript_numeric_radix = /^(?:0[xX][0-9a-fA-F]+|0[oO][0-7]+|0[bB][01]+)$/;
|
|
14
|
+
const __eliscript_numeric_object = (value) => value !== null && (typeof value === "object" || typeof value === "function" || (typeof value === "undefined" && value !== void 0));
|
|
15
|
+
const __eliscript_numeric_primitive = (value) => {
|
|
16
|
+
if (!__eliscript_numeric_object(value)) return value;
|
|
17
|
+
const exotic = value[__eliscript_numeric_symbol];
|
|
18
|
+
if (exotic !== void 0 && exotic !== null) {
|
|
19
|
+
const result = __eliscript_numeric_apply(exotic, value, ["number"]);
|
|
20
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
21
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
22
|
+
}
|
|
23
|
+
for (let index = 0; index < 2; index++) {
|
|
24
|
+
const method = value[index === 0 ? "valueOf" : "toString"];
|
|
25
|
+
if (typeof method === "function" || (typeof method === "undefined" && method !== void 0)) {
|
|
26
|
+
const result = __eliscript_numeric_apply(method, value, []);
|
|
27
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
31
|
+
};
|
|
32
|
+
const __eliscript_to_number = (value) => {
|
|
33
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
34
|
+
if (typeof primitive === "string") {
|
|
35
|
+
const text = __eliscript_numeric_apply(__eliscript_numeric_trim, primitive, []);
|
|
36
|
+
if (__eliscript_numeric_apply(__eliscript_numeric_exec, __eliscript_numeric_radix, [text]) !== null) {
|
|
37
|
+
let first = 2;
|
|
38
|
+
while (first < text.length && text[first] === "0") first++;
|
|
39
|
+
if (first === text.length) return 0;
|
|
40
|
+
const prefix = text[1];
|
|
41
|
+
const limit = prefix === "x" || prefix === "X" ? 256 : prefix === "b" || prefix === "B" ? 1024 : 342;
|
|
42
|
+
if (text.length - first > limit) return 1 / 0;
|
|
43
|
+
const token = __eliscript_numeric_apply(__eliscript_numeric_slice, text, [0, 2]) + __eliscript_numeric_apply(__eliscript_numeric_slice, text, [first]);
|
|
44
|
+
return __eliscript_number_intrinsic(__eliscript_bigint_intrinsic(token));
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
return __eliscript_number_intrinsic(primitive);
|
|
48
|
+
};
|
|
49
|
+
const __eliscript_numeric = (value) => {
|
|
50
|
+
if (typeof value === "number" || typeof value === "bigint") return value;
|
|
51
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
52
|
+
if (typeof primitive === "number" || typeof primitive === "bigint") return primitive;
|
|
53
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
54
|
+
};
|
|
55
|
+
const __eliscript_implicit_number = (value) => {
|
|
56
|
+
if (typeof value === "number") return value;
|
|
57
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
58
|
+
if (typeof primitive === "bigint") throw new __eliscript_numeric_error("Cannot convert a BigInt value to a number");
|
|
59
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
60
|
+
};
|
|
61
|
+
const __eliscript_numeric_decrement = (value) => __eliscript_implicit_number(value) - 1;
|
|
62
|
+
const __eliscript_numeric_sub = (a, b) => { if (typeof a === "number" && typeof b === "number") return a - b; return __eliscript_numeric(a) - __eliscript_numeric(b); };
|
|
63
|
+
const __eliscript_numeric_mul = (a, b) => { if (typeof a === "number" && typeof b === "number") return a * b; return __eliscript_numeric(a) * __eliscript_numeric(b); };
|
|
64
|
+
const __eliscript_numeric_div = (a, b) => { if (typeof a === "number" && typeof b === "number") return a / b; return __eliscript_numeric(a) / __eliscript_numeric(b); };
|
|
65
|
+
const __eliscript_numeric_rem = (a, b) => { if (typeof a === "number" && typeof b === "number") return a % b; return __eliscript_numeric(a) % __eliscript_numeric(b); };
|
|
66
|
+
const __eliscript_numeric_and = (a, b) => { if (typeof a === "number" && typeof b === "number") return a & b; return __eliscript_numeric(a) & __eliscript_numeric(b); };
|
|
67
|
+
const __eliscript_numeric_or = (a, b) => { if (typeof a === "number" && typeof b === "number") return a | b; return __eliscript_numeric(a) | __eliscript_numeric(b); };
|
|
68
|
+
const __eliscript_numeric_xor = (a, b) => { if (typeof a === "number" && typeof b === "number") return a ^ b; return __eliscript_numeric(a) ^ __eliscript_numeric(b); };
|
|
69
|
+
const __eliscript_numeric_shl = (a, b) => { if (typeof a === "number" && typeof b === "number") return a << b; return __eliscript_numeric(a) << __eliscript_numeric(b); };
|
|
70
|
+
const __eliscript_numeric_shr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >> b; return __eliscript_numeric(a) >> __eliscript_numeric(b); };
|
|
71
|
+
const __eliscript_numeric_ushr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >>> b; return __eliscript_numeric(a) >>> __eliscript_numeric(b); };
|
|
72
|
+
const __eliscript_numeric_neg = (a) => typeof a === "number" ? -a : -__eliscript_numeric(a);
|
|
73
|
+
const __eliscript_numeric_int32 = (a) => typeof a === "number" ? a | 0 : __eliscript_numeric(a) | 0;
|
|
74
|
+
const __eliscript_numeric_uint32 = (a) => typeof a === "number" ? a >>> 0 : __eliscript_numeric(a) >>> 0;
|
|
75
|
+
const __eliscript_numeric_not = (a) => typeof a === "number" ? ~a : ~__eliscript_numeric(a);
|
|
76
|
+
const __eliscript_numeric_relation = (operator, left, right) => {
|
|
77
|
+
if (typeof left === "number" && typeof right === "number") {
|
|
78
|
+
if (operator === "<") return left < right;
|
|
79
|
+
if (operator === "<=") return left <= right;
|
|
80
|
+
if (operator === ">") return left > right;
|
|
81
|
+
return left >= right;
|
|
82
|
+
}
|
|
83
|
+
let a = __eliscript_numeric_primitive(left);
|
|
84
|
+
let b = __eliscript_numeric_primitive(right);
|
|
85
|
+
const x = typeof a, y = typeof b;
|
|
86
|
+
if (!((x === "string" && y === "string") || (x === "bigint" && y === "string") || (x === "string" && y === "bigint"))) {
|
|
87
|
+
a = __eliscript_numeric(a);
|
|
88
|
+
b = __eliscript_numeric(b);
|
|
89
|
+
}
|
|
90
|
+
if (operator === "<") return a < b;
|
|
91
|
+
if (operator === "<=") return a <= b;
|
|
92
|
+
if (operator === ">") return a > b;
|
|
93
|
+
return a >= b;
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
import assert from "node:assert/strict";
|
|
97
|
+
import {mkdir, readFile, writeFile, symlink, lstat, realpath} from "node:fs/promises";
|
|
98
|
+
import {resolve, join, relative, isAbsolute, sep} from "node:path";
|
|
99
|
+
import {pathToFileURL, fileURLToPath} from "node:url";
|
|
100
|
+
import {Buffer} from "node:buffer";
|
|
101
|
+
import {createHash} from "node:crypto";
|
|
102
|
+
import {independentCompilerResources} from "./compiler-build.mjs";
|
|
103
|
+
import {archiveCompilerArtifact, normalizeCompilerHost, saveCompilerMetadata} from "./compiler-bootstrap.mjs";
|
|
104
|
+
import {prepareOriginalCompilerGenerations} from "./compiler-corpus-generations.mjs";
|
|
105
|
+
import {prepareOriginalReferenceArtifact} from "./compiler-corpus-reference.mjs";
|
|
106
|
+
import {originalCorpusExecutionPolicy, runOriginalCorpusProcess, writeOriginalCorpusExecutionContext, validateOriginalProcessHostDependency} from "./compiler-corpus-process.mjs";
|
|
107
|
+
function fallback(value, other) {
|
|
108
|
+
if ((value == null)) {
|
|
109
|
+
return other;
|
|
110
|
+
} else {
|
|
111
|
+
return value;
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
function invalid(message) {
|
|
115
|
+
return ((__eliscript_value_1) => { throw __eliscript_value_1; })(new (globalThis.TypeError)(message));
|
|
116
|
+
}
|
|
117
|
+
function safe_id(id) {
|
|
118
|
+
return ((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(id) === "string") && __eliscript_numeric_relation(">", ((id) ?? []).length, 0) && (!__eliscript_truthy((new (globalThis.RegExp)("[\\\\:\\u0000]"))["test"](id))) && (!__eliscript_truthy(((id)["split"]("/"))["some"](((part) => {
|
|
119
|
+
return ((part === "") || (part === ".") || (part === ".."));
|
|
120
|
+
})))));
|
|
121
|
+
}
|
|
122
|
+
async function javascript_environment(artifact, source_root) {
|
|
123
|
+
return (await (async (modules) => {
|
|
124
|
+
await (mkdir(modules, ({"recursive": true})));
|
|
125
|
+
return (await (async () => {
|
|
126
|
+
try {
|
|
127
|
+
return await (symlink(resolve(source_root), join(modules, "eliscript"), "dir"));
|
|
128
|
+
} catch (error) {
|
|
129
|
+
if ((!((error)["code"] === "EEXIST"))) {
|
|
130
|
+
return ((__eliscript_value_2) => { throw __eliscript_value_2; })(error);
|
|
131
|
+
} else {
|
|
132
|
+
return null;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
})());
|
|
136
|
+
})(join(resolve((artifact)["path"], ".."), "node_modules")));
|
|
137
|
+
}
|
|
138
|
+
async function originalProgramAliases(artifact, source_root) {
|
|
139
|
+
return (await (async (directory) => {
|
|
140
|
+
return (await (async (modules) => {
|
|
141
|
+
return (await (async (index) => {
|
|
142
|
+
return (await (async () => {
|
|
143
|
+
if ((!__eliscript_truthy(Array.isArray(modules)))) {
|
|
144
|
+
invalid("original host oracle requires actual phased module exports");
|
|
145
|
+
}
|
|
146
|
+
(await (async () => {
|
|
147
|
+
while (__eliscript_numeric_relation("<", index, ((modules) ?? []).length)) {
|
|
148
|
+
(await (async (module) => {
|
|
149
|
+
return (await (async (id) => {
|
|
150
|
+
return (await (async () => {
|
|
151
|
+
if ((!__eliscript_truthy(((__eliscript_value_3) => (__eliscript_truthy(__eliscript_value_3) ? (id)["endsWith"](".mjs") : __eliscript_value_3))(safe_id(id))))) {
|
|
152
|
+
invalid("original program alias escapes the product");
|
|
153
|
+
}
|
|
154
|
+
return (await (async (file) => {
|
|
155
|
+
return (await (async (actual) => {
|
|
156
|
+
return (await (async (base) => {
|
|
157
|
+
return (await (async () => {
|
|
158
|
+
await (mkdir(resolve(file, ".."), ({"recursive": true})));
|
|
159
|
+
return (await (async () => {
|
|
160
|
+
try {
|
|
161
|
+
return await (symlink(base, file, "file"));
|
|
162
|
+
} catch (error) {
|
|
163
|
+
return ((!(await (async (__eliscript_value_4) => (__eliscript_truthy(__eliscript_value_4) ? (await (realpath(file)) === await (realpath(actual))) : __eliscript_value_4))(((error)["code"] === "EEXIST")))) ? ((__eliscript_value_5) => { throw __eliscript_value_5; })(error) : null);
|
|
164
|
+
}
|
|
165
|
+
})());
|
|
166
|
+
})());
|
|
167
|
+
})(((id)["split"]("/"))[__eliscript_numeric_decrement((((id)["split"]("/")) ?? []).length)]));
|
|
168
|
+
})(resolve(directory, id)));
|
|
169
|
+
})(resolve(directory, (String((id)["slice"](0, -4)) + String(".eli")))));
|
|
170
|
+
})());
|
|
171
|
+
})((module)["id"]));
|
|
172
|
+
})((modules)[index]));
|
|
173
|
+
((index = (index + 1)));
|
|
174
|
+
}
|
|
175
|
+
return null;
|
|
176
|
+
})());
|
|
177
|
+
await (javascript_environment(artifact, source_root));
|
|
178
|
+
return (await (async () => {
|
|
179
|
+
try {
|
|
180
|
+
return await (symlink(resolve(source_root, "runtime"), resolve(directory, "runtime"), "dir"));
|
|
181
|
+
} catch (error) {
|
|
182
|
+
if ((!((error)["code"] === "EEXIST"))) {
|
|
183
|
+
return ((__eliscript_value_6) => { throw __eliscript_value_6; })(error);
|
|
184
|
+
} else {
|
|
185
|
+
return null;
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
})());
|
|
189
|
+
})());
|
|
190
|
+
})(0));
|
|
191
|
+
})((((artifact)["target"] === "javascript") ? (artifact)["modules"] : (((artifact)["descriptor"])["project"])["modules"])));
|
|
192
|
+
})(fallback((artifact)["directory"], resolve((artifact)["path"], ".."))));
|
|
193
|
+
}
|
|
194
|
+
async function put_sidecar(directory, id, source) {
|
|
195
|
+
if ((!__eliscript_truthy(((__eliscript_value_7) => (__eliscript_truthy(__eliscript_value_7) ? (((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(source) === "string") : __eliscript_value_7))(safe_id(id))))) {
|
|
196
|
+
invalid("invalid original provider sidecar");
|
|
197
|
+
}
|
|
198
|
+
return (await (async (path) => {
|
|
199
|
+
return (await (async (part) => {
|
|
200
|
+
return (await (async (segments) => {
|
|
201
|
+
return (await (async (parent) => {
|
|
202
|
+
return (await (async (index) => {
|
|
203
|
+
return (await (async () => {
|
|
204
|
+
if (__eliscript_truthy(((__eliscript_value_8) => (__eliscript_truthy(__eliscript_value_8) ? __eliscript_value_8 : ((__eliscript_value_9) => (__eliscript_truthy(__eliscript_value_9) ? __eliscript_value_9 : (part)["startsWith"]((String("..") + String(sep)))))((part === ".."))))(isAbsolute(part)))) {
|
|
205
|
+
invalid("original provider sidecar escapes its artifact");
|
|
206
|
+
}
|
|
207
|
+
(await (async () => {
|
|
208
|
+
while (__eliscript_numeric_relation("<", index, ((segments) ?? []).length)) {
|
|
209
|
+
((parent = join(parent, (segments)[index])));
|
|
210
|
+
await (mkdir(parent, ({"recursive": true})));
|
|
211
|
+
((details) => {
|
|
212
|
+
if (__eliscript_truthy(((__eliscript_value_10) => (__eliscript_truthy(__eliscript_value_10) ? __eliscript_value_10 : (!__eliscript_truthy((details)["isDirectory"]()))))((details)["isSymbolicLink"]()))) {
|
|
213
|
+
return invalid("original provider sidecar traverses an alias");
|
|
214
|
+
} else {
|
|
215
|
+
return null;
|
|
216
|
+
}
|
|
217
|
+
})(await (lstat(parent)));
|
|
218
|
+
((index = (index + 1)));
|
|
219
|
+
}
|
|
220
|
+
return null;
|
|
221
|
+
})());
|
|
222
|
+
(await (async () => {
|
|
223
|
+
try {
|
|
224
|
+
return await (writeFile(path, source, ({"flag": "wx"})));
|
|
225
|
+
} catch (error) {
|
|
226
|
+
if ((!((error)["code"] === "EEXIST"))) {
|
|
227
|
+
((__eliscript_value_11) => { throw __eliscript_value_11; })(error);
|
|
228
|
+
}
|
|
229
|
+
return (await (async (details) => {
|
|
230
|
+
return (__eliscript_truthy((await (async (__eliscript_value_12) => (__eliscript_truthy(__eliscript_value_12) ? __eliscript_value_12 : (await (async (__eliscript_value_13) => (__eliscript_truthy(__eliscript_value_13) ? __eliscript_value_13 : (!__eliscript_truthy((await (readFile(path)))["equals"](Buffer.from(source))))))((!__eliscript_truthy((details)["isFile"]()))))))((details)["isSymbolicLink"]()))) ? ((__eliscript_value_14) => { throw __eliscript_value_14; })(new (globalThis.Error)("original provider sidecar conflicts with emitted source")) : null);
|
|
231
|
+
})(await (lstat(path))));
|
|
232
|
+
}
|
|
233
|
+
})());
|
|
234
|
+
return path;
|
|
235
|
+
})());
|
|
236
|
+
})(0));
|
|
237
|
+
})(directory));
|
|
238
|
+
})(((id)["split"]("/"))["slice"](0, -1)));
|
|
239
|
+
})(relative(directory, path)));
|
|
240
|
+
})(resolve(directory, id)));
|
|
241
|
+
}
|
|
242
|
+
async function originalProgramSidecars(artifact, record) {
|
|
243
|
+
validateOriginalProcessHostDependency(record);
|
|
244
|
+
return (await (async (declared_directory) => {
|
|
245
|
+
return (await (async (directory) => {
|
|
246
|
+
return (await (async (request) => {
|
|
247
|
+
return (await (async (sources) => {
|
|
248
|
+
return (await (async (index) => {
|
|
249
|
+
return (await (async (execution) => {
|
|
250
|
+
return (await (async () => {
|
|
251
|
+
(await (async () => {
|
|
252
|
+
while (__eliscript_numeric_relation("<", index, ((sources) ?? []).length)) {
|
|
253
|
+
(await (async (source) => {
|
|
254
|
+
return await (put_sidecar(directory, (source)["id"], (source)["source"]));
|
|
255
|
+
})((sources)[index]));
|
|
256
|
+
((index = (index + 1)));
|
|
257
|
+
}
|
|
258
|
+
return null;
|
|
259
|
+
})());
|
|
260
|
+
return ((!((execution)["hostSource"] == null)) ? await (put_sidecar(directory, (execution)["host"], (execution)["hostSource"])) : (__eliscript_truthy((execution)["host"]) ? resolve((record)["sourceRoot"], (execution)["host"]) : null));
|
|
261
|
+
})());
|
|
262
|
+
})((record)["execution"]));
|
|
263
|
+
})(0));
|
|
264
|
+
})(fallback((request)["hostSources"], [])));
|
|
265
|
+
})(((__eliscript_value_15) => (__eliscript_truthy(__eliscript_value_15) ? __eliscript_value_15 : ({})))((record)["request"])));
|
|
266
|
+
})(resolve(((declared_directory == null) ? resolve((artifact)["path"], "..") : declared_directory))));
|
|
267
|
+
})((artifact)["directory"]));
|
|
268
|
+
}
|
|
269
|
+
function originalProgramArguments(contract, entry, base) {
|
|
270
|
+
{
|
|
271
|
+
const __eliscript_value_16 = fallback((contract)["arguments"], (fallback((contract)["argumentModules"], [entry]))["map"](((module) => {
|
|
272
|
+
return ({"module": module});
|
|
273
|
+
})));
|
|
274
|
+
{
|
|
275
|
+
let records = __eliscript_value_16;
|
|
276
|
+
if ((!__eliscript_truthy(Array.isArray(records)))) {
|
|
277
|
+
invalid("original program arguments must be an array");
|
|
278
|
+
}
|
|
279
|
+
return (records)["map"](((record) => {
|
|
280
|
+
if ((!__eliscript_truthy(((__eliscript_value_17) => (__eliscript_truthy(__eliscript_value_17) ? ((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(record) === "object") && (!__eliscript_truthy(Array.isArray(record))) && (((Object.keys(record)) ?? []).length === 1)) : __eliscript_value_17))(record)))) {
|
|
281
|
+
invalid("original program requires an explicit argument recipe");
|
|
282
|
+
}
|
|
283
|
+
if (__eliscript_truthy(Object.hasOwn(record, "literal"))) {
|
|
284
|
+
if ((!(((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((record)["literal"]) === "string"))) {
|
|
285
|
+
invalid("original program literal argument must be text");
|
|
286
|
+
}
|
|
287
|
+
return (record)["literal"];
|
|
288
|
+
} else {
|
|
289
|
+
if (__eliscript_truthy(Object.hasOwn(record, "directory"))) {
|
|
290
|
+
if ((!((record)["directory"] === true))) {
|
|
291
|
+
invalid("original program directory argument must select its artifact");
|
|
292
|
+
}
|
|
293
|
+
return fileURLToPath(new (globalThis.URL)("./", base));
|
|
294
|
+
} else {
|
|
295
|
+
{
|
|
296
|
+
const __eliscript_value_18 = (record)["module"];
|
|
297
|
+
{
|
|
298
|
+
let id = __eliscript_value_18;
|
|
299
|
+
if ((!__eliscript_truthy(safe_id(id)))) {
|
|
300
|
+
invalid("original program module argument must stay inside its artifact");
|
|
301
|
+
}
|
|
302
|
+
{
|
|
303
|
+
const __eliscript_value_19 = new (globalThis.URL)(__eliscript_at_direct(((id)["split"]("/"))["map"](globalThis.encodeURIComponent), "join", "/"), base);
|
|
304
|
+
{
|
|
305
|
+
let url = __eliscript_value_19;
|
|
306
|
+
if (((contract)["argument"] === "url")) {
|
|
307
|
+
return (url)["href"];
|
|
308
|
+
} else {
|
|
309
|
+
return fileURLToPath(url);
|
|
310
|
+
}
|
|
311
|
+
}
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
}
|
|
317
|
+
}));
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
async function originalCompilerSourceMaps(context) {
|
|
322
|
+
return (await (async (record) => {
|
|
323
|
+
return (await (async (target) => {
|
|
324
|
+
return (((!__eliscript_truthy(((record)["execution"])["compilerSourceMaps"])) || (target === "javascript")) ? [] : (await (async (modules) => {
|
|
325
|
+
return (await (async (request) => {
|
|
326
|
+
return (await (async () => {
|
|
327
|
+
if ((!__eliscript_truthy(((__eliscript_value_20) => (__eliscript_truthy(__eliscript_value_20) ? __eliscript_numeric_relation(">", ((modules) ?? []).length, 0) : __eliscript_value_20))(Array.isArray(modules))))) {
|
|
328
|
+
invalid("original compiler source maps require the entire original source graph");
|
|
329
|
+
}
|
|
330
|
+
return (await (async (response) => {
|
|
331
|
+
return (await (async (support) => {
|
|
332
|
+
return (await (async (maps) => {
|
|
333
|
+
return (await (async (index) => {
|
|
334
|
+
return (await (async () => {
|
|
335
|
+
(assert)["equal"]((support)["target"], "javascript");
|
|
336
|
+
(assert)["deepEqual"]((((support)["modules"])["map"](((m) => {
|
|
337
|
+
return (m)["id"];
|
|
338
|
+
})))["sort"](), ((modules)["map"](((m) => {
|
|
339
|
+
return (m)["id"];
|
|
340
|
+
})))["sort"]());
|
|
341
|
+
(await (async () => {
|
|
342
|
+
while (__eliscript_numeric_relation("<", index, (((support)["modules"]) ?? []).length)) {
|
|
343
|
+
(await (async (module) => {
|
|
344
|
+
if ((!(((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })((module)["sourceMapPath"]) === "string"))) {
|
|
345
|
+
((__eliscript_value_21) => { throw __eliscript_value_21; })(new (globalThis.Error)("original compiler JavaScript source map was not emitted"));
|
|
346
|
+
}
|
|
347
|
+
return ((source) => {
|
|
348
|
+
(assert)["equal"](((createHash("sha256"))["update"](source))["digest"]("hex"), (module)["sourceMapSha256"]);
|
|
349
|
+
return (maps)["push"](({"id": (String((module)["id"]) + String(".map")), "source": source}));
|
|
350
|
+
})(await (readFile((module)["sourceMapPath"], "utf8")));
|
|
351
|
+
})(((support)["modules"])[index]));
|
|
352
|
+
((index = (index + 1)));
|
|
353
|
+
}
|
|
354
|
+
return null;
|
|
355
|
+
})());
|
|
356
|
+
await (originalProgramSidecars((context)["artifact"], ({"request": ({"hostSources": maps}), "execution": ({})})));
|
|
357
|
+
return [({"role": "original-compiler-javascript-source-maps", "target": "javascript", "directory": __eliscript_at_direct((relative((context)["directory"], (support)["directory"]))["split"](sep), "join", "/"), "identitySha256": (support)["identitySha256"]})];
|
|
358
|
+
})());
|
|
359
|
+
})(0));
|
|
360
|
+
})([]));
|
|
361
|
+
})(await ((context)["archiveProduct"](response, "original-compiler-javascript-maps", "javascript"))));
|
|
362
|
+
})(await (((context)["session"])["request"](request, ({"signal": (context)["signal"]})))));
|
|
363
|
+
})());
|
|
364
|
+
})(Object.assign(({}), (record)["request"], ({"operation": "project", "modules": modules, "entry": fallback((record)["entry"], ((record)["request"])["entry"]), "target": "javascript", "sourceMap": true, "debug": false, "phased": false}))));
|
|
365
|
+
})(fallback((record)["modules"], ((record)["request"])["modules"]))));
|
|
366
|
+
})((context)["target"]));
|
|
367
|
+
})((context)["record"]));
|
|
368
|
+
}
|
|
369
|
+
async function run_program(context, command, args, env, policy, cwd) {
|
|
370
|
+
((env)["ELISCRIPT_ORIGINAL_EXECUTION_CONTEXT"] = await (writeOriginalCorpusExecutionContext((context)["directory"], ({"options": ((__eliscript_value_22) => (__eliscript_truthy(__eliscript_value_22) ? __eliscript_value_22 : ({})))((context)["options"]), "directory": (context)["directory"], "caseId": ((context)["record"])["id"], "target": (context)["target"], "sourceIdentity": (context)["sourceIdentity"]}))));
|
|
371
|
+
return (await (async (settings) => {
|
|
372
|
+
return ((receipt) => {
|
|
373
|
+
return (receipt)["stdout"];
|
|
374
|
+
})(await (runOriginalCorpusProcess(command, args, ({"directory": resolve((context)["directory"], "original-process"), "caseId": ((context)["record"])["id"], "target": (context)["target"], "sourceIdentity": (context)["sourceIdentity"], "policy": policy, "cwd": cwd, "env": env, "executionContext": JSON.parse((env)["ELISCRIPT_ORIGINAL_EXECUTION_CONTEXT"]), "signal": (context)["signal"], "terminate": (settings)["terminateOriginalProcess"], "cleanup": (settings)["cleanupOriginalProcess"]}))));
|
|
375
|
+
})(((__eliscript_value_23) => (__eliscript_truthy(__eliscript_value_23) ? __eliscript_value_23 : ({})))((context)["options"])));
|
|
376
|
+
}
|
|
377
|
+
async function executeOriginalProgram(input_context) {
|
|
378
|
+
return (await (async (artifact) => {
|
|
379
|
+
return (await (async (record) => {
|
|
380
|
+
return (await (async (target) => {
|
|
381
|
+
return (await (async (source_root) => {
|
|
382
|
+
return (await (async (contract) => {
|
|
383
|
+
return (await (async (supplied) => {
|
|
384
|
+
return (await (async (resources) => {
|
|
385
|
+
return (await (async (configured) => {
|
|
386
|
+
return (await (async (options) => {
|
|
387
|
+
return (await (async (context) => {
|
|
388
|
+
return (await (async (policy) => {
|
|
389
|
+
return (await (async (supporting) => {
|
|
390
|
+
return (await (async () => {
|
|
391
|
+
((((contract)["zeroImports"] === true) && (target === "wasm")) ? ((module) => {
|
|
392
|
+
return (assert)["deepEqual"]((globalThis.WebAssembly.Module)["imports"](module), [], "original source graph must remain a zero-import WASM product");
|
|
393
|
+
})(new (globalThis.WebAssembly.Module)(new (globalThis.Uint8Array)(await (readFile((artifact)["path"]))))) : null);
|
|
394
|
+
return (await (async (reference) => {
|
|
395
|
+
return (await (async (generations) => {
|
|
396
|
+
return (await (async (env) => {
|
|
397
|
+
return (await (async (directory) => {
|
|
398
|
+
return (await (async (entry) => {
|
|
399
|
+
return (await (async (host) => {
|
|
400
|
+
return (await (async () => {
|
|
401
|
+
if (__eliscript_truthy(reference)) {
|
|
402
|
+
__eliscript_at(Reflect, "apply")((supporting)["push"], supporting, (reference)["supportingProducts"]);
|
|
403
|
+
((env)["ELISCRIPT_ORIGINAL_REFERENCE_PRODUCT_ROOT"] = (reference)["directory"]);
|
|
404
|
+
}
|
|
405
|
+
if (__eliscript_truthy(generations)) {
|
|
406
|
+
__eliscript_at(Reflect, "apply")((supporting)["push"], supporting, (generations)["supportingProducts"]);
|
|
407
|
+
((env)["ELISCRIPT_ORIGINAL_COMPILER_GENERATIONS"] = (generations)["manifestPath"]);
|
|
408
|
+
}
|
|
409
|
+
{
|
|
410
|
+
let companion = (supporting)["find"](((item) => {
|
|
411
|
+
return ((item)["role"] === "original-compiler-javascript-source-maps");
|
|
412
|
+
}));
|
|
413
|
+
let javascript_directory = ((target === "javascript") ? (artifact)["directory"] : (__eliscript_truthy(companion) ? resolve((context)["directory"], (companion)["directory"]) : null));
|
|
414
|
+
if ((!(javascript_directory === undefined))) {
|
|
415
|
+
((env)["ELISCRIPT_ORIGINAL_JAVASCRIPT_PRODUCT_ROOT"] = javascript_directory);
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
await (originalProgramAliases(artifact, source_root));
|
|
419
|
+
if ((!__eliscript_truthy(((__eliscript_value_25) => (__eliscript_truthy(__eliscript_value_25) ? __eliscript_value_25 : (["node", "bun"])["includes"]((contract)["hostRuntime"])))(((contract)["hostRuntime"] === undefined))))) {
|
|
420
|
+
invalid("original host runtime must be node or bun");
|
|
421
|
+
}
|
|
422
|
+
return (await (async (bun) => {
|
|
423
|
+
return (await (async (command) => {
|
|
424
|
+
return (await (async (preload) => {
|
|
425
|
+
return (await (async (args) => {
|
|
426
|
+
return (await (async () => {
|
|
427
|
+
((env)["ELISCRIPT_ORIGINAL_TARGET"] = target);
|
|
428
|
+
((env)["ELISCRIPT_ORIGINAL_SOURCE_ROOT"] = source_root);
|
|
429
|
+
((target === "javascript") ? (__eliscript_truthy((contract)["hostEval"]) ? (await (async (script) => {
|
|
430
|
+
await (writeFile(script, (contract)["hostEval"]));
|
|
431
|
+
((args = (preload)["concat"]([script])));
|
|
432
|
+
return ((env)[(contract)["environment"]] = entry);
|
|
433
|
+
})(resolve(directory, "__eliscript_original_inline.mjs"))) : ((args = (__eliscript_truthy(host) ? (preload)["concat"]([host], originalProgramArguments(contract, (artifact)["entry"], (pathToFileURL((String(directory) + String("/"))))["href"])) : (preload)["concat"]([entry]))))) : (await (async (configuration) => {
|
|
434
|
+
await (saveCompilerMetadata(configuration, ({"target": target, "path": (artifact)["path"], "descriptor": (artifact)["descriptor"], "typed": (artifact)["typed"], "nativeTarget": fallback((artifact)["nativeTarget"], fallback((options)["nativeTarget"], (((globalThis.process)["platform"] === "linux") ? "arm64-linux" : "arm64-macos"))), "entry": (artifact)["entry"], "host": host, "argument": (contract)["argument"], "arguments": (contract)["arguments"], "argumentModules": fallback((contract)["argumentModules"], [(artifact)["entry"]]), "hostEval": (contract)["hostEval"], "environment": (contract)["environment"], "base": (pathToFileURL((String(directory) + String("/"))))["href"], "sourceRoot": source_root, "childProcesses": (contract)["childProcesses"], "runtimeLaunchers": ((contract)["runtimeLaunchers"] === true), "memory": (options)["memory"], "driverEvidence": resolve(directory, "original-driver-lifecycle.jsonl"), "runtimeOptions": Object.assign(({}), (options)["runtimeOptions"], ((!((record)["auto"] === undefined)) ? ({"auto": (record)["auto"]}) : null), (__eliscript_truthy((artifact)["debug"]) ? ({"debug": (artifact)["debug"]}) : null))})));
|
|
435
|
+
return ((args = (preload)["concat"]([resolve(source_root, "tools/backends/compiler-corpus-program-driver.mjs"), configuration])));
|
|
436
|
+
})(resolve(directory, "__eliscript_original_program.json"))));
|
|
437
|
+
return ((result) => {
|
|
438
|
+
if (__eliscript_numeric_relation(">", ((supporting) ?? []).length, 0)) {
|
|
439
|
+
((result)["supportingProducts"] = supporting);
|
|
440
|
+
}
|
|
441
|
+
return result;
|
|
442
|
+
})(({"kind": "original-program", "stdout": await (run_program(context, command, args, env, policy, directory))}));
|
|
443
|
+
})());
|
|
444
|
+
})(undefined));
|
|
445
|
+
})((__eliscript_truthy(bun) ? ["--preload", resolve(source_root, "tests/fixtures/compiled-eli-bun-preload.mjs")] : ["--experimental-loader", resolve(source_root, "tests/fixtures/compiled-eli-node-loader.mjs")])));
|
|
446
|
+
})((__eliscript_truthy(bun) ? fallback((options)["bun"], fallback(((globalThis.process)["env"])["BUN"], "bun")) : fallback((options)["node"], fallback(((globalThis.process)["env"])["NODE"], "node")))));
|
|
447
|
+
})((((contract)["hostRuntime"] === undefined) ? ((__eliscript_value_26) => (__eliscript_truthy(__eliscript_value_26) ? __eliscript_value_26 : (contract)["requiresBun"]))(((options)["programHost"] === "bun")) : ((contract)["hostRuntime"] === "bun"))));
|
|
448
|
+
})());
|
|
449
|
+
})(await (originalProgramSidecars(artifact, Object.assign(({}), record, ({"sourceRoot": source_root}))))));
|
|
450
|
+
})(resolve(directory, (artifact)["entry"])));
|
|
451
|
+
})(fallback((artifact)["directory"], resolve((artifact)["path"], ".."))));
|
|
452
|
+
})(({})));
|
|
453
|
+
})(await (prepareOriginalCompilerGenerations(context))));
|
|
454
|
+
})(await (prepareOriginalReferenceArtifact(context))));
|
|
455
|
+
})());
|
|
456
|
+
})(await (originalCompilerSourceMaps(context))));
|
|
457
|
+
})(originalCorpusExecutionPolicy(context)));
|
|
458
|
+
})(Object.assign(({}), input_context, ({"options": options, "directory": fallback((input_context)["directory"], fallback((artifact)["directory"], resolve((artifact)["path"], "..")))}))));
|
|
459
|
+
})(Object.assign(({}), configured, (__eliscript_truthy((record)["memory"]) ? ({"memory": globalThis.structuredClone((record)["memory"])}) : null), ({"runtimeOptions": Object.assign(({}), (configured)["runtimeOptions"], (contract)["runtimeOptions"])}))));
|
|
460
|
+
})((__eliscript_truthy(resources) ? Object.assign(({}), supplied, ({"profile": (resources)["profile"], "budget": (resources)["budget"], "memory": (resources)["memory"], "auto": (resources)["auto"], "runtimeOptions": Object.assign(({}), (resources)["budget"], ({"auto": (resources)["auto"]}), (supplied)["runtimeOptions"])})) : supplied)));
|
|
461
|
+
})((((contract)["runtimeProfile"] === "compiler") ? independentCompilerResources(supplied) : null)));
|
|
462
|
+
})(((__eliscript_value_24) => (__eliscript_truthy(__eliscript_value_24) ? __eliscript_value_24 : ({})))((input_context)["options"])));
|
|
463
|
+
})((record)["execution"]));
|
|
464
|
+
})((input_context)["sourceRoot"]));
|
|
465
|
+
})((input_context)["target"]));
|
|
466
|
+
})((input_context)["record"]));
|
|
467
|
+
})((input_context)["artifact"]));
|
|
468
|
+
}
|
|
469
|
+
async function executeCompilerSessionProgram(context) {
|
|
470
|
+
return (await (async (artifact) => {
|
|
471
|
+
return (await (async (record) => {
|
|
472
|
+
return (await (async (target) => {
|
|
473
|
+
return (await (async (source_root) => {
|
|
474
|
+
return (await (async (contract) => {
|
|
475
|
+
return (await (async (supplied) => {
|
|
476
|
+
return (await (async (resources) => {
|
|
477
|
+
return (await (async (options) => {
|
|
478
|
+
return (await (async (directory) => {
|
|
479
|
+
return (await (async () => {
|
|
480
|
+
if ((!__eliscript_truthy((["javascript", "wasm", "native"])["includes"](target)))) {
|
|
481
|
+
invalid("original compiler tools require a real selected compiler target");
|
|
482
|
+
}
|
|
483
|
+
if ((!__eliscript_truthy((["node", "bun"])["includes"]((contract)["hostRuntime"])))) {
|
|
484
|
+
invalid("original compiler tools require their explicit host runtime");
|
|
485
|
+
}
|
|
486
|
+
await (javascript_environment(artifact, source_root));
|
|
487
|
+
return (await (async (host) => {
|
|
488
|
+
return (await (async (configuration) => {
|
|
489
|
+
return (await (async (supporting_directory) => {
|
|
490
|
+
return (await (async (supporting_manifest) => {
|
|
491
|
+
return (await (async (preparation) => {
|
|
492
|
+
return (await (async (deadline) => {
|
|
493
|
+
return (await (async (policy_context) => {
|
|
494
|
+
return (await (async (policy) => {
|
|
495
|
+
return (await (async () => {
|
|
496
|
+
if ((!__eliscript_truthy(host))) {
|
|
497
|
+
invalid("original compiler tools require their retained original host source");
|
|
498
|
+
}
|
|
499
|
+
if ((!__eliscript_truthy(((__eliscript_value_28) => (__eliscript_truthy(__eliscript_value_28) ? __eliscript_value_28 : ((__eliscript_value_29) => (__eliscript_truthy(__eliscript_value_29) ? __eliscript_numeric_relation(">", preparation, 0) : __eliscript_value_29))(Number.isSafeInteger(preparation))))((preparation === undefined))))) {
|
|
500
|
+
invalid("original compiler preparation requires its positive original beforeAll timeout");
|
|
501
|
+
}
|
|
502
|
+
await (saveCompilerMetadata(configuration, Object.assign(({"target": target, "path": (artifact)["path"], "sourceRoot": source_root, "entry": (artifact)["entry"], "descriptor": (artifact)["descriptor"], "typed": (artifact)["typed"], "memory": (options)["memory"], "runtimeOptions": Object.assign(({}), (options)["runtimeOptions"], ({"nativeTarget": fallback((artifact)["nativeTarget"], fallback((options)["nativeTarget"], (((globalThis.process)["platform"] === "linux") ? "arm64-linux" : "arm64-macos")))}), (__eliscript_truthy((artifact)["debug"]) ? ({"debug": (artifact)["debug"]}) : null))}), ((!(preparation === undefined)) ? ({"preparationTimeoutMs": preparation}) : null), (((contract)["supportingCompilerProducts"] === true) ? ({"supportingDirectory": supporting_directory, "supportingManifest": supporting_manifest}) : null))));
|
|
503
|
+
return (await (async (command) => {
|
|
504
|
+
return (await (async (stdout) => {
|
|
505
|
+
return (await (async (supporting) => {
|
|
506
|
+
return (await (async () => {
|
|
507
|
+
(((contract)["supportingCompilerProducts"] === true) ? (await (async (manifest) => {
|
|
508
|
+
return (await (async (products) => {
|
|
509
|
+
return (await (async (roles) => {
|
|
510
|
+
return (await (async (index) => {
|
|
511
|
+
return (await (async () => {
|
|
512
|
+
if ((!__eliscript_truthy(((__eliscript_value_30) => (__eliscript_truthy(__eliscript_value_30) ? ((__eliscript_value_31) => (__eliscript_truthy(__eliscript_value_31) ? ((__eliscript_value_32) => (__eliscript_truthy(__eliscript_value_32) ? __eliscript_numeric_relation(">", ((products) ?? []).length, 0) : __eliscript_value_32))(Array.isArray(products)) : __eliscript_value_31))(((manifest)["version"] === 1)) : __eliscript_value_30))(((manifest)["format"] === "eliscript-original-compiler-supporting-products"))))) {
|
|
513
|
+
invalid("original compiler tools did not retain their real supporting products");
|
|
514
|
+
}
|
|
515
|
+
return (await (async () => {
|
|
516
|
+
while (__eliscript_numeric_relation("<", index, ((products) ?? []).length)) {
|
|
517
|
+
(await (async (product) => {
|
|
518
|
+
return (await (async (role) => {
|
|
519
|
+
return (await (async (built) => {
|
|
520
|
+
return (await (async () => {
|
|
521
|
+
if ((!((((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(role) === "string") && __eliscript_numeric_relation(">", ((role) ?? []).length, 0) && (!__eliscript_truthy((roles)["has"](role)))))) {
|
|
522
|
+
invalid("original compiler supporting product role is missing or duplicate");
|
|
523
|
+
}
|
|
524
|
+
(roles)["add"](role);
|
|
525
|
+
([(built)["directory"], (built)["path"]])["forEach"](((path) => {
|
|
526
|
+
if ((!(((__eliscript_value) => { if (__eliscript_value === null) return "null"; const __eliscript_host_type = typeof __eliscript_value; if (__eliscript_host_type !== "object" && __eliscript_host_type !== "function") return __eliscript_host_type; try { const __eliscript_type = Object.getOwnPropertyDescriptor(__eliscript_value, Symbol.for("eliscript.value.type")); if (__eliscript_type && Object.prototype.hasOwnProperty.call(__eliscript_type, "value") && (__eliscript_type.value === "keyword" || __eliscript_type.value === "symbol")) return __eliscript_type.value; const __eliscript_kind = Object.getOwnPropertyDescriptor(__eliscript_value, "kind"); if (__eliscript_kind && Object.prototype.hasOwnProperty.call(__eliscript_kind, "value")) { if (__eliscript_kind.value === "eliscript/keyword") return "keyword"; if (__eliscript_kind.value === "eliscript/symbol") return "symbol"; } return __eliscript_host_type; } catch { return __eliscript_host_type; } })(path) === "string"))) {
|
|
527
|
+
invalid("original compiler supporting product requires actual local files");
|
|
528
|
+
}
|
|
529
|
+
{
|
|
530
|
+
const __eliscript_value_33 = relative(supporting_directory, resolve(path));
|
|
531
|
+
{
|
|
532
|
+
let inside = __eliscript_value_33;
|
|
533
|
+
if (__eliscript_truthy(((__eliscript_value_34) => (__eliscript_truthy(__eliscript_value_34) ? __eliscript_value_34 : ((__eliscript_value_35) => (__eliscript_truthy(__eliscript_value_35) ? __eliscript_value_35 : ((__eliscript_value_36) => (__eliscript_truthy(__eliscript_value_36) ? __eliscript_value_36 : (inside)["startsWith"]((String("..") + String(sep)))))((inside === ".."))))(isAbsolute(inside))))((inside === "")))) {
|
|
534
|
+
return invalid("original compiler supporting product escapes its case archive");
|
|
535
|
+
} else {
|
|
536
|
+
return null;
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}));
|
|
541
|
+
{
|
|
542
|
+
const __eliscript_value_37 = (built)["provenance"];
|
|
543
|
+
const __eliscript_value_38 = (built)["sourceIdentity"];
|
|
544
|
+
{
|
|
545
|
+
let provenance = __eliscript_value_37;
|
|
546
|
+
let source = __eliscript_value_38;
|
|
547
|
+
if ((!__eliscript_truthy(((__eliscript_value_39) => (__eliscript_truthy(__eliscript_value_39) ? ((__eliscript_value_40) => (__eliscript_truthy(__eliscript_value_40) ? ((__eliscript_value_41) => (__eliscript_truthy(__eliscript_value_41) ? ((__eliscript_value_42) => (__eliscript_truthy(__eliscript_value_42) ? ((__eliscript_value_43) => (__eliscript_truthy(__eliscript_value_43) ? ((__eliscript_value_44) => (__eliscript_truthy(__eliscript_value_44) ? ((__eliscript_value_45) => (__eliscript_truthy(__eliscript_value_45) ? (JSON.stringify((((provenance)["compiledModuleIds"])["slice"]())["sort"]()) === JSON.stringify((((source)["modules"])["map"](((item) => {
|
|
548
|
+
return (item)["id"];
|
|
549
|
+
})))["sort"]())) : __eliscript_value_45))(Array.isArray((source)["modules"])) : __eliscript_value_44))(source) : __eliscript_value_43))(Array.isArray((provenance)["compiledModuleIds"])) : __eliscript_value_42))(((provenance)["runtimeCompiled"] === true)) : __eliscript_value_41))((normalizeCompilerHost((provenance)["producerHost"]) === target)) : __eliscript_value_40))(((provenance)["mode"] === "session")) : __eliscript_value_39))(provenance)))) {
|
|
550
|
+
((__eliscript_value_46) => { throw __eliscript_value_46; })(new (globalThis.Error)("original compiler supporting product was not built completely by the selected real compiler"));
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
return ((archived) => {
|
|
555
|
+
return ((product_identity) => {
|
|
556
|
+
return (() => {
|
|
557
|
+
if ((!__eliscript_truthy(((__eliscript_value_47) => (__eliscript_truthy(__eliscript_value_47) ? (product_identity)["sha256"] : __eliscript_value_47))(product_identity)))) {
|
|
558
|
+
((__eliscript_value_48) => { throw __eliscript_value_48; })(new (globalThis.Error)("original compiler supporting product has no authenticated emitted file identity"));
|
|
559
|
+
}
|
|
560
|
+
return (supporting)["push"](({"role": role, "target": normalizeCompilerHost((built)["host"]), "producerHost": target, "directory": __eliscript_at_direct((relative((context)["directory"], (built)["directory"]))["split"](sep), "join", "/"), "identitySha256": (product_identity)["sha256"]}));
|
|
561
|
+
})();
|
|
562
|
+
})((archived)["productIdentity"]);
|
|
563
|
+
})(await (archiveCompilerArtifact(built, resolve((context)["directory"], (String("original-tool-product-") + String(index) + String("-metadata"))))));
|
|
564
|
+
})());
|
|
565
|
+
})((product)["artifact"]));
|
|
566
|
+
})((product)["role"]));
|
|
567
|
+
})((products)[index]));
|
|
568
|
+
((index = (index + 1)));
|
|
569
|
+
}
|
|
570
|
+
return null;
|
|
571
|
+
})());
|
|
572
|
+
})());
|
|
573
|
+
})(0));
|
|
574
|
+
})(new (globalThis.Set)()));
|
|
575
|
+
})((manifest)["products"]));
|
|
576
|
+
})(JSON.parse(await (readFile(supporting_manifest, "utf8"))))) : null);
|
|
577
|
+
{
|
|
578
|
+
const __eliscript_value_49 = ({"kind": "original-program", "stdout": stdout});
|
|
579
|
+
{
|
|
580
|
+
let result = __eliscript_value_49;
|
|
581
|
+
if (__eliscript_numeric_relation(">", ((supporting) ?? []).length, 0)) {
|
|
582
|
+
((result)["supportingProducts"] = supporting);
|
|
583
|
+
}
|
|
584
|
+
return result;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
})());
|
|
588
|
+
})([]));
|
|
589
|
+
})(await (run_program(context, command, [host], ({"ELISCRIPT_ORIGINAL_SOURCE_ROOT": source_root, "ELISCRIPT_ORIGINAL_TARGET": target, "ELISCRIPT_ORIGINAL_COMPILER_SESSION": configuration}), policy, source_root))));
|
|
590
|
+
})((((contract)["hostRuntime"] === "bun") ? fallback((options)["bun"], fallback(((globalThis.process)["env"])["BUN"], "bun")) : fallback((options)["node"], fallback(((globalThis.process)["env"])["NODE"], "node")))));
|
|
591
|
+
})());
|
|
592
|
+
})(originalCorpusExecutionPolicy(policy_context)));
|
|
593
|
+
})(Object.assign(({}), context, ({"record": Object.assign(({}), record, ({"execution": Object.assign(({}), contract, ({"timeoutMs": deadline, "timeoutByTarget": undefined}))}))}))));
|
|
594
|
+
})(((preparation === undefined) ? (contract)["timeoutMs"] : (preparation + (contract)["timeoutMs"]))));
|
|
595
|
+
})((contract)["preparationTimeoutMs"]));
|
|
596
|
+
})(resolve((context)["directory"], "original-tool-products.json")));
|
|
597
|
+
})(resolve((context)["directory"], "original-tool-products")));
|
|
598
|
+
})(resolve(directory, "__eliscript_original_compiler_session.json")));
|
|
599
|
+
})(await (originalProgramSidecars(artifact, Object.assign(({}), record, ({"sourceRoot": source_root}))))));
|
|
600
|
+
})());
|
|
601
|
+
})(fallback((artifact)["directory"], resolve((artifact)["path"], ".."))));
|
|
602
|
+
})(Object.assign(({}), supplied, ({"memory": fallback((record)["memory"], (resources)["memory"]), "runtimeOptions": Object.assign(({}), (resources)["budget"], ({"auto": (resources)["auto"]}), (supplied)["runtimeOptions"], (contract)["runtimeOptions"])}))));
|
|
603
|
+
})(independentCompilerResources((((contract)["compilerProfile"] === undefined) ? supplied : ({"profile": (contract)["compilerProfile"]})))));
|
|
604
|
+
})(((__eliscript_value_27) => (__eliscript_truthy(__eliscript_value_27) ? __eliscript_value_27 : ({})))((context)["options"])));
|
|
605
|
+
})((record)["execution"]));
|
|
606
|
+
})((context)["sourceRoot"]));
|
|
607
|
+
})((context)["target"]));
|
|
608
|
+
})((context)["record"]));
|
|
609
|
+
})((context)["artifact"]));
|
|
610
|
+
}
|
|
611
|
+
export {executeOriginalProgram, executeCompilerSessionProgram, originalProgramArguments, originalProgramAliases, originalProgramSidecars, originalCompilerSourceMaps};
|
|
612
|
+
//# sourceMappingURL=compiler-corpus-original-program.mjs.map
|