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":"analyzer.mjs","sources":["../../bootstrap/compiler/analyzer.eli"],"sourcesContent":["(module bootstrap.compiler.analyzer\n (import \"./symbol.mjs\" binding-name reference-name)\n (import \"./syntax.mjs\"\n node-kind node-span node-value node-name node-items)\n (import \"./transient-analysis.mjs\" analyze-transients)\n\n (defconst builtin-operators\n (js-array \"if\" \"when\" \"unless\" \"progn\" \"do\" \"while\" \"loop\" \"recur\"\n \"and\" \"or\" \"not\"\n \"+\" \"*\" \"-\" \"/\" \"%\" \"mod\" \"=\" \"/=\" \"not=\" \"<\" \"<=\" \">\" \">=\"\n \"1+\" \"1-\" \"eq\" \"equal\" \"null\" \"nil?\" \"undefined?\" \"nullish?\"\n \"int32\" \"uint32\" \"imul32\" \"bit-and\" \"bit-or\" \"bit-xor\" \"bit-not\"\n \"bit-shift-left\" \"bit-shift-right\" \"unsigned-bit-shift-right\"\n \"value-type\" \"host-identity-token\" \"string-code-unit-at\" \"string-from-code-unit\"\n \"string-to-number\" \"string-to-bigint\" \"number-float64-words\"\n \"list\" \"vector\" \"hash-map\" \"hash-set\" \"queue\" \"js-array\" \"car\"\n \"cdr\" \"cons\" \"js-cons\" \"nth\" \"js-nth\" \"aref\" \"length\" \"js-length\"\n \"new\" \"print\" \"str\"\n \"object-keys\" \"object-has?\" \"object-assoc\" \"__eliscript_arity_error\"\n \"funcall\" \"apply\"))\n\n (defconst portable-forbidden-operators\n (js-array \"js*\" \"print\" \"put\" \"js-call\" \"new\" \"async\" \"await\" \"throw\" \"try\"))\n\n (defconst fail\n (js* \"(diagnostic) => { const p = diagnostic.location.start; const error = new Error(`${diagnostic.location.file}:${p.line}:${p.column}: ${diagnostic.message}`); error.eliscriptDiagnostic = diagnostic; throw error; }\"))\n (defconst guard\n (js* \"(operation, onError) => { try { return operation(); } catch (error) { return onError(error.message); } }\"))\n\n (defun compiler-fail (context span code phase message)\n (let ((file (or (get context :filename)\n (and span (get span :filename))\n \"<input>\")))\n (fail\n (js-object\n :format \"eliscript-diagnostic\"\n :version 1\n :code code\n :severity \"error\"\n :phase phase\n :message message\n :location\n (js-object\n :file file\n :start\n (js-object\n :offset (if span (get span :start) 0)\n :line (if span (get span :line) 1)\n :column (if span (get span :column) 1))\n :end\n (js-object\n :offset (if span (get span :end) 0)\n :line (if span (get span :endLine) 1)\n :column (if span (get span :endColumn) 1)))))))\n\n (defun analyzer-fail (context span message)\n (compiler-fail context span \"ELI-A0001\" \"analysis\" message))\n\n (defun portable-fail (context span message)\n (compiler-fail\n context span \"ELI-P0001\" \"portable-analysis\" message))\n\n (defun symbol-node-p (node)\n (and node (= (node-kind node) \"symbol\")))\n\n (defun keyword-node-p (node)\n (and node (= (node-kind node) \"keyword\")))\n\n (defun vector-node-p (node)\n (and node (= (node-kind node) \"vector\")))\n\n (defun map-node-p (node)\n (and node\n (= (node-kind node) \"list\")\n (> (get (node-items node) :length) 0)\n (symbol-node-p (js-nth 0 (node-items node)))\n (= (node-name (js-nth 0 (node-items node))) \"hash-map\")))\n\n (defun string-node-p (node)\n (and node\n (= (node-kind node) \"literal\")\n (= (js* \"typeof node.value\") \"string\")))\n\n (defun null-node-p (node)\n (and node\n (= (node-kind node) \"literal\")\n (null (node-value node))))\n\n (defun list-items (node)\n (cond\n ((and node (= (node-kind node) \"list\")) (node-items node))\n ((null-node-p node) (js-array))\n (t undefined)))\n\n (defun binding-marker-p (name)\n (js-call (js-array \"&optional\" \"&rest\" \"&body\") :includes name))\n\n (defun split-binding-name (name)\n (let ((slash (js-call name :lastIndexOf \"/\")))\n (if (< slash 0)\n (js-object :namespace undefined :local name)\n (js-object\n :namespace (js-call name :slice 0 slash)\n :local (js-call name :slice (1+ slash))))))\n\n (defun map-binding-shortcut (node)\n (when (keyword-node-p node)\n (let* ((parts (split-binding-name (node-name node)))\n (kind (get parts :local)))\n (when (js-call (js-array \"keys\" \"strs\" \"syms\") :includes kind)\n (js-object :kind kind :namespace (get parts :namespace))))))\n\n (defun shortcut-entry (shortcut name-node)\n (let* ((name (node-name name-node))\n (parts (split-binding-name name))\n (local (get parts :local))\n (namespace (or (get shortcut :namespace)\n (get parts :namespace)))\n (kind (get shortcut :kind))\n (qualified (if namespace (str namespace \"/\" local) local)))\n (js-object\n :target (js-object\n :kind \"symbol\" :name local :span (node-span name-node))\n :keyKind kind\n :keyName (if (= kind \"strs\") name qualified))))\n\n (defun map-binding-key-p (node)\n (or (keyword-node-p node)\n (and node\n (= (node-kind node) \"literal\")\n (or (= (js* \"typeof node.value\") \"string\")\n (= (js* \"typeof node.value\") \"number\")))))\n\n (defun map-binding-spec (pattern context)\n (let ((items (js-call (node-items pattern) :slice 1))\n (entries (js-array))\n (defaults (new globalThis.Map))\n (as undefined)\n (shortcuts-seen (new globalThis.Set))\n (or-seen false)\n (as-seen false)\n (index 0))\n (while (< index (get items :length))\n (let* ((left (js-nth index items))\n (right (js-nth (1+ index) items))\n (directive (and (keyword-node-p left) (node-name left)))\n (shortcut (map-binding-shortcut left)))\n (cond\n (shortcut\n (let ((kind (get shortcut :kind)))\n (when (js-call shortcuts-seen :has directive)\n (analyzer-fail context (node-span left)\n (str \"map binding pattern accepts :\" directive \" once\")))\n (js-call shortcuts-seen :add directive)\n (unless (vector-node-p right)\n (analyzer-fail context (node-span right)\n (str \"map binding :\" kind \" value must be a vector\")))\n (js-call (node-items right) :forEach\n (lambda (name-node)\n (let ((name (and (symbol-node-p name-node)\n (node-name name-node))))\n (unless (and name\n (not (binding-marker-p name))\n (> (get\n (get (split-binding-name name) :local)\n :length)\n 0))\n (analyzer-fail context (node-span name-node)\n (str \"map binding :\" kind\n \" entries must be symbols\")))\n (js-call entries :push\n (shortcut-entry shortcut name-node)))))))\n ((= directive \"or\")\n (when or-seen\n (analyzer-fail context (node-span left)\n \"map binding pattern accepts :or once\"))\n (setq or-seen t)\n (unless (map-node-p right)\n (analyzer-fail context (node-span right)\n \"map binding :or value must be a map\"))\n (let ((pairs (js-call (node-items right) :slice 1))\n (default-index 0))\n (while (< default-index (get pairs :length))\n (let* ((name-node (js-nth default-index pairs))\n (default (js-nth (1+ default-index) pairs))\n (name (and (symbol-node-p name-node)\n (node-name name-node))))\n (unless (and name (not (binding-marker-p name)))\n (analyzer-fail context (node-span name-node)\n \"map binding :or keys must be binding symbols\"))\n (when (js-call defaults :has name)\n (analyzer-fail context (node-span name-node)\n \"duplicate map binding :or default\"))\n (js-call defaults :set name default))\n (setq default-index (+ default-index 2)))))\n ((= directive \"as\")\n (when as-seen\n (analyzer-fail context (node-span left)\n \"map binding pattern accepts :as once\"))\n (setq as-seen t)\n (unless (and (symbol-node-p right)\n (not (binding-marker-p (node-name right))))\n (analyzer-fail context (node-span right)\n \"map binding :as value must be a symbol\"))\n (setq as right))\n (directive\n (analyzer-fail context (node-span left)\n (str \"unknown map binding directive: :\" directive)))\n (t\n (unless (binding-pattern-p left)\n (analyzer-fail context (node-span left)\n \"map binding entry target must be a binding pattern\"))\n (unless (map-binding-key-p right)\n (analyzer-fail context (node-span right)\n \"map binding entry key must be a keyword, string, or number\"))\n (js-call entries :push (js-object :target left :key right)))))\n (setq index (+ index 2)))\n (js-call defaults :forEach\n (lambda (default name)\n (let ((entry\n (js-call entries :find\n (lambda (candidate)\n (and (symbol-node-p (get candidate :target))\n (= (node-name (get candidate :target)) name))))))\n (unless entry\n (analyzer-fail context (node-span default)\n (str \"map binding :or has no scalar target: \" name)))\n (put entry :default default)\n (put entry :hasDefault t))))\n (js-object :entries entries :as as)))\n\n (defun binding-nodes (pattern context)\n (cond\n ((symbol-node-p pattern)\n (if (binding-marker-p (node-name pattern))\n (analyzer-fail\n context (node-span pattern) \"invalid binding pattern marker\")\n (js-array pattern)))\n ((vector-node-p pattern)\n (let ((result (js-array))\n (rest-seen false)\n (rest-done false))\n (js-call (node-items pattern) :forEach\n (lambda (element)\n (let ((name (and (symbol-node-p element) (node-name element))))\n (cond\n ((= name \"&rest\")\n (when (or rest-seen rest-done)\n (analyzer-fail\n context (node-span element)\n \"invalid vector binding pattern\"))\n (setq rest-seen t))\n (rest-seen\n (unless (and name (not (binding-marker-p name)))\n (analyzer-fail\n context (node-span element)\n \"vector &rest binding must be a symbol\"))\n (js-call result :push element)\n (setq rest-seen false)\n (setq rest-done t))\n (rest-done\n (analyzer-fail\n context (node-span element)\n \"vector &rest binding must be final\"))\n ((null-node-p element) nil)\n (t\n (js-call (binding-nodes element context) :forEach\n (lambda (binding)\n (js-call result :push binding))))))))\n (when rest-seen\n (analyzer-fail\n context (node-span pattern)\n \"vector &rest requires a binding\"))\n result))\n ((map-node-p pattern)\n (let* ((spec (map-binding-spec pattern context))\n (result (js-array)))\n (js-call (get spec :entries) :forEach\n (lambda (entry)\n (js-call (binding-nodes (get entry :target) context) :forEach\n (lambda (binding) (js-call result :push binding)))))\n (when (get spec :as) (js-call result :push (get spec :as)))\n result))\n (t\n (analyzer-fail\n context (and pattern (node-span pattern))\n (str \"binding pattern must be a symbol, vector, or map: \"\n (node-display pattern))))))\n\n (defun binding-pattern-p (node)\n (or (and (symbol-node-p node)\n (not (binding-marker-p (node-name node))))\n (vector-node-p node)\n (map-node-p node)))\n\n (defun function-parameters (parameters context)\n (let ((items (list-items parameters))\n (parsed (js-array))\n (mode \"required\")\n (index 0))\n (when (eq items undefined)\n (analyzer-fail\n context (node-span parameters) \"function arguments must be a list\"))\n (while (< index (get items :length))\n (let* ((parameter (js-nth index items))\n (name (and (symbol-node-p parameter) (node-name parameter))))\n (cond\n ((= name \"&optional\")\n (unless (= mode \"required\")\n (analyzer-fail\n context (node-span parameter)\n \"invalid function parameter list\"))\n (setq mode \"optional\"))\n ((= name \"&rest\")\n (unless (or (= mode \"required\") (= mode \"optional\"))\n (analyzer-fail\n context (node-span parameter)\n \"invalid function parameter list\"))\n (setq mode \"rest\"))\n ((= name \"&body\")\n (analyzer-fail\n context (node-span parameter)\n \"invalid function parameter list\"))\n ((= mode \"rest\")\n (unless (and name (not (binding-marker-p name)))\n (analyzer-fail\n context (node-span parameter)\n \"function &rest parameter must be a symbol\"))\n (js-call parsed :push\n (js-object :kind \"rest\" :node parameter :bindings (js-array parameter)))\n (setq mode \"done\"))\n ((= mode \"done\")\n (analyzer-fail\n context (node-span parameter)\n \"invalid function parameter list\"))\n ((binding-pattern-p parameter)\n (js-call parsed :push\n (js-object\n :kind mode\n :node parameter\n :bindings (binding-nodes parameter context))))\n (t\n (analyzer-fail\n context (node-span parameter)\n (str \"function arguments must be symbols, vectors, or maps: \"\n (node-display parameters))))))\n (setq index (1+ index)))\n (when (= mode \"rest\")\n (analyzer-fail\n context (node-span parameters) \"invalid function parameter list\"))\n parsed))\n\n (defun node-display (node)\n (cond\n ((not node) \"nil\")\n ((= (node-kind node) \"undefined\") \"undefined\")\n ((= (node-kind node) \"symbol\") (node-name node))\n ((= (node-kind node) \"keyword\") (str \":\" (node-name node)))\n ((= (node-kind node) \"literal\")\n (let ((value (node-value node)))\n (cond\n ((null value) \"nil\")\n ((eq value t) \"t\")\n ((eq value false) \"false\")\n ((= (js* \"typeof value\") \"string\")\n (js-call (js* \"JSON\") :stringify value))\n (t (str value)))))\n ((or (= (node-kind node) \"list\") (= (node-kind node) \"vector\"))\n (let* ((items (node-items node))\n (contents\n (js-call\n (js-call items :map node-display)\n :join \" \")))\n (cond\n ((and (= (node-kind node) \"list\")\n (= (get items :length) 2)\n (symbol-node-p (js-nth 0 items))\n (= (node-name (js-nth 0 items)) \"quote\"))\n (str \"'\" (node-display (js-nth 1 items))))\n ((= (node-kind node) \"list\") (str \"(\" contents \")\"))\n (t (str \"[\" contents \"]\")))))\n (t \"<unsupported>\")))\n\n (defun make-scope (parent &optional function-context)\n (js-object\n :parent parent\n :names (new (js* \"Map\"))\n :outputs (new (js* \"Map\"))\n :functionContext function-context))\n\n (defun async-function-p (scope)\n (let ((current scope)\n (function-context nil))\n (while (and current (not function-context))\n (setq function-context (get current :functionContext))\n (setq current (get current :parent)))\n (= function-context \"async\")))\n\n (defun guarded-binding-name (name context span)\n (funcall\n guard\n (lambda () (binding-name name))\n (lambda (message) (analyzer-fail context span message))))\n\n (defun guarded-reference-name (name context span)\n (funcall\n guard\n (lambda () (reference-name name))\n (lambda (message) (analyzer-fail context span message))))\n\n (defun declare-binding (scope name-node kind mutable context)\n (unless (symbol-node-p name-node)\n (analyzer-fail\n context (and name-node (node-span name-node))\n (str \"expected binding name, got \" (node-display name-node))))\n (let* ((name (node-name name-node))\n (span (node-span name-node))\n (names (get scope :names))\n (outputs (get scope :outputs))\n (output-name (guarded-binding-name name context span))\n (existing-name (js-call names :get name))\n (existing-output (js-call outputs :get output-name)))\n (when existing-name\n (analyzer-fail\n context span (str \"duplicate \" kind \" binding: \" name)))\n (when existing-output\n (analyzer-fail\n context span\n (str \"binding \" name \" emits \" output-name\n \", which collides with \" (get existing-output :name))))\n (let ((binding\n (js-object\n :name name\n :outputName output-name\n :kind kind\n :mutable mutable)))\n (js-call names :set name binding)\n (js-call outputs :set output-name binding)\n binding)))\n\n (defun declare-pattern (scope pattern kind mutable context)\n (js-call (binding-nodes pattern context) :forEach\n (lambda (binding)\n (declare-binding scope binding kind mutable context))))\n\n (defun lookup-binding (scope name)\n (let ((current scope)\n (binding undefined))\n (while (and current (not binding))\n (setq binding (js-call (get current :names) :get name))\n (setq current (get current :parent)))\n binding))\n\n (defun require-binding (scope node context)\n (let* ((name (node-name node))\n (binding (lookup-binding scope name)))\n (or binding\n (analyzer-fail\n context (node-span node) (str \"unbound symbol: \" name)))))\n\n (defun qualified-name-p (name)\n (or (js-call name :includes \".\")\n (js-call name :includes \"/\")))\n\n (defun analyze-sequence (forms scope context)\n (let ((tail-position (get context :tailPosition))\n (index 0))\n (while (< index (get forms :length))\n (put context :tailPosition\n (and tail-position (= index (1- (get forms :length)))))\n (analyze-expression (js-nth index forms) scope context)\n (setq index (1+ index)))\n (put context :tailPosition tail-position)))\n\n (defun analyze-non-tail (form scope context)\n (let ((tail-position (get context :tailPosition)))\n (put context :tailPosition false)\n (analyze-expression form scope context)\n (put context :tailPosition tail-position)))\n\n (defun analyze-pattern-defaults (pattern scope context)\n (cond\n ((vector-node-p pattern)\n (js-call (node-items pattern) :forEach\n (lambda (element)\n (unless (or (null-node-p element)\n (and (symbol-node-p element)\n (= (node-name element) \"&rest\")))\n (analyze-pattern-defaults element scope context)))))\n ((map-node-p pattern)\n (let ((spec (map-binding-spec pattern context)))\n (js-call (get spec :entries) :forEach\n (lambda (entry)\n (when (get entry :hasDefault)\n (analyze-non-tail (get entry :default) scope context))\n (analyze-pattern-defaults\n (get entry :target) scope context)))))))\n\n (defun analyze-non-tail-sequence (forms scope context)\n (let ((tail-position (get context :tailPosition)))\n (put context :tailPosition false)\n (analyze-sequence forms scope context)\n (put context :tailPosition tail-position)))\n\n (defun binding-pair (binding context)\n (cond\n ((binding-pattern-p binding)\n (binding-nodes binding context)\n (js-array binding undefined))\n (t\n (let ((items (list-items binding)))\n (if (and (not (eq items undefined))\n (>= (get items :length) 1)\n (<= (get items :length) 2)\n (binding-pattern-p (js-nth 0 items)))\n (progn\n (binding-nodes (js-nth 0 items) context)\n (js-array (js-nth 0 items) (js-nth 1 items)))\n (analyzer-fail\n context (node-span binding)\n (str \"invalid let binding: \" (node-display binding))))))))\n\n (defun analyze-let (args scope sequential context form-span)\n (when (= (get args :length) 0)\n (analyzer-fail\n context form-span\n (str (if sequential \"let*\" \"let\") \" requires a binding list\")))\n (let* ((bindings-form (js-nth 0 args))\n (bindings (list-items bindings-form))\n (body (js-call args :slice 1))\n (child (make-scope scope)))\n (when (eq bindings undefined)\n (analyzer-fail\n context (node-span bindings-form) \"let bindings must be a list\"))\n (if sequential\n (js-call bindings :forEach\n (lambda (binding)\n (let ((pair (binding-pair binding context)))\n (analyze-non-tail (js-nth 1 pair) child context)\n (analyze-pattern-defaults (js-nth 0 pair) child context)\n (declare-pattern\n child (js-nth 0 pair) \"local\" t context))))\n (let ((parsed\n (js-call bindings :map\n (lambda (binding) (binding-pair binding context)))))\n (js-call parsed :forEach\n (lambda (pair)\n (analyze-non-tail (js-nth 1 pair) scope context)\n (analyze-pattern-defaults (js-nth 0 pair) scope context)))\n (js-call parsed :forEach\n (lambda (pair)\n (declare-pattern\n child (js-nth 0 pair) \"local\" t context)))))\n (analyze-sequence body child context)))\n\n (defun analyze-function\n (parameters body scope context &optional asynchronous)\n (let ((parameter-items (function-parameters parameters context)))\n (js-call parameter-items :forEach\n (lambda (parameter)\n (analyze-pattern-defaults (get parameter :node) scope context)))\n (let ((child (make-scope\n scope (if asynchronous \"async\" \"sync\"))))\n (js-call parameter-items :forEach\n (lambda (parameter)\n (js-call (get parameter :bindings) :forEach\n (lambda (binding)\n (declare-binding\n child binding \"parameter\" t context)))))\n (let ((recur-targets (get context :recurTargets))\n (tail-position (get context :tailPosition))\n (recur-barrier (get context :recurBarrier)))\n (put context :recurTargets\n (js-array (js-object :kind \"function\"\n :arity (get parameter-items :length))))\n (put context :tailPosition t)\n (put context :recurBarrier false)\n (analyze-sequence body child context)\n (put context :recurTargets recur-targets)\n (put context :tailPosition tail-position)\n (put context :recurBarrier recur-barrier)))))\n\n (defun analyze-loop (args scope context form-span)\n (when (= (get args :length) 0)\n (analyzer-fail context form-span \"loop requires a binding list\"))\n (let* ((bindings-form (js-nth 0 args))\n (bindings (list-items bindings-form))\n (body (js-call args :slice 1))\n (child (make-scope scope))\n (parsed (js-array)))\n (when (eq bindings undefined)\n (analyzer-fail\n context (node-span bindings-form) \"loop bindings must be a list\"))\n (js-call bindings :forEach\n (lambda (binding)\n (let ((items (list-items binding)))\n (unless (and (not (eq items undefined))\n (= (get items :length) 2))\n (analyzer-fail\n context (node-span binding)\n (str \"loop bindings require exactly one initializer: \"\n (node-display binding))))\n (js-call parsed :push (binding-pair binding context)))))\n (js-call parsed :forEach\n (lambda (pair)\n (analyze-non-tail (js-nth 1 pair) scope context)\n (analyze-pattern-defaults (js-nth 0 pair) scope context)))\n (js-call parsed :forEach\n (lambda (pair)\n (declare-pattern child (js-nth 0 pair) \"loop\" t context)))\n (let ((recur-targets (get context :recurTargets))\n (tail-position (get context :tailPosition))\n (recur-barrier (get context :recurBarrier))\n (targets (js-array)))\n (js-call targets :push\n (js-object :kind \"loop\" :arity (get parsed :length)))\n (js-call recur-targets :forEach\n (lambda (target) (js-call targets :push target)))\n (put context :recurTargets targets)\n (put context :tailPosition t)\n (put context :recurBarrier false)\n (analyze-sequence body child context)\n (put context :recurTargets recur-targets)\n (put context :tailPosition tail-position)\n (put context :recurBarrier recur-barrier))))\n\n (defun analyze-recur (args scope context form-span)\n (let* ((targets (get context :recurTargets))\n (target (and (> (get targets :length) 0) (js-nth 0 targets))))\n (unless target\n (analyzer-fail\n context form-span\n \"recur is only valid inside a function or loop\"))\n (when (get context :recurBarrier)\n (analyzer-fail\n context form-span \"recur cannot cross a try boundary\"))\n (unless (get context :tailPosition)\n (analyzer-fail\n context form-span \"recur is only valid in tail position\"))\n (unless (= (get args :length) (get target :arity))\n (analyzer-fail\n context form-span\n (str \"recur expects \" (get target :arity)\n \" arguments for the current \" (get target :kind)\n \", got \" (get args :length))))\n (analyze-non-tail-sequence args scope context)))\n\n (defun analyze-assignment\n (args scope form-name context form-span)\n (when (or (= (get args :length) 0)\n (= (% (get args :length) 2) 1))\n (analyzer-fail\n context form-span\n (str form-name \" expects one or more name/value pairs\")))\n (let ((index 0))\n (while (< index (get args :length))\n (let* ((name-node (js-nth index args))\n (value (js-nth (1+ index) args)))\n (unless (symbol-node-p name-node)\n (analyzer-fail\n context form-span\n (str \"assignment target must be a symbol: \"\n (node-display name-node))))\n (let ((binding (require-binding scope name-node context)))\n (unless (get binding :mutable)\n (analyzer-fail\n context (node-span name-node)\n (str \"cannot assign to immutable binding: \"\n (node-name name-node)))))\n (analyze-non-tail value scope context))\n (setq index (+ index 2)))))\n\n (defun analyze-object (args scope context form-span form-name)\n (when (= (% (get args :length) 2) 1)\n (analyzer-fail\n context form-span (str form-name \" expects key/value pairs\")))\n (let ((index 0))\n (while (< index (get args :length))\n (let ((key (js-nth index args))\n (value (js-nth (1+ index) args)))\n (unless (or (keyword-node-p key)\n (string-node-p key)\n (symbol-node-p key))\n (analyze-non-tail key scope context))\n (analyze-non-tail value scope context))\n (setq index (+ index 2)))))\n\n (defun analyze-property-call\n (operator args scope context form-span)\n (cond\n ((= operator \"get\")\n (when (or (< (get args :length) 2)\n (> (get args :length) 3))\n (analyzer-fail context form-span \"get expects 2..3 arguments\")))\n ((= operator \"put\")\n (unless (= (get args :length) 3)\n (analyzer-fail context form-span \"put expects 3 arguments\")))\n ((= operator \"js-call\")\n (when (< (get args :length) 2)\n (analyzer-fail context form-span \"js-call expects 2+ arguments\"))))\n (analyze-non-tail (js-nth 0 args) scope context)\n (let ((key (js-nth 1 args)))\n (unless (or (keyword-node-p key) (string-node-p key))\n (analyze-non-tail key scope context)))\n (analyze-non-tail-sequence (js-call args :slice 2) scope context))\n\n (defun analyze-cond (clauses scope context)\n (js-call clauses :forEach\n (lambda (clause)\n (let ((items (list-items clause)))\n (when (or (eq items undefined) (= (get items :length) 0))\n (analyzer-fail\n context (node-span clause)\n (str \"invalid cond clause: \" (node-display clause))))\n (analyze-non-tail (js-nth 0 items) scope context)\n (analyze-sequence (js-call items :slice 1) scope context)))))\n\n (defun clause-operator (form)\n (let ((items (list-items form)))\n (and (not (eq items undefined))\n (> (get items :length) 0)\n (symbol-node-p (js-nth 0 items))\n (node-name (js-nth 0 items)))))\n\n (defun analyze-try (args scope context form-span)\n (let ((recur-barrier (get context :recurBarrier))\n (clauses-started false)\n (catch-seen false)\n (finally-seen false))\n (put context :recurBarrier t)\n (js-call args :forEach\n (lambda (argument)\n (let ((operator (clause-operator argument)))\n (cond\n ((= operator \"catch\")\n (when catch-seen\n (analyzer-fail\n context form-span\n \"try accepts at most one catch clause\"))\n (when finally-seen\n (analyzer-fail context form-span \"catch must precede finally\"))\n (setq clauses-started t)\n (setq catch-seen t)\n (let* ((items (list-items argument))\n (binding (js-nth 1 items)))\n (unless (binding-pattern-p binding)\n (analyzer-fail\n context (node-span argument)\n \"catch requires a binding symbol, vector, or map\"))\n (analyze-pattern-defaults binding scope context)\n (let ((child (make-scope scope)))\n (declare-pattern child binding \"catch\" t context)\n (analyze-sequence\n (js-call items :slice 2) child context))))\n ((= operator \"finally\")\n (when finally-seen\n (analyzer-fail\n context form-span\n \"try accepts at most one finally clause\"))\n (setq clauses-started t)\n (setq finally-seen t)\n (analyze-sequence\n (js-call (list-items argument) :slice 1) scope context))\n (clauses-started\n (analyzer-fail\n context (node-span argument)\n \"try body forms must precede catch and finally clauses\"))\n (t (analyze-expression argument scope context))))))\n (unless (or catch-seen finally-seen)\n (analyzer-fail\n context form-span \"try requires a catch or finally clause\"))\n (put context :recurBarrier recur-barrier)))\n\n (defun analyze-call (form scope context)\n (let* ((items (node-items form))\n (operator-node (js-nth 0 items))\n (operator (and (symbol-node-p operator-node)\n (node-name operator-node)))\n (args (js-call items :slice 1))\n (form-span (node-span form)))\n (cond\n ((or (= operator \"lambda\") (= operator \"fn\"))\n (when (= (get args :length) 0)\n (analyzer-fail\n context form-span\n (str operator \" requires an argument list\")))\n (analyze-function\n (js-nth 0 args) (js-call args :slice 1) scope context))\n ((= operator \"async\")\n (when (= (get args :length) 0)\n (analyzer-fail\n context form-span \"async requires an argument list\"))\n (analyze-function\n (js-nth 0 args) (js-call args :slice 1) scope context t))\n ((= operator \"await\")\n (unless (= (get args :length) 1)\n (analyzer-fail context form-span \"await expects 1 argument\"))\n (unless (async-function-p scope)\n (analyzer-fail\n context form-span\n \"await is only valid inside an async function\"))\n (analyze-non-tail (js-nth 0 args) scope context))\n ((= operator \"throw\")\n (unless (= (get args :length) 1)\n (analyzer-fail context form-span \"throw expects 1 argument\"))\n (analyze-non-tail (js-nth 0 args) scope context))\n ((= operator \"try\")\n (analyze-try args scope context form-span))\n ((or (= operator \"catch\") (= operator \"finally\"))\n (analyzer-fail\n context form-span\n (str operator \" is only valid as a try clause\")))\n ((= operator \"let\")\n (analyze-let args scope false context form-span))\n ((= operator \"let*\")\n (analyze-let args scope t context form-span))\n ((= operator \"loop\")\n (analyze-loop args scope context form-span))\n ((= operator \"recur\")\n (analyze-recur args scope context form-span))\n ((= operator \"setq\")\n (analyze-assignment args scope \"setq\" context form-span))\n ((= operator \"set!\")\n (unless (= (get args :length) 2)\n (analyzer-fail context form-span \"set! expects 2 arguments\"))\n (analyze-assignment args scope \"set!\" context form-span))\n ((= operator \"cond\") (analyze-cond args scope context))\n ((= operator \"if\")\n (unless (and (>= (get args :length) 2)\n (<= (get args :length) 3))\n (analyzer-fail context form-span \"if expects 2..3 arguments\"))\n (analyze-non-tail (js-nth 0 args) scope context)\n (analyze-sequence (js-call args :slice 1) scope context))\n ((or (= operator \"when\") (= operator \"unless\"))\n (when (= (get args :length) 0)\n (analyzer-fail\n context form-span (str operator \" expects 1+ arguments\")))\n (analyze-non-tail (js-nth 0 args) scope context)\n (analyze-sequence (js-call args :slice 1) scope context))\n ((or (= operator \"progn\") (= operator \"do\")\n (= operator \"and\") (= operator \"or\"))\n (analyze-sequence args scope context))\n ((= operator \"while\")\n (when (= (get args :length) 0)\n (analyzer-fail context form-span \"while expects 1+ arguments\"))\n (analyze-non-tail-sequence args scope context))\n ((= operator \"quote\") nil)\n ((= operator \"js-object\")\n (analyze-object args scope context form-span operator))\n ((= operator \"hash-map\")\n (when (= (% (get args :length) 2) 1)\n (analyzer-fail\n context form-span\n \"hash-map expects complete key/value pairs\"))\n (analyze-non-tail-sequence args scope context))\n ((or (= operator \"get\") (= operator \"put\") (= operator \"js-call\"))\n (analyze-property-call\n operator args scope context form-span))\n ((= operator \"js*\") nil)\n ((js-call builtin-operators :includes operator)\n (analyze-non-tail-sequence args scope context))\n ((js-call\n (js-array \"defun\" \"defn\" \"defportable\" \"defasync\"\n \"defvar\" \"defconst\"\n \"export\" \"export-default\" \"import\" \"import-portable\" \"module\")\n :includes operator)\n (analyzer-fail\n context form-span\n (str operator \" is only valid at module top level\")))\n (t\n (analyze-non-tail operator-node scope context)\n (analyze-non-tail-sequence args scope context)))))\n\n (defun analyze-expression (form scope context)\n (when form\n (cond\n ((or (= (node-kind form) \"literal\")\n (= (node-kind form) \"undefined\")\n (= (node-kind form) \"keyword\")) nil)\n ((= (node-kind form) \"symbol\")\n (let ((name (node-name form)))\n (if (qualified-name-p name)\n (guarded-reference-name name context (node-span form))\n (require-binding scope form context))))\n ((= (node-kind form) \"vector\")\n (analyze-non-tail-sequence (node-items form) scope context))\n ((= (node-kind form) \"list\")\n (analyze-call form scope context))\n (t\n (analyzer-fail\n context (node-span form)\n (str \"unsupported form: \" (node-display form)))))))\n\n (defun import-bindings (args context form-span portable)\n (unless (and (> (get args :length) 0)\n (string-node-p (js-nth 0 args)))\n (analyzer-fail context form-span \"import module must be a string\"))\n (let ((bindings (js-array))\n (index 1)\n (default-seen false)\n (namespace-seen false)\n (named-seen false))\n (while (< index (get args :length))\n (let ((specifier (js-nth index args)))\n (cond\n ((and (keyword-node-p specifier)\n (= (node-name specifier) \"default\"))\n (when portable\n (analyzer-fail\n context form-span\n \"import-portable only supports named imports\"))\n (when default-seen\n (analyzer-fail\n context form-span \"duplicate :default import\"))\n (when (>= (1+ index) (get args :length))\n (analyzer-fail\n context form-span \":default requires a binding\"))\n (setq default-seen t)\n (setq index (1+ index))\n (js-call bindings :push (js-nth index args)))\n ((and (keyword-node-p specifier)\n (= (node-name specifier) \"as\"))\n (when portable\n (analyzer-fail\n context form-span\n \"import-portable only supports named imports\"))\n (when namespace-seen\n (analyzer-fail\n context form-span \"duplicate :as import\"))\n (when (>= (1+ index) (get args :length))\n (analyzer-fail\n context form-span \":as requires a namespace binding\"))\n (setq namespace-seen t)\n (setq index (1+ index))\n (js-call bindings :push (js-nth index args)))\n ((symbol-node-p specifier)\n (setq named-seen t)\n (js-call bindings :push specifier))\n (t\n (analyzer-fail\n context form-span\n (str \"invalid import specifier: \"\n (node-display specifier)))))\n (setq index (1+ index))))\n (when (and namespace-seen named-seen)\n (analyzer-fail\n context form-span\n \"namespace and named imports cannot be combined\"))\n (when (and portable (= (get bindings :length) 0))\n (analyzer-fail\n context form-span\n \"import-portable expects one or more bindings\"))\n bindings))\n\n (defun append-flattened-modules (forms result context)\n (js-call forms :forEach\n (lambda (form)\n (if (and (= (node-kind form) \"list\")\n (symbol-node-p (js-nth 0 (node-items form)))\n (= (node-name (js-nth 0 (node-items form))) \"module\"))\n (let ((items (node-items form)))\n (unless (and (> (get items :length) 1)\n (symbol-node-p (js-nth 1 items)))\n (analyzer-fail\n context (node-span form) \"module name must be a symbol\"))\n (append-flattened-modules\n (js-call items :slice 2) result context))\n (js-call result :push form)))))\n\n (defun flatten-modules (forms context)\n (let ((result (js-array)))\n (append-flattened-modules forms result context)\n result))\n\n (defun predeclare-top-level (forms scope context)\n (js-call forms :forEach\n (lambda (form)\n (when (= (node-kind form) \"list\")\n (let* ((items (node-items form))\n (operator-node (js-nth 0 items))\n (operator (and (symbol-node-p operator-node)\n (node-name operator-node)))\n (args (js-call items :slice 1))\n (count (get args :length)))\n (cond\n ((or (= operator \"import\") (= operator \"import-portable\"))\n (when (= count 0)\n (analyzer-fail\n context (node-span form)\n (str operator \" expects a module name\")))\n (js-call\n (import-bindings\n args context (node-span form)\n (= operator \"import-portable\"))\n :forEach\n (lambda (name)\n (declare-binding scope name \"import\" false context))))\n ((= operator \"defvar\")\n (unless (and (>= count 1) (<= count 2))\n (analyzer-fail\n context (node-span form) \"defvar expects 1..2 arguments\"))\n (declare-binding\n scope (js-nth 0 args) \"variable\" t context))\n ((= operator \"defconst\")\n (unless (and (>= count 1) (<= count 2))\n (analyzer-fail\n context (node-span form) \"defconst expects 1..2 arguments\"))\n (declare-binding\n scope (js-nth 0 args) \"constant\" false context))\n ((or (= operator \"defun\") (= operator \"defn\")\n (= operator \"defportable\") (= operator \"defasync\"))\n (unless (>= count 2)\n (analyzer-fail\n context (node-span form)\n (str operator \" expects 2+ arguments\")))\n (declare-binding\n scope (js-nth 0 args) \"function\" false context))))))))\n\n (defun analyze-top-level (form scope context)\n (if (not (= (node-kind form) \"list\"))\n (analyze-expression form scope context)\n (let* ((items (node-items form))\n (operator-node (js-nth 0 items))\n (operator (and (symbol-node-p operator-node)\n (node-name operator-node)))\n (args (js-call items :slice 1))\n (count (get args :length)))\n (cond\n ((or (= operator \"import\") (= operator \"import-portable\")) nil)\n ((or (= operator \"defvar\") (= operator \"defconst\"))\n (when (> count 2)\n (analyzer-fail\n context (node-span form)\n (str operator \" expects 1..2 arguments\")))\n (analyze-expression (js-nth 1 args) scope context))\n ((or (= operator \"defun\") (= operator \"defn\")\n (= operator \"defportable\") (= operator \"defasync\"))\n (unless (>= count 2)\n (analyzer-fail\n context (node-span form)\n (str operator \" expects 2+ arguments\")))\n (analyze-function\n (js-nth 1 args)\n (js-call args :slice 2)\n scope context (= operator \"defasync\")))\n ((= operator \"export\")\n (when (= count 0)\n (analyzer-fail\n context (node-span form)\n \"export expects one or more bindings\"))\n (js-call args :forEach\n (lambda (name)\n (unless (symbol-node-p name)\n (analyzer-fail\n context (node-span name)\n (str \"export name must be a symbol: \"\n (node-display name))))\n (require-binding scope name context))))\n ((= operator \"export-default\")\n (unless (= count 1)\n (analyzer-fail\n context (node-span form)\n \"export-default expects 1 argument\"))\n (analyze-expression (js-nth 0 args) scope context))\n (t (analyze-expression form scope context))))))\n\n (defun portable-declarations (forms context)\n (let ((declarations (new (js* \"Map\"))))\n (js-call forms :forEach\n (lambda (form)\n (when (= (node-kind form) \"list\")\n (let* ((items (node-items form))\n (operator-node (js-nth 0 items))\n (operator (and (symbol-node-p operator-node)\n (node-name operator-node)))\n (args (js-call items :slice 1)))\n (cond\n ((= operator \"defconst\")\n (js-call declarations :set (node-name (js-nth 0 args))\n (js-object :kind \"constant\" :form form\n :initializer (js-nth 1 args))))\n ((= operator \"defvar\")\n (js-call declarations :set (node-name (js-nth 0 args))\n (js-object :kind \"variable\" :form form)))\n ((or (= operator \"defun\") (= operator \"defn\")\n (= operator \"defportable\") (= operator \"defasync\"))\n (js-call declarations :set (node-name (js-nth 0 args))\n (js-object\n :kind (if (= operator \"defportable\")\n \"portable\" \"function\")\n :form form\n :parameters (js-nth 1 args)\n :body (js-call args :slice 2))))\n ((or (= operator \"import\") (= operator \"import-portable\"))\n (js-call\n (import-bindings\n args context (node-span form)\n (= operator \"import-portable\"))\n :forEach\n (lambda (name)\n (js-call declarations :set (node-name name)\n (js-object\n :kind (if (= operator \"import-portable\")\n \"portable-import\" \"import\")\n :form form))))))))))\n declarations))\n\n (defun portable-scope (parameters context)\n (let ((scope (new (js* \"Set\"))))\n (when parameters\n (js-call (function-parameters parameters context) :forEach\n (lambda (parameter)\n (js-call (get parameter :bindings) :forEach\n (lambda (binding)\n (js-call scope :add (node-name binding)))))))\n scope))\n\n (defun copy-portable-scope (scope)\n (new (js* \"Set\") scope))\n\n (defun add-portable-pattern (pattern scope context)\n (js-call (binding-nodes pattern context) :forEach\n (lambda (binding)\n (js-call scope :add (node-name binding)))))\n\n (defun portable-reference\n (node scope declarations dependencies entry context)\n (let ((name (node-name node)))\n (unless (js-call scope :has name)\n (when (qualified-name-p name)\n (portable-fail\n context (node-span node)\n (str \"portable function \" entry\n \" uses qualified host reference: \" name)))\n (let ((declaration (js-call declarations :get name)))\n (when declaration\n (let ((kind (get declaration :kind)))\n (if (or (= kind \"portable\") (= kind \"constant\")\n (= kind \"portable-import\"))\n (js-call dependencies :add name)\n (portable-fail\n context (node-span node)\n (str \"portable function \" entry\n \" depends on non-portable \" kind \": \" name)))))))))\n\n (defun portable-sequence\n (forms scope declarations dependencies entry context)\n (js-call forms :forEach\n (lambda (form)\n (portable-expression\n form scope declarations dependencies entry context))))\n\n (defun portable-function-expression\n (args scope declarations dependencies entry context)\n (let ((child (copy-portable-scope scope)))\n (js-call (function-parameters (js-nth 0 args) context) :forEach\n (lambda (parameter)\n (js-call (get parameter :bindings) :forEach\n (lambda (binding)\n (js-call child :add (node-name binding))))))\n (portable-sequence\n (js-call args :slice 1)\n child declarations dependencies entry context)))\n\n (defun portable-let-expression\n (args scope sequential declarations dependencies entry context)\n (let ((bindings (list-items (js-nth 0 args)))\n (child (copy-portable-scope scope)))\n (if sequential\n (js-call bindings :forEach\n (lambda (binding)\n (let* ((items (list-items binding))\n (name (if items (js-nth 0 items) binding))\n (initializer (and items (js-nth 1 items))))\n (portable-expression\n initializer child declarations dependencies entry context)\n (add-portable-pattern name child context))))\n (progn\n (js-call bindings :forEach\n (lambda (binding)\n (let ((items (list-items binding)))\n (when items\n (portable-expression\n (js-nth 1 items) scope declarations dependencies entry context)))))\n (js-call bindings :forEach\n (lambda (binding)\n (let ((items (list-items binding)))\n (add-portable-pattern\n (if items (js-nth 0 items) binding) child context))))))\n (portable-sequence\n (js-call args :slice 1)\n child declarations dependencies entry context)))\n\n (defun portable-loop-expression\n (args scope declarations dependencies entry context)\n (let ((bindings (list-items (js-nth 0 args)))\n (child (copy-portable-scope scope)))\n (js-call bindings :forEach\n (lambda (binding)\n (let ((items (list-items binding)))\n (portable-expression\n (js-nth 1 items) scope declarations dependencies entry context))))\n (js-call bindings :forEach\n (lambda (binding)\n (add-portable-pattern\n (js-nth 0 (list-items binding)) child context)))\n (portable-sequence\n (js-call args :slice 1)\n child declarations dependencies entry context)))\n\n (defun portable-assignment\n (args scope declarations dependencies entry context)\n (let ((index 0))\n (while (< index (get args :length))\n (let ((name (js-nth index args))\n (value (js-nth (1+ index) args)))\n (unless (js-call scope :has (node-name name))\n (portable-fail\n context (node-span name)\n (str \"portable function \" entry\n \" may only assign local bindings: \" (node-name name))))\n (portable-expression\n value scope declarations dependencies entry context))\n (setq index (+ index 2)))))\n\n (defun portable-object\n (args scope declarations dependencies entry context)\n (let ((index 0))\n (while (< index (get args :length))\n (let ((key (js-nth index args))\n (value (js-nth (1+ index) args)))\n (unless (or (keyword-node-p key)\n (string-node-p key)\n (symbol-node-p key))\n (portable-expression\n key scope declarations dependencies entry context))\n (portable-expression\n value scope declarations dependencies entry context))\n (setq index (+ index 2)))))\n\n (defun portable-host-key-call\n (args scope declarations dependencies entry context)\n (let ((index 0))\n (while (< index (get args :length))\n (let ((argument (js-nth index args)))\n (unless (and (= index 1) (keyword-node-p argument))\n (portable-expression\n argument scope declarations dependencies entry context)))\n (setq index (1+ index)))))\n\n (defun portable-call\n (form scope declarations dependencies entry context)\n (let* ((items (node-items form))\n (operator-node (js-nth 0 items))\n (operator (and (symbol-node-p operator-node)\n (node-name operator-node)))\n (args (js-call items :slice 1)))\n (when (js-call portable-forbidden-operators :includes operator)\n (portable-fail\n context (node-span form)\n (str \"portable function \" entry \" cannot use \" operator \" (\"\n (cond\n ((= operator \"js*\") \"raw JavaScript\")\n ((= operator \"print\") \"console output\")\n ((= operator \"put\") \"object mutation\")\n ((= operator \"js-call\") \"host method calls\")\n ((= operator \"new\") \"host constructors\")\n ((= operator \"async\") \"asynchronous functions\")\n ((= operator \"await\") \"asynchronous suspension\")\n ((or (= operator \"throw\") (= operator \"try\"))\n \"exception control flow\")\n (t \"unsupported host capability\"))\n \")\")))\n (cond\n ((= operator \"quote\") nil)\n ((or (= operator \"lambda\") (= operator \"fn\"))\n (portable-function-expression\n args scope declarations dependencies entry context))\n ((= operator \"let\")\n (portable-let-expression\n args scope false declarations dependencies entry context))\n ((= operator \"let*\")\n (portable-let-expression\n args scope t declarations dependencies entry context))\n ((= operator \"loop\")\n (portable-loop-expression\n args scope declarations dependencies entry context))\n ((or (= operator \"setq\") (= operator \"set!\"))\n (portable-assignment\n args scope declarations dependencies entry context))\n ((= operator \"js-object\")\n (portable-object\n args scope declarations dependencies entry context))\n ((or (= operator \"get\")\n (= operator \"aref\")\n (= operator \"object-has?\")\n (= operator \"object-assoc\"))\n (portable-host-key-call\n args scope declarations dependencies entry context))\n (t\n (unless (js-call builtin-operators :includes operator)\n (portable-expression\n operator-node scope declarations dependencies entry context))\n (portable-sequence\n args scope declarations dependencies entry context)))))\n\n (defun portable-expression\n (form scope declarations dependencies entry context)\n (when form\n (cond\n ((or (= (node-kind form) \"literal\")\n (= (node-kind form) \"undefined\")) nil)\n ((= (node-kind form) \"keyword\") nil)\n ((= (node-kind form) \"symbol\")\n (portable-reference\n form scope declarations dependencies entry context))\n ((= (node-kind form) \"vector\")\n (portable-sequence\n (node-items form) scope declarations dependencies entry context))\n ((= (node-kind form) \"list\")\n (portable-call\n form scope declarations dependencies entry context)))))\n\n (defun portable-dependencies (declaration declarations entry context)\n (let ((dependencies (new (js* \"Set\")))\n (scope (portable-scope (get declaration :parameters) context)))\n (if (= (get declaration :kind) \"portable\")\n (portable-sequence\n (get declaration :body)\n scope declarations dependencies entry context)\n (portable-expression\n (get declaration :initializer)\n scope declarations dependencies entry context))\n dependencies))\n\n (defun validate-portable-module (forms context)\n (let ((declarations (portable-declarations forms context))\n (pending (js-array))\n (visited (new (js* \"Set\"))))\n (js-call declarations :forEach\n (lambda (declaration name)\n (when (= (get declaration :kind) \"portable\")\n (js-call pending :push name))))\n (while (> (get pending :length) 0)\n (let ((name (js-call pending :pop)))\n (unless (js-call visited :has name)\n (js-call visited :add name)\n (let ((declaration (js-call declarations :get name)))\n (js-call\n (portable-dependencies\n declaration declarations name context)\n :forEach\n (lambda (dependency)\n (js-call pending :push dependency)))))))\n forms))\n\n (defun select-portable-module\n (forms entries filename &optional allow-project-imports)\n (let* ((context (js-object :filename filename))\n (flattened (flatten-modules forms context))\n (declarations (portable-declarations flattened context))\n (pending (js-array))\n (selected (new (js* \"Set\"))))\n (js-call entries :forEach\n (lambda (entry)\n (let ((declaration (js-call declarations :get entry)))\n (unless (and declaration (= (get declaration :kind) \"portable\"))\n (portable-fail\n context nil\n (str \"portable entry \" entry\n \" is not declared with defportable\")))\n (js-call pending :push entry))))\n (while (> (get pending :length) 0)\n (let ((name (js-call pending :pop)))\n (unless (js-call selected :has name)\n (js-call selected :add name)\n (let ((declaration (js-call declarations :get name)))\n (when (and (= (get declaration :kind) \"portable-import\")\n (not allow-project-imports))\n (portable-fail\n context (node-span (get declaration :form))\n (str \"portable import \" name\n \" requires a project build\")))\n (js-call\n (portable-dependencies\n declaration declarations name context)\n :forEach\n (lambda (dependency)\n (js-call pending :push dependency)))))))\n (js-call flattened :filter\n (lambda (form)\n (when (= (node-kind form) \"list\")\n (let* ((items (node-items form))\n (operator (and (symbol-node-p (js-nth 0 items))\n (node-name (js-nth 0 items))))\n (name (and (> (get items :length) 1)\n (symbol-node-p (js-nth 1 items))\n (node-name (js-nth 1 items)))))\n (or\n (and (or (= operator \"defconst\")\n (= operator \"defportable\"))\n (js-call selected :has name))\n (and (= operator \"import-portable\")\n (js-call\n (js-call items :slice 2)\n :some\n (lambda (imported)\n (js-call selected :has (node-name imported))))))))))))\n\n (defun analyze-module (forms filename)\n (let* ((context\n (js-object\n :filename filename\n :tailPosition false\n :recurTargets (js-array)\n :recurBarrier false))\n (flattened (flatten-modules forms context))\n (scope (make-scope nil)))\n (predeclare-top-level flattened scope context)\n (js-call flattened :forEach\n (lambda (form) (analyze-top-level form scope context)))\n (analyze-transients forms filename)\n (validate-portable-module flattened context)\n forms))\n\n (export analyze-module select-portable-module))\n"],"names":[],"mappings":";;;AACE,QAAuB,cAAa;AACpC,QACE,WAAU,WAAU,YAAW,WAAU;AAC3C,QAAmC;AAEnC,0BACE,CAAU,MAAK,QAAO,UAAS,SAAQ,MAAK,SAAQ,QAAO,SAC1D,OAAM,MAAK,OACX,KAAI,KAAI,KAAI,KAAI,KAAI,OAAM,KAAI,MAAK,QAAO,KAAI,MAAK,KAAI,MACvD,MAAK,MAAK,MAAK,SAAQ,Q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U1B,QAAQ,gBAAe"}
|
|
@@ -0,0 +1,228 @@
|
|
|
1
|
+
// Generated by Eliscript. Do not edit.
|
|
2
|
+
const __eliscript_truthy = (value) => value !== false && value != null;
|
|
3
|
+
|
|
4
|
+
import {read_string} from "./reader.mjs";
|
|
5
|
+
import {formatter_format, formatter_version, formatter_width, formatter_indent, format_source} from "./formatter.mjs";
|
|
6
|
+
import {expand_module} from "./expander.mjs";
|
|
7
|
+
import {analyze_module, select_portable_module} from "./analyzer.mjs";
|
|
8
|
+
import {lower_module} from "./lower.mjs";
|
|
9
|
+
import {ir_format, ir_version, serialize_program, deserialize_program} from "./ir.mjs";
|
|
10
|
+
import {emit_module, emit_module_with_source_map} from "./emitter.mjs";
|
|
11
|
+
import {project_plan_format, project_plan_version, project_plan, portable_project_plan, project_build_report_format, project_build_report_version, project_build_report, project_request_format, project_request_version, project_request, project_configuration, build_operation_format, build_operation_version, build_operation_request, check_operation_format, check_operation_version, check_operation_request, project_check_report_format, project_check_report_version, project_check_report, project_cache_format, project_cache_version, project_cache_lookup, project_cache_decision} from "./project.mjs";
|
|
12
|
+
const evaluation_operation_format = "eliscript-evaluation-operation";
|
|
13
|
+
const evaluation_operation_version = 1;
|
|
14
|
+
const evaluation_input_format = "eliscript-evaluation-input";
|
|
15
|
+
const evaluation_input_version = 1;
|
|
16
|
+
const evaluation_form_format = "eliscript-evaluation-form";
|
|
17
|
+
const evaluation_form_version = 1;
|
|
18
|
+
const evaluation_module_format = "eliscript-evaluation-module";
|
|
19
|
+
const evaluation_module_version = 1;
|
|
20
|
+
const evaluation_operation_keys = ["id", "operation", "source", "filename", "root", "line", "column"];
|
|
21
|
+
const evaluation_definition_heads = ["defasync", "defconst", "defmacro", "defmulti", "defn", "defportable", "defprotocol", "defun", "defvar"];
|
|
22
|
+
const evaluation_module_heads = ["export", "export-default", "import", "import-portable", "module"];
|
|
23
|
+
const evaluation_fail = (message, filename) => { const error = new Error(message); error.eliscriptDiagnostic = { format: 'eliscript-diagnostic', version: 1, code: 'ELI-E0001', severity: 'error', phase: 'evaluation-request', message, ...(filename ? { location: { file: filename } } : {}) }; throw error; };
|
|
24
|
+
const evaluation_object_p = (value) => value !== null && typeof value === 'object' && !Array.isArray(value);
|
|
25
|
+
const evaluation_id_p = (value) => value === null || (typeof value === 'string' && value.length > 0) || (Number.isSafeInteger(value) && value >= 0);
|
|
26
|
+
const evaluation_positive_integer_p = (value) => Number.isSafeInteger(value) && value >= 1;
|
|
27
|
+
function compile_ir_string(source, filename, macro_context = null) {
|
|
28
|
+
return ((read_forms) => {
|
|
29
|
+
return ((expanded_forms) => {
|
|
30
|
+
return (() => {
|
|
31
|
+
analyze_module(expanded_forms, filename);
|
|
32
|
+
return lower_module(expanded_forms, filename);
|
|
33
|
+
})();
|
|
34
|
+
})(expand_module(read_forms, filename, macro_context));
|
|
35
|
+
})(read_string(source, filename));
|
|
36
|
+
}
|
|
37
|
+
function evaluation_object_field(value, key, fallback) {
|
|
38
|
+
return (__eliscript_truthy((globalThis.Object)["hasOwn"](value, key)) ? (value)[key] : fallback);
|
|
39
|
+
}
|
|
40
|
+
function evaluation_require_source(source, filename) {
|
|
41
|
+
(__eliscript_truthy((!__eliscript_truthy(((__eliscript_value_1) => (__eliscript_truthy(__eliscript_value_1) ? ((source)["length"] > 0) : __eliscript_value_1))((typeof source === "string"))))) ? evaluation_fail("evaluation source must be a non-empty string", filename) : null);
|
|
42
|
+
return source;
|
|
43
|
+
}
|
|
44
|
+
function evaluation_require_filename(filename) {
|
|
45
|
+
(__eliscript_truthy((!__eliscript_truthy(((__eliscript_value_2) => (__eliscript_truthy(__eliscript_value_2) ? ((filename)["length"] > 0) : __eliscript_value_2))((typeof filename === "string"))))) ? evaluation_fail("evaluation filename must be a non-empty string", false) : null);
|
|
46
|
+
return filename;
|
|
47
|
+
}
|
|
48
|
+
function evaluation_input_result(status, filename) {
|
|
49
|
+
return (globalThis.Object)["freeze"](({"format": evaluation_input_format, "version": evaluation_input_version, "status": status, "filename": filename}));
|
|
50
|
+
}
|
|
51
|
+
function evaluation_input_description(source, filename) {
|
|
52
|
+
evaluation_require_filename(filename);
|
|
53
|
+
(__eliscript_truthy((!__eliscript_truthy((typeof source === "string")))) ? evaluation_fail("evaluation input source must be a string", filename) : null);
|
|
54
|
+
return (() => {
|
|
55
|
+
try {
|
|
56
|
+
return ((forms) => {
|
|
57
|
+
return (__eliscript_truthy(((forms)["length"] === 0)) ? evaluation_input_result("empty", filename) : (__eliscript_truthy(((forms)["length"] === 1)) ? evaluation_input_result("complete", filename) : evaluation_fail("interactive input must contain exactly one top-level form", filename)));
|
|
58
|
+
})(read_string(source, filename));
|
|
59
|
+
} catch (error) {
|
|
60
|
+
return ((diagnostic) => {
|
|
61
|
+
return (__eliscript_truthy(((__eliscript_value_3) => (__eliscript_truthy(__eliscript_value_3) ? ((__eliscript_value_4) => (__eliscript_truthy(__eliscript_value_4) ? (((diagnostic)["message"] ?? null) === "unexpected end of input") : __eliscript_value_4))((((diagnostic)["code"] ?? null) === "ELI-R0001")) : __eliscript_value_3))(diagnostic)) ? evaluation_input_result("incomplete", filename) : ((__eliscript_value_5) => { throw __eliscript_value_5; })(error));
|
|
62
|
+
})(((error)["eliscriptDiagnostic"] ?? null));
|
|
63
|
+
}
|
|
64
|
+
})();
|
|
65
|
+
}
|
|
66
|
+
function evaluation_operation_request(input) {
|
|
67
|
+
(__eliscript_truthy((!__eliscript_truthy(evaluation_object_p(input)))) ? evaluation_fail("evaluation operation request must be an object", false) : null);
|
|
68
|
+
((globalThis.Object)["keys"](input))["forEach"]((key) => {
|
|
69
|
+
return (__eliscript_truthy((!__eliscript_truthy((evaluation_operation_keys)["includes"](key)))) ? evaluation_fail((String("unknown evaluation operation key: ") + String(key)), false) : null);
|
|
70
|
+
});
|
|
71
|
+
return ((id) => {
|
|
72
|
+
return ((operation) => {
|
|
73
|
+
return (() => {
|
|
74
|
+
(__eliscript_truthy((!__eliscript_truthy(evaluation_id_p(id)))) ? evaluation_fail("evaluation operation id must be null, a non-empty string, or a non-negative safe integer", false) : null);
|
|
75
|
+
(__eliscript_truthy((!__eliscript_truthy((["describe", "evaluate", "load", "reset"])["includes"](operation)))) ? evaluation_fail("evaluation operation must be describe, evaluate, load, or reset", false) : null);
|
|
76
|
+
return (__eliscript_truthy(((__eliscript_value_6) => (__eliscript_truthy(__eliscript_value_6) ? __eliscript_value_6 : (operation === "load")))((operation === "evaluate"))) ? ((filename) => {
|
|
77
|
+
return ((source) => {
|
|
78
|
+
return ((root) => {
|
|
79
|
+
return ((line) => {
|
|
80
|
+
return ((column) => {
|
|
81
|
+
return (() => {
|
|
82
|
+
(__eliscript_truthy((!__eliscript_truthy(((__eliscript_value_7) => (__eliscript_truthy(__eliscript_value_7) ? __eliscript_value_7 : ((__eliscript_value_8) => (__eliscript_truthy(__eliscript_value_8) ? ((root)["length"] > 0) : __eliscript_value_8))((typeof root === "string"))))((root === null))))) ? evaluation_fail("evaluation root must be null or a non-empty string", filename) : null);
|
|
83
|
+
(__eliscript_truthy((!__eliscript_truthy(evaluation_positive_integer_p(line)))) ? evaluation_fail("evaluation line must be a positive safe integer", filename) : null);
|
|
84
|
+
(__eliscript_truthy((!__eliscript_truthy(evaluation_positive_integer_p(column)))) ? evaluation_fail("evaluation column must be a positive safe integer", filename) : null);
|
|
85
|
+
return (globalThis.Object)["freeze"](({"format": evaluation_operation_format, "version": evaluation_operation_version, "id": id, "operation": operation, "source": source, "filename": filename, "root": root, "line": line, "column": column}));
|
|
86
|
+
})();
|
|
87
|
+
})(evaluation_object_field(input, "column", 1));
|
|
88
|
+
})(evaluation_object_field(input, "line", 1));
|
|
89
|
+
})(evaluation_object_field(input, "root", null));
|
|
90
|
+
})(evaluation_require_source((input)["source"], filename));
|
|
91
|
+
})(evaluation_require_filename((input)["filename"])) : (() => {
|
|
92
|
+
(__eliscript_truthy(((__eliscript_value_9) => (__eliscript_truthy(__eliscript_value_9) ? __eliscript_value_9 : ((__eliscript_value_10) => (__eliscript_truthy(__eliscript_value_10) ? __eliscript_value_10 : ((__eliscript_value_11) => (__eliscript_truthy(__eliscript_value_11) ? __eliscript_value_11 : ((__eliscript_value_12) => (__eliscript_truthy(__eliscript_value_12) ? __eliscript_value_12 : (globalThis.Object)["hasOwn"](input, "column")))((globalThis.Object)["hasOwn"](input, "line"))))((globalThis.Object)["hasOwn"](input, "root"))))((globalThis.Object)["hasOwn"](input, "filename"))))((globalThis.Object)["hasOwn"](input, "source"))) ? evaluation_fail((String(operation) + String(" evaluation operation does not accept source fields")), false) : null);
|
|
93
|
+
return (globalThis.Object)["freeze"](({"format": evaluation_operation_format, "version": evaluation_operation_version, "id": id, "operation": operation}));
|
|
94
|
+
})());
|
|
95
|
+
})();
|
|
96
|
+
})((input)["operation"]);
|
|
97
|
+
})(evaluation_object_field(input, "id", null));
|
|
98
|
+
}
|
|
99
|
+
function evaluation_form_head(form) {
|
|
100
|
+
return (__eliscript_truthy(((form)["kind"] === "list")) ? ((items) => {
|
|
101
|
+
return (__eliscript_truthy(((items)["length"] > 0)) ? ((head) => {
|
|
102
|
+
return (__eliscript_truthy(((head)["kind"] === "symbol")) ? (head)["name"] : false);
|
|
103
|
+
})(((((items) ?? [])[0]) ?? null)) : false);
|
|
104
|
+
})((form)["items"]) : false);
|
|
105
|
+
}
|
|
106
|
+
function evaluation_form_description(source, filename) {
|
|
107
|
+
evaluation_require_filename(filename);
|
|
108
|
+
evaluation_require_source(source, filename);
|
|
109
|
+
return ((forms) => {
|
|
110
|
+
(__eliscript_truthy((!__eliscript_truthy(((forms)["length"] === 1)))) ? evaluation_fail("evaluate requires exactly one top-level form", filename) : null);
|
|
111
|
+
return ((form) => {
|
|
112
|
+
return ((head) => {
|
|
113
|
+
return ((definition) => {
|
|
114
|
+
return ((module_form) => {
|
|
115
|
+
return ((name) => {
|
|
116
|
+
return (() => {
|
|
117
|
+
(__eliscript_truthy(((__eliscript_value_15) => (__eliscript_truthy(__eliscript_value_15) ? (!__eliscript_truthy(name)) : __eliscript_value_15))(definition)) ? evaluation_fail((String(head) + String(" evaluation form requires a symbol name")), filename) : null);
|
|
118
|
+
return (globalThis.Object)["freeze"](({"format": evaluation_form_format, "version": evaluation_form_version, "kind": (__eliscript_truthy(definition) ? "definition" : (__eliscript_truthy(module_form) ? "module" : "expression")), "head": ((__eliscript_value_16) => (__eliscript_truthy(__eliscript_value_16) ? __eliscript_value_16 : null))(head), "name": ((__eliscript_value_17) => (__eliscript_truthy(__eliscript_value_17) ? __eliscript_value_17 : null))(name), "runtimeBinding": ((__eliscript_value_18) => (__eliscript_truthy(__eliscript_value_18) ? (!__eliscript_truthy((head === "defmacro"))) : __eliscript_value_18))(definition), "filename": filename}));
|
|
119
|
+
})();
|
|
120
|
+
})((__eliscript_truthy(definition) ? ((items) => {
|
|
121
|
+
return (__eliscript_truthy(((items)["length"] > 1)) ? ((candidate) => {
|
|
122
|
+
return (__eliscript_truthy(((candidate)["kind"] === "symbol")) ? (candidate)["name"] : false);
|
|
123
|
+
})(((((items) ?? [])[1]) ?? null)) : false);
|
|
124
|
+
})((form)["items"]) : false));
|
|
125
|
+
})(((__eliscript_value_14) => (__eliscript_truthy(__eliscript_value_14) ? (evaluation_module_heads)["includes"](head) : __eliscript_value_14))(head));
|
|
126
|
+
})(((__eliscript_value_13) => (__eliscript_truthy(__eliscript_value_13) ? (evaluation_definition_heads)["includes"](head) : __eliscript_value_13))(head));
|
|
127
|
+
})(evaluation_form_head(form));
|
|
128
|
+
})(((((forms) ?? [])[0]) ?? null));
|
|
129
|
+
})(read_string(source, filename));
|
|
130
|
+
}
|
|
131
|
+
function evaluation_add_name(names, seen, value) {
|
|
132
|
+
return (__eliscript_truthy(((__eliscript_value_19) => (__eliscript_truthy(__eliscript_value_19) ? ((__eliscript_value_20) => (__eliscript_truthy(__eliscript_value_20) ? (!__eliscript_truthy((seen)["has"](value))) : __eliscript_value_20))(((value)["length"] > 0)) : __eliscript_value_19))((typeof value === "string"))) ? (() => {
|
|
133
|
+
(seen)["add"](value);
|
|
134
|
+
return (names)["push"](value);
|
|
135
|
+
})() : null);
|
|
136
|
+
}
|
|
137
|
+
function evaluation_collect_ir_names(nodes, bindings, binding_set, exports, export_set) {
|
|
138
|
+
return (nodes)["forEach"]((node) => {
|
|
139
|
+
return ((kind) => {
|
|
140
|
+
return (__eliscript_truthy(((__eliscript_value_21) => (__eliscript_truthy(__eliscript_value_21) ? __eliscript_value_21 : (kind === "variable-declaration")))((kind === "function-declaration"))) ? evaluation_add_name(bindings, binding_set, (node)["value"]) : (__eliscript_truthy((kind === "import-declaration")) ? ((node)["children"])["forEach"]((child) => {
|
|
141
|
+
return (__eliscript_truthy(((child)["kind"] === "import-named")) ? evaluation_add_name(bindings, binding_set, (child)["value"]) : null);
|
|
142
|
+
}) : (__eliscript_truthy((kind === "export-declaration")) ? ((node)["children"])["forEach"]((child) => {
|
|
143
|
+
return evaluation_add_name(exports, export_set, (child)["value"]);
|
|
144
|
+
}) : (__eliscript_truthy((kind === "module-declaration")) ? evaluation_collect_ir_names((node)["children"], bindings, binding_set, exports, export_set) : null))));
|
|
145
|
+
})((node)["kind"]);
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function evaluation_collect_macro_sources(forms, source, result) {
|
|
149
|
+
return (forms)["forEach"]((form) => {
|
|
150
|
+
return ((head) => {
|
|
151
|
+
return (__eliscript_truthy((head === "defmacro")) ? ((span) => {
|
|
152
|
+
return (result)["push"]((source)["slice"]((span)["start"], (span)["end"]));
|
|
153
|
+
})((form)["span"]) : (__eliscript_truthy((head === "module")) ? evaluation_collect_macro_sources(((form)["items"])["slice"](2), source, result) : null));
|
|
154
|
+
})(evaluation_form_head(form));
|
|
155
|
+
});
|
|
156
|
+
}
|
|
157
|
+
function evaluation_module_description(source, filename) {
|
|
158
|
+
evaluation_require_filename(filename);
|
|
159
|
+
evaluation_require_source(source, filename);
|
|
160
|
+
return ((program) => {
|
|
161
|
+
return ((bindings) => {
|
|
162
|
+
return ((binding_set) => {
|
|
163
|
+
return ((exports) => {
|
|
164
|
+
return ((export_set) => {
|
|
165
|
+
return ((macro_sources) => {
|
|
166
|
+
return (() => {
|
|
167
|
+
evaluation_collect_ir_names((program)["body"], bindings, binding_set, exports, export_set);
|
|
168
|
+
evaluation_collect_macro_sources(read_string(source, filename), source, macro_sources);
|
|
169
|
+
(bindings)["sort"]();
|
|
170
|
+
(exports)["sort"]();
|
|
171
|
+
(globalThis.Object)["freeze"](bindings);
|
|
172
|
+
(globalThis.Object)["freeze"](exports);
|
|
173
|
+
(globalThis.Object)["freeze"](macro_sources);
|
|
174
|
+
return (globalThis.Object)["freeze"](({"format": evaluation_module_format, "version": evaluation_module_version, "filename": filename, "bindings": bindings, "exports": exports, "macroSources": macro_sources}));
|
|
175
|
+
})();
|
|
176
|
+
})([]);
|
|
177
|
+
})(new globalThis.Set());
|
|
178
|
+
})([]);
|
|
179
|
+
})(new globalThis.Set());
|
|
180
|
+
})([]);
|
|
181
|
+
})(compile_ir_string(source, filename));
|
|
182
|
+
}
|
|
183
|
+
function compile_string(source, filename) {
|
|
184
|
+
return emit_module(compile_ir_string(source, filename));
|
|
185
|
+
}
|
|
186
|
+
function compile_portable_ir_string(source, entries, filename, macro_context = null) {
|
|
187
|
+
return ((read_forms) => {
|
|
188
|
+
return ((expanded_forms) => {
|
|
189
|
+
return (() => {
|
|
190
|
+
analyze_module(expanded_forms, filename);
|
|
191
|
+
return lower_module(select_portable_module(expanded_forms, entries, filename), filename);
|
|
192
|
+
})();
|
|
193
|
+
})(expand_module(read_forms, filename, macro_context));
|
|
194
|
+
})(read_string(source, filename));
|
|
195
|
+
}
|
|
196
|
+
function compile_project_portable_ir_string(source, entries, filename, macro_context = null) {
|
|
197
|
+
return ((read_forms) => {
|
|
198
|
+
return ((expanded_forms) => {
|
|
199
|
+
return (() => {
|
|
200
|
+
analyze_module(expanded_forms, filename);
|
|
201
|
+
return lower_module(select_portable_module(expanded_forms, entries, filename, true), filename);
|
|
202
|
+
})();
|
|
203
|
+
})(expand_module(read_forms, filename, macro_context));
|
|
204
|
+
})(read_string(source, filename));
|
|
205
|
+
}
|
|
206
|
+
function emit_ir_string(program) {
|
|
207
|
+
return emit_module(program);
|
|
208
|
+
}
|
|
209
|
+
function serialize_ir_program(program) {
|
|
210
|
+
return serialize_program(program);
|
|
211
|
+
}
|
|
212
|
+
function deserialize_ir_program(source) {
|
|
213
|
+
return deserialize_program(source);
|
|
214
|
+
}
|
|
215
|
+
function emit_ir_string_with_source_map(program, source, generated_name, source_name) {
|
|
216
|
+
return emit_module_with_source_map(program, source, generated_name, source_name);
|
|
217
|
+
}
|
|
218
|
+
function compile_portable_string(source, entries, filename) {
|
|
219
|
+
return emit_module(compile_portable_ir_string(source, entries, filename));
|
|
220
|
+
}
|
|
221
|
+
function compile_portable_string_with_source_map(source, entries, filename, generated_name, source_name) {
|
|
222
|
+
return emit_module_with_source_map(compile_portable_ir_string(source, entries, filename), source, generated_name, ((__eliscript_value_22) => (__eliscript_truthy(__eliscript_value_22) ? __eliscript_value_22 : ((__eliscript_value_23) => (__eliscript_truthy(__eliscript_value_23) ? __eliscript_value_23 : "<string>"))(filename)))(source_name));
|
|
223
|
+
}
|
|
224
|
+
function compile_string_with_source_map(source, filename, generated_name, source_name) {
|
|
225
|
+
return emit_module_with_source_map(compile_ir_string(source, filename), source, generated_name, ((__eliscript_value_24) => (__eliscript_truthy(__eliscript_value_24) ? __eliscript_value_24 : ((__eliscript_value_25) => (__eliscript_truthy(__eliscript_value_25) ? __eliscript_value_25 : "<string>"))(filename)))(source_name));
|
|
226
|
+
}
|
|
227
|
+
export {compile_ir_string, compile_project_portable_ir_string, compile_string, compile_portable_ir_string, compile_portable_string, compile_portable_string_with_source_map, compile_string_with_source_map, emit_ir_string, emit_ir_string_with_source_map, serialize_ir_program, deserialize_ir_program, evaluation_operation_format, evaluation_operation_version, evaluation_operation_request, evaluation_input_format, evaluation_input_version, evaluation_input_description, evaluation_form_format, evaluation_form_version, evaluation_form_description, evaluation_module_format, evaluation_module_version, evaluation_module_description, formatter_format, formatter_version, formatter_width, formatter_indent, format_source, ir_format, ir_version, project_plan_format, project_plan_version, project_plan, portable_project_plan, project_build_report_format, project_build_report_version, project_build_report, project_request_format, project_request_version, project_request, project_configuration, build_operation_format, build_operation_version, build_operation_request, check_operation_format, check_operation_version, check_operation_request, project_check_report_format, project_check_report_version, project_check_report, project_cache_format, project_cache_version, project_cache_lookup, project_cache_decision};
|
|
228
|
+
//# sourceMappingURL=compiler.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"compiler.mjs","sources":["../../bootstrap/compiler/compiler.eli"],"sourcesContent":["(module bootstrap.compiler.compiler\n (import \"./reader.mjs\" read-string)\n (import \"./formatter.mjs\"\n formatter-format\n formatter-version\n formatter-width\n formatter-indent\n format-source)\n (import \"./expander.mjs\" expand-module)\n (import \"./analyzer.mjs\" analyze-module select-portable-module)\n (import \"./lower.mjs\" lower-module)\n (import \"./ir.mjs\" ir-format ir-version serialize-program deserialize-program)\n (import \"./emitter.mjs\" emit-module emit-module-with-source-map)\n (import \"./project.mjs\"\n project-plan-format\n project-plan-version\n project-plan\n portable-project-plan\n project-build-report-format\n project-build-report-version\n project-build-report\n project-request-format\n project-request-version\n project-request\n project-configuration\n build-operation-format\n build-operation-version\n build-operation-request\n check-operation-format\n check-operation-version\n check-operation-request\n project-check-report-format\n project-check-report-version\n project-check-report\n project-cache-format\n project-cache-version\n project-cache-lookup\n project-cache-decision)\n (defconst evaluation-operation-format \"eliscript-evaluation-operation\")\n (defconst evaluation-operation-version 1)\n (defconst evaluation-input-format \"eliscript-evaluation-input\")\n (defconst evaluation-input-version 1)\n (defconst evaluation-form-format \"eliscript-evaluation-form\")\n (defconst evaluation-form-version 1)\n (defconst evaluation-module-format \"eliscript-evaluation-module\")\n (defconst evaluation-module-version 1)\n (defconst evaluation-operation-keys\n (js-array \"id\" \"operation\" \"source\" \"filename\" \"root\" \"line\" \"column\"))\n (defconst evaluation-definition-heads\n (js-array\n \"defasync\" \"defconst\" \"defmacro\" \"defmulti\"\n \"defn\" \"defportable\" \"defprotocol\" \"defun\" \"defvar\"))\n (defconst evaluation-module-heads\n (js-array \"export\" \"export-default\" \"import\" \"import-portable\" \"module\"))\n (defconst evaluation-fail\n (js*\n \"(message, filename) => { const error = new Error(message); error.eliscriptDiagnostic = { format: 'eliscript-diagnostic', version: 1, code: 'ELI-E0001', severity: 'error', phase: 'evaluation-request', message, ...(filename ? { location: { file: filename } } : {}) }; throw error; }\"))\n (defconst evaluation-object-p\n (js*\n \"(value) => value !== null && typeof value === 'object' && !Array.isArray(value)\"))\n (defconst evaluation-id-p\n (js*\n \"(value) => value === null || (typeof value === 'string' && value.length > 0) || (Number.isSafeInteger(value) && value >= 0)\"))\n (defconst evaluation-positive-integer-p\n (js* \"(value) => Number.isSafeInteger(value) && value >= 1\"))\n (defun compile-ir-string\n (source filename &optional macro-context)\n (let*\n ((read-forms (read-string source filename))\n (expanded-forms (expand-module read-forms filename macro-context)))\n (analyze-module expanded-forms filename)\n (lower-module expanded-forms filename)))\n (defun evaluation-object-field\n (value key fallback)\n (if (js-call globalThis.Object :hasOwn value key) (get value key) fallback))\n (defun evaluation-require-source\n (source filename)\n (unless (and (= (js* \"typeof source\") \"string\") (> (get source :length) 0))\n (funcall evaluation-fail \"evaluation source must be a non-empty string\" filename))\n source)\n (defun evaluation-require-filename\n (filename)\n (unless (and (= (js* \"typeof filename\") \"string\") (> (get filename :length) 0))\n (funcall evaluation-fail \"evaluation filename must be a non-empty string\" false))\n filename)\n (defun evaluation-input-result\n (status filename)\n (js-call\n globalThis.Object\n :freeze\n (js-object\n :format\n evaluation-input-format\n :version\n evaluation-input-version\n :status\n status\n :filename\n filename)))\n (defun evaluation-input-description\n (source filename)\n (evaluation-require-filename filename)\n (unless (= (js* \"typeof source\") \"string\")\n (funcall evaluation-fail \"evaluation input source must be a string\" filename))\n (try\n (let ((forms (read-string source filename)))\n (cond ((= (get forms :length) 0) (evaluation-input-result \"empty\" filename))\n ((= (get forms :length) 1) (evaluation-input-result \"complete\" filename))\n (t\n (funcall\n evaluation-fail\n \"interactive input must contain exactly one top-level form\"\n filename))))\n (catch error\n (let ((diagnostic (get error :eliscriptDiagnostic nil)))\n (if\n (and\n diagnostic\n (= (get diagnostic :code nil) \"ELI-R0001\")\n (= (get diagnostic :message nil) \"unexpected end of input\"))\n (evaluation-input-result \"incomplete\" filename)\n (throw error))))))\n (defun evaluation-operation-request\n (input)\n (unless (funcall evaluation-object-p input)\n (funcall evaluation-fail \"evaluation operation request must be an object\" false))\n (js-call\n (js-call globalThis.Object :keys input)\n :forEach\n (lambda\n (key)\n (unless (js-call evaluation-operation-keys :includes key)\n (funcall evaluation-fail (str \"unknown evaluation operation key: \" key) false))))\n (let*\n ((id (evaluation-object-field input \"id\" (js* \"null\")))\n (operation (get input :operation)))\n (unless (funcall evaluation-id-p id)\n (funcall\n evaluation-fail\n \"evaluation operation id must be null, a non-empty string, or a non-negative safe integer\"\n false))\n (unless\n (js-call (js-array \"describe\" \"evaluate\" \"load\" \"reset\") :includes operation)\n (funcall\n evaluation-fail\n \"evaluation operation must be describe, evaluate, load, or reset\"\n false))\n (if (or (= operation \"evaluate\") (= operation \"load\"))\n (let*\n ((filename (evaluation-require-filename (get input :filename)))\n (source (evaluation-require-source (get input :source) filename))\n (root (evaluation-object-field input \"root\" (js* \"null\")))\n (line (evaluation-object-field input \"line\" 1))\n (column (evaluation-object-field input \"column\" 1)))\n (unless\n (or\n (nil? root)\n (and (= (js* \"typeof root\") \"string\") (> (get root :length) 0)))\n (funcall\n evaluation-fail\n \"evaluation root must be null or a non-empty string\"\n filename))\n (unless (funcall evaluation-positive-integer-p line)\n (funcall\n evaluation-fail\n \"evaluation line must be a positive safe integer\"\n filename))\n (unless (funcall evaluation-positive-integer-p column)\n (funcall\n evaluation-fail\n \"evaluation column must be a positive safe integer\"\n filename))\n (js-call\n globalThis.Object\n :freeze\n (js-object\n :format\n evaluation-operation-format\n :version\n evaluation-operation-version\n :id\n id\n :operation\n operation\n :source\n source\n :filename\n filename\n :root\n root\n :line\n line\n :column\n column)))\n (progn\n (when\n (or\n (js-call globalThis.Object :hasOwn input \"source\")\n (js-call globalThis.Object :hasOwn input \"filename\")\n (js-call globalThis.Object :hasOwn input \"root\")\n (js-call globalThis.Object :hasOwn input \"line\")\n (js-call globalThis.Object :hasOwn input \"column\"))\n (funcall\n evaluation-fail\n (str operation \" evaluation operation does not accept source fields\")\n false))\n (js-call\n globalThis.Object\n :freeze\n (js-object\n :format\n evaluation-operation-format\n :version\n evaluation-operation-version\n :id\n id\n :operation\n operation))))))\n (defun evaluation-form-head\n (form)\n (if (= (get form :kind) \"list\")\n (let ((items (get form :items)))\n (if (> (get items :length) 0)\n (let ((head (js-nth 0 items)))\n (if (= (get head :kind) \"symbol\") (get head :name) false))\n false))\n false))\n (defun evaluation-form-description\n (source filename)\n (evaluation-require-filename filename)\n (evaluation-require-source source filename)\n (let ((forms (read-string source filename)))\n (unless (= (get forms :length) 1)\n (funcall\n evaluation-fail\n \"evaluate requires exactly one top-level form\"\n filename))\n (let*\n ((form (js-nth 0 forms))\n (head (evaluation-form-head form))\n (definition (and head (js-call evaluation-definition-heads :includes head)))\n (module-form (and head (js-call evaluation-module-heads :includes head)))\n (name\n (if definition\n (let ((items (get form :items)))\n (if (> (get items :length) 1)\n (let ((candidate (js-nth 1 items)))\n (if (= (get candidate :kind) \"symbol\") (get candidate :name) false))\n false))\n false)))\n (when (and definition (not name))\n (funcall\n evaluation-fail\n (str head \" evaluation form requires a symbol name\")\n filename))\n (js-call\n globalThis.Object\n :freeze\n (js-object\n :format\n evaluation-form-format\n :version\n evaluation-form-version\n :kind\n (cond (definition \"definition\") (module-form \"module\") (t \"expression\"))\n :head\n (or head (js* \"null\"))\n :name\n (or name (js* \"null\"))\n :runtimeBinding\n (and definition (not (= head \"defmacro\")))\n :filename\n filename)))))\n (defun evaluation-add-name\n (names seen value)\n (when\n (and\n (= (js* \"typeof value\") \"string\")\n (> (get value :length) 0)\n (not (js-call seen :has value)))\n (js-call seen :add value)\n (js-call names :push value)))\n (defun evaluation-collect-ir-names\n (nodes bindings binding-set exports export-set)\n (js-call\n nodes\n :forEach\n (lambda\n (node)\n (let ((kind (get node :kind)))\n (cond\n ((or (= kind \"function-declaration\") (= kind \"variable-declaration\"))\n (evaluation-add-name bindings binding-set (get node :value)))\n ((= kind \"import-declaration\")\n (js-call\n (get node :children)\n :forEach\n (lambda\n (child)\n (when (= (get child :kind) \"import-named\")\n (evaluation-add-name bindings binding-set (get child :value))))))\n ((= kind \"export-declaration\")\n (js-call\n (get node :children)\n :forEach\n (lambda\n (child)\n (evaluation-add-name exports export-set (get child :value)))))\n ((= kind \"module-declaration\")\n (evaluation-collect-ir-names\n (get node :children)\n bindings\n binding-set\n exports\n export-set)))))))\n (defun evaluation-collect-macro-sources\n (forms source result)\n (js-call\n forms\n :forEach\n (lambda\n (form)\n (let ((head (evaluation-form-head form)))\n (cond\n ((= head \"defmacro\")\n (let ((span (get form :span)))\n (js-call\n result\n :push\n (js-call source :slice (get span :start) (get span :end)))))\n ((= head \"module\")\n (evaluation-collect-macro-sources\n (js-call (get form :items) :slice 2)\n source\n result)))))))\n (defun evaluation-module-description\n (source filename)\n (evaluation-require-filename filename)\n (evaluation-require-source source filename)\n (let*\n ((program (compile-ir-string source filename))\n (bindings (js-array))\n (binding-set (new globalThis.Set))\n (exports (js-array))\n (export-set (new globalThis.Set))\n (macro-sources (js-array)))\n (evaluation-collect-ir-names\n (get program :body)\n bindings\n binding-set\n exports\n export-set)\n (evaluation-collect-macro-sources\n (read-string source filename)\n source\n macro-sources)\n (js-call bindings :sort)\n (js-call exports :sort)\n (js-call globalThis.Object :freeze bindings)\n (js-call globalThis.Object :freeze exports)\n (js-call globalThis.Object :freeze macro-sources)\n (js-call\n globalThis.Object\n :freeze\n (js-object\n :format\n evaluation-module-format\n :version\n evaluation-module-version\n :filename\n filename\n :bindings\n bindings\n :exports\n exports\n :macroSources\n macro-sources))))\n (defun compile-string\n (source filename)\n (emit-module (compile-ir-string source filename)))\n (defun compile-portable-ir-string\n (source entries filename &optional macro-context)\n (let*\n ((read-forms (read-string source filename))\n (expanded-forms (expand-module read-forms filename macro-context)))\n (analyze-module expanded-forms filename)\n (lower-module (select-portable-module expanded-forms entries filename) filename)))\n (defun compile-project-portable-ir-string\n (source entries filename &optional macro-context)\n (let*\n ((read-forms (read-string source filename))\n (expanded-forms (expand-module read-forms filename macro-context)))\n (analyze-module expanded-forms filename)\n (lower-module (select-portable-module expanded-forms entries filename t) filename)))\n (defun emit-ir-string (program) (emit-module program))\n (defun serialize-ir-program (program) (serialize-program program))\n (defun deserialize-ir-program (source) (deserialize-program source))\n (defun emit-ir-string-with-source-map\n (program source generated-name source-name)\n (emit-module-with-source-map program source generated-name source-name))\n (defun compile-portable-string\n (source entries filename)\n (emit-module (compile-portable-ir-string source entries filename)))\n (defun compile-portable-string-with-source-map\n (source entries filename generated-name source-name)\n (emit-module-with-source-map\n (compile-portable-ir-string source entries filename)\n source\n generated-name\n (or source-name filename \"<string>\")))\n (defun compile-string-with-source-map\n (source filename generated-name source-name)\n (emit-module-with-source-map\n (compile-ir-string source filename)\n source\n generated-name\n (or source-name filename \"<string>\")))\n (export\n compile-ir-string\n compile-project-portable-ir-string\n compile-string\n compile-portable-ir-string\n compile-portable-string\n compile-portable-string-with-source-map\n compile-string-with-source-map\n emit-ir-string\n emit-ir-string-with-source-map\n serialize-ir-program\n deserialize-ir-program\n evaluation-operation-format\n evaluation-operation-version\n evaluation-operation-request\n evaluation-input-format\n evaluation-input-version\n evaluation-input-description\n evaluation-form-format\n evaluation-form-version\n evaluation-form-description\n evaluation-module-format\n evaluation-module-version\n evaluation-module-description\n formatter-format\n formatter-version\n formatter-width\n formatter-indent\n format-source\n ir-format\n ir-version\n project-plan-format\n project-plan-version\n project-plan\n portable-project-plan\n project-build-report-format\n project-build-report-version\n project-build-report\n project-request-format\n project-request-version\n project-request\n project-configuration\n build-operation-format\n build-operation-version\n build-operation-request\n check-operation-format\n check-operation-version\n check-operation-request\n project-check-report-format\n project-check-report-version\n project-check-report\n project-cache-format\n project-cache-version\n project-cache-lookup\n project-cache-decision))\n"],"names":[],"mappings":";;;AACE,QAAuB;AACvB,QACE,kBACA,mBACA,iBACA,kBACA;AACF,QAAyB;AACzB,QAAyB,gBAAe;AACxC,QAAsB;AACtB,QAAmB,WAAU,YAAW,mBAAkB;AAC1D,QAAwB,aAAY;AACpC,QACE,qBACA,sBACA,cACA,uBACA,6BACA,8BACA,sBACA,wBACA,yBACA,iBACA,uBACA,wBACA,yBACA,yBACA,wBACA,yBACA,yBACA,6BACA,8BACA,sBACA,sBACA,uBACA,sBACA;AACF,oCAAsC;AACtC,qCAAuC;AACvC,gCAAkC;AAClC,iCAAmC;AACnC,+BAAiC;AACjC,gCAAkC;AAClC,iCAAmC;AACnC,kCAAoC;AACpC,kCACE,CAAU,MAAK,aAAY,UAAS,YAAW,QAAO,QAAO;AAC/D,oCACE,CACE,YAAW,YAAW,YAAW,YACjC,QAAO,eAAc,eAAc,SAAQ;AAC/C,gCACE,CAAU,UAAS,kBAAiB,UAAS,mBAAkB;AACjE,wBACE;AAEF,4BACE;AAEF,wBACE;AAEF,sCACE;AACF,2BACG,QAAO,UAAmB;SAC3B,EACG;aACC;;QACD,eAAe,gBAAe;eAC9B,aAAa,gBAAe;;OAFV,cAAc,YAAW,UAAS;KADvC,YAAY,QAAO;;AAIrC,iCACG,OAAM,KAAI;SACX,oBAAI,CAAS,mBAAkB,UAAQ,OAAM,QAAK,CAAK,OAAM,OAAK;;AACpE,mCACG,QAAO;EACR,yCAAQ,qEAAwC,CAAG,CAAK,QAAO,YAAS,2BAA3D,CAAG,kBAAsB,gBAC3B,gBAAgB,gDAA+C;SAC1E;;AACF,qCACG;EACD,yCAAQ,qEAA0C,CAAG,CAAK,UAAS,YAAS,2BAA/D,CAAG,oBAAwB,gBAC7B,gBAAgB,kDAAiD;SAC5E;;AACF,iCACG,QAAO;SACR,CACE,mBACA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