eliscript 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +135 -0
- package/bin/eliscript +16 -0
- package/bin/eliscript-bootstrap +15 -0
- package/bin/eliscript-build +15 -0
- package/bin/eliscript-check +15 -0
- package/bin/eliscript-eval +15 -0
- package/bin/eliscript-format +15 -0
- package/bin/eliscript-org +10 -0
- package/bin/eliscript-portable +17 -0
- package/bin/eliscript-seed +10 -0
- package/bin/eliscript-seed-build +10 -0
- package/bin/eliscript-watch +15 -0
- package/bootstrap/README.md +100 -0
- package/bootstrap/compiler/analyzer.eli +1426 -0
- package/bootstrap/compiler/compiler.eli +472 -0
- package/bootstrap/compiler/emitter.eli +1745 -0
- package/bootstrap/compiler/expander.eli +2522 -0
- package/bootstrap/compiler/formatter.eli +359 -0
- package/bootstrap/compiler/ir.eli +297 -0
- package/bootstrap/compiler/lower.eli +661 -0
- package/bootstrap/compiler/project.eli +1120 -0
- package/bootstrap/compiler/reader.eli +321 -0
- package/bootstrap/compiler/source-map.eli +165 -0
- package/bootstrap/compiler/symbol.eli +92 -0
- package/bootstrap/compiler/syntax.eli +54 -0
- package/bootstrap/compiler/transient-analysis.eli +825 -0
- package/bootstrap/host/build.mjs +28 -0
- package/bootstrap/host/bun.mjs +282 -0
- package/bootstrap/host/check-cli.mjs +163 -0
- package/bootstrap/host/eliscript-cli.mjs +36 -0
- package/bootstrap/host/evaluation-cli.mjs +401 -0
- package/bootstrap/host/evaluation.mjs +560 -0
- package/bootstrap/host/format-cli.mjs +139 -0
- package/bootstrap/host/project-cli.mjs +295 -0
- package/bootstrap/host/project.mjs +1080 -0
- package/bootstrap/host/watch-cli.mjs +129 -0
- package/bootstrap/host/watch.mjs +267 -0
- package/browser/host.mjs +357 -0
- package/browser/worker.mjs +60 -0
- package/compiler/README.md +118 -0
- package/compiler/eliscript-analyzer.el +716 -0
- package/compiler/eliscript-cli.el +108 -0
- package/compiler/eliscript-diagnostic.el +158 -0
- package/compiler/eliscript-emitter.el +1351 -0
- package/compiler/eliscript-evaluation.el +259 -0
- package/compiler/eliscript-expander.el +1630 -0
- package/compiler/eliscript-form.el +79 -0
- package/compiler/eliscript-ir-emitter.el +1460 -0
- package/compiler/eliscript-ir.el +356 -0
- package/compiler/eliscript-lower.el +463 -0
- package/compiler/eliscript-macro-eval.el +811 -0
- package/compiler/eliscript-parameters.el +324 -0
- package/compiler/eliscript-portable.el +492 -0
- package/compiler/eliscript-project-cli.el +156 -0
- package/compiler/eliscript-project.el +1676 -0
- package/compiler/eliscript-reader.el +421 -0
- package/compiler/eliscript-source-map.el +192 -0
- package/compiler/eliscript-symbol.el +101 -0
- package/compiler/eliscript-transient-analysis.el +817 -0
- package/compiler/eliscript.el +239 -0
- package/dist/bootstrap/analyzer.mjs +968 -0
- package/dist/bootstrap/analyzer.mjs.map +1 -0
- package/dist/bootstrap/compiler.mjs +228 -0
- package/dist/bootstrap/compiler.mjs.map +1 -0
- package/dist/bootstrap/emitter.mjs +1173 -0
- package/dist/bootstrap/emitter.mjs.map +1 -0
- package/dist/bootstrap/expander.mjs +1469 -0
- package/dist/bootstrap/expander.mjs.map +1 -0
- package/dist/bootstrap/formatter.mjs +304 -0
- package/dist/bootstrap/formatter.mjs.map +1 -0
- package/dist/bootstrap/ir.mjs +193 -0
- package/dist/bootstrap/ir.mjs.map +1 -0
- package/dist/bootstrap/lower.mjs +344 -0
- package/dist/bootstrap/lower.mjs.map +1 -0
- package/dist/bootstrap/project.mjs +585 -0
- package/dist/bootstrap/project.mjs.map +1 -0
- package/dist/bootstrap/reader.mjs +259 -0
- package/dist/bootstrap/reader.mjs.map +1 -0
- package/dist/bootstrap/source-map.mjs +154 -0
- package/dist/bootstrap/source-map.mjs.map +1 -0
- package/dist/bootstrap/symbol.mjs +74 -0
- package/dist/bootstrap/symbol.mjs.map +1 -0
- package/dist/bootstrap/syntax.mjs +38 -0
- package/dist/bootstrap/syntax.mjs.map +1 -0
- package/dist/bootstrap/transient-analysis.mjs +660 -0
- package/dist/bootstrap/transient-analysis.mjs.map +1 -0
- package/dist/browser/compiler.js +6491 -0
- package/editor/README.md +83 -0
- package/editor/eliscript-mode.el +878 -0
- package/editor/eliscript-repl.el +501 -0
- package/package.json +163 -0
- package/platform/README.md +48 -0
- package/platform/browser.mjs +204 -0
- package/platform/worker.mjs +166 -0
- package/runtime/README.md +296 -0
- package/runtime/core/collection-internals.mjs +512 -0
- package/runtime/core/collection.mjs +645 -0
- package/runtime/core/data-text.mjs +532 -0
- package/runtime/core/data.mjs +268 -0
- package/runtime/core/identifier.mjs +314 -0
- package/runtime/core/lazy-sequence.mjs +244 -0
- package/runtime/core/list-internals.mjs +18 -0
- package/runtime/core/list.mjs +273 -0
- package/runtime/core/map-internals.mjs +793 -0
- package/runtime/core/map.mjs +394 -0
- package/runtime/core/metadata-internals.mjs +14 -0
- package/runtime/core/metadata.mjs +44 -0
- package/runtime/core/object-impl.mjs +65 -0
- package/runtime/core/object-impl.mjs.map +1 -0
- package/runtime/core/object.mjs +13 -0
- package/runtime/core/order.mjs +234 -0
- package/runtime/core/persistent-kind.mjs +43 -0
- package/runtime/core/protocol-error.mjs +36 -0
- package/runtime/core/protocol-impl.mjs +326 -0
- package/runtime/core/protocol-impl.mjs.map +1 -0
- package/runtime/core/protocol.mjs +14 -0
- package/runtime/core/queue-internals.mjs +27 -0
- package/runtime/core/queue.mjs +238 -0
- package/runtime/core/record.mjs +346 -0
- package/runtime/core/regex.mjs +184 -0
- package/runtime/core/sequence.mjs +632 -0
- package/runtime/core/set-algebra.mjs +287 -0
- package/runtime/core/set-internals.mjs +33 -0
- package/runtime/core/set.mjs +378 -0
- package/runtime/core/sorted-internals.mjs +215 -0
- package/runtime/core/sorted.mjs +598 -0
- package/runtime/core/text-impl.mjs +95 -0
- package/runtime/core/text-impl.mjs.map +1 -0
- package/runtime/core/text.mjs +15 -0
- package/runtime/core/transducer.mjs +668 -0
- package/runtime/core/transient-internals.mjs +38 -0
- package/runtime/core/transient.mjs +53 -0
- package/runtime/core/truth.mjs +3 -0
- package/runtime/core/type.mjs +262 -0
- package/runtime/core/value-internals.mjs +188 -0
- package/runtime/core/value.mjs +93 -0
- package/runtime/core/vector-internals.mjs +102 -0
- package/runtime/core/vector.mjs +951 -0
- package/runtime/literals.mjs +34 -0
- package/runtime/source-mapping.mjs +220 -0
- package/runtime/testing/list.mjs +52 -0
- package/runtime/testing/map.mjs +145 -0
- package/runtime/testing/queue.mjs +49 -0
- package/runtime/testing/set.mjs +61 -0
- package/runtime/testing/sorted.mjs +105 -0
- package/runtime/testing/value.mjs +17 -0
- package/runtime/testing/vector.mjs +102 -0
- package/runtime/worker-value-codec.mjs +565 -0
- package/runtime/worker-value-stream.mjs +786 -0
- package/runtime/worker.mjs +975 -0
- package/stdlib/README.md +774 -0
- package/stdlib/bit.eli +36 -0
- package/stdlib/core/collection.eli +134 -0
- package/stdlib/core/data-text.eli +16 -0
- package/stdlib/core/data.eli +306 -0
- package/stdlib/core/identifier.eli +32 -0
- package/stdlib/core/lazy-sequence.eli +63 -0
- package/stdlib/core/metadata.eli +20 -0
- package/stdlib/core/object.eli +89 -0
- package/stdlib/core/order.eli +133 -0
- package/stdlib/core/protocol.eli +387 -0
- package/stdlib/core/record.eli +16 -0
- package/stdlib/core/regex.eli +17 -0
- package/stdlib/core/seq.eli +701 -0
- package/stdlib/core/set.eli +312 -0
- package/stdlib/core/sorted.eli +53 -0
- package/stdlib/core/text.eli +103 -0
- package/stdlib/core/transducer.eli +59 -0
- package/stdlib/core/transient.eli +24 -0
- package/stdlib/core/type.eli +19 -0
- package/stdlib/core/walk.eli +195 -0
- package/stdlib/core/zipper.eli +508 -0
- package/stdlib/data-text.eli +1092 -0
- package/stdlib/data.eli +42 -0
- package/stdlib/deferred.eli +70 -0
- package/stdlib/function.eli +120 -0
- package/stdlib/hierarchy.eli +245 -0
- package/stdlib/identifier.eli +147 -0
- package/stdlib/interop/js.eli +616 -0
- package/stdlib/json.eli +870 -0
- package/stdlib/metadata.eli +56 -0
- package/stdlib/multimethod.eli +464 -0
- package/stdlib/numeric.eli +193 -0
- package/stdlib/object.eli +96 -0
- package/stdlib/persistent-list.eli +145 -0
- package/stdlib/persistent-map.eli +724 -0
- package/stdlib/persistent-queue.eli +32 -0
- package/stdlib/persistent-set.eli +236 -0
- package/stdlib/persistent-vector.eli +342 -0
- package/stdlib/result.eli +141 -0
- package/stdlib/sequence.eli +106 -0
- package/stdlib/state/atom.eli +265 -0
- package/stdlib/text.eli +88 -0
- package/stdlib/value.eli +325 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"emitter.mjs","sources":["../../bootstrap/compiler/emitter.eli"],"sourcesContent":["(module bootstrap.compiler.emitter\n (import \"./symbol.mjs\" binding-name reference-name)\n (import \"./ir.mjs\"\n node-p\n program-filename\n program-body\n ir-kind\n ir-span\n ir-value\n ir-children\n ir-property)\n (import \"./source-map.mjs\" create-source-map)\n\n (defconst literal-runtime-import\n \"import { hashMap as __eliscript_hash_map, hashSet as __eliscript_hash_set, keyword as __eliscript_keyword, list as __eliscript_list, queue as __eliscript_queue, symbol as __eliscript_symbol, vector as __eliscript_vector } from \\\"eliscript/runtime/literals.mjs\\\";\\n\")\n (defconst collection-runtime-import\n \"import { count as __eliscript_count, nth as __eliscript_nth } from \\\"eliscript/runtime/core/collection.mjs\\\";\\n\")\n (defconst list-runtime-import\n \"import { cons as __eliscript_cons, first as __eliscript_first, rest as __eliscript_rest } from \\\"eliscript/runtime/core/list.mjs\\\";\\n\")\n (defconst value-runtime-import\n \"import { equalValues as __eliscript_equal } from \\\"eliscript/runtime/core/value.mjs\\\";\\n\")\n (defconst binding-runtime\n \"import { get as __eliscript_get } from \\\"eliscript/runtime/core/collection.mjs\\\";\\nconst __eliscript_binding_missing = Symbol(\\\"eliscript.binding.missing\\\");\\nconst __eliscript_binding_get = (value, key, notFound) => { if (value == null) return notFound; const prototype = typeof value === \\\"object\\\" ? Object.getPrototypeOf(value) : undefined; if (prototype === Object.prototype || prototype === null) { const type = key && Object.getOwnPropertyDescriptor(key, Symbol.for(\\\"eliscript.value.type\\\")); if (type?.value === \\\"keyword\\\" || type?.value === \\\"symbol\\\") key = key.qualifiedName; } return __eliscript_get(value, key, notFound); };\\n\")\n (defconst host-identity-token-helper\n \"const __eliscript_host_identity_token = (() => { const objects = new WeakMap(); const symbols = new Map(); let next = 1; return (value) => { const type = typeof value; if ((type !== \\\"object\\\" || value === null) && type !== \\\"function\\\" && type !== \\\"symbol\\\") throw new TypeError(\\\"host-identity-token expects an object, function, or symbol\\\"); const identities = type === \\\"symbol\\\" ? symbols : objects; const cached = identities.get(value); if (cached !== undefined) return cached; if (next > Number.MAX_SAFE_INTEGER) throw new RangeError(\\\"host identity token space exhausted\\\"); const token = next; next += 1; identities.set(value, token); return token; }; })();\\n\")\n (defconst fail\n (js* \"(message) => { throw new Error(message); }\"))\n (defconst native-locate\n (js* \"(span, output) => { const fragment = typeof output === \\\"string\\\" ? { text: output, marks: [] } : output; const marks = fragment.marks; if (fragment.text.length === 0 || span == null || span === false || (marks.length > 0 && marks[0].offset === 0)) return fragment; return { text: fragment.text, marks: [{ offset: 0, span }, ...marks] }; }\"))\n (defvar temporary-counter 0)\n (defvar binding-temporaries (new globalThis.Map))\n\n (defun make-fragment (text marks)\n (js-object :text text :marks marks))\n\n (defun text-fragment (text)\n (make-fragment text (js-array)))\n\n (defun as-fragment (part)\n (if (= (js* \"typeof part\") \"string\")\n (text-fragment part)\n part))\n\n (defun combine (parts)\n (let ((text \"\")\n (marks (js-array))\n (part-index 0)\n (fragment nil)\n (offset 0)\n (fragment-marks nil)\n (mark-index 0)\n (mark nil))\n (while (< part-index (get parts :length))\n (setq fragment (as-fragment (js-nth part-index parts)))\n (setq offset (get text :length))\n (setq fragment-marks (get fragment :marks))\n (setq mark-index 0)\n (while (< mark-index (get fragment-marks :length))\n (setq mark (js-nth mark-index fragment-marks))\n (js-call marks :push\n (js-object\n :offset (+ offset (get mark :offset))\n :span (get mark :span)))\n (setq mark-index (1+ mark-index)))\n (setq text (str text (get fragment :text)))\n (setq part-index (1+ part-index)))\n (make-fragment text marks)))\n\n (defun join-fragments (parts separator)\n (let ((joined (js-array))\n (index 0))\n (while (< index (get parts :length))\n (when (> index 0)\n (js-call joined :push separator))\n (js-call joined :push (js-nth index parts))\n (setq index (1+ index)))\n (combine joined)))\n\n (defun reference-indent (fragment)\n (let* ((input (as-fragment fragment))\n (source (get input :text))\n (source-marks (get input :marks))\n (text \"\")\n (marks (js-array))\n (index 0)\n (mark-index 0)\n (line-start t))\n (while (< index (get source :length))\n (let ((code (js-call source :charCodeAt index)))\n (when (and line-start (not (= code 10)))\n (setq text (str text \" \")))\n (while (and (< mark-index (get source-marks :length))\n (= (get (js-nth mark-index source-marks) :offset) index))\n (js-call marks :push\n (js-object\n :offset (get text :length)\n :span (get (js-nth mark-index source-marks) :span)))\n (setq mark-index (1+ mark-index)))\n (setq text (str text (js-call source :charAt index)))\n (setq line-start (= code 10))\n (setq index (1+ index))))\n (make-fragment text marks)))\n\n (defun indent (fragment)\n (let* ((input (as-fragment fragment))\n (source (get input :text))\n (source-marks (get input :marks))\n (text-parts (js-array))\n (marks (js-array))\n (source-length (get source :length))\n (output-length 0)\n (source-index 0)\n (mark-index 0)\n (mark-count (get source-marks :length)))\n (while (< source-index source-length)\n (let* ((newline-index (js-call source :indexOf \"\\n\" source-index))\n (segment-end\n (if (= newline-index -1)\n source-length\n (1+ newline-index)))\n (indented (not (= (js-call source :charCodeAt source-index) 10))))\n (when indented\n (js-call text-parts :push \" \")\n (setq output-length (+ output-length 2)))\n (while (and (< mark-index mark-count)\n (>= (get (js-nth mark-index source-marks) :offset)\n source-index)\n (< (get (js-nth mark-index source-marks) :offset)\n segment-end))\n (let ((mark (js-nth mark-index source-marks)))\n (js-call marks :push\n (js-object\n :offset (+ output-length\n (- (get mark :offset) source-index))\n :span (get mark :span))))\n (setq mark-index (1+ mark-index)))\n (js-call text-parts :push\n (js-call source :slice source-index segment-end))\n (setq output-length\n (+ output-length (- segment-end source-index)))\n (setq source-index segment-end)))\n (make-fragment (js-call text-parts :join \"\") marks)))\n\n (defun reference-locate (node output)\n (let* ((fragment (as-fragment output))\n (marks (get fragment :marks))\n (has-start\n (js-call marks :some\n (lambda (mark) (= (get mark :offset) 0)))))\n (if (or (= (get (get fragment :text) :length) 0)\n (not (ir-span node))\n has-start)\n fragment\n (let ((located\n (js-array (js-object :offset 0 :span (ir-span node)))))\n (js-call marks :forEach\n (lambda (mark) (js-call located :push mark)))\n (make-fragment (get fragment :text) located)))))\n\n (defun locate (node output)\n (native-locate (ir-span node) output))\n\n (defun fresh-name ()\n (setq temporary-counter (1+ temporary-counter))\n (str \"__eliscript_value_\" temporary-counter))\n\n (defun json-string (value)\n (JSON/stringify value))\n\n (defun children (node)\n (or (ir-children node) (js-array)))\n\n (defun require-arity (name nodes minimum maximum)\n (let ((count (get nodes :length)))\n (when (or (< count minimum)\n (and maximum (> count maximum)))\n (let ((expected\n (if (and maximum (= minimum maximum))\n (str minimum)\n (str minimum (if maximum (str \"..\" maximum) \"+\"))))\n (plural\n (if (and maximum (= minimum maximum) (= minimum 1))\n \"\"\n \"s\")))\n (fail\n (str name \" expects \" expected \" argument\" plural\n \", got \" count))))))\n\n (defun require-node-arity (node minimum maximum)\n (require-arity\n (or (ir-value node) (ir-kind node))\n (children node)\n minimum\n maximum))\n\n (defun emit-binding-name (node)\n (native-locate (ir-span node) (binding-name (ir-value node))))\n\n (defun emit-array-binding-pattern (node)\n (let* ((nodes (children node))\n (rest (ir-property node \"rest\"))\n (last-index (1- (get nodes :length)))\n (parts (js-array))\n (index 0)\n (last-hole false))\n (js-call nodes :forEach\n (lambda (child)\n (setq last-hole (= (ir-kind child) \"binding-hole\"))\n (js-call parts :push\n (cond\n ((and rest (= index last-index))\n (combine (js-array \"...\" (emit-binding-pattern-node child))))\n (last-hole \"\")\n (t (emit-binding-pattern-node child))))\n (setq index (1+ index))))\n (native-locate\n (ir-span node)\n (combine\n (js-array \"[\" (join-fragments parts \", \")\n (if (and last-hole (not rest)) \",\" \"\") \"]\")))))\n\n (defun map-binding-pattern-p (node)\n (and (ir-property node \"pattern\")\n (= (ir-kind (js-nth 0 (children node))) \"map-binding-pattern\")))\n\n (defun binding-temporary (node)\n (if (js-call binding-temporaries :has node)\n (js-call binding-temporaries :get node)\n (let ((name (fresh-name)))\n (js-call binding-temporaries :set node name)\n name)))\n\n (defun emit-map-binding-pattern (node source)\n (let* ((nodes (children node))\n (entry-count (ir-property node \"entryCount\"))\n (entries (js-call nodes :slice 0 entry-count))\n (as (and (ir-property node \"as\") (js-nth entry-count nodes)))\n (parts (js-array)))\n (when as\n (js-call parts :push\n (combine (js-array \"let \" (emit-binding-name as) \" = \" source \";\"))))\n (js-call entries :forEach\n (lambda (entry)\n (let* ((entry-nodes (children entry))\n (target (js-nth 0 entry-nodes))\n (key (js-nth 1 entry-nodes))\n (default (and (ir-property entry \"default\")\n (js-nth 2 entry-nodes)))\n (temporary (fresh-name))\n (resolved\n (combine\n (js-array \"(\" temporary\n \" === __eliscript_binding_missing ? \"\n (if default (emit-expression default) \"null\")\n \" : \" temporary \")\"))))\n (js-call parts :push\n (combine\n (js-array \"const \" temporary\n \" = __eliscript_binding_get(\" source \", \"\n (emit-expression key)\n \", __eliscript_binding_missing);\")))\n (js-call parts :push (emit-pattern-setup target resolved)))))\n (join-fragments parts \"\\n\")))\n\n (defun emit-pattern-setup (pattern source)\n (let ((kind (ir-kind pattern)))\n (cond\n ((= kind \"binding-name\")\n (combine (js-array \"let \" (emit-binding-name pattern) \" = \" source \";\")))\n ((= kind \"array-binding-pattern\")\n (combine\n (js-array \"let \" (emit-array-binding-pattern pattern) \" = \" source \";\")))\n ((= kind \"map-binding-pattern\")\n (emit-map-binding-pattern pattern source))\n (t (fail (str \"invalid IR binding setup node: \" kind))))))\n\n (defun emit-binding-setup (binding)\n (if (map-binding-pattern-p binding)\n (emit-map-binding-pattern\n (js-nth 0 (children binding)) (binding-temporary binding))\n (text-fragment \"\")))\n\n (defun emit-binding-setups (bindings)\n (let ((parts (js-array)))\n (js-call bindings :forEach\n (lambda (binding)\n (when (map-binding-pattern-p binding)\n (js-call parts :push (emit-binding-setup binding)))))\n (join-fragments parts \"\\n\")))\n\n (defun binding-default-value (binding)\n (if (and (ir-property binding \"pattern\")\n (not (map-binding-pattern-p binding)))\n \"[]\"\n \"null\"))\n\n (defun emit-binding-pattern-node (node)\n (let ((kind (ir-kind node)))\n (cond\n ((= kind \"binding-name\") (emit-binding-name node))\n ((= kind \"binding-hole\") \"\")\n ((= kind \"array-binding-pattern\")\n (emit-array-binding-pattern node))\n ((= kind \"map-binding-pattern\")\n (fail \"map binding patterns require a generated source binding\"))\n (t (fail (str \"invalid IR binding pattern node: \" kind))))))\n\n (defun emit-binding-target (node)\n (if (map-binding-pattern-p node)\n (binding-temporary node)\n (if (ir-property node \"pattern\")\n (emit-binding-pattern-node (js-nth 0 (children node)))\n (emit-binding-name node))))\n\n (defun binding-initializer (node)\n (let ((nodes (children node)))\n (js-nth 0\n (if (ir-property node \"pattern\")\n (js-call nodes :slice 1)\n nodes))))\n\n (defun emit-parameter (node)\n (let ((name (emit-binding-target node))\n (kind (ir-property node \"parameterKind\"))\n (pattern (ir-property node \"pattern\")))\n (cond\n ((= kind \"optional\")\n (combine\n (js-array name \" = \"\n (if pattern (binding-default-value node) \"null\"))))\n ((= kind \"rest\") (combine (js-array \"...\" name)))\n (t name))))\n\n (defun emit-arguments (nodes)\n (join-fragments\n (js-call nodes :map (lambda (node) (emit-expression node)))\n \", \"))\n\n (defun emit-callee (node)\n (let ((output (emit-expression node)))\n (if (= (ir-kind node) \"reference\")\n output\n (combine (js-array \"(\" output \")\")))))\n\n (defun emit-returning-body (nodes)\n (if (= (get nodes :length) 0)\n (text-fragment \"return null;\")\n (let ((parts (js-array))\n (index 0)\n (last-index (1- (get nodes :length))))\n (while (< index last-index)\n (js-call parts :push (emit-expression (js-nth index nodes)))\n (js-call parts :push \";\\n\")\n (setq index (1+ index)))\n (js-call parts :push \"return \")\n (js-call parts :push (emit-expression (js-nth last-index nodes)))\n (js-call parts :push \";\")\n (combine parts))))\n\n (defun emit-statement-body (nodes)\n (let ((parts (js-array)))\n (js-call nodes :forEach\n (lambda (node)\n (js-call parts :push (combine (js-array (emit-expression node) \";\")))))\n (join-fragments parts \"\\n\")))\n\n (defun contains-await-p (value)\n (let ((pending (js-array value))\n (current nil)\n (kind nil)\n (nodes nil)\n (index 0)\n (found false))\n (while (and (not found) (> (get pending :length) 0))\n (setq current (js-call pending :pop))\n (cond\n ((node-p current)\n (setq kind (ir-kind current))\n (cond\n ((= kind \"await-expression\") (setq found t))\n ((not (= kind \"function-expression\"))\n (setq nodes (children current))\n (setq index (1- (get nodes :length)))\n (while (>= index 0)\n (js-call pending :push (js-nth index nodes))\n (setq index (1- index))))))\n ((js* \"Array.isArray(current)\")\n (setq index (1- (get current :length)))\n (while (>= index 0)\n (js-call pending :push (js-nth index current))\n (setq index (1- index))))))\n found))\n\n (defun emit-iife (parameters body invocation asynchronous)\n (if asynchronous\n (combine\n (js-array \"(await (async (\" parameters \") => {\\n\" body \"\\n})(\"\n invocation \"))\"))\n (combine\n (js-array \"((\" parameters \") => {\\n\" body \"\\n})(\" invocation \")\"))))\n\n (defun emit-do (nodes)\n (cond\n ((= (get nodes :length) 0) (text-fragment \"null\"))\n ((= (get nodes :length) 1) (emit-expression (js-nth 0 nodes)))\n (t\n (emit-iife\n \"\" (indent (emit-returning-body nodes)) \"\"\n (contains-await-p nodes)))))\n\n (defun split-counted-children (node property)\n (let ((all (children node))\n (count (ir-property node property)))\n (js-array (js-call all :slice 0 count) (js-call all :slice count))))\n\n (defun emit-function (node)\n (let* ((parts (split-counted-children node \"parameterCount\"))\n (parameters (js-nth 0 parts))\n (body (js-nth 1 parts)))\n (combine\n (js-array (if (ir-property node \"async\") \"async \" \"\") \"(\"\n (join-fragments\n (js-call parameters :map\n (lambda (parameter) (emit-parameter parameter)))\n \", \")\n \") => {\\n\"\n (indent (emit-function-body parameters body))\n \"\\n}\"))))\n\n (defun contains-recur-target-p (value target-kind)\n (let ((pending (js-array value))\n (current nil)\n (kind nil)\n (nodes nil)\n (index 0)\n (found false))\n (while (and (not found) (> (get pending :length) 0))\n (setq current (js-call pending :pop))\n (cond\n ((node-p current)\n (setq kind (ir-kind current))\n (cond\n ((= kind \"recur\")\n (when (= (ir-property current \"targetKind\") target-kind)\n (setq found t)))\n ((not (= kind \"function-expression\"))\n (setq nodes (children current))\n (setq index (1- (get nodes :length)))\n (while (>= index 0)\n (js-call pending :push (js-nth index nodes))\n (setq index (1- index))))))\n ((js* \"Array.isArray(current)\")\n (setq index (1- (get current :length)))\n (while (>= index 0)\n (js-call pending :push (js-nth index current))\n (setq index (1- index))))))\n found))\n\n (defun emit-rebinding-target (binding temporary)\n (let ((target (emit-binding-target binding)))\n (if (ir-property binding \"pattern\")\n (combine (js-array \"(\" target \" = \" temporary \");\"))\n (combine (js-array target \" = \" temporary \";\")))))\n\n (defun emit-recur-tail (node target)\n (unless (= (ir-property node \"targetKind\") (get target :kind))\n (fail \"recur target does not match its enclosing loop\"))\n (let ((args (children node))\n (bindings (get target :bindings))\n (temporaries (js-array))\n (parts (js-array))\n (index 0))\n (while (< index (get args :length))\n (let ((temporary (fresh-name)))\n (js-call temporaries :push temporary)\n (js-call parts :push\n (combine\n (js-array \"const \" temporary \" = \"\n (emit-expression (js-nth index args)) \";\"))))\n (setq index (1+ index)))\n (setq index 0)\n (while (< index (get bindings :length))\n (js-call parts :push\n (emit-rebinding-target\n (js-nth index bindings) (js-nth index temporaries)))\n (setq index (1+ index)))\n (js-call parts :push\n (combine (js-array \"continue \" (get target :label) \";\")))\n (native-locate (ir-span node) (join-fragments parts \"\\n\"))))\n\n (defun emit-tail-body (nodes target)\n (if (= (get nodes :length) 0)\n (text-fragment \"return null;\")\n (let ((parts (js-array))\n (index 0)\n (last-index (1- (get nodes :length))))\n (while (< index last-index)\n (js-call parts :push\n (combine (js-array (emit-expression (js-nth index nodes)) \";\")))\n (setq index (1+ index)))\n (js-call parts :push\n (emit-tail-node (js-nth last-index nodes) target))\n (join-fragments parts \"\\n\"))))\n\n (defun emit-tail-cond (clauses target)\n (if (= (get clauses :length) 0)\n (text-fragment \"return null;\")\n (let* ((clause (js-nth 0 clauses))\n (nodes (children clause))\n (test (js-nth 0 nodes))\n (body (js-call nodes :slice 1)))\n (native-locate\n (ir-span clause)\n (if (and (= (ir-kind test) \"literal\")\n (eq (ir-value test) t))\n (emit-tail-body body target)\n (combine\n (js-array \"if (__eliscript_truthy(\" (emit-expression test)\n \")) {\\n\" (indent (emit-tail-body body target))\n \"\\n} else {\\n\"\n (indent\n (emit-tail-cond (js-call clauses :slice 1) target))\n \"\\n}\")))))))\n\n (defun emit-tail-let (node target)\n (let* ((parts (split-counted-children node \"bindingCount\"))\n (bindings (js-nth 0 parts))\n (body (js-nth 1 parts))\n (sequential (ir-property node \"sequential\"))\n (statements (js-array))\n (temporaries (js-array))\n (index 0))\n (if sequential\n (while (< index (get bindings :length))\n (let* ((binding (js-nth index bindings))\n (initializer (binding-initializer binding)))\n (js-call statements :push\n (combine\n (js-array \"let \" (emit-binding-target binding) \" = \"\n (if initializer\n (emit-expression initializer)\n (binding-default-value binding))\n \";\")))\n (when (map-binding-pattern-p binding)\n (js-call statements :push (emit-binding-setup binding))))\n (setq index (1+ index)))\n (progn\n (while (< index (get bindings :length))\n (let* ((binding (js-nth index bindings))\n (initializer (binding-initializer binding))\n (temporary (fresh-name)))\n (js-call temporaries :push temporary)\n (js-call statements :push\n (combine\n (js-array \"const \" temporary \" = \"\n (if initializer\n (emit-expression initializer)\n (binding-default-value binding))\n \";\"))))\n (setq index (1+ index)))\n (setq index 0)\n (while (< index (get bindings :length))\n (js-call statements :push\n (combine\n (js-array \"let \" (emit-binding-target (js-nth index bindings)) \" = \"\n (js-nth index temporaries) \";\")))\n (when (map-binding-pattern-p (js-nth index bindings))\n (js-call statements :push\n (emit-binding-setup (js-nth index bindings))))\n (setq index (1+ index)))))\n (js-call statements :push (emit-tail-body body target))\n (native-locate\n (ir-span node)\n (combine\n (js-array \"{\\n\" (indent (join-fragments statements \"\\n\")) \"\\n}\")))))\n\n (defun emit-tail-short-circuit (nodes kind target)\n (cond\n ((= (get nodes :length) 0)\n (text-fragment (if (= kind \"and\") \"return true;\" \"return null;\")))\n ((= (get nodes :length) 1)\n (emit-tail-node (js-nth 0 nodes) target))\n (t\n (let* ((temporary (fresh-name))\n (first (emit-expression (js-nth 0 nodes)))\n (rest (js-call nodes :slice 1))\n (truthy\n (if (= kind \"and\")\n (emit-tail-short-circuit rest kind target)\n (combine (js-array \"return \" temporary \";\"))))\n (falsey\n (if (= kind \"and\")\n (combine (js-array \"return \" temporary \";\"))\n (emit-tail-short-circuit rest kind target))))\n (combine\n (js-array \"const \" temporary \" = \" first \";\\n\"\n \"if (__eliscript_truthy(\" temporary \")) {\\n\"\n (indent truthy) \"\\n} else {\\n\" (indent falsey) \"\\n}\"))))))\n\n (defun emit-tail-node (node target)\n (let ((kind (ir-kind node))\n (nodes (children node)))\n (cond\n ((= kind \"recur\") (emit-recur-tail node target))\n ((= kind \"conditional\")\n (combine\n (js-array \"if (__eliscript_truthy(\" (emit-expression (js-nth 0 nodes))\n \")) {\\n\" (indent (emit-tail-node (js-nth 1 nodes) target))\n \"\\n} else {\\n\"\n (indent\n (if (> (get nodes :length) 2)\n (emit-tail-node (js-nth 2 nodes) target)\n (text-fragment \"return null;\")))\n \"\\n}\")))\n ((= kind \"conditional-sugar\")\n (combine\n (js-array \"if (\" (if (= (ir-value node) \"when\") \"\" \"!\")\n \"__eliscript_truthy(\" (emit-expression (js-nth 0 nodes))\n \")) {\\n\"\n (indent (emit-tail-body (js-call nodes :slice 1) target))\n \"\\n} else {\\n return null;\\n}\")))\n ((= kind \"conditional-chain\") (emit-tail-cond nodes target))\n ((= kind \"sequence\") (emit-tail-body nodes target))\n ((= kind \"lexical-bindings\") (emit-tail-let node target))\n ((= kind \"short-circuit\")\n (emit-tail-short-circuit nodes (ir-value node) target))\n (t (combine (js-array \"return \" (emit-expression node) \";\"))))))\n\n (defun emit-function-body (parameters body)\n (let ((setups (emit-binding-setups parameters)))\n (if (not (contains-recur-target-p body \"function\"))\n (if (= (get (get setups :text) :length) 0)\n (emit-returning-body body)\n (combine (js-array setups \"\\n\" (emit-returning-body body))))\n (let* ((label (fresh-name))\n (target\n (js-object\n :kind \"function\" :bindings parameters :label label)))\n (combine\n (js-array label \": while (true) {\\n\"\n (indent\n (if (= (get (get setups :text) :length) 0)\n (emit-tail-body body target)\n (combine\n (js-array setups \"\\n\" (emit-tail-body body target)))))\n \"\\n}\"))))))\n\n (defun emit-if (nodes)\n (combine\n (js-array \"(__eliscript_truthy(\"\n (emit-expression (js-nth 0 nodes))\n \") ? \"\n (emit-expression (js-nth 1 nodes))\n \" : \"\n (if (> (get nodes :length) 2)\n (emit-expression (js-nth 2 nodes))\n \"null\")\n \")\")))\n\n (defun emit-conditional-sugar (node)\n (let* ((nodes (children node))\n (test (emit-expression (js-nth 0 nodes)))\n (body (emit-do (js-call nodes :slice 1))))\n (if (= (ir-value node) \"when\")\n (combine (js-array \"(__eliscript_truthy(\" test \") ? \" body \" : null)\"))\n (combine\n (js-array \"(__eliscript_truthy((!__eliscript_truthy(\"\n test \"))) ? \" body \" : null)\")))))\n\n (defun emit-cond (clauses)\n (if (= (get clauses :length) 0)\n (text-fragment \"null\")\n (let* ((clause (js-nth 0 clauses))\n (nodes (children clause))\n (test (js-nth 0 nodes))\n (body (js-call nodes :slice 1)))\n (native-locate\n (ir-span clause)\n (if (and (= (ir-kind test) \"literal\") (= (ir-value test) t))\n (emit-do body)\n (combine\n (js-array \"(__eliscript_truthy(\"\n (emit-expression test)\n \") ? \"\n (emit-do body)\n \" : \"\n (emit-cond (js-call clauses :slice 1))\n \")\")))))))\n\n (defun emit-throw (node)\n (let ((temporary (fresh-name)))\n (combine\n (js-array \"((\" temporary \") => { throw \" temporary \"; })(\"\n (emit-expression (js-nth 0 (children node))) \")\"))))\n\n (defun emit-catch (node)\n (let* ((nodes (children node))\n (binding (js-nth 0 nodes))\n (body (js-call nodes :slice 1)))\n (native-locate\n (ir-span node)\n (combine\n (js-array \" catch (\" (emit-binding-target binding) \") {\\n\"\n (indent\n (if (map-binding-pattern-p binding)\n (combine\n (js-array (emit-binding-setup binding) \"\\n\"\n (emit-returning-body body)))\n (emit-returning-body body)))\n \"\\n}\")))))\n\n (defun emit-finally (node)\n (native-locate\n (ir-span node)\n (combine\n (js-array \" finally {\\n\"\n (indent (emit-statement-body (children node)))\n \"\\n}\"))))\n\n (defun emit-try (node)\n (let* ((parts (split-counted-children node \"bodyCount\"))\n (body (js-nth 0 parts))\n (clauses (js-nth 1 parts))\n (catch-clause\n (js-call clauses :find\n (lambda (clause) (= (ir-kind clause) \"catch-clause\"))))\n (finally-clause\n (js-call clauses :find\n (lambda (clause) (= (ir-kind clause) \"finally-clause\"))))\n (try-block\n (combine\n (js-array \"try {\\n\"\n (indent (emit-returning-body body))\n \"\\n}\"\n (if catch-clause (emit-catch catch-clause) \"\")\n (if finally-clause (emit-finally finally-clause) \"\")))))\n (emit-iife\n \"\" (indent try-block) \"\" (contains-await-p node))))\n\n (defun emit-binding-values (bindings)\n (let ((result (js-array)))\n (js-call bindings :forEach\n (lambda (binding)\n (let ((initializer (binding-initializer binding)))\n (js-call result :push\n (if initializer\n (emit-expression initializer)\n (binding-default-value binding))))))\n result))\n\n (defun emit-parallel-let (bindings body)\n (let* ((names\n (join-fragments\n (js-call bindings :map\n (lambda (binding) (emit-binding-target binding)))\n \", \"))\n (values (join-fragments (emit-binding-values bindings) \", \"))\n (setups (emit-binding-setups bindings))\n (body-output\n (indent\n (if (= (get (get setups :text) :length) 0)\n (emit-returning-body body)\n (combine\n (js-array setups \"\\n\" (emit-returning-body body)))))))\n (emit-iife names body-output values (contains-await-p body))))\n\n (defun emit-sequential-let (bindings body)\n (if (= (get bindings :length) 0)\n (emit-do body)\n (let ((binding (js-nth 0 bindings)))\n (let* ((name (emit-binding-target binding))\n (initializer (js-nth 0 (emit-binding-values (js-array binding))))\n (tail (emit-sequential-let (js-call bindings :slice 1) body)))\n (emit-iife\n name\n (indent\n (combine\n (js-array\n (if (map-binding-pattern-p binding)\n (combine (js-array (emit-binding-setup binding) \"\\n\"))\n \"\")\n \"return \" tail \";\")))\n initializer\n (or\n (contains-await-p (js-call bindings :slice 1))\n (contains-await-p body)))))))\n\n (defun emit-let (node)\n (let* ((parts (split-counted-children node \"bindingCount\"))\n (bindings (js-nth 0 parts))\n (body (js-nth 1 parts)))\n (if (ir-property node \"sequential\")\n (emit-sequential-let bindings body)\n (emit-parallel-let bindings body))))\n\n (defun emit-assignment (node)\n (let ((assignments (js-array)))\n (js-call (children node) :forEach\n (lambda (pair)\n (js-call assignments :push\n (native-locate\n (ir-span pair)\n (combine\n (js-array \"(\"\n (emit-binding-name pair)\n \" = \"\n (emit-expression (js-nth 0 (children pair)))\n \")\"))))))\n (if (= (ir-value node) \"set!\")\n (js-nth 0 assignments)\n (combine (js-array \"(\" (join-fragments assignments \", \") \")\")))))\n\n (defun emit-loop (node)\n (let* ((nodes (children node))\n (test (js-nth 0 nodes))\n (body (js-call nodes :slice 1))\n (test-output (emit-expression test))\n (statements (js-array)))\n (js-call body :forEach\n (lambda (child)\n (js-call statements :push (combine (js-array (emit-expression child) \";\")))))\n (emit-iife\n \"\"\n (indent\n (combine\n (js-array \"while (__eliscript_truthy(\"\n test-output\n \")) {\\n\"\n (indent (join-fragments statements \"\\n\"))\n \"\\n}\\nreturn null;\")))\n \"\"\n (contains-await-p nodes))))\n\n (defun emit-binding-loop (node)\n (let* ((parts (split-counted-children node \"bindingCount\"))\n (bindings (js-nth 0 parts))\n (body (js-nth 1 parts))\n (label (fresh-name))\n (target\n (js-object :kind \"loop\" :bindings bindings :label label))\n (parameters\n (join-fragments\n (js-call bindings :map\n (lambda (binding) (emit-binding-target binding)))\n \", \"))\n (initializers\n (join-fragments\n (js-call bindings :map\n (lambda (binding)\n (emit-expression (binding-initializer binding))))\n \", \"))\n (setups (emit-binding-setups bindings)))\n (emit-iife\n parameters\n (indent\n (combine\n (js-array label \": while (true) {\\n\"\n (indent\n (if (= (get (get setups :text) :length) 0)\n (emit-tail-body body target)\n (combine\n (js-array setups \"\\n\" (emit-tail-body body target)))))\n \"\\n}\")))\n initializers\n (contains-await-p body))))\n\n (defun emit-short-circuit (nodes kind)\n (cond\n ((= (get nodes :length) 0)\n (text-fragment (if (= kind \"and\") \"true\" \"null\")))\n ((= (get nodes :length) 1) (emit-expression (js-nth 0 nodes)))\n (t\n (let ((temporary (fresh-name))\n (first (emit-expression (js-nth 0 nodes)))\n (rest (emit-short-circuit (js-call nodes :slice 1) kind)))\n (let ((body\n (combine\n (js-array \"(__eliscript_truthy(\" temporary \") ? \"\n (if (= kind \"and\") rest temporary)\n \" : \"\n (if (= kind \"and\") temporary rest)\n \")\"))))\n (if (contains-await-p (js-call nodes :slice 1))\n (combine\n (js-array \"(await (async (\" temporary \") => \" body \")(\" first \"))\"))\n (combine (js-array \"((\" temporary \") => \" body \")(\" first \")\"))))))))\n\n (defun emit-infix (name nodes operator minimum)\n (require-arity name nodes minimum nil)\n (combine\n (js-array \"(\"\n (join-fragments\n (js-call nodes :map (lambda (node) (emit-expression node)))\n (str \" \" operator \" \"))\n \")\")))\n\n (defun emit-binary-infix (name nodes operator)\n (require-arity name nodes 2 2)\n (combine\n (js-array \"(\" (emit-expression (js-nth 0 nodes)) \" \" operator \" \"\n (emit-expression (js-nth 1 nodes)) \")\")))\n\n (defun temporary-names (nodes)\n (let ((result (js-array)))\n (js-call nodes :forEach\n (lambda (_node) (js-call result :push (fresh-name))))\n result))\n\n (defun emit-comparison (name nodes operator)\n (require-arity name nodes 2 nil)\n (if (= (get nodes :length) 2)\n (combine\n (js-array \"(\" (emit-expression (js-nth 0 nodes)) \" \" operator \" \"\n (emit-expression (js-nth 1 nodes)) \")\"))\n (let ((parameters (temporary-names nodes))\n (comparisons (js-array))\n (index 0))\n (while (< index (1- (get parameters :length)))\n (js-call comparisons :push\n (str (js-nth index parameters) \" \" operator \" \"\n (js-nth (1+ index) parameters)))\n (setq index (1+ index)))\n (combine\n (js-array \"((\"\n (js-call parameters :join \", \")\n \") => (\"\n (js-call comparisons :join \" && \")\n \"))(\"\n (emit-arguments nodes)\n \")\")))))\n\n (defun emit-distinct (name nodes)\n (require-arity name nodes 2 nil)\n (let ((parameters (temporary-names nodes))\n (comparisons (js-array))\n (left 0))\n (while (< left (get parameters :length))\n (let ((right (1+ left)))\n (while (< right (get parameters :length))\n (js-call comparisons :push\n (str (js-nth left parameters) \" !== \" (js-nth right parameters)))\n (setq right (1+ right))))\n (setq left (1+ left)))\n (combine\n (js-array \"((\"\n (js-call parameters :join \", \")\n \") => (\"\n (js-call comparisons :join \" && \")\n \"))(\"\n (emit-arguments nodes)\n \")\"))))\n\n (defun emit-intrinsic (node)\n (let ((name (ir-value node))\n (nodes (children node)))\n (cond\n ((= name \"not\")\n (require-node-arity node 1 1)\n (combine (js-array \"(!__eliscript_truthy(\" (emit-expression (js-nth 0 nodes)) \"))\")))\n ((= name \"+\")\n (if (= (get nodes :length) 0)\n (text-fragment \"0\")\n (combine\n (js-array \"(\"\n (join-fragments\n (js-call nodes :map (lambda (node) (emit-expression node)))\n \" + \")\n \")\"))))\n ((= name \"*\")\n (if (= (get nodes :length) 0)\n (text-fragment \"1\")\n (combine\n (js-array \"(\"\n (join-fragments\n (js-call nodes :map (lambda (node) (emit-expression node)))\n \" * \")\n \")\"))))\n ((= name \"-\")\n (require-node-arity node 1 nil)\n (if (= (get nodes :length) 1)\n (combine (js-array \"(-\" (emit-expression (js-nth 0 nodes)) \")\"))\n (emit-infix \"-\" nodes \"-\" 2)))\n ((= name \"/\")\n (require-node-arity node 1 nil)\n (if (= (get nodes :length) 1)\n (combine (js-array \"(1 / \" (emit-expression (js-nth 0 nodes)) \")\"))\n (emit-infix \"/\" nodes \"/\" 2)))\n ((or (= name \"%\") (= name \"mod\")) (emit-infix name nodes \"%\" 2))\n ((= name \"int32\")\n (require-node-arity node 1 1)\n (combine (js-array \"(\" (emit-expression (js-nth 0 nodes)) \" | 0)\")))\n ((= name \"uint32\")\n (require-node-arity node 1 1)\n (combine (js-array \"(\" (emit-expression (js-nth 0 nodes)) \" >>> 0)\")))\n ((= name \"imul32\")\n (require-node-arity node 2 2)\n (combine\n (js-array \"Math.imul(\" (emit-expression (js-nth 0 nodes)) \", \"\n (emit-expression (js-nth 1 nodes)) \")\")))\n ((= name \"bit-and\") (emit-binary-infix name nodes \"&\"))\n ((= name \"bit-or\") (emit-binary-infix name nodes \"|\"))\n ((= name \"bit-xor\") (emit-binary-infix name nodes \"^\"))\n ((= name \"bit-not\")\n (require-node-arity node 1 1)\n (combine (js-array \"(~\" (emit-expression (js-nth 0 nodes)) \")\")))\n ((= name \"bit-shift-left\") (emit-binary-infix name nodes \"<<\"))\n ((= name \"bit-shift-right\") (emit-binary-infix name nodes \">>\"))\n ((= name \"unsigned-bit-shift-right\")\n (emit-binary-infix name nodes \">>>\"))\n ((= name \"value-type\")\n (require-node-arity node 1 1)\n (combine\n (js-array \"((__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; } })(\"\n (emit-expression (js-nth 0 nodes)) \")\")))\n ((= name \"host-identity-token\")\n (require-node-arity node 1 1)\n (combine\n (js-array \"__eliscript_host_identity_token(\"\n (emit-expression (js-nth 0 nodes)) \")\")))\n ((= name \"string-code-unit-at\")\n (require-node-arity node 2 2)\n (combine\n (js-array \"(\" (emit-expression (js-nth 0 nodes)) \").charCodeAt(\"\n (emit-expression (js-nth 1 nodes)) \")\")))\n ((= name \"string-from-code-unit\")\n (require-node-arity node 1 1)\n (combine\n (js-array \"String.fromCharCode(\" (emit-expression (js-nth 0 nodes)) \")\")))\n ((= name \"string-to-number\")\n (require-node-arity node 1 1)\n (combine (js-array \"Number(\" (emit-expression (js-nth 0 nodes)) \")\")))\n ((= name \"string-to-bigint\")\n (require-node-arity node 1 1)\n (combine\n (js-array \"((__eliscript_text) => { try { return BigInt(__eliscript_text); } catch { return null; } })(\"\n (emit-expression (js-nth 0 nodes)) \")\")))\n ((= name \"number-float64-words\")\n (require-node-arity node 1 1)\n (combine\n (js-array \"((__eliscript_number) => { const __eliscript_bytes = new DataView(new ArrayBuffer(8)); __eliscript_bytes.setFloat64(0, __eliscript_number === 0 ? 0 : __eliscript_number, true); return [__eliscript_bytes.getUint32(0, true), __eliscript_bytes.getUint32(4, true)]; })(\"\n (emit-expression (js-nth 0 nodes)) \")\")))\n ((= name \"=\") (emit-comparison name nodes \"===\"))\n ((or (= name \"/=\") (= name \"not=\")) (emit-distinct name nodes))\n ((= name \"<\") (emit-comparison name nodes \"<\"))\n ((= name \"<=\") (emit-comparison name nodes \"<=\"))\n ((= name \">\") (emit-comparison name nodes \">\"))\n ((= name \">=\") (emit-comparison name nodes \">=\"))\n ((= name \"1+\")\n (require-node-arity node 1 1)\n (combine (js-array \"(\" (emit-expression (js-nth 0 nodes)) \" + 1)\")))\n ((= name \"1-\")\n (require-node-arity node 1 1)\n (combine (js-array \"(\" (emit-expression (js-nth 0 nodes)) \" - 1)\")))\n ((= name \"eq\")\n (require-node-arity node 2 2)\n (combine\n (js-array \"(\" (emit-expression (js-nth 0 nodes)) \" === \"\n (emit-expression (js-nth 1 nodes)) \")\")))\n ((= name \"equal\")\n (require-node-arity node 2 2)\n (combine\n (js-array \"__eliscript_equal(\" (emit-expression (js-nth 0 nodes)) \", \"\n (emit-expression (js-nth 1 nodes)) \")\")))\n ((= name \"nil?\")\n (require-node-arity node 1 1)\n (combine (js-array \"(\" (emit-expression (js-nth 0 nodes)) \" === null)\")))\n ((= name \"undefined?\")\n (require-node-arity node 1 1)\n (combine (js-array \"(\" (emit-expression (js-nth 0 nodes)) \" === undefined)\")))\n ((or (= name \"null\") (= name \"nullish?\"))\n (require-node-arity node 1 1)\n (combine (js-array \"(\" (emit-expression (js-nth 0 nodes)) \" == null)\")))\n ((= name \"js-array\")\n (combine (js-array \"[\" (emit-arguments nodes) \"]\")))\n ((= name \"car\")\n (require-node-arity node 1 1)\n (combine (js-array \"__eliscript_first(\" (emit-expression (js-nth 0 nodes)) \")\")))\n ((= name \"cdr\")\n (require-node-arity node 1 1)\n (combine (js-array \"__eliscript_rest(\" (emit-expression (js-nth 0 nodes)) \")\")))\n ((= name \"cons\")\n (require-node-arity node 2 2)\n (combine\n (js-array \"__eliscript_cons(\" (emit-expression (js-nth 0 nodes)) \", \"\n (emit-expression (js-nth 1 nodes)) \")\")))\n ((= name \"js-cons\")\n (require-node-arity node 2 2)\n (combine\n (js-array \"[\" (emit-expression (js-nth 0 nodes)) \", ...((\"\n (emit-expression (js-nth 1 nodes)) \") ?? [])]\")))\n ((= name \"nth\")\n (require-node-arity node 2 2)\n (combine\n (js-array \"__eliscript_nth(\" (emit-expression (js-nth 1 nodes)) \", \"\n (emit-expression (js-nth 0 nodes)) \", null)\")))\n ((= name \"js-nth\")\n (require-node-arity node 2 2)\n (combine\n (js-array \"((((\" (emit-expression (js-nth 1 nodes)) \") ?? [])[\"\n (emit-expression (js-nth 0 nodes)) \"]) ?? null)\")))\n ((= name \"aref\")\n (require-node-arity node 2 2)\n (combine\n (js-array \"(\" (emit-expression (js-nth 0 nodes)) \")[\"\n (emit-property-key (js-nth 1 nodes)) \"]\")))\n ((= name \"length\")\n (require-node-arity node 1 1)\n (combine (js-array \"__eliscript_count(\" (emit-expression (js-nth 0 nodes)) \")\")))\n ((= name \"js-length\")\n (require-node-arity node 1 1)\n (combine (js-array \"((\" (emit-expression (js-nth 0 nodes)) \") ?? []).length\")))\n ((= name \"__eliscript_arity_error\")\n (require-node-arity node 2 2)\n (combine\n (js-array\n \"((label, arity) => { throw new TypeError(label + \\\" received unsupported arity: \\\" + arity); })(\"\n (emit-expression (js-nth 0 nodes)) \", \"\n (emit-expression (js-nth 1 nodes)) \")\")))\n ((= name \"object-keys\")\n (require-node-arity node 1 1)\n (combine (js-array \"Object.keys((\" (emit-expression (js-nth 0 nodes)) \") ?? {})\")))\n ((= name \"object-has?\")\n (require-node-arity node 2 2)\n (combine\n (js-array \"Object.prototype.hasOwnProperty.call((\"\n (emit-expression (js-nth 0 nodes)) \") ?? {}, \"\n (emit-property-key (js-nth 1 nodes)) \")\")))\n ((= name \"object-assoc\")\n (require-node-arity node 3 3)\n (combine\n (js-array \"({...((\" (emit-expression (js-nth 0 nodes)) \") ?? {}), [\"\n (emit-property-key (js-nth 1 nodes)) \"]: \"\n (emit-expression (js-nth 2 nodes)) \"})\")))\n (t (fail (str \"unknown IR intrinsic: \" name))))))\n\n (defun emit-object-properties (properties)\n (let ((result (js-array)))\n (js-call properties :forEach\n (lambda (property)\n (let ((nodes (children property)))\n (js-call result :push\n (native-locate\n (ir-span property)\n (if (ir-property property \"computed\")\n (combine\n (js-array \"[\" (emit-expression (js-nth 0 nodes)) \"]: \"\n (emit-expression (js-nth 1 nodes))))\n (combine\n (js-array (json-string (ir-value property)) \": \"\n (emit-expression (js-nth 0 nodes))))))))))\n (join-fragments result \", \")))\n\n (defun emit-object (node)\n (combine (js-array \"({\" (emit-object-properties (children node)) \"})\")))\n\n (defun literal-kind (node)\n (ir-property node \"literalKind\"))\n\n (defun emit-literal (node)\n (let ((value (ir-value node))\n (kind (literal-kind node)))\n (cond\n ((= kind \"undefined\") (text-fragment \"undefined\"))\n ((= kind \"keyword\")\n (combine\n (js-array \"__eliscript_keyword(\" (json-string value) \")\")))\n ((null value) (text-fragment \"null\"))\n ((eq value t) (text-fragment \"true\"))\n ((eq value false) (text-fragment \"false\"))\n ((= (js* \"typeof value\") \"number\")\n (unless (Number/isFinite value)\n (fail (str \"non-finite numbers are not supported: \" value)))\n (text-fragment (str value)))\n ((= (js* \"typeof value\") \"string\")\n (text-fragment (json-string value)))\n (t (fail (str \"unsupported IR literal: \" value))))))\n\n (defun datum-kind (value)\n (and value\n (= (js* \"typeof value\") \"object\")\n (get value :kind)))\n\n (defun emit-quoted (value)\n (let ((kind (datum-kind value)))\n (cond\n ((null value) (text-fragment \"__eliscript_list()\"))\n ((eq value t) (text-fragment \"true\"))\n ((eq value false)\n (text-fragment \"__eliscript_symbol(\\\"false\\\")\"))\n ((= (js* \"typeof value\") \"number\") (text-fragment (str value)))\n ((= (js* \"typeof value\") \"string\")\n (text-fragment (json-string value)))\n ((= kind \"undefined\") (text-fragment \"undefined\"))\n ((= kind \"symbol\")\n (combine\n (js-array \"__eliscript_symbol(\"\n (text-fragment (json-string (get value :name))) \")\")))\n ((= kind \"keyword\")\n (combine\n (js-array \"__eliscript_keyword(\"\n (text-fragment (json-string (get value :name))) \")\")))\n ((= kind \"list\")\n (combine\n (js-array \"__eliscript_list(\"\n (join-fragments\n (js-call (get value :items) :map\n (lambda (item) (emit-quoted item)))\n \", \")\n \")\")))\n ((= kind \"vector\")\n (combine\n (js-array \"__eliscript_vector(\"\n (join-fragments\n (js-call (get value :items) :map\n (lambda (item) (emit-quoted item)))\n \", \")\n \")\")))\n (t (fail \"cannot emit quoted IR datum\")))))\n\n (defun quoted-uses-literal-runtime-p (value)\n (let ((kind (datum-kind value)))\n (or (null value)\n (= value false)\n (= kind \"symbol\")\n (= kind \"keyword\")\n (= kind \"list\")\n (= kind \"vector\"))))\n\n (defun emit-property-key (node)\n (native-locate\n (ir-span node)\n (if (and (= (ir-kind node) \"literal\")\n (or (= (literal-kind node) \"keyword\")\n (= (js* \"typeof node.value\") \"string\")))\n (text-fragment (json-string (ir-value node)))\n (emit-expression node))))\n\n (defun emit-expression (node)\n (unless (node-p node)\n (fail \"expected an IR expression node\"))\n (let ((kind (ir-kind node))\n (nodes (children node)))\n (native-locate\n (ir-span node)\n (cond\n ((= kind \"literal\") (emit-literal node))\n ((= kind \"reference\") (text-fragment (reference-name (ir-value node))))\n ((= kind \"array-literal\") (combine (js-array \"[\" (emit-arguments nodes) \"]\")))\n ((= kind \"persistent-list-literal\")\n (combine (js-array \"__eliscript_list(\" (emit-arguments nodes) \")\")))\n ((= kind \"persistent-vector-literal\")\n (combine (js-array \"__eliscript_vector(\" (emit-arguments nodes) \")\")))\n ((= kind \"persistent-map-literal\")\n (combine (js-array \"__eliscript_hash_map(\" (emit-arguments nodes) \")\")))\n ((= kind \"persistent-set-literal\")\n (combine (js-array \"__eliscript_hash_set(\" (emit-arguments nodes) \")\")))\n ((= kind \"persistent-queue-literal\")\n (combine (js-array \"__eliscript_queue(\" (emit-arguments nodes) \")\")))\n ((= kind \"quoted-literal\") (emit-quoted (ir-value node)))\n ((= kind \"function-expression\") (emit-function node))\n ((= kind \"await-expression\")\n (combine (js-array \"await (\" (emit-expression (js-nth 0 nodes)) \")\")))\n ((= kind \"throw-expression\") (emit-throw node))\n ((= kind \"try-expression\") (emit-try node))\n ((= kind \"conditional\") (emit-if nodes))\n ((= kind \"conditional-sugar\") (emit-conditional-sugar node))\n ((= kind \"conditional-chain\") (emit-cond nodes))\n ((= kind \"sequence\") (emit-do nodes))\n ((= kind \"lexical-bindings\") (emit-let node))\n ((= kind \"assignment\") (emit-assignment node))\n ((= kind \"loop\") (emit-loop node))\n ((= kind \"binding-loop\") (emit-binding-loop node))\n ((= kind \"recur\")\n (fail \"recur is only valid in an analyzed tail position\"))\n ((= kind \"short-circuit\") (emit-short-circuit nodes (ir-value node)))\n ((= kind \"intrinsic\") (emit-intrinsic node))\n ((= kind \"object-literal\") (emit-object node))\n ((= kind \"property-read\")\n (let ((access\n (combine\n (js-array \"(\" (emit-expression (js-nth 0 nodes)) \")[\"\n (emit-property-key (js-nth 1 nodes)) \"]\"))))\n (if (= (get nodes :length) 3)\n (combine (js-array \"(\" access \" ?? \" (emit-expression (js-nth 2 nodes)) \")\"))\n access)))\n ((= kind \"property-write\")\n (combine\n (js-array \"((\" (emit-expression (js-nth 0 nodes)) \")[\"\n (emit-property-key (js-nth 1 nodes)) \"] = \"\n (emit-expression (js-nth 2 nodes)) \")\")))\n ((= kind \"method-call\")\n (combine\n (js-array \"(\" (emit-expression (js-nth 0 nodes)) \")[\"\n (emit-property-key (js-nth 1 nodes)) \"](\"\n (emit-arguments (js-call nodes :slice 2)) \")\")))\n ((= kind \"constructor-call\")\n (combine\n (js-array \"new \" (emit-expression (js-nth 0 nodes)) \"(\"\n (emit-arguments (js-call nodes :slice 1)) \")\")))\n ((= kind \"raw-javascript\")\n ;; The raw form is exactly one string. Accepting several arguments\n ;; emitted only the first, so the module's braces did not close and\n ;; the JavaScript was not what the source said. The reference\n ;; implementation reports this at emission, so this one does too.\n (require-arity \"js*\" nodes 1 1)\n (unless (= (ir-kind (js-nth 0 nodes)) \"literal\")\n (fail \"js* expects a string literal\"))\n (text-fragment (ir-value (js-nth 0 nodes))))\n ((= kind \"print\") (combine (js-array \"console.log(\" (emit-arguments nodes) \")\")))\n ((= kind \"string-concat\")\n (if (= (get nodes :length) 0)\n (text-fragment \"\\\"\\\"\")\n (let ((parts (js-array)))\n (js-call nodes :forEach\n (lambda (child)\n (js-call parts :push\n (combine (js-array \"String(\" (emit-expression child) \")\")))))\n (combine (js-array \"(\" (join-fragments parts \" + \") \")\")))))\n ((= kind \"invoke\")\n (combine\n (js-array (emit-callee (js-nth 0 nodes)) \"(\"\n (emit-arguments (js-call nodes :slice 1)) \")\")))\n ((= kind \"apply-call\")\n (combine\n (js-array (emit-callee (js-nth 0 nodes)) \"(...\"\n (emit-expression (js-nth 1 nodes)) \")\")))\n ((= kind \"call\")\n (combine\n (js-array (emit-callee (js-nth 0 nodes)) \"(\"\n (emit-arguments (js-call nodes :slice 1)) \")\")))\n (t (fail (str \"IR node is not valid in expression position: \" kind)))))))\n\n (defun emit-import (node)\n (let ((default-binding nil)\n (namespace-binding nil)\n (named-bindings (js-array)))\n (js-call (children node) :forEach\n (lambda (specifier)\n (let ((name (emit-binding-name specifier))\n (kind (ir-kind specifier)))\n (cond\n ((= kind \"import-default\") (setq default-binding name))\n ((= kind \"import-namespace\") (setq namespace-binding name))\n ((= kind \"import-named\") (js-call named-bindings :push name))\n (t (fail (str \"invalid IR import specifier: \" kind)))))))\n (when (and namespace-binding (> (get named-bindings :length) 0))\n (fail \"namespace and named imports cannot be combined\"))\n (let ((clauses (js-array)))\n (when default-binding (js-call clauses :push default-binding))\n (when namespace-binding\n (js-call clauses :push (combine (js-array \"* as \" namespace-binding))))\n (when (> (get named-bindings :length) 0)\n (js-call clauses :push\n (combine (js-array \"{\" (join-fragments named-bindings \", \") \"}\"))))\n (if (= (get clauses :length) 0)\n (text-fragment (str \"import \" (json-string (ir-value node)) \";\"))\n (combine\n (js-array \"import \" (join-fragments clauses \", \") \" from \"\n (json-string (ir-value node)) \";\"))))))\n\n (defun emit-top-level (node)\n (unless (node-p node)\n (fail \"expected a top-level IR node\"))\n (let ((kind (ir-kind node))\n (nodes (children node)))\n (native-locate\n (ir-span node)\n (cond\n ((= kind \"module-declaration\")\n (join-fragments\n (js-call nodes :map (lambda (child) (emit-top-level child)))\n \"\\n\"))\n ((= kind \"import-declaration\") (emit-import node))\n ((= kind \"variable-declaration\")\n (combine\n (js-array (if (ir-property node \"mutable\") \"let \" \"const \")\n (binding-name (ir-value node))\n \" = \"\n (if (> (get nodes :length) 0)\n (emit-expression (js-nth 0 nodes))\n \"null\")\n \";\")))\n ((= kind \"function-declaration\")\n (let* ((parts (split-counted-children node \"parameterCount\"))\n (parameters (js-nth 0 parts))\n (body (js-nth 1 parts)))\n (combine\n (js-array (if (ir-property node \"async\") \"async \" \"\")\n \"function \" (binding-name (ir-value node)) \"(\"\n (join-fragments\n (js-call parameters :map\n (lambda (parameter) (emit-parameter parameter)))\n \", \")\n \") {\\n\"\n (indent (emit-function-body parameters body))\n \"\\n}\"))))\n ((= kind \"export-declaration\")\n (combine\n (js-array \"export {\"\n (join-fragments\n (js-call nodes :map\n (lambda (reference) (emit-binding-name reference)))\n \", \")\n \"};\")))\n ((= kind \"export-default\")\n (combine (js-array \"export default \" (emit-expression (js-nth 0 nodes)) \";\")))\n ((= kind \"expression-statement\")\n (combine (js-array (emit-expression (js-nth 0 nodes)) \";\")))\n (t (fail (str \"IR node is not valid at module top level: \" kind)))))))\n\n (defun node-uses-host-identity-token-p (node)\n (if (and (= (ir-kind node) \"intrinsic\")\n (= (ir-value node) \"host-identity-token\"))\n t\n (let ((found false))\n (js-call (children node) :forEach\n (lambda (child)\n (when (node-uses-host-identity-token-p child)\n (setq found t))))\n found)))\n\n (defun node-directly-uses-literal-runtime-p (node)\n (let ((kind (ir-kind node)))\n (or (= kind \"persistent-list-literal\")\n (= kind \"persistent-vector-literal\")\n (= kind \"persistent-map-literal\")\n (= kind \"persistent-set-literal\")\n (= kind \"persistent-queue-literal\")\n (and (= kind \"quoted-literal\")\n (quoted-uses-literal-runtime-p (ir-value node)))\n (and (= kind \"literal\")\n (= (literal-kind node) \"keyword\")))))\n\n (defun literal-runtime-static-key-index (node)\n (let ((kind (ir-kind node)))\n (cond\n ((or (= kind \"property-read\")\n (= kind \"property-write\")\n (= kind \"method-call\")) 1)\n ((and (= kind \"intrinsic\")\n (or (= (ir-value node) \"aref\")\n (= (ir-value node) \"object-has?\")\n (= (ir-value node) \"object-assoc\"))) 1)\n (t nil))))\n\n (defun node-uses-literal-runtime-p (node)\n (let ((nodes (children node)))\n (cond\n ((node-directly-uses-literal-runtime-p node) t)\n (t\n (children-use-literal-runtime-p\n nodes (literal-runtime-static-key-index node))))))\n\n (defun children-use-literal-runtime-p (nodes static-key-index)\n (let ((found false)\n (index 0))\n (while (< index (get nodes :length))\n (let ((child (js-nth index nodes)))\n (unless (and static-key-index\n (= index static-key-index)\n (= (ir-kind child) \"literal\")\n (= (literal-kind child) \"keyword\"))\n (when (node-uses-literal-runtime-p child)\n (setq found t))))\n (setq index (1+ index)))\n found))\n\n (defun node-uses-collection-runtime-p (node)\n (if (and (= (ir-kind node) \"intrinsic\")\n (or (= (ir-value node) \"nth\") (= (ir-value node) \"length\")))\n t\n (let ((found false))\n (js-call (children node) :forEach\n (lambda (child)\n (when (node-uses-collection-runtime-p child)\n (setq found t))))\n found)))\n\n (defun node-uses-binding-runtime-p (node)\n (if (= (ir-kind node) \"map-binding-pattern\")\n t\n (let ((found false))\n (js-call (children node) :forEach\n (lambda (child)\n (when (node-uses-binding-runtime-p child)\n (setq found t))))\n found)))\n\n (defun node-uses-list-runtime-p (node)\n (if (and (= (ir-kind node) \"intrinsic\")\n (or (= (ir-value node) \"car\")\n (= (ir-value node) \"cdr\")\n (= (ir-value node) \"cons\")))\n t\n (let ((found false))\n (js-call (children node) :forEach\n (lambda (child)\n (when (node-uses-list-runtime-p child)\n (setq found t))))\n found)))\n\n (defun node-uses-value-runtime-p (node)\n (if (and (= (ir-kind node) \"intrinsic\")\n (= (ir-value node) \"equal\"))\n t\n (let ((found false))\n (js-call (children node) :forEach\n (lambda (child)\n (when (node-uses-value-runtime-p child)\n (setq found t))))\n found)))\n\n (defun program-uses-host-identity-token-p (program)\n (let ((found false))\n (js-call (program-body program) :forEach\n (lambda (node)\n (when (node-uses-host-identity-token-p node)\n (setq found t))))\n found))\n\n (defun program-uses-literal-runtime-p (program)\n (let ((found false))\n (js-call (program-body program) :forEach\n (lambda (node)\n (when (node-uses-literal-runtime-p node)\n (setq found t))))\n found))\n\n (defun program-uses-collection-runtime-p (program)\n (let ((found false))\n (js-call (program-body program) :forEach\n (lambda (node)\n (when (node-uses-collection-runtime-p node)\n (setq found t))))\n found))\n\n (defun program-uses-binding-runtime-p (program)\n (let ((found false))\n (js-call (program-body program) :forEach\n (lambda (node)\n (when (node-uses-binding-runtime-p node)\n (setq found t))))\n found))\n\n (defun program-uses-list-runtime-p (program)\n (let ((found false))\n (js-call (program-body program) :forEach\n (lambda (node)\n (when (node-uses-list-runtime-p node)\n (setq found t))))\n found))\n\n (defun program-uses-value-runtime-p (program)\n (let ((found false))\n (js-call (program-body program) :forEach\n (lambda (node)\n (when (node-uses-value-runtime-p node)\n (setq found t))))\n found))\n\n (defun reference-runtime-requirements (program)\n (js-object\n :hostIdentityToken (program-uses-host-identity-token-p program)\n :literal (program-uses-literal-runtime-p program)\n :collection (program-uses-collection-runtime-p program)\n :binding (program-uses-binding-runtime-p program)\n :list (program-uses-list-runtime-p program)\n :value (program-uses-value-runtime-p program)))\n\n (defun static-literal-key-p (node index static-key-index)\n (and static-key-index\n (= index static-key-index)\n (= (ir-kind node) \"literal\")\n (= (literal-kind node) \"keyword\")))\n\n (defun collect-runtime-requirements\n (node requirements suppress-literal)\n (let ((kind (ir-kind node))\n (value (ir-value node))\n (nodes (children node))\n (static-key-index (literal-runtime-static-key-index node))\n (index 0)\n (child nil))\n (cond\n ((= kind \"map-binding-pattern\")\n (put requirements :binding t))\n ((and (not suppress-literal)\n (or (= kind \"persistent-list-literal\")\n (= kind \"persistent-vector-literal\")\n (= kind \"persistent-map-literal\")\n (= kind \"persistent-set-literal\")\n (= kind \"persistent-queue-literal\")))\n (put requirements :literal t))\n ((and (not suppress-literal)\n (= kind \"quoted-literal\")\n (quoted-uses-literal-runtime-p value))\n (put requirements :literal t))\n ((and (not suppress-literal)\n (= kind \"literal\")\n (= (literal-kind node) \"keyword\"))\n (put requirements :literal t))\n ((= kind \"intrinsic\")\n (cond\n ((= value \"host-identity-token\")\n (put requirements :hostIdentityToken t))\n ((or (= value \"nth\") (= value \"length\"))\n (put requirements :collection t))\n ((or (= value \"car\") (= value \"cdr\") (= value \"cons\"))\n (put requirements :list t))\n ((= value \"equal\")\n (put requirements :value t)))))\n (while (< index (get nodes :length))\n (setq child (js-nth index nodes))\n (collect-runtime-requirements\n child\n requirements\n (or suppress-literal\n (static-literal-key-p child index static-key-index)))\n (setq index (1+ index))))\n requirements)\n\n (defun runtime-requirements (program)\n (let ((requirements\n (js-object\n :hostIdentityToken false\n :literal false\n :collection false\n :binding false\n :list false\n :value false)))\n (js-call (program-body program) :forEach\n (lambda (node)\n (collect-runtime-requirements node requirements false)))\n requirements))\n\n (defun collect-portable-metadata (node portable exported)\n (when (and (= (ir-kind node) \"function-declaration\")\n (ir-property node \"portable\"))\n (js-call portable :push node))\n (when (= (ir-kind node) \"export-declaration\")\n (js-call (children node) :forEach\n (lambda (reference)\n (js-call exported :push (ir-value reference)))))\n (js-call (children node) :forEach\n (lambda (child)\n (collect-portable-metadata child portable exported))))\n\n (defun emit-portable-manifest (program)\n (let ((portable (js-array))\n (exported (js-array)))\n (js-call (program-body program) :forEach\n (lambda (node)\n (collect-portable-metadata node portable exported)))\n (if (= (get portable :length) 0)\n (text-fragment \"\")\n (let ((implicit\n (js-call portable :filter\n (lambda (node)\n (not (js-call exported :includes (ir-value node)))))))\n (combine\n (js-array (if (> (get implicit :length) 0)\n (combine\n (js-array \"\\n\\nexport {\"\n (join-fragments\n (js-call implicit :map\n (lambda (node) (binding-name (ir-value node))))\n \", \")\n \"};\"))\n \"\")\n \"\\nexport const __eliscript_portable__ = Object.freeze(Object.fromEntries([\"\n (join-fragments\n (js-call portable :map\n (lambda (node)\n (combine\n (js-array \"[\" (json-string (ir-value node)) \", \"\n (binding-name (ir-value node)) \"]\"))))\n \", \")\n \"]));\"))))))\n\n (defun emit-module-artifact (program)\n (setq temporary-counter 0)\n (setq binding-temporaries (new globalThis.Map))\n (let ((requirements (runtime-requirements program))\n (body\n (join-fragments\n (js-call (program-body program) :map\n (lambda (node) (emit-top-level node)))\n \"\\n\\n\")))\n (combine\n (js-array \"// Generated by Eliscript. Do not edit.\\n\"\n (if (get requirements :literal)\n literal-runtime-import\n \"\")\n (if (get requirements :collection)\n collection-runtime-import\n \"\")\n (if (get requirements :binding)\n binding-runtime\n \"\")\n (if (get requirements :list)\n list-runtime-import\n \"\")\n (if (get requirements :value)\n value-runtime-import\n \"\")\n \"const __eliscript_truthy = (value) => value !== false && value != null;\\n\"\n (if (get requirements :hostIdentityToken)\n host-identity-token-helper\n \"\")\n \"\\n\"\n body\n (emit-portable-manifest program)\n \"\\n\"))))\n\n (defun emit-module (program)\n (get (emit-module-artifact program) :text))\n\n (defun emit-module-with-source-map\n (program source generated-name source-name)\n (let* ((artifact (emit-module-artifact program))\n (javascript (get artifact :text))\n (resolved-source-name\n (or source-name (program-filename program) \"<string>\")))\n (js-object\n :javascript javascript\n :sourceMap\n (create-source-map\n javascript\n (get artifact :marks)\n source\n resolved-source-name\n generated-name))))\n\n (export\n indent\n reference-indent\n locate\n reference-locate\n emit-expression\n emit-top-level\n emit-module-artifact\n emit-module\n emit-module-with-source-map\n runtime-requirements\n reference-runtime-requirements))\n"],"names":[],"mappings":";;;AACE,QAAuB,cAAa;AACpC,QACE,QACA,kBACA,cACA,SACA,SACA,UACA,aACA;AACF,QAA2B;AAE3B,+BACE;AACF,kCACE;AACF,4BACE;AACF,6BACE;AACF,wBACE;AACF,mCACE;AACF,aACE;AACF,sBACE;AACF,wBAA0B;AAC1B,0BAA4B,IAAK;AAEjC,uBAAsB,MAAK;SACzB,EAAW,QAAM,MAAK,SAAO;;AAE/B,uBAAsB;SACnB,cAAc,MAAK;;AAEtB,qBAAoB;SAClB,oBAAI,CAAG,gBAAoB,aACtB,cAAc,QACjB;;AAEJ,iBAAgB;SACd,EAAM,MACA,OACA,YACA,UACA,QACA,gBACA,YACA;IACJ;gCAAO,CAAG,aAAW,CAAK,OAAM;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