eliscript 0.0.1 → 0.0.3
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 +61 -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.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 +732 -11
- package/browser/worker.mjs +6 -3
- 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 +1078 -0
- package/dist/browser/loader.js +1 -0
- package/dist/browser/loader.mjs +231 -0
- package/dist/browser/worker.mjs +63 -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 +639 -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 +40 -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 +25 -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 +494 -0
- package/dist/literal-sources/stdlib/managed-literals.eli +1469 -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 +106 -11
- 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 +172 -72
- package/stdlib/gepo.eli +12 -0
- package/stdlib/interop/js.eli +56 -15
- package/stdlib/managed-literal-protocols.eli +494 -0
- package/stdlib/managed-literals.eli +1469 -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 +639 -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 +40 -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 +25 -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 +462 -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 +493 -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,340 @@
|
|
|
1
|
+
// Generated by Eliscript. Do not edit.
|
|
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("literal_suite"); return literal_suite; }
|
|
5
|
+
function __eliscript_tdz_write_0(__eliscript_tdz_value_0) { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("literal_suite"); 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("literal_source"); return literal_source; }
|
|
8
|
+
function __eliscript_tdz_write_1(__eliscript_tdz_value_1) { if (__eliscript_tdz_ready_1 !== true) __eliscript_tdz_error("literal_source"); 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("literal_titles"); return literal_titles; }
|
|
11
|
+
function __eliscript_tdz_write_2(__eliscript_tdz_value_2) { if (__eliscript_tdz_ready_2 !== true) __eliscript_tdz_error("literal_titles"); 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("literal_timeouts"); return literal_timeouts; }
|
|
14
|
+
function __eliscript_tdz_write_3(__eliscript_tdz_value_3) { if (__eliscript_tdz_ready_3 !== true) __eliscript_tdz_error("literal_timeouts"); 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("literal_host_tool_files"); return literal_host_tool_files; }
|
|
17
|
+
function __eliscript_tdz_write_4(__eliscript_tdz_value_4) { if (__eliscript_tdz_ready_4 !== true) __eliscript_tdz_error("literal_host_tool_files"); return __eliscript_const_error(); }
|
|
18
|
+
import "eliscript/runtime/unicode-case.mjs";
|
|
19
|
+
const __eliscript_truthy = (value) => value !== false && value != null;
|
|
20
|
+
const __eliscript_number_intrinsic = globalThis.Number;
|
|
21
|
+
const __eliscript_bigint_intrinsic = globalThis.BigInt;
|
|
22
|
+
const __eliscript_numeric_apply = globalThis.Reflect.apply;
|
|
23
|
+
const __eliscript_numeric_symbol = globalThis.Symbol.toPrimitive;
|
|
24
|
+
const __eliscript_numeric_error = globalThis.TypeError;
|
|
25
|
+
const __eliscript_numeric_trim = globalThis.String.prototype.trim;
|
|
26
|
+
const __eliscript_numeric_slice = globalThis.String.prototype.slice;
|
|
27
|
+
const __eliscript_numeric_exec = globalThis.RegExp.prototype.exec;
|
|
28
|
+
const __eliscript_numeric_radix = /^(?:0[xX][0-9a-fA-F]+|0[oO][0-7]+|0[bB][01]+)$/;
|
|
29
|
+
const __eliscript_numeric_object = (value) => value !== null && (typeof value === "object" || typeof value === "function" || (typeof value === "undefined" && value !== void 0));
|
|
30
|
+
const __eliscript_numeric_primitive = (value) => {
|
|
31
|
+
if (!__eliscript_numeric_object(value)) return value;
|
|
32
|
+
const exotic = value[__eliscript_numeric_symbol];
|
|
33
|
+
if (exotic !== void 0 && exotic !== null) {
|
|
34
|
+
const result = __eliscript_numeric_apply(exotic, value, ["number"]);
|
|
35
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
36
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
37
|
+
}
|
|
38
|
+
for (let index = 0; index < 2; index++) {
|
|
39
|
+
const method = value[index === 0 ? "valueOf" : "toString"];
|
|
40
|
+
if (typeof method === "function" || (typeof method === "undefined" && method !== void 0)) {
|
|
41
|
+
const result = __eliscript_numeric_apply(method, value, []);
|
|
42
|
+
if (!__eliscript_numeric_object(result)) return result;
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
throw new __eliscript_numeric_error("Cannot convert object to primitive value");
|
|
46
|
+
};
|
|
47
|
+
const __eliscript_to_number = (value) => {
|
|
48
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
49
|
+
if (typeof primitive === "string") {
|
|
50
|
+
const text = __eliscript_numeric_apply(__eliscript_numeric_trim, primitive, []);
|
|
51
|
+
if (__eliscript_numeric_apply(__eliscript_numeric_exec, __eliscript_numeric_radix, [text]) !== null) {
|
|
52
|
+
let first = 2;
|
|
53
|
+
while (first < text.length && text[first] === "0") first++;
|
|
54
|
+
if (first === text.length) return 0;
|
|
55
|
+
const prefix = text[1];
|
|
56
|
+
const limit = prefix === "x" || prefix === "X" ? 256 : prefix === "b" || prefix === "B" ? 1024 : 342;
|
|
57
|
+
if (text.length - first > limit) return 1 / 0;
|
|
58
|
+
const token = __eliscript_numeric_apply(__eliscript_numeric_slice, text, [0, 2]) + __eliscript_numeric_apply(__eliscript_numeric_slice, text, [first]);
|
|
59
|
+
return __eliscript_number_intrinsic(__eliscript_bigint_intrinsic(token));
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
return __eliscript_number_intrinsic(primitive);
|
|
63
|
+
};
|
|
64
|
+
const __eliscript_numeric = (value) => {
|
|
65
|
+
if (typeof value === "number" || typeof value === "bigint") return value;
|
|
66
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
67
|
+
if (typeof primitive === "number" || typeof primitive === "bigint") return primitive;
|
|
68
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
69
|
+
};
|
|
70
|
+
const __eliscript_implicit_number = (value) => {
|
|
71
|
+
if (typeof value === "number") return value;
|
|
72
|
+
const primitive = __eliscript_numeric_primitive(value);
|
|
73
|
+
if (typeof primitive === "bigint") throw new __eliscript_numeric_error("Cannot convert a BigInt value to a number");
|
|
74
|
+
return typeof primitive === "string" ? __eliscript_to_number(primitive) : +primitive;
|
|
75
|
+
};
|
|
76
|
+
const __eliscript_numeric_decrement = (value) => __eliscript_implicit_number(value) - 1;
|
|
77
|
+
const __eliscript_numeric_sub = (a, b) => { if (typeof a === "number" && typeof b === "number") return a - b; return __eliscript_numeric(a) - __eliscript_numeric(b); };
|
|
78
|
+
const __eliscript_numeric_mul = (a, b) => { if (typeof a === "number" && typeof b === "number") return a * b; return __eliscript_numeric(a) * __eliscript_numeric(b); };
|
|
79
|
+
const __eliscript_numeric_div = (a, b) => { if (typeof a === "number" && typeof b === "number") return a / b; return __eliscript_numeric(a) / __eliscript_numeric(b); };
|
|
80
|
+
const __eliscript_numeric_rem = (a, b) => { if (typeof a === "number" && typeof b === "number") return a % b; return __eliscript_numeric(a) % __eliscript_numeric(b); };
|
|
81
|
+
const __eliscript_numeric_and = (a, b) => { if (typeof a === "number" && typeof b === "number") return a & b; return __eliscript_numeric(a) & __eliscript_numeric(b); };
|
|
82
|
+
const __eliscript_numeric_or = (a, b) => { if (typeof a === "number" && typeof b === "number") return a | b; return __eliscript_numeric(a) | __eliscript_numeric(b); };
|
|
83
|
+
const __eliscript_numeric_xor = (a, b) => { if (typeof a === "number" && typeof b === "number") return a ^ b; return __eliscript_numeric(a) ^ __eliscript_numeric(b); };
|
|
84
|
+
const __eliscript_numeric_shl = (a, b) => { if (typeof a === "number" && typeof b === "number") return a << b; return __eliscript_numeric(a) << __eliscript_numeric(b); };
|
|
85
|
+
const __eliscript_numeric_shr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >> b; return __eliscript_numeric(a) >> __eliscript_numeric(b); };
|
|
86
|
+
const __eliscript_numeric_ushr = (a, b) => { if (typeof a === "number" && typeof b === "number") return a >>> b; return __eliscript_numeric(a) >>> __eliscript_numeric(b); };
|
|
87
|
+
const __eliscript_numeric_neg = (a) => typeof a === "number" ? -a : -__eliscript_numeric(a);
|
|
88
|
+
const __eliscript_numeric_int32 = (a) => typeof a === "number" ? a | 0 : __eliscript_numeric(a) | 0;
|
|
89
|
+
const __eliscript_numeric_uint32 = (a) => typeof a === "number" ? a >>> 0 : __eliscript_numeric(a) >>> 0;
|
|
90
|
+
const __eliscript_numeric_not = (a) => typeof a === "number" ? ~a : ~__eliscript_numeric(a);
|
|
91
|
+
const __eliscript_numeric_relation = (operator, left, right) => {
|
|
92
|
+
if (typeof left === "number" && typeof right === "number") {
|
|
93
|
+
if (operator === "<") return left < right;
|
|
94
|
+
if (operator === "<=") return left <= right;
|
|
95
|
+
if (operator === ">") return left > right;
|
|
96
|
+
return left >= right;
|
|
97
|
+
}
|
|
98
|
+
let a = __eliscript_numeric_primitive(left);
|
|
99
|
+
let b = __eliscript_numeric_primitive(right);
|
|
100
|
+
const x = typeof a, y = typeof b;
|
|
101
|
+
if (!((x === "string" && y === "string") || (x === "bigint" && y === "string") || (x === "string" && y === "bigint"))) {
|
|
102
|
+
a = __eliscript_numeric(a);
|
|
103
|
+
b = __eliscript_numeric(b);
|
|
104
|
+
}
|
|
105
|
+
if (operator === "<") return a < b;
|
|
106
|
+
if (operator === "<=") return a <= b;
|
|
107
|
+
if (operator === ">") return a > b;
|
|
108
|
+
return a >= b;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
import {createHash} from "node:crypto";
|
|
112
|
+
import {Buffer} from "node:buffer";
|
|
113
|
+
import * as legacy from "./compiler-corpus-project-adapters-legacy.mjs";
|
|
114
|
+
const literal_suite = "tests/literal-runtime.test.mjs";
|
|
115
|
+
__eliscript_tdz_ready_0 = true;
|
|
116
|
+
const literal_source = "tests/eliscript/literal-runtime.eli";
|
|
117
|
+
__eliscript_tdz_ready_1 = true;
|
|
118
|
+
const literal_titles = ["persistent literals and quoted data preserve language value categories", "hash-map rejects incomplete pairs in both compilers", "explicit host-only modules do not link the persistent runtime", "maintained Eliscript sources use explicit host constructors", "portable closures produce persistent values for the versioned worker codec"];
|
|
119
|
+
__eliscript_tdz_ready_2 = true;
|
|
120
|
+
const literal_timeouts = [60000, 60000, 60000, 5000, 60000];
|
|
121
|
+
__eliscript_tdz_ready_3 = true;
|
|
122
|
+
const literal_host_tool_files = ["tools/backends/build.mjs", "tools/backends/managed-runtime.mjs", "tools/backends/native-managed-runtime.mjs", "tests/helpers/managed-literal-nth-node-selfhosted.mjs"];
|
|
123
|
+
__eliscript_tdz_ready_4 = true;
|
|
124
|
+
function literal_hash(value) {
|
|
125
|
+
return ((createHash("sha256"))["update"](value))["digest"]("hex");
|
|
126
|
+
}
|
|
127
|
+
async function literal_record(options, locators) {
|
|
128
|
+
return (await (async (text) => {
|
|
129
|
+
return (await (async (file) => {
|
|
130
|
+
return (await (async (bootstrap_sources) => {
|
|
131
|
+
return (await (async (stable_files) => {
|
|
132
|
+
return (await (async (seen) => {
|
|
133
|
+
return (await (async (modules) => {
|
|
134
|
+
return (await (async (index) => {
|
|
135
|
+
return (await (async () => {
|
|
136
|
+
if ((!__eliscript_truthy(((__eliscript_value_1) => (__eliscript_truthy(__eliscript_value_1) ? ((__eliscript_value_2) => (__eliscript_truthy(__eliscript_value_2) ? ((__eliscript_value_3) => (__eliscript_truthy(__eliscript_value_3) ? ((__eliscript_value_4) => (__eliscript_truthy(__eliscript_value_4) ? (((__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; } })((options)["sourceRoot"]) === "string") : __eliscript_value_4))(Array.isArray(bootstrap_sources)) : __eliscript_value_3))((((__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; } })(file) === "function")) : __eliscript_value_2))((((__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; } })(text) === "function")) : __eliscript_value_1))((((__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; } })((options)["add"]) === "function"))))) {
|
|
137
|
+
((__eliscript_value_5) => { throw __eliscript_value_5; })(new (globalThis.TypeError)("original project adapter requires its complete source manifest and services"));
|
|
138
|
+
}
|
|
139
|
+
(await (async () => {
|
|
140
|
+
while (__eliscript_numeric_relation("<", index, ((bootstrap_sources) ?? []).length)) {
|
|
141
|
+
(await (async (filename) => {
|
|
142
|
+
if ((!__eliscript_truthy(((__eliscript_value_6) => (__eliscript_truthy(__eliscript_value_6) ? ((__eliscript_value_7) => (__eliscript_truthy(__eliscript_value_7) ? (!__eliscript_truthy((seen)["has"](filename))) : __eliscript_value_7))((new (globalThis.RegExp)("^bootstrap/compiler/[a-z][a-z0-9-]*\\.eli$"))["test"](filename)) : __eliscript_value_6))((((__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; } })(filename) === "string"))))) {
|
|
143
|
+
((__eliscript_value_8) => { throw __eliscript_value_8; })(new (globalThis.TypeError)("original compiler source manifest has an invalid or repeated module"));
|
|
144
|
+
}
|
|
145
|
+
(seen)["add"](filename);
|
|
146
|
+
return (modules)["push"](({"id": ((filename)["slice"](0, -4) + ".mjs"), "filename": filename, "source": await (text(filename))}));
|
|
147
|
+
})((bootstrap_sources)[index]));
|
|
148
|
+
((index = (index + 1)));
|
|
149
|
+
}
|
|
150
|
+
return null;
|
|
151
|
+
})());
|
|
152
|
+
if ((!__eliscript_truthy(((__eliscript_value_9) => (__eliscript_truthy(__eliscript_value_9) ? (seen)["has"]("bootstrap/compiler/compiler.eli") : __eliscript_value_9))((((modules) ?? []).length === 13))))) {
|
|
153
|
+
((__eliscript_value_10) => { throw __eliscript_value_10; })(new (globalThis.TypeError)("original project programs require the complete thirteen-module compiler"));
|
|
154
|
+
}
|
|
155
|
+
return (await (async (source) => {
|
|
156
|
+
return (await (async (identity) => {
|
|
157
|
+
return (await (async (source_assets) => {
|
|
158
|
+
return (await (async (tool_projections) => {
|
|
159
|
+
return (await (async (coverage) => {
|
|
160
|
+
return (await (async (claims) => {
|
|
161
|
+
return (await (async (entries) => {
|
|
162
|
+
return (await (async (changes) => {
|
|
163
|
+
return (await (async (assets) => {
|
|
164
|
+
return (await (async () => {
|
|
165
|
+
((index = 0));
|
|
166
|
+
while (__eliscript_numeric_relation("<", index, (((__eliscript_tdz_read_2())) ?? []).length)) {
|
|
167
|
+
if ((!__eliscript_truthy((source)["includes"](((__eliscript_tdz_read_2()))[index])))) {
|
|
168
|
+
((__eliscript_value_11) => { throw __eliscript_value_11; })(new (globalThis.TypeError)(("original literal runtime assertion boundary changed: " + ((__eliscript_tdz_read_2()))[index])));
|
|
169
|
+
}
|
|
170
|
+
((index = (index + 1)));
|
|
171
|
+
}
|
|
172
|
+
((index = 0));
|
|
173
|
+
while (__eliscript_numeric_relation("<", index, ((locators) ?? []).length)) {
|
|
174
|
+
{
|
|
175
|
+
const __eliscript_value_12 = (locators)[index];
|
|
176
|
+
{
|
|
177
|
+
let locator = __eliscript_value_12;
|
|
178
|
+
if ((!__eliscript_truthy(((__eliscript_value_13) => (__eliscript_truthy(__eliscript_value_13) ? (source)["includes"]((locator)["contains"]) : __eliscript_value_13))((((__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; } })((locator)["contains"]) === "string"))))) {
|
|
179
|
+
((__eliscript_value_14) => { throw __eliscript_value_14; })(new (globalThis.TypeError)("original literal runtime locator is absent from its complete suite"));
|
|
180
|
+
}
|
|
181
|
+
if ((!((locator)["contains"] === ((__eliscript_tdz_read_2()))[3]))) {
|
|
182
|
+
if ((!__eliscript_truthy((claims)["has"]((locator)["id"])))) {
|
|
183
|
+
(claims)["add"]((locator)["id"]);
|
|
184
|
+
(coverage)["push"]((locator)["id"]);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
((index = (index + 1)));
|
|
190
|
+
}
|
|
191
|
+
((index = 0));
|
|
192
|
+
(await (async () => {
|
|
193
|
+
while (__eliscript_numeric_relation("<", index, ((assets) ?? []).length)) {
|
|
194
|
+
(await (async (filename) => {
|
|
195
|
+
return ((evidence) => {
|
|
196
|
+
return ((id) => {
|
|
197
|
+
return (() => {
|
|
198
|
+
(source_assets)["push"](({"file": filename, "sourceSha256": (evidence)["sha256"]}));
|
|
199
|
+
if (__eliscript_truthy(((__eliscript_value_15) => (__eliscript_truthy(__eliscript_value_15) ? (!__eliscript_truthy((claims)["has"](id))) : __eliscript_value_15))((stable_files)["has"](filename)))) {
|
|
200
|
+
(claims)["add"](id);
|
|
201
|
+
return (coverage)["push"](id);
|
|
202
|
+
} else {
|
|
203
|
+
return null;
|
|
204
|
+
}
|
|
205
|
+
})();
|
|
206
|
+
})(("stable-compatibility:" + filename));
|
|
207
|
+
})(await (file(filename)));
|
|
208
|
+
})((assets)[index]));
|
|
209
|
+
((index = (index + 1)));
|
|
210
|
+
}
|
|
211
|
+
return null;
|
|
212
|
+
})());
|
|
213
|
+
(await (async (tools, position) => {
|
|
214
|
+
return (await (async () => {
|
|
215
|
+
while (__eliscript_numeric_relation("<", position, ((tools) ?? []).length)) {
|
|
216
|
+
(await (async (filename) => {
|
|
217
|
+
return ((evidence) => {
|
|
218
|
+
return (() => {
|
|
219
|
+
(source_assets)["push"](({"file": filename, "sourceSha256": (evidence)["sha256"]}));
|
|
220
|
+
if (__eliscript_numeric_relation("<", position, (((__eliscript_tdz_read_4())) ?? []).length)) {
|
|
221
|
+
return (tool_projections)["push"](({"id": filename, "sourceFile": filename, "sourceSha256": (evidence)["sha256"]}));
|
|
222
|
+
} else {
|
|
223
|
+
return null;
|
|
224
|
+
}
|
|
225
|
+
})();
|
|
226
|
+
})(await (file(filename)));
|
|
227
|
+
})((tools)[position]));
|
|
228
|
+
((position = (position + 1)));
|
|
229
|
+
}
|
|
230
|
+
return null;
|
|
231
|
+
})());
|
|
232
|
+
})(((__eliscript_tdz_read_4()))["concat"](["tests/eliscript/managed-literal-nth-node.eli"]), 0));
|
|
233
|
+
return ({"id": "original-program:compiler-literal-runtime-complete", "kind": "project", "coverage": coverage, "modules": modules, "entry": "bootstrap/compiler/compiler.mjs", "request": ({"operation": "project", "resolveImports": true, "phased": true, "sourceMap": true, "entries": entries}), "execution": ({"kind": "original-program", "host": "tests/__eliscript_original_literal_runtime_complete.mjs", "hostSource": source, "arguments": [({"directory": true})], "aliases": true, "requiresBun": true, "hostRuntime": "bun", "referenceArtifact": true, "childProcesses": "inherit-selected-artifact", "runtimeLaunchers": true, "compilerSourceMaps": true, "runtimeProfile": "compiler", "hostToolProjection": ({"kind": "literal-runtime-host-tools", "files": tool_projections}), "setupReplacement": ({"kind": "selected-and-independent-reference-compiler-directories", "algorithms": "selected-target-only", "sourceSha256": (identity)["sha256"], "modules": entries, "changes": changes, "originalCaseTimeouts": (__eliscript_tdz_read_3()), "originalTotalTimeoutMs": 245000, "originalHost": "tests/fixtures/literal-runtime-host.mjs"})}), "expected": ({"kind": "seed-program", "oracleRequired": true, "stdout": ""}), "original": ({"manifest": "stable-compatibility", "suite": (__eliscript_tdz_read_0()), "fixture": "tests/fixtures/literal-runtime.eli", "host": "tests/fixtures/literal-runtime-host.mjs", "sourceSha256": (identity)["sha256"], "originalAssertions": (__eliscript_tdz_read_2()), "sourceAssets": source_assets, "regions": [({"start": 0, "end": ((source) ?? []).length, "byteStart": 0, "byteEnd": (Buffer)["byteLength"](source), "sha256": literal_hash(source)})], "setupReplacement": ({"kind": "selected-and-independent-reference-compiler-directories", "changes": changes})})});
|
|
234
|
+
})());
|
|
235
|
+
})([(__eliscript_tdz_read_0()), (__eliscript_tdz_read_1()), "tests/fixtures/literal-runtime.eli", "tests/fixtures/literal-runtime-host.mjs", "bin/eliscript", "bin/eliscript-portable", "bin/eliscript-bootstrap", "bootstrap/host/bun.mjs", "runtime/core/identifier.mjs", "runtime/core/list.mjs", "runtime/core/map.mjs", "runtime/core/set.mjs", "runtime/core/value.mjs", "runtime/core/vector.mjs", "runtime/worker-value-codec.mjs"]));
|
|
236
|
+
})([]));
|
|
237
|
+
})((modules)["map"](((item) => {
|
|
238
|
+
return (item)["id"];
|
|
239
|
+
}))));
|
|
240
|
+
})(new (globalThis.Set)()));
|
|
241
|
+
})([]));
|
|
242
|
+
})([]));
|
|
243
|
+
})([]));
|
|
244
|
+
})(await (file((__eliscript_tdz_read_0())))));
|
|
245
|
+
})(await (text((__eliscript_tdz_read_0())))));
|
|
246
|
+
})());
|
|
247
|
+
})(0));
|
|
248
|
+
})([]));
|
|
249
|
+
})(new (globalThis.Set)()));
|
|
250
|
+
})((((options)["stableFiles"] === undefined) ? new (globalThis.Set)() : (options)["stableFiles"])));
|
|
251
|
+
})((options)["bootstrapSources"]));
|
|
252
|
+
})((options)["file"]));
|
|
253
|
+
})((options)["text"]));
|
|
254
|
+
}
|
|
255
|
+
async function add_original_project_programs(options) {
|
|
256
|
+
return (await (async (locators) => {
|
|
257
|
+
return ((!__eliscript_truthy(Array.isArray(locators))) ? await ((legacy)["addOriginalProjectPrograms"](options)) : (await (async (selected) => {
|
|
258
|
+
return ((((selected) ?? []).length === 0) ? await ((legacy)["addOriginalProjectPrograms"](options)) : (await (async (record) => {
|
|
259
|
+
return (await (async (add) => {
|
|
260
|
+
return (await (async (published) => {
|
|
261
|
+
return (await (async (after) => {
|
|
262
|
+
return (await (async (delegated) => {
|
|
263
|
+
return ((mapped) => {
|
|
264
|
+
return ((position) => {
|
|
265
|
+
return (() => {
|
|
266
|
+
if ((!__eliscript_truthy(published))) {
|
|
267
|
+
add(record);
|
|
268
|
+
}
|
|
269
|
+
(mapped)["splice"]((__eliscript_numeric_relation("<", position, 0) ? ((mapped) ?? []).length : position), 0, (__eliscript_tdz_read_0()));
|
|
270
|
+
return mapped;
|
|
271
|
+
})();
|
|
272
|
+
})((mapped)["findIndex"](((suite) => {
|
|
273
|
+
return (["tests/interop-package.test.mjs", "tests/loop-recur.test.mjs", "tests/stdlib-bit.test.mjs"])["includes"](suite);
|
|
274
|
+
})));
|
|
275
|
+
})(await ((legacy)["addOriginalProjectPrograms"](delegated)));
|
|
276
|
+
})(Object.assign(({}), options, ({"locators": (locators)["filter"](((item) => {
|
|
277
|
+
return ((__eliscript_value_16, __eliscript_value_17) => (__eliscript_value_16 !== __eliscript_value_17))((item)["file"], (__eliscript_tdz_read_0()));
|
|
278
|
+
})), "add": ((item) => {
|
|
279
|
+
if (__eliscript_truthy(((__eliscript_value_18) => (__eliscript_truthy(__eliscript_value_18) ? (after)["includes"]((item)["id"]) : __eliscript_value_18))((!__eliscript_truthy(published))))) {
|
|
280
|
+
add(record);
|
|
281
|
+
((published = true));
|
|
282
|
+
}
|
|
283
|
+
return add(item);
|
|
284
|
+
})}))));
|
|
285
|
+
})(["original-program:compiler-interop-package-complete", "original-program:compiler-loop-recur-complete", "original-program:compiler-stdlib-bit-complete"]));
|
|
286
|
+
})(false));
|
|
287
|
+
})((options)["add"]));
|
|
288
|
+
})(await (literal_record(options, selected)))));
|
|
289
|
+
})((locators)["filter"](((item) => {
|
|
290
|
+
return ((item)["file"] === (__eliscript_tdz_read_0()));
|
|
291
|
+
})))));
|
|
292
|
+
})((options)["locators"]));
|
|
293
|
+
}
|
|
294
|
+
async function addOriginalProjectPrograms(options) {
|
|
295
|
+
return (await (async (locators) => {
|
|
296
|
+
return (await (async (actual) => {
|
|
297
|
+
return (await (async (archive) => {
|
|
298
|
+
return (await (async (selected) => {
|
|
299
|
+
return ((((selected) ?? []).length === 0) ? await (add_original_project_programs(options)) : (await (async (identity) => {
|
|
300
|
+
return (await (async (add) => {
|
|
301
|
+
return (await (async (published) => {
|
|
302
|
+
return (await (async (delegated) => {
|
|
303
|
+
return ((mapped) => {
|
|
304
|
+
return (() => {
|
|
305
|
+
if ((!(published === 1))) {
|
|
306
|
+
((__eliscript_value_19) => { throw __eliscript_value_19; })(new (globalThis.TypeError)("maintained debugging evidence requires one complete original source recipe"));
|
|
307
|
+
}
|
|
308
|
+
if ((!__eliscript_truthy((mapped)["includes"](actual)))) {
|
|
309
|
+
(mapped)["push"](actual);
|
|
310
|
+
}
|
|
311
|
+
return mapped;
|
|
312
|
+
})();
|
|
313
|
+
})(await (add_original_project_programs(delegated)));
|
|
314
|
+
})(Object.assign(({}), options, ({"locators": (locators)["map"](((item) => {
|
|
315
|
+
if (((item)["file"] === actual)) {
|
|
316
|
+
return Object.assign(({}), item, ({"file": archive}));
|
|
317
|
+
} else {
|
|
318
|
+
return item;
|
|
319
|
+
}
|
|
320
|
+
})), "add": ((record) => {
|
|
321
|
+
if (((record)["id"] === "original-program:compiler-source-debugging")) {
|
|
322
|
+
((published = (published + 1)));
|
|
323
|
+
((record)["original"] = Object.assign(({}), (record)["original"], ({"locatorSourceMigration": ({"actualEvidenceFile": actual, "actualEvidenceSha256": (identity)["sha256"], "assertionSourceFile": archive, "locatorIds": (selected)["map"](((item) => {
|
|
324
|
+
return (item)["id"];
|
|
325
|
+
}))})})));
|
|
326
|
+
}
|
|
327
|
+
return add(record);
|
|
328
|
+
})}))));
|
|
329
|
+
})(0));
|
|
330
|
+
})((options)["add"]));
|
|
331
|
+
})(await (((options)["file"])(actual)))));
|
|
332
|
+
})((__eliscript_truthy(Array.isArray(locators)) ? (locators)["filter"](((item) => {
|
|
333
|
+
return ((item)["file"] === actual);
|
|
334
|
+
})) : [])));
|
|
335
|
+
})("tests/source-debugging.test.mjs"));
|
|
336
|
+
})("tests/source-debugging-selfhosted.test.mjs"));
|
|
337
|
+
})((options)["locators"]));
|
|
338
|
+
}
|
|
339
|
+
export {addOriginalProjectPrograms};
|
|
340
|
+
//# sourceMappingURL=compiler-corpus-project-adapters.mjs.map
|