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,163 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import { readFile } from "node:fs/promises";
|
|
4
|
+
import { resolve } from "node:path";
|
|
5
|
+
import { fileURLToPath } from "node:url";
|
|
6
|
+
|
|
7
|
+
import {
|
|
8
|
+
diagnosticFromError,
|
|
9
|
+
loadCompiler,
|
|
10
|
+
renderDiagnostic,
|
|
11
|
+
requestedDiagnosticFormat,
|
|
12
|
+
} from "./bun.mjs";
|
|
13
|
+
import { checkProject } from "./project.mjs";
|
|
14
|
+
import { readProjectConfiguration } from "./project-cli.mjs";
|
|
15
|
+
|
|
16
|
+
const usage = `Usage: eliscript-check [OPTIONS] [ENTRY ...]
|
|
17
|
+
|
|
18
|
+
Options:
|
|
19
|
+
--config FILE Read entries and root from a versioned project request
|
|
20
|
+
--root DIR Contain local source imports below DIR
|
|
21
|
+
--portable NAME Check NAME and its transitive portable closure
|
|
22
|
+
--stdin-file FILE Use standard input as the current contents of FILE
|
|
23
|
+
--json Print the versioned project check report
|
|
24
|
+
--diagnostic-format human|json
|
|
25
|
+
Select human-readable or JSON failures
|
|
26
|
+
-h, --help Show this help
|
|
27
|
+
`;
|
|
28
|
+
|
|
29
|
+
export function parseArguments(arguments_) {
|
|
30
|
+
const argumentsList = [...arguments_];
|
|
31
|
+
if (argumentsList[0] === "--") argumentsList.shift();
|
|
32
|
+
const entries = [];
|
|
33
|
+
const portableEntries = [];
|
|
34
|
+
let configuration;
|
|
35
|
+
let root;
|
|
36
|
+
let stdinFile;
|
|
37
|
+
let jsonReport = false;
|
|
38
|
+
let diagnosticFormat = "human";
|
|
39
|
+
|
|
40
|
+
while (argumentsList.length > 0) {
|
|
41
|
+
const argument = argumentsList.shift();
|
|
42
|
+
if (argument === "-h" || argument === "--help") return { help: true };
|
|
43
|
+
if (argument === "--config") {
|
|
44
|
+
if (argumentsList.length === 0) throw new Error(`${argument} requires a file`);
|
|
45
|
+
if (configuration !== undefined) {
|
|
46
|
+
throw new Error("multiple --config files are not supported");
|
|
47
|
+
}
|
|
48
|
+
configuration = argumentsList.shift();
|
|
49
|
+
} else if (argument === "--root") {
|
|
50
|
+
if (argumentsList.length === 0) throw new Error(`${argument} requires a directory`);
|
|
51
|
+
root = argumentsList.shift();
|
|
52
|
+
} else if (argument === "--portable") {
|
|
53
|
+
if (argumentsList.length === 0) throw new Error(`${argument} requires an entry name`);
|
|
54
|
+
portableEntries.push(argumentsList.shift());
|
|
55
|
+
} else if (argument === "--stdin-file") {
|
|
56
|
+
if (argumentsList.length === 0) throw new Error(`${argument} requires a file`);
|
|
57
|
+
if (stdinFile !== undefined) {
|
|
58
|
+
throw new Error("multiple --stdin-file values are not supported");
|
|
59
|
+
}
|
|
60
|
+
stdinFile = argumentsList.shift();
|
|
61
|
+
} else if (argument === "--json") {
|
|
62
|
+
jsonReport = true;
|
|
63
|
+
} else if (argument === "--diagnostic-format") {
|
|
64
|
+
if (argumentsList.length === 0) {
|
|
65
|
+
throw new Error(`${argument} requires human or json`);
|
|
66
|
+
}
|
|
67
|
+
diagnosticFormat = argumentsList.shift();
|
|
68
|
+
if (diagnosticFormat !== "human" && diagnosticFormat !== "json") {
|
|
69
|
+
throw new Error(`unsupported diagnostic format: ${diagnosticFormat}`);
|
|
70
|
+
}
|
|
71
|
+
} else if (argument.startsWith("-")) {
|
|
72
|
+
throw new Error(`unknown option: ${argument}`);
|
|
73
|
+
} else {
|
|
74
|
+
entries.push(argument);
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
if (configuration === undefined && entries.length === 0) {
|
|
79
|
+
throw new Error("missing entry file");
|
|
80
|
+
}
|
|
81
|
+
return {
|
|
82
|
+
entry: entries.length === 1 ? entries[0] : undefined,
|
|
83
|
+
entries: entries.length > 1 ? entries : undefined,
|
|
84
|
+
root,
|
|
85
|
+
portableEntries,
|
|
86
|
+
configuration,
|
|
87
|
+
stdinFile,
|
|
88
|
+
jsonReport,
|
|
89
|
+
diagnosticFormat,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export async function execute(arguments_, options = {}) {
|
|
94
|
+
const parsed = parseArguments(arguments_);
|
|
95
|
+
if (parsed.help) return { help: true };
|
|
96
|
+
const compiler = options.compiler ?? await loadCompiler(options.moduleDirectory);
|
|
97
|
+
let request;
|
|
98
|
+
if (parsed.configuration !== undefined) {
|
|
99
|
+
const configured = await readProjectConfiguration(parsed.configuration, compiler);
|
|
100
|
+
request = {
|
|
101
|
+
entry: configured.entry,
|
|
102
|
+
entries: configured.entries,
|
|
103
|
+
root: configured.root,
|
|
104
|
+
portableEntries: configured.portableEntries,
|
|
105
|
+
};
|
|
106
|
+
if (parsed.entries !== undefined) {
|
|
107
|
+
request.entries = parsed.entries;
|
|
108
|
+
delete request.entry;
|
|
109
|
+
} else if (parsed.entry !== undefined) {
|
|
110
|
+
request.entry = parsed.entry;
|
|
111
|
+
delete request.entries;
|
|
112
|
+
}
|
|
113
|
+
if (parsed.root !== undefined) request.root = parsed.root;
|
|
114
|
+
if (parsed.portableEntries.length > 0) {
|
|
115
|
+
request.portableEntries = parsed.portableEntries;
|
|
116
|
+
}
|
|
117
|
+
} else {
|
|
118
|
+
request = {
|
|
119
|
+
entry: parsed.entry,
|
|
120
|
+
entries: parsed.entries,
|
|
121
|
+
root: parsed.root,
|
|
122
|
+
portableEntries: parsed.portableEntries,
|
|
123
|
+
};
|
|
124
|
+
}
|
|
125
|
+
let sourceOverrides;
|
|
126
|
+
if (parsed.stdinFile !== undefined) {
|
|
127
|
+
const sourceText = options.stdinSource ?? await readFile(0, "utf8");
|
|
128
|
+
sourceOverrides = { [resolve(parsed.stdinFile)]: sourceText };
|
|
129
|
+
}
|
|
130
|
+
const result = await checkProject({
|
|
131
|
+
...request,
|
|
132
|
+
sourceOverrides,
|
|
133
|
+
compiler,
|
|
134
|
+
moduleDirectory: options.moduleDirectory,
|
|
135
|
+
});
|
|
136
|
+
return { result, jsonReport: parsed.jsonReport };
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export async function main(arguments_ = process.argv.slice(2)) {
|
|
140
|
+
const execution = await execute(arguments_);
|
|
141
|
+
if (execution.help) {
|
|
142
|
+
process.stdout.write(usage);
|
|
143
|
+
return;
|
|
144
|
+
}
|
|
145
|
+
process.stdout.write(execution.jsonReport
|
|
146
|
+
? `${JSON.stringify(execution.result.report)}\n`
|
|
147
|
+
: `Checked ${execution.result.report.counts.modules} modules.\n`);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
const isMain = process.argv[1] !== undefined &&
|
|
151
|
+
resolve(process.argv[1]) === fileURLToPath(import.meta.url);
|
|
152
|
+
if (isMain) {
|
|
153
|
+
const outputFormat = requestedDiagnosticFormat(process.argv.slice(2));
|
|
154
|
+
main().catch((error) => {
|
|
155
|
+
const diagnostic = diagnosticFromError(error);
|
|
156
|
+
if (outputFormat === "json") {
|
|
157
|
+
console.error(JSON.stringify(diagnostic));
|
|
158
|
+
} else {
|
|
159
|
+
console.error(`eliscript-check: ${renderDiagnostic(diagnostic)}`);
|
|
160
|
+
}
|
|
161
|
+
process.exitCode = 1;
|
|
162
|
+
});
|
|
163
|
+
}
|
|
@@ -1,163 +1,64 @@
|
|
|
1
|
-
|
|
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("parseArguments"); return parseArguments; }
|
|
5
|
+
function __eliscript_tdz_write_0(__eliscript_tdz_value_0) { if (__eliscript_tdz_ready_0 !== true) __eliscript_tdz_error("parseArguments"); return __eliscript_const_error(); }
|
|
6
|
+
import "eliscript/runtime/unicode-case.mjs";
|
|
7
|
+
const __eliscript_truthy = (value) => value !== false && value != null;
|
|
2
8
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
--json Print the versioned project check report
|
|
24
|
-
--diagnostic-format human|json
|
|
25
|
-
Select human-readable or JSON failures
|
|
26
|
-
-h, --help Show this help
|
|
27
|
-
`;
|
|
28
|
-
|
|
29
|
-
export function parseArguments(arguments_) {
|
|
30
|
-
const argumentsList = [...arguments_];
|
|
31
|
-
if (argumentsList[0] === "--") argumentsList.shift();
|
|
32
|
-
const entries = [];
|
|
33
|
-
const portableEntries = [];
|
|
34
|
-
let configuration;
|
|
35
|
-
let root;
|
|
36
|
-
let stdinFile;
|
|
37
|
-
let jsonReport = false;
|
|
38
|
-
let diagnosticFormat = "human";
|
|
39
|
-
|
|
40
|
-
while (argumentsList.length > 0) {
|
|
41
|
-
const argument = argumentsList.shift();
|
|
42
|
-
if (argument === "-h" || argument === "--help") return { help: true };
|
|
43
|
-
if (argument === "--config") {
|
|
44
|
-
if (argumentsList.length === 0) throw new Error(`${argument} requires a file`);
|
|
45
|
-
if (configuration !== undefined) {
|
|
46
|
-
throw new Error("multiple --config files are not supported");
|
|
47
|
-
}
|
|
48
|
-
configuration = argumentsList.shift();
|
|
49
|
-
} else if (argument === "--root") {
|
|
50
|
-
if (argumentsList.length === 0) throw new Error(`${argument} requires a directory`);
|
|
51
|
-
root = argumentsList.shift();
|
|
52
|
-
} else if (argument === "--portable") {
|
|
53
|
-
if (argumentsList.length === 0) throw new Error(`${argument} requires an entry name`);
|
|
54
|
-
portableEntries.push(argumentsList.shift());
|
|
55
|
-
} else if (argument === "--stdin-file") {
|
|
56
|
-
if (argumentsList.length === 0) throw new Error(`${argument} requires a file`);
|
|
57
|
-
if (stdinFile !== undefined) {
|
|
58
|
-
throw new Error("multiple --stdin-file values are not supported");
|
|
59
|
-
}
|
|
60
|
-
stdinFile = argumentsList.shift();
|
|
61
|
-
} else if (argument === "--json") {
|
|
62
|
-
jsonReport = true;
|
|
63
|
-
} else if (argument === "--diagnostic-format") {
|
|
64
|
-
if (argumentsList.length === 0) {
|
|
65
|
-
throw new Error(`${argument} requires human or json`);
|
|
66
|
-
}
|
|
67
|
-
diagnosticFormat = argumentsList.shift();
|
|
68
|
-
if (diagnosticFormat !== "human" && diagnosticFormat !== "json") {
|
|
69
|
-
throw new Error(`unsupported diagnostic format: ${diagnosticFormat}`);
|
|
70
|
-
}
|
|
71
|
-
} else if (argument.startsWith("-")) {
|
|
72
|
-
throw new Error(`unknown option: ${argument}`);
|
|
73
|
-
} else {
|
|
74
|
-
entries.push(argument);
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
if (configuration === undefined && entries.length === 0) {
|
|
79
|
-
throw new Error("missing entry file");
|
|
80
|
-
}
|
|
81
|
-
return {
|
|
82
|
-
entry: entries.length === 1 ? entries[0] : undefined,
|
|
83
|
-
entries: entries.length > 1 ? entries : undefined,
|
|
84
|
-
root,
|
|
85
|
-
portableEntries,
|
|
86
|
-
configuration,
|
|
87
|
-
stdinFile,
|
|
88
|
-
jsonReport,
|
|
89
|
-
diagnosticFormat,
|
|
90
|
-
};
|
|
9
|
+
import {readFileSync} from "node:fs";
|
|
10
|
+
import {resolve} from "node:path";
|
|
11
|
+
import {fileURLToPath} from "node:url";
|
|
12
|
+
import * as legacy from "./check-cli-legacy.mjs";
|
|
13
|
+
import {diagnosticFromError, renderDiagnostic, requestedDiagnosticFormat} from "./bun.mjs";
|
|
14
|
+
const parseArguments = (legacy)["parseArguments"];
|
|
15
|
+
__eliscript_tdz_ready_0 = true;
|
|
16
|
+
async function execute(arguments$, ...supplied) {
|
|
17
|
+
return (await (async (arguments$) => {
|
|
18
|
+
return (await (async (options) => {
|
|
19
|
+
return (await (async (parsed) => {
|
|
20
|
+
return (await (async () => {
|
|
21
|
+
if (((!((parsed)["stdinFile"] === undefined)) && ((options)["stdinSource"] == null))) {
|
|
22
|
+
((options = Object.assign(({}), options, ({"stdinSource": readFileSync(0, "utf8")}))));
|
|
23
|
+
}
|
|
24
|
+
return await ((legacy)["execute"](arguments$, options));
|
|
25
|
+
})());
|
|
26
|
+
})((__eliscript_tdz_read_0())(arguments$)));
|
|
27
|
+
})((((((supplied) ?? []).length === 0) || ((supplied)[0] === undefined)) ? ({}) : (supplied)[0])));
|
|
28
|
+
})(Array.from(arguments$)));
|
|
91
29
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
30
|
+
async function main(...supplied) {
|
|
31
|
+
return (await (async (arguments$) => {
|
|
32
|
+
return (await (async (execution) => {
|
|
33
|
+
return (__eliscript_truthy((execution)["help"]) ? await ((legacy)["main"](arguments$)) : ((globalThis.process)["stdout"])["write"]((String((__eliscript_truthy((execution)["jsonReport"]) ? JSON.stringify(((execution)["result"])["report"]) : (String("Checked ") + String(((((execution)["result"])["report"])["counts"])["modules"]) + String(" modules.")))) + String("\n"))));
|
|
34
|
+
})(await (execute(arguments$))));
|
|
35
|
+
})((((((supplied) ?? []).length === 0) || ((supplied)[0] === undefined)) ? ((globalThis.process)["argv"])["slice"](2) : (supplied)[0])));
|
|
36
|
+
}
|
|
37
|
+
((entry) => {
|
|
38
|
+
if (((!(entry === undefined)) && (resolve(entry) === fileURLToPath(import.meta.url)))) {
|
|
39
|
+
{
|
|
40
|
+
const __eliscript_value_1 = requestedDiagnosticFormat(((globalThis.process)["argv"])["slice"](2));
|
|
41
|
+
{
|
|
42
|
+
let format = __eliscript_value_1;
|
|
43
|
+
return (main())["catch"](((error) => {
|
|
44
|
+
{
|
|
45
|
+
const __eliscript_value_2 = diagnosticFromError(error);
|
|
46
|
+
{
|
|
47
|
+
let diagnostic = __eliscript_value_2;
|
|
48
|
+
if ((format === "json")) {
|
|
49
|
+
console.error(JSON.stringify(diagnostic));
|
|
50
|
+
} else {
|
|
51
|
+
console.error((String("eliscript-check: ") + String(renderDiagnostic(diagnostic))));
|
|
52
|
+
}
|
|
53
|
+
return ((globalThis.process)["exitCode"] = 1);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}));
|
|
57
|
+
}
|
|
116
58
|
}
|
|
117
59
|
} else {
|
|
118
|
-
|
|
119
|
-
entry: parsed.entry,
|
|
120
|
-
entries: parsed.entries,
|
|
121
|
-
root: parsed.root,
|
|
122
|
-
portableEntries: parsed.portableEntries,
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
let sourceOverrides;
|
|
126
|
-
if (parsed.stdinFile !== undefined) {
|
|
127
|
-
const sourceText = options.stdinSource ?? await readFile(0, "utf8");
|
|
128
|
-
sourceOverrides = { [resolve(parsed.stdinFile)]: sourceText };
|
|
129
|
-
}
|
|
130
|
-
const result = await checkProject({
|
|
131
|
-
...request,
|
|
132
|
-
sourceOverrides,
|
|
133
|
-
compiler,
|
|
134
|
-
moduleDirectory: options.moduleDirectory,
|
|
135
|
-
});
|
|
136
|
-
return { result, jsonReport: parsed.jsonReport };
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
export async function main(arguments_ = process.argv.slice(2)) {
|
|
140
|
-
const execution = await execute(arguments_);
|
|
141
|
-
if (execution.help) {
|
|
142
|
-
process.stdout.write(usage);
|
|
143
|
-
return;
|
|
60
|
+
return null;
|
|
144
61
|
}
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
const isMain = process.argv[1] !== undefined &&
|
|
151
|
-
resolve(process.argv[1]) === fileURLToPath(import.meta.url);
|
|
152
|
-
if (isMain) {
|
|
153
|
-
const outputFormat = requestedDiagnosticFormat(process.argv.slice(2));
|
|
154
|
-
main().catch((error) => {
|
|
155
|
-
const diagnostic = diagnosticFromError(error);
|
|
156
|
-
if (outputFormat === "json") {
|
|
157
|
-
console.error(JSON.stringify(diagnostic));
|
|
158
|
-
} else {
|
|
159
|
-
console.error(`eliscript-check: ${renderDiagnostic(diagnostic)}`);
|
|
160
|
-
}
|
|
161
|
-
process.exitCode = 1;
|
|
162
|
-
});
|
|
163
|
-
}
|
|
62
|
+
})(((globalThis.process)["argv"])[1]);
|
|
63
|
+
export {parseArguments, execute, main};
|
|
64
|
+
//# sourceMappingURL=check-cli.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"check-cli.mjs","sources":["../../tools/project/check-cli.eli"],"sourcesContent":["(module tools.project.check-cli\n (import \"node:fs\" readFileSync)\n (import \"node:path\" resolve)\n (import \"node:url\" fileURLToPath)\n (import \"./check-cli-legacy.mjs\" :as legacy)\n (import \"./bun.mjs\" diagnosticFromError renderDiagnostic requestedDiagnosticFormat)\n (defconst parseArguments (get legacy :parseArguments))\n (defasync execute (arguments &rest supplied)\n (let* ((arguments (Array/from arguments))\n (options (if (or (= (js-length supplied) 0) (undefined? (aref supplied 0))) (js-object) (aref supplied 0)))\n (parsed (parseArguments arguments)))\n (when (and (not (undefined? (get parsed :stdinFile))) (nullish? (get options :stdinSource)))\n (setq options (Object/assign (js-object) options (js-object :stdinSource (readFileSync 0 \"utf8\")))))\n (await (js-call legacy :execute arguments options))))\n (defasync main (&rest supplied)\n (let* ((arguments (if (or (= (js-length supplied) 0) (undefined? (aref supplied 0)))\n (js-call (get globalThis.process :argv) :slice 2) (aref supplied 0)))\n (execution (await (execute arguments))))\n (if (get execution :help) (await (js-call legacy :main arguments))\n (js-call (get globalThis.process :stdout) :write\n (str (if (get execution :jsonReport) (JSON/stringify (get (get execution :result) :report))\n (str \"Checked \" (get (get (get (get execution :result) :report) :counts) :modules) \" modules.\")) \"\\n\")))))\n (let ((entry (aref (get globalThis.process :argv) 1)))\n (when (and (not (undefined? entry)) (= (resolve entry) (fileURLToPath (js* \"import.meta.url\"))))\n (let ((format (requestedDiagnosticFormat (js-call (get globalThis.process :argv) :slice 2))))\n (js-call (main) :catch (lambda (error)\n (let ((diagnostic (diagnosticFromError error)))\n (if (= format \"json\") (console/error (JSON/stringify diagnostic))\n (console/error (str \"eliscript-check: \" (renderDiagnostic diagnostic))))\n (put globalThis.process :exitCode 1)))))))\n (export parseArguments execute main))\n"],"names":[],"mappings":";;;;;;;;AACE,QAAkB;AAClB,QAAoB;AACpB,QAAmB;AACnB,YAAqC;AACrC,QAAoB,qBAAoB,kBAAiB;AACzD,uBAAyB,CAAK,QAAO;;AACrC,uBAAmB,eAAgB;EACjC,OAAA,eAAO;0BACA;4BACA;;UACL,IAAM,CAAK,EAAK,CAAY,CAAK,QAAO,gCAAc,CAAU,CAAK,SAAQ;YAC3E,CAAM,CAAA,UAAS,cAAc,MAAY,SAAQ,EAAW,eAAc,aAAa,GAAE;;UAC3F,OAAA,OAAO,CAAS,QAAO,WAAS,YAAU;;SAH5B,2BAAe;OADf,CAAI,CAAI,CAAG,EAAW,4BAAU,MAAG,CAAY,CAAM,UAAS,qBAAK,OAAY,CAAM,UAAS;KAD3F,WAAW;;AAMhC,uBAAsB;EACpB,OAAA,eAAO;0BAEA;aACL,oBAAI,CAAK,WAAU,WAAO,OAAO,CAAS,QAAO,QAAM,eACrD,CAAS,CAAK,oBAAmB,WAAS,SACxC,QAAK,oBAAI,CAAK,WAAU,iBAAc,eAAe,CAAK,CAAK,WAAU,WAAS,aAChF,QAAK,qBAAW,CAAK,CAAK,CAAK,CAAK,WAAU,WAAS,WAAS,WAAS,qBAAU,yBAAc;OAJvF,OAAQ,QAAQ;KAFhB,CAAI,CAAI,CAAG,EAAW,4BAAU,MAAG,CAAY,CAAM,UAAS,qBAC7D,CAAS,CAAK,oBAAmB,SAAO,SAAO,KAAG,CAAM,UAAS;;AAMtF,EAAM;EACJ,IAAM,CAAK,EAAK,CAAY,yBAAQ,CAAI,QAAQ,WAAQ,cAAc;IACpE;kCAAe,0BAA0B,CAAS,CAAK,oBAAmB,SAAO,SAAO;;YAAlF;QACJ,OAAA,CAAU,QAAM,SAAO,EAAS;UAC9B;wCAAmB,oBAAoB;;kBAAjC;cACJ,IAAI,CAAG,WAAO;gBAAS,cAAe,eAAe;;gBAClD,cAAc,QAAK,8BAAqB,iBAAiB;;cAC5D,OAAA,EAAK,oBAAmB,cAAU;;;;;;;;;GAP/B,CAAM,CAAK,oBAAmB,SAAO;AAQlD,QAAQ,gBAAe,SAAQ"}
|