@oscloudlab/knowledge-card 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/abap-bNFqRLO1.js +84 -0
- package/dist/abnf-hvXtkKLY.js +87 -0
- package/dist/actionscript-6i80VbAv.js +43 -0
- package/dist/ada-CiSKRw34.js +52 -0
- package/dist/agda-BELchEdZ.js +56 -0
- package/dist/al-DkPZllof.js +56 -0
- package/dist/antlr4-D6U2qvIr.js +96 -0
- package/dist/apacheconf-DoADUQkC.js +80 -0
- package/dist/apex-Dwxgykqz.js +104 -0
- package/dist/apl-n43gQAL3.js +65 -0
- package/dist/applescript-DUNzhl2t.js +50 -0
- package/dist/aql-BNnsomU8.js +82 -0
- package/dist/arduino-Ctiiir5A.js +41 -0
- package/dist/arff-CF3A9Ff-.js +43 -0
- package/dist/asciidoc-BORHAu3L.js +240 -0
- package/dist/asm6502-OhJaS22O.js +62 -0
- package/dist/asmatmel-CG3mJBJs.js +74 -0
- package/dist/aspnet-Bgu9cVxS.js +83 -0
- package/dist/autohotkey-BMzF8w3W.js +64 -0
- package/dist/autoit-BUz7W_A-.js +67 -0
- package/dist/avisynth-D_5DsX9W.js +195 -0
- package/dist/avro-idl-DXBF-8pT.js +74 -0
- package/dist/bash-0-vitIuH.js +223 -0
- package/dist/bash-CmPTK8K6.js +26 -0
- package/dist/basic-CBrKUqQp.js +28 -0
- package/dist/basic-CgjK_kM4.js +26 -0
- package/dist/batch-DDuJqYDJ.js +125 -0
- package/dist/bbcode-BBBJW4h9.js +60 -0
- package/dist/bicep-B7Vet2aR.js +102 -0
- package/dist/birb-DPs12VRI.js +53 -0
- package/dist/bison-BKvEoKEG.js +73 -0
- package/dist/bnf-CaE0Bt3T.js +52 -0
- package/dist/brainfuck-GdsepcND.js +53 -0
- package/dist/brightscript-CaQ-B4pE.js +76 -0
- package/dist/bro-C_rmjGgn.js +60 -0
- package/dist/bsl-DQhyt9j4.js +101 -0
- package/dist/c-D8-laUL_.js +26 -0
- package/dist/c-b2c4WJSm.js +83 -0
- package/dist/cfscript-DcwVkFDX.js +71 -0
- package/dist/chaiscript-C1jdPAs0.js +89 -0
- package/dist/cil-C54xDxMg.js +52 -0
- package/dist/clike-D8ff3B0t.js +61 -0
- package/dist/clojure-BtKUzyKV.js +63 -0
- package/dist/cmake-CcFmEv5M.js +62 -0
- package/dist/cobol-SnYz3b9P.js +82 -0
- package/dist/coffeescript-CKJzYVhc.js +110 -0
- package/dist/concurnas-C6YKMKIG.js +90 -0
- package/dist/coq-AH1nKVcq.js +81 -0
- package/dist/core-CcwoL92f.js +1712 -0
- package/dist/cpp-Bh1PKWEj.js +26 -0
- package/dist/cpp-C0j-5811.js +115 -0
- package/dist/crystal-ByWjq0Om.js +87 -0
- package/dist/csharp-BmDeN1AH.js +388 -0
- package/dist/csharp-C-RIlwgF.js +26 -0
- package/dist/cshtml-BX2903vs.js +134 -0
- package/dist/csp-BKqyZN9w.js +90 -0
- package/dist/css-9KZNpeR_.js +90 -0
- package/dist/css-extras-DWWoGQa1.js +139 -0
- package/dist/csv-6jawsFvm.js +37 -0
- package/dist/cypher-GT5Ln_K4.js +65 -0
- package/dist/d-DQuNeOB7.js +109 -0
- package/dist/dart-CHER8X1l.js +101 -0
- package/dist/dataweave-DL_Y2LqP.js +73 -0
- package/dist/dax-D27J9qU6.js +60 -0
- package/dist/dhall-C-Dtjrdj.js +95 -0
- package/dist/diff-Dg1kV9wC.js +78 -0
- package/dist/django-LEJ_YyjH.js +81 -0
- package/dist/dns-zone-file-CX7rXdX2.js +64 -0
- package/dist/docker-CtY3JCLx.js +127 -0
- package/dist/dot-od_DZdpT.js +102 -0
- package/dist/ebnf-DIuzViAe.js +53 -0
- package/dist/editorconfig-CX02cRV5.js +60 -0
- package/dist/eiffel-D3XUiBw2.js +67 -0
- package/dist/ejs-2AfMOM5A.js +58 -0
- package/dist/elixir-722y_YPp.js +129 -0
- package/dist/elm-CIyhdE5y.js +78 -0
- package/dist/erb-B4chbVqA.js +60 -0
- package/dist/erlang-DxizlpkP.js +76 -0
- package/dist/etlua-D_9hun9v.js +58 -0
- package/dist/excel-formula-CmpI_82m.js +95 -0
- package/dist/factor-krg_8lb-.js +949 -0
- package/dist/false-B2gdCewG.js +60 -0
- package/dist/firestore-security-rules-xige90gq.js +67 -0
- package/dist/flow-bpD4sbhm.js +57 -0
- package/dist/fortran-B4crZzNk.js +73 -0
- package/dist/fsharp-BnvVN9HC.js +105 -0
- package/dist/ftl-BoWDVp6s.js +146 -0
- package/dist/gap-DxJ82BxA.js +78 -0
- package/dist/gcode-u6kBGAFD.js +49 -0
- package/dist/gdscript-DvuFm0WL.js +60 -0
- package/dist/gedcom-D6YNHC5R.js +61 -0
- package/dist/gherkin-DhC07ENE.js +115 -0
- package/dist/git-5vwNu_fL.js +96 -0
- package/dist/glsl-BGzQvWQa.js +39 -0
- package/dist/gml-DQQsqa0X.js +40 -0
- package/dist/gn-Bz3fehJS.js +76 -0
- package/dist/go-DQVNbr0F.js +57 -0
- package/dist/go-module-DAdBkEV6.js +55 -0
- package/dist/graphql-b5aI1fau.js +154 -0
- package/dist/groovy-C4Zi8h0f.js +82 -0
- package/dist/haml-B9jL77OH.js +172 -0
- package/dist/handlebars-BWszzUxR.js +74 -0
- package/dist/haskell-BrIvnyGx.js +26 -0
- package/dist/haskell-DR6jYji5.js +75 -0
- package/dist/haxe-DUpmVd5P.js +105 -0
- package/dist/hcl-CLqVpYtA.js +93 -0
- package/dist/hlsl-CsYJVSWg.js +55 -0
- package/dist/hoon-D0TgxHvB.js +47 -0
- package/dist/hpkp-BiU-mQjG.js +41 -0
- package/dist/hsts-DE54dR1b.js +41 -0
- package/dist/http-CfgOm4UI.js +155 -0
- package/dist/ichigojam-CVZ6Aj_t.js +46 -0
- package/dist/icon-CekiVVmc.js +53 -0
- package/dist/icu-message-format-CJA9loKb.js +165 -0
- package/dist/idris-KG9ztadM.js +51 -0
- package/dist/iecst-wFMMjMpf.js +65 -0
- package/dist/ignore-Byv4NN_B.js +51 -0
- package/dist/index-Sj89RFCY.js +136569 -0
- package/dist/index.esm.js +2 -683
- package/dist/index.umd.js +1611 -15
- package/dist/inform7-YsL-LiaC.js +90 -0
- package/dist/ini-ChNiYeuM.js +73 -0
- package/dist/io-BzLClKN_.js +55 -0
- package/dist/j-BuLAn7Gf.js +61 -0
- package/dist/java-3PJ6FLyt.js +26 -0
- package/dist/java-DYIb7l3j.js +98 -0
- package/dist/javadoc-BnSaiIyg.js +118 -0
- package/dist/javadoclike-BSqXhy54.js +26 -0
- package/dist/javadoclike-CHbTYI14.js +59 -0
- package/dist/javascript-Cl708kfq.js +152 -0
- package/dist/javastacktrace-DVGIqwxN.js +167 -0
- package/dist/jexl-DMjq6Vaw.js +47 -0
- package/dist/jolie-DXoSR52A.js +72 -0
- package/dist/jq-Dp1c5kuj.js +100 -0
- package/dist/js-extras-DJfB1MC8.js +150 -0
- package/dist/js-templates--GrCX2F1.js +197 -0
- package/dist/jsdoc-vErSu9Cr.js +116 -0
- package/dist/json-BW8KBIeJ.js +35 -0
- package/dist/json-BefNJCW-.js +26 -0
- package/dist/json5-CsdIXkOZ.js +56 -0
- package/dist/jsonp-Dz_5Lt-E.js +41 -0
- package/dist/jsstacktrace-DbBQ3Cv7.js +74 -0
- package/dist/jsx-Bv5_R7Yd.js +26 -0
- package/dist/jsx-FTe7XA1B.js +77 -0
- package/dist/julia-CoYGw2IR.js +68 -0
- package/dist/keepalived-CPWdwddz.js +81 -0
- package/dist/keyman-DNslP0Yy.js +76 -0
- package/dist/kotlin-CbZgjbyh.js +108 -0
- package/dist/kumir-Q_jLwxfZ.js +120 -0
- package/dist/kusto-dM9uOfWk.js +71 -0
- package/dist/latex-Bfeq39tO.js +92 -0
- package/dist/latte-CFxOlcdj.js +101 -0
- package/dist/less-DwfFB3qp.js +75 -0
- package/dist/lilypond-DaH_baew.js +104 -0
- package/dist/liquid-5rAVI9Ad.js +97 -0
- package/dist/lisp-Btc3xid7.js +194 -0
- package/dist/livescript-DQvJc3cA.js +150 -0
- package/dist/llvm-B7k0U20m.js +52 -0
- package/dist/log-B7ulCZCI.js +133 -0
- package/dist/lolcode-BEEMlfuU.js +81 -0
- package/dist/lua-BggcDXQp.js +31 -0
- package/dist/lua-D-T62TZ5.js +26 -0
- package/dist/magma-DAN3ZGAI.js +63 -0
- package/dist/makefile-Bjl-N6S3.js +63 -0
- package/dist/markdown-6Q2QSFJe.js +355 -0
- package/dist/markup-Bwuswjib.js +194 -0
- package/dist/markup-templating-BLspI5oq.js +26 -0
- package/dist/markup-templating-CVTxtFGH.js +77 -0
- package/dist/matlab-Bim6HLuO.js +46 -0
- package/dist/maxscript-BJqnafAC.js +97 -0
- package/dist/mel-C4iJe_aZ.js +74 -0
- package/dist/mermaid-DbKsw5IU.js +137 -0
- package/dist/mizar-DdUuEnQ0.js +45 -0
- package/dist/mongodb-C7OZqIiL.js +321 -0
- package/dist/monkey-CFQNpGhn.js +61 -0
- package/dist/moonscript-BDdCZd5M.js +87 -0
- package/dist/n1ql-C-ll6pgt.js +55 -0
- package/dist/n4js-DCLtuFdY.js +43 -0
- package/dist/nand2tetris-hdl-DJsK5r3l.js +42 -0
- package/dist/naniscript-DtHo8Sfl.js +165 -0
- package/dist/nasm-gJZT8LPh.js +57 -0
- package/dist/neon-SaMGcsnU.js +73 -0
- package/dist/nevod-Dqvto6vw.js +158 -0
- package/dist/nginx-Cp89qRQy.js +82 -0
- package/dist/nim-CdGVC6Mb.js +75 -0
- package/dist/nix-jnfiSyYI.js +69 -0
- package/dist/nsis-BZ4yPak6.js +58 -0
- package/dist/objectivec-B9lo2Gq2.js +44 -0
- package/dist/ocaml-DtZ_IyiS.js +88 -0
- package/dist/opencl-CtUznKol.js +83 -0
- package/dist/openqasm-BAmjbx7B.js +50 -0
- package/dist/oz-mvOvhn7u.js +61 -0
- package/dist/parigp-B5Xdmiju.js +81 -0
- package/dist/parser-Ct77dMe3.js +106 -0
- package/dist/pascal-Dwf-aqDs.js +95 -0
- package/dist/pascaligo-DWTvG1fw.js +115 -0
- package/dist/pcaxis-BUnNg5h_.js +84 -0
- package/dist/peoplecode-CewkQs1u.js +74 -0
- package/dist/perl-CmRi-uRU.js +164 -0
- package/dist/php-C_FrOCG4.js +334 -0
- package/dist/php-e7f7GtZ8.js +26 -0
- package/dist/php-extras-ATZDccPm.js +50 -0
- package/dist/phpdoc-uba1O-5-.js +61 -0
- package/dist/plsql-BLNilzVM.js +51 -0
- package/dist/powerquery-CddEWH0P.js +83 -0
- package/dist/powershell-SimxvdWh.js +88 -0
- package/dist/processing-IeXhsRmw.js +46 -0
- package/dist/prolog-CnTr7enQ.js +52 -0
- package/dist/promql-DpmXmCiA.js +120 -0
- package/dist/properties-BraQbkIL.js +42 -0
- package/dist/protobuf-BKmtm9wI.js +71 -0
- package/dist/psl-DfJLNMzA.js +68 -0
- package/dist/pug-C7olXkyh.js +212 -0
- package/dist/puppet-DMdAuQ_Z.js +167 -0
- package/dist/pure-BVQraXQo.js +111 -0
- package/dist/purebasic-DnAwivDW.js +87 -0
- package/dist/purescript-BBcUX3cf.js +62 -0
- package/dist/python-C9JXUpy2.js +94 -0
- package/dist/q-Ct9Ut4C4.js +83 -0
- package/dist/qml-DubjWeE3.js +103 -0
- package/dist/qore-CDjxpVlT.js +53 -0
- package/dist/qsharp-Dyr5mrma.js +128 -0
- package/dist/r-B4F2KUJL.js +55 -0
- package/dist/racket-D5k9UW-t.js +50 -0
- package/dist/reason-Cs82zJO7.js +54 -0
- package/dist/regex-Z8MvaNEm.js +124 -0
- package/dist/rego-CcGrxeab.js +58 -0
- package/dist/renpy-mByYQWSM.js +51 -0
- package/dist/rest-BoR9ZMoX.js +231 -0
- package/dist/rip-C3Bf4Bpl.js +62 -0
- package/dist/roboconf-1MYmsJJ7.js +60 -0
- package/dist/robotframework-fBSrPGHK.js +122 -0
- package/dist/ruby-BQlisu6i.js +182 -0
- package/dist/ruby-DRrUXRqW.js +26 -0
- package/dist/rust-DhUR7ICB.js +149 -0
- package/dist/sas-D7DM5vmM.js +362 -0
- package/dist/sass-B-3W9xmk.js +96 -0
- package/dist/scala-DmHnWeTz.js +80 -0
- package/dist/scheme-B-TWMKN_.js +122 -0
- package/dist/scheme-egHBLRqV.js +26 -0
- package/dist/scss-BU4D1BLj.js +106 -0
- package/dist/shell-session-6QFBv7G6.js +93 -0
- package/dist/smali-B48Y4QYt.js +112 -0
- package/dist/smalltalk-w59b04aF.js +71 -0
- package/dist/smarty-CnWvL-Ef.js +147 -0
- package/dist/sml-cUUD1qMQ.js +91 -0
- package/dist/solidity-Drt__SLk.js +49 -0
- package/dist/solution-file-CYG1BOQK.js +79 -0
- package/dist/soy-BZNQzgkB.js +112 -0
- package/dist/sparql-BQDndvZG.js +49 -0
- package/dist/splunk-spl-ezOLCJwA.js +57 -0
- package/dist/sqf-C83ezg-4.js +63 -0
- package/dist/sql-CVBSuRzU.js +26 -0
- package/dist/sql-qhcRp-Km.js +44 -0
- package/dist/squirrel-2r-3bEO_.js +74 -0
- package/dist/stan-D2wLHzr8.js +86 -0
- package/dist/style.css +1 -1
- package/dist/stylus-KkSvURTJ.js +165 -0
- package/dist/swift-c7528WsQ.js +152 -0
- package/dist/systemd-DWsV0AtP.js +88 -0
- package/dist/t4-cs-D7NmzTCB.js +38 -0
- package/dist/t4-templating-Bc9GyRcs.js +26 -0
- package/dist/t4-templating-yxm91MEk.js +56 -0
- package/dist/t4-vb-Df3tMe1Q.js +38 -0
- package/dist/tap-wFXvu_No.js +56 -0
- package/dist/tcl-BZqzhUcQ.js +79 -0
- package/dist/textile-DrTKyn7T.js +289 -0
- package/dist/toml-LVQpNmZe.js +86 -0
- package/dist/tremor-A_cxX8C4.js +90 -0
- package/dist/tsx-CQKNNLzi.js +46 -0
- package/dist/tt2-CPOtfoBh.js +78 -0
- package/dist/turtle-BjRE9oBS.js +26 -0
- package/dist/turtle-z6QfbtiY.js +61 -0
- package/dist/twig-Cz25rowk.js +72 -0
- package/dist/typescript--VNBoLO-.js +56 -0
- package/dist/typescript-Bx2QMcny.js +26 -0
- package/dist/typoscript-BdH7x5a4.js +109 -0
- package/dist/unrealscript-Cb8322pT.js +71 -0
- package/dist/uorazor-CHv0VHYn.js +81 -0
- package/dist/uri-ci9M926F.js +116 -0
- package/dist/v-DL4z_kNT.js +106 -0
- package/dist/vala-CPIzd5en.js +113 -0
- package/dist/vbnet-BoCvq106.js +26 -0
- package/dist/vbnet-ClfmYufs.js +36 -0
- package/dist/velocity-CBXhMUrK.js +99 -0
- package/dist/verilog-C1ZX-Tr8.js +59 -0
- package/dist/vhdl-CLlMgFjz.js +56 -0
- package/dist/vim-BuFUFT06.js +43 -0
- package/dist/visual-basic-CzPES6jG.js +59 -0
- package/dist/warpscript-C5YvStKz.js +54 -0
- package/dist/wasm-txCKMkgE.js +64 -0
- package/dist/web-idl-B4OgJf1y.js +118 -0
- package/dist/wiki-C6_DR7WK.js +110 -0
- package/dist/wolfram-D9ETP9M6.js +58 -0
- package/dist/wren-CkhJWcmB.js +121 -0
- package/dist/xeora-Cg3OrGlT.js +147 -0
- package/dist/xml-doc-C0mFvWUS.js +56 -0
- package/dist/xojo-CW6K9MHL.js +51 -0
- package/dist/xquery-B0ssbj_m.js +118 -0
- package/dist/yaml-S0xfBtlT.js +26 -0
- package/dist/yaml-hxc7aP7n.js +92 -0
- package/dist/yang-Dg6OSQ6Y.js +53 -0
- package/dist/zig-xuUtE8Pe.js +117 -0
- package/package.json +30 -4
- package/dist/index.d.ts +0 -2
|
@@ -0,0 +1,949 @@
|
|
|
1
|
+
import { g as b } from "./index-Sj89RFCY.js";
|
|
2
|
+
function h(r, a) {
|
|
3
|
+
for (var n = 0; n < a.length; n++) {
|
|
4
|
+
const t = a[n];
|
|
5
|
+
if (typeof t != "string" && !Array.isArray(t)) {
|
|
6
|
+
for (const e in t)
|
|
7
|
+
if (e !== "default" && !(e in r)) {
|
|
8
|
+
const s = Object.getOwnPropertyDescriptor(t, e);
|
|
9
|
+
s && Object.defineProperty(r, e, s.get ? s : {
|
|
10
|
+
enumerable: !0,
|
|
11
|
+
get: () => t[e]
|
|
12
|
+
});
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
|
|
17
|
+
}
|
|
18
|
+
var o, p;
|
|
19
|
+
function f() {
|
|
20
|
+
if (p) return o;
|
|
21
|
+
p = 1, o = r, r.displayName = "factor", r.aliases = [];
|
|
22
|
+
function r(a) {
|
|
23
|
+
(function(n) {
|
|
24
|
+
var t = {
|
|
25
|
+
function: /\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/
|
|
26
|
+
}, e = {
|
|
27
|
+
number: /\\[^\s']|%\w/
|
|
28
|
+
}, s = {
|
|
29
|
+
comment: [
|
|
30
|
+
{
|
|
31
|
+
// ! single-line exclamation point comments with whitespace after/around the !
|
|
32
|
+
pattern: /(^|\s)(?:! .*|!$)/,
|
|
33
|
+
lookbehind: !0,
|
|
34
|
+
inside: t
|
|
35
|
+
},
|
|
36
|
+
/* from basis/multiline: */
|
|
37
|
+
{
|
|
38
|
+
// /* comment */, /* comment*/
|
|
39
|
+
pattern: /(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,
|
|
40
|
+
lookbehind: !0,
|
|
41
|
+
greedy: !0,
|
|
42
|
+
inside: t
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
// ![[ comment ]] , ![===[ comment]===]
|
|
46
|
+
pattern: /(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,
|
|
47
|
+
lookbehind: !0,
|
|
48
|
+
greedy: !0,
|
|
49
|
+
inside: t
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
number: [
|
|
53
|
+
{
|
|
54
|
+
// basic base 10 integers 9, -9
|
|
55
|
+
pattern: /(^|\s)[+-]?\d+(?=\s|$)/,
|
|
56
|
+
lookbehind: !0
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
// base prefix integers 0b010 0o70 0xad 0d10 0XAD -0xa9
|
|
60
|
+
pattern: /(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,
|
|
61
|
+
lookbehind: !0
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
// fractional ratios 1/5 -1/5 and the literal float approximations 1/5. -1/5.
|
|
65
|
+
pattern: /(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,
|
|
66
|
+
lookbehind: !0
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
// positive mixed numbers 23+1/5 +23+1/5
|
|
70
|
+
pattern: /(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,
|
|
71
|
+
lookbehind: !0
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
// negative mixed numbers -23-1/5
|
|
75
|
+
pattern: /(^|\s)-\d+-\d+\/\d+(?=\s|$)/,
|
|
76
|
+
lookbehind: !0
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
// basic decimal floats -0.01 0. .0 .1 -.1 -1. -12.13 +12.13
|
|
80
|
+
// and scientific notation with base 10 exponents 3e4 3e-4 .3e-4
|
|
81
|
+
pattern: /(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,
|
|
82
|
+
lookbehind: !0
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
// NAN literal syntax NAN: 80000deadbeef, NAN: a
|
|
86
|
+
pattern: /(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,
|
|
87
|
+
lookbehind: !0
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
/*
|
|
91
|
+
base prefix floats 0x1.0p3 (8.0) 0b1.010p2 (5.0) 0x1.p1 0b1.11111111p11111...
|
|
92
|
+
"The normalized hex form ±0x1.MMMMMMMMMMMMM[pP]±EEEE allows any floating-point number to be specified precisely.
|
|
93
|
+
The values of MMMMMMMMMMMMM and EEEE map directly to the mantissa and exponent fields of the binary IEEE 754 representation."
|
|
94
|
+
<https://docs.factorcode.org/content/article-syntax-floats.html>
|
|
95
|
+
*/
|
|
96
|
+
pattern: /(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,
|
|
97
|
+
lookbehind: !0
|
|
98
|
+
}
|
|
99
|
+
],
|
|
100
|
+
// R/ regexp?\/\\/
|
|
101
|
+
regexp: {
|
|
102
|
+
pattern: /(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,
|
|
103
|
+
lookbehind: !0,
|
|
104
|
+
alias: "number",
|
|
105
|
+
inside: {
|
|
106
|
+
variable: /\\\S/,
|
|
107
|
+
keyword: /[+?*\[\]^$(){}.|]/,
|
|
108
|
+
operator: {
|
|
109
|
+
pattern: /(\/)[idmsr]+(?:-[idmsr]+)?/,
|
|
110
|
+
lookbehind: !0
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
boolean: {
|
|
115
|
+
pattern: /(^|\s)[tf](?=\s|$)/,
|
|
116
|
+
lookbehind: !0
|
|
117
|
+
},
|
|
118
|
+
// SBUF" asd", URL" ://...", P" /etc/"
|
|
119
|
+
"custom-string": {
|
|
120
|
+
pattern: /(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,
|
|
121
|
+
lookbehind: !0,
|
|
122
|
+
greedy: !0,
|
|
123
|
+
alias: "string",
|
|
124
|
+
inside: {
|
|
125
|
+
number: /\\\S|%\w|\//
|
|
126
|
+
}
|
|
127
|
+
},
|
|
128
|
+
"multiline-string": [
|
|
129
|
+
{
|
|
130
|
+
// STRING: name \n content \n ; -> CONSTANT: name "content" (symbol)
|
|
131
|
+
pattern: /(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,
|
|
132
|
+
lookbehind: !0,
|
|
133
|
+
greedy: !0,
|
|
134
|
+
alias: "string",
|
|
135
|
+
inside: {
|
|
136
|
+
number: e.number,
|
|
137
|
+
// trailing semicolon on its own line
|
|
138
|
+
"semicolon-or-setlocal": {
|
|
139
|
+
pattern: /([\r\n][ \t]*);(?=\s|$)/,
|
|
140
|
+
lookbehind: !0,
|
|
141
|
+
alias: "function"
|
|
142
|
+
}
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
// HEREDOC: marker \n content \n marker ; -> "content" (immediate)
|
|
147
|
+
pattern: /(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,
|
|
148
|
+
lookbehind: !0,
|
|
149
|
+
greedy: !0,
|
|
150
|
+
alias: "string",
|
|
151
|
+
inside: e
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
// [[ string ]], [==[ string]==]
|
|
155
|
+
pattern: /(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,
|
|
156
|
+
lookbehind: !0,
|
|
157
|
+
greedy: !0,
|
|
158
|
+
alias: "string",
|
|
159
|
+
inside: e
|
|
160
|
+
}
|
|
161
|
+
],
|
|
162
|
+
"special-using": {
|
|
163
|
+
pattern: /(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,
|
|
164
|
+
lookbehind: !0,
|
|
165
|
+
alias: "function",
|
|
166
|
+
inside: {
|
|
167
|
+
// this is essentially a regex for vocab names, which i don't want to specify
|
|
168
|
+
// but the USING: gets picked up as a vocab name
|
|
169
|
+
string: {
|
|
170
|
+
pattern: /(\s)[^:\s]+/,
|
|
171
|
+
lookbehind: !0
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
/* this description of stack effect literal syntax is not complete and not as specific as theoretically possible
|
|
176
|
+
trying to do better is more work and regex-computation-time than it's worth though.
|
|
177
|
+
- we'd like to have the "delimiter" parts of the stack effect [ (, --, and ) ] be a different (less-important or comment-like) colour to the stack effect contents
|
|
178
|
+
- we'd like if nested stack effects were treated as such rather than just appearing flat (with `inside`)
|
|
179
|
+
- we'd like if the following variable name conventions were recognised specifically:
|
|
180
|
+
special row variables = ..a b..
|
|
181
|
+
type and stack effect annotations end with a colon = ( quot: ( a: ( -- ) -- b ) -- x ), ( x: number -- )
|
|
182
|
+
word throws unconditional error = *
|
|
183
|
+
any other word-like variable name = a ? q' etc
|
|
184
|
+
https://docs.factorcode.org/content/article-effects.html
|
|
185
|
+
these are pretty complicated to highlight properly without a real parser, and therefore out of scope
|
|
186
|
+
the old pattern, which may be later useful, was: (^|\s)(?:call|execute|eval)?\((?:\s+[^"\r\n\t ]\S*)*?\s+--(?:\s+[^"\n\t ]\S*)*?\s+\)(?=\s|$)
|
|
187
|
+
*/
|
|
188
|
+
// current solution is not great
|
|
189
|
+
"stack-effect-delimiter": [
|
|
190
|
+
{
|
|
191
|
+
// opening parenthesis
|
|
192
|
+
pattern: /(^|\s)(?:call|eval|execute)?\((?=\s)/,
|
|
193
|
+
lookbehind: !0,
|
|
194
|
+
alias: "operator"
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
// middle --
|
|
198
|
+
pattern: /(\s)--(?=\s)/,
|
|
199
|
+
lookbehind: !0,
|
|
200
|
+
alias: "operator"
|
|
201
|
+
},
|
|
202
|
+
{
|
|
203
|
+
// closing parenthesis
|
|
204
|
+
pattern: /(\s)\)(?=\s|$)/,
|
|
205
|
+
lookbehind: !0,
|
|
206
|
+
alias: "operator"
|
|
207
|
+
}
|
|
208
|
+
],
|
|
209
|
+
combinators: {
|
|
210
|
+
pattern: null,
|
|
211
|
+
lookbehind: !0,
|
|
212
|
+
alias: "keyword"
|
|
213
|
+
},
|
|
214
|
+
"kernel-builtin": {
|
|
215
|
+
pattern: null,
|
|
216
|
+
lookbehind: !0,
|
|
217
|
+
alias: "variable"
|
|
218
|
+
},
|
|
219
|
+
"sequences-builtin": {
|
|
220
|
+
pattern: null,
|
|
221
|
+
lookbehind: !0,
|
|
222
|
+
alias: "variable"
|
|
223
|
+
},
|
|
224
|
+
"math-builtin": {
|
|
225
|
+
pattern: null,
|
|
226
|
+
lookbehind: !0,
|
|
227
|
+
alias: "variable"
|
|
228
|
+
},
|
|
229
|
+
"constructor-word": {
|
|
230
|
+
// <array> but not <=>
|
|
231
|
+
pattern: /(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,
|
|
232
|
+
lookbehind: !0,
|
|
233
|
+
alias: "keyword"
|
|
234
|
+
},
|
|
235
|
+
"other-builtin-syntax": {
|
|
236
|
+
pattern: null,
|
|
237
|
+
lookbehind: !0,
|
|
238
|
+
alias: "operator"
|
|
239
|
+
},
|
|
240
|
+
/*
|
|
241
|
+
full list of supported word naming conventions: (the convention appears outside of the [brackets])
|
|
242
|
+
set-[x]
|
|
243
|
+
change-[x]
|
|
244
|
+
with-[x]
|
|
245
|
+
new-[x]
|
|
246
|
+
>[string]
|
|
247
|
+
[base]>
|
|
248
|
+
[string]>[number]
|
|
249
|
+
+[symbol]+
|
|
250
|
+
[boolean-word]?
|
|
251
|
+
?[of]
|
|
252
|
+
[slot-reader]>>
|
|
253
|
+
>>[slot-setter]
|
|
254
|
+
[slot-writer]<<
|
|
255
|
+
([implementation-detail])
|
|
256
|
+
[mutater]!
|
|
257
|
+
[variant]*
|
|
258
|
+
[prettyprint].
|
|
259
|
+
$[help-markup]
|
|
260
|
+
<constructors>, SYNTAX:, etc are supported by their own patterns.
|
|
261
|
+
`with` and `new` from `kernel` are their own builtins.
|
|
262
|
+
see <https://docs.factorcode.org/content/article-conventions.html>
|
|
263
|
+
*/
|
|
264
|
+
"conventionally-named-word": {
|
|
265
|
+
pattern: /(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,
|
|
266
|
+
lookbehind: !0,
|
|
267
|
+
alias: "keyword"
|
|
268
|
+
},
|
|
269
|
+
"colon-syntax": {
|
|
270
|
+
pattern: /(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,
|
|
271
|
+
lookbehind: !0,
|
|
272
|
+
greedy: !0,
|
|
273
|
+
alias: "function"
|
|
274
|
+
},
|
|
275
|
+
"semicolon-or-setlocal": {
|
|
276
|
+
pattern: /(\s)(?:;|:>)(?=\s|$)/,
|
|
277
|
+
lookbehind: !0,
|
|
278
|
+
alias: "function"
|
|
279
|
+
},
|
|
280
|
+
// do not highlight leading } or trailing X{ at the begin/end of the file as it's invalid syntax
|
|
281
|
+
"curly-brace-literal-delimiter": [
|
|
282
|
+
{
|
|
283
|
+
// opening
|
|
284
|
+
pattern: /(^|\s)[a-z]*\{(?=\s)/i,
|
|
285
|
+
lookbehind: !0,
|
|
286
|
+
alias: "operator"
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
// closing
|
|
290
|
+
pattern: /(\s)\}(?=\s|$)/,
|
|
291
|
+
lookbehind: !0,
|
|
292
|
+
alias: "operator"
|
|
293
|
+
}
|
|
294
|
+
],
|
|
295
|
+
// do not highlight leading ] or trailing [ at the begin/end of the file as it's invalid syntax
|
|
296
|
+
"quotation-delimiter": [
|
|
297
|
+
{
|
|
298
|
+
// opening
|
|
299
|
+
pattern: /(^|\s)\[(?=\s)/,
|
|
300
|
+
lookbehind: !0,
|
|
301
|
+
alias: "operator"
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
// closing
|
|
305
|
+
pattern: /(\s)\](?=\s|$)/,
|
|
306
|
+
lookbehind: !0,
|
|
307
|
+
alias: "operator"
|
|
308
|
+
}
|
|
309
|
+
],
|
|
310
|
+
"normal-word": {
|
|
311
|
+
pattern: /(^|\s)[^"\s]\S*(?=\s|$)/,
|
|
312
|
+
lookbehind: !0
|
|
313
|
+
},
|
|
314
|
+
/*
|
|
315
|
+
basic first-class string "a"
|
|
316
|
+
with escaped double-quote "a\""
|
|
317
|
+
escaped backslash "\\"
|
|
318
|
+
and general escapes since Factor has so many "\N"
|
|
319
|
+
syntax that works in the reference implementation that isn't fully
|
|
320
|
+
supported because it's an implementation detail:
|
|
321
|
+
"string 1""string 2" -> 2 strings (works anyway)
|
|
322
|
+
"string"5 -> string, 5
|
|
323
|
+
"string"[ ] -> string, quotation
|
|
324
|
+
{ "a"} -> array<string>
|
|
325
|
+
the rest of those examples all properly recognise the string, but not
|
|
326
|
+
the other object (number, quotation, etc)
|
|
327
|
+
this is fine for a regex-only implementation.
|
|
328
|
+
*/
|
|
329
|
+
string: {
|
|
330
|
+
pattern: /"(?:\\\S|[^"\\])*"/,
|
|
331
|
+
greedy: !0,
|
|
332
|
+
inside: e
|
|
333
|
+
}
|
|
334
|
+
}, d = function(i) {
|
|
335
|
+
return (i + "").replace(/([.?*+\^$\[\]\\(){}|\-])/g, "\\$1");
|
|
336
|
+
}, l = function(i) {
|
|
337
|
+
return new RegExp("(^|\\s)(?:" + i.map(d).join("|") + ")(?=\\s|$)");
|
|
338
|
+
}, u = {
|
|
339
|
+
"kernel-builtin": [
|
|
340
|
+
"or",
|
|
341
|
+
"2nipd",
|
|
342
|
+
"4drop",
|
|
343
|
+
"tuck",
|
|
344
|
+
"wrapper",
|
|
345
|
+
"nip",
|
|
346
|
+
"wrapper?",
|
|
347
|
+
"callstack>array",
|
|
348
|
+
"die",
|
|
349
|
+
"dupd",
|
|
350
|
+
"callstack",
|
|
351
|
+
"callstack?",
|
|
352
|
+
"3dup",
|
|
353
|
+
"hashcode",
|
|
354
|
+
"pick",
|
|
355
|
+
"4nip",
|
|
356
|
+
"build",
|
|
357
|
+
">boolean",
|
|
358
|
+
"nipd",
|
|
359
|
+
"clone",
|
|
360
|
+
"5nip",
|
|
361
|
+
"eq?",
|
|
362
|
+
"?",
|
|
363
|
+
"=",
|
|
364
|
+
"swapd",
|
|
365
|
+
"2over",
|
|
366
|
+
"clear",
|
|
367
|
+
"2dup",
|
|
368
|
+
"get-retainstack",
|
|
369
|
+
"not",
|
|
370
|
+
"tuple?",
|
|
371
|
+
"dup",
|
|
372
|
+
"3nipd",
|
|
373
|
+
"call",
|
|
374
|
+
"-rotd",
|
|
375
|
+
"object",
|
|
376
|
+
"drop",
|
|
377
|
+
"assert=",
|
|
378
|
+
"assert?",
|
|
379
|
+
"-rot",
|
|
380
|
+
"execute",
|
|
381
|
+
"boa",
|
|
382
|
+
"get-callstack",
|
|
383
|
+
"curried?",
|
|
384
|
+
"3drop",
|
|
385
|
+
"pickd",
|
|
386
|
+
"overd",
|
|
387
|
+
"over",
|
|
388
|
+
"roll",
|
|
389
|
+
"3nip",
|
|
390
|
+
"swap",
|
|
391
|
+
"and",
|
|
392
|
+
"2nip",
|
|
393
|
+
"rotd",
|
|
394
|
+
"throw",
|
|
395
|
+
"(clone)",
|
|
396
|
+
"hashcode*",
|
|
397
|
+
"spin",
|
|
398
|
+
"reach",
|
|
399
|
+
"4dup",
|
|
400
|
+
"equal?",
|
|
401
|
+
"get-datastack",
|
|
402
|
+
"assert",
|
|
403
|
+
"2drop",
|
|
404
|
+
"<wrapper>",
|
|
405
|
+
"boolean?",
|
|
406
|
+
"identity-hashcode",
|
|
407
|
+
"identity-tuple?",
|
|
408
|
+
"null",
|
|
409
|
+
"composed?",
|
|
410
|
+
"new",
|
|
411
|
+
"5drop",
|
|
412
|
+
"rot",
|
|
413
|
+
"-roll",
|
|
414
|
+
"xor",
|
|
415
|
+
"identity-tuple",
|
|
416
|
+
"boolean"
|
|
417
|
+
],
|
|
418
|
+
"other-builtin-syntax": [
|
|
419
|
+
// syntax
|
|
420
|
+
"=======",
|
|
421
|
+
"recursive",
|
|
422
|
+
"flushable",
|
|
423
|
+
">>",
|
|
424
|
+
"<<<<<<",
|
|
425
|
+
"M\\",
|
|
426
|
+
"B",
|
|
427
|
+
"PRIVATE>",
|
|
428
|
+
"\\",
|
|
429
|
+
"======",
|
|
430
|
+
"final",
|
|
431
|
+
"inline",
|
|
432
|
+
"delimiter",
|
|
433
|
+
"deprecated",
|
|
434
|
+
"<PRIVATE",
|
|
435
|
+
">>>>>>",
|
|
436
|
+
"<<<<<<<",
|
|
437
|
+
"parse-complex",
|
|
438
|
+
"malformed-complex",
|
|
439
|
+
"read-only",
|
|
440
|
+
">>>>>>>",
|
|
441
|
+
"call-next-method",
|
|
442
|
+
"<<",
|
|
443
|
+
"foldable",
|
|
444
|
+
// literals
|
|
445
|
+
"$",
|
|
446
|
+
"$[",
|
|
447
|
+
"${"
|
|
448
|
+
],
|
|
449
|
+
"sequences-builtin": [
|
|
450
|
+
"member-eq?",
|
|
451
|
+
"mismatch",
|
|
452
|
+
"append",
|
|
453
|
+
"assert-sequence=",
|
|
454
|
+
"longer",
|
|
455
|
+
"repetition",
|
|
456
|
+
"clone-like",
|
|
457
|
+
"3sequence",
|
|
458
|
+
"assert-sequence?",
|
|
459
|
+
"last-index-from",
|
|
460
|
+
"reversed",
|
|
461
|
+
"index-from",
|
|
462
|
+
"cut*",
|
|
463
|
+
"pad-tail",
|
|
464
|
+
"join-as",
|
|
465
|
+
"remove-eq!",
|
|
466
|
+
"concat-as",
|
|
467
|
+
"but-last",
|
|
468
|
+
"snip",
|
|
469
|
+
"nths",
|
|
470
|
+
"nth",
|
|
471
|
+
"sequence",
|
|
472
|
+
"longest",
|
|
473
|
+
"slice?",
|
|
474
|
+
"<slice>",
|
|
475
|
+
"remove-nth",
|
|
476
|
+
"tail-slice",
|
|
477
|
+
"empty?",
|
|
478
|
+
"tail*",
|
|
479
|
+
"member?",
|
|
480
|
+
"virtual-sequence?",
|
|
481
|
+
"set-length",
|
|
482
|
+
"drop-prefix",
|
|
483
|
+
"iota",
|
|
484
|
+
"unclip",
|
|
485
|
+
"bounds-error?",
|
|
486
|
+
"unclip-last-slice",
|
|
487
|
+
"non-negative-integer-expected",
|
|
488
|
+
"non-negative-integer-expected?",
|
|
489
|
+
"midpoint@",
|
|
490
|
+
"longer?",
|
|
491
|
+
"?set-nth",
|
|
492
|
+
"?first",
|
|
493
|
+
"rest-slice",
|
|
494
|
+
"prepend-as",
|
|
495
|
+
"prepend",
|
|
496
|
+
"fourth",
|
|
497
|
+
"sift",
|
|
498
|
+
"subseq-start",
|
|
499
|
+
"new-sequence",
|
|
500
|
+
"?last",
|
|
501
|
+
"like",
|
|
502
|
+
"first4",
|
|
503
|
+
"1sequence",
|
|
504
|
+
"reverse",
|
|
505
|
+
"slice",
|
|
506
|
+
"virtual@",
|
|
507
|
+
"repetition?",
|
|
508
|
+
"set-last",
|
|
509
|
+
"index",
|
|
510
|
+
"4sequence",
|
|
511
|
+
"max-length",
|
|
512
|
+
"set-second",
|
|
513
|
+
"immutable-sequence",
|
|
514
|
+
"first2",
|
|
515
|
+
"first3",
|
|
516
|
+
"supremum",
|
|
517
|
+
"unclip-slice",
|
|
518
|
+
"suffix!",
|
|
519
|
+
"insert-nth",
|
|
520
|
+
"tail",
|
|
521
|
+
"3append",
|
|
522
|
+
"short",
|
|
523
|
+
"suffix",
|
|
524
|
+
"concat",
|
|
525
|
+
"flip",
|
|
526
|
+
"immutable?",
|
|
527
|
+
"reverse!",
|
|
528
|
+
"2sequence",
|
|
529
|
+
"sum",
|
|
530
|
+
"delete-all",
|
|
531
|
+
"indices",
|
|
532
|
+
"snip-slice",
|
|
533
|
+
"<iota>",
|
|
534
|
+
"check-slice",
|
|
535
|
+
"sequence?",
|
|
536
|
+
"head",
|
|
537
|
+
"append-as",
|
|
538
|
+
"halves",
|
|
539
|
+
"sequence=",
|
|
540
|
+
"collapse-slice",
|
|
541
|
+
"?second",
|
|
542
|
+
"slice-error?",
|
|
543
|
+
"product",
|
|
544
|
+
"bounds-check?",
|
|
545
|
+
"bounds-check",
|
|
546
|
+
"immutable",
|
|
547
|
+
"virtual-exemplar",
|
|
548
|
+
"harvest",
|
|
549
|
+
"remove",
|
|
550
|
+
"pad-head",
|
|
551
|
+
"last",
|
|
552
|
+
"set-fourth",
|
|
553
|
+
"cartesian-product",
|
|
554
|
+
"remove-eq",
|
|
555
|
+
"shorten",
|
|
556
|
+
"shorter",
|
|
557
|
+
"reversed?",
|
|
558
|
+
"shorter?",
|
|
559
|
+
"shortest",
|
|
560
|
+
"head-slice",
|
|
561
|
+
"pop*",
|
|
562
|
+
"tail-slice*",
|
|
563
|
+
"but-last-slice",
|
|
564
|
+
"iota?",
|
|
565
|
+
"append!",
|
|
566
|
+
"cut-slice",
|
|
567
|
+
"new-resizable",
|
|
568
|
+
"head-slice*",
|
|
569
|
+
"sequence-hashcode",
|
|
570
|
+
"pop",
|
|
571
|
+
"set-nth",
|
|
572
|
+
"?nth",
|
|
573
|
+
"second",
|
|
574
|
+
"join",
|
|
575
|
+
"immutable-sequence?",
|
|
576
|
+
"<reversed>",
|
|
577
|
+
"3append-as",
|
|
578
|
+
"virtual-sequence",
|
|
579
|
+
"subseq?",
|
|
580
|
+
"remove-nth!",
|
|
581
|
+
"length",
|
|
582
|
+
"last-index",
|
|
583
|
+
"lengthen",
|
|
584
|
+
"assert-sequence",
|
|
585
|
+
"copy",
|
|
586
|
+
"move",
|
|
587
|
+
"third",
|
|
588
|
+
"first",
|
|
589
|
+
"tail?",
|
|
590
|
+
"set-first",
|
|
591
|
+
"prefix",
|
|
592
|
+
"bounds-error",
|
|
593
|
+
"<repetition>",
|
|
594
|
+
"exchange",
|
|
595
|
+
"surround",
|
|
596
|
+
"cut",
|
|
597
|
+
"min-length",
|
|
598
|
+
"set-third",
|
|
599
|
+
"push-all",
|
|
600
|
+
"head?",
|
|
601
|
+
"subseq-start-from",
|
|
602
|
+
"delete-slice",
|
|
603
|
+
"rest",
|
|
604
|
+
"sum-lengths",
|
|
605
|
+
"head*",
|
|
606
|
+
"infimum",
|
|
607
|
+
"remove!",
|
|
608
|
+
"glue",
|
|
609
|
+
"slice-error",
|
|
610
|
+
"subseq",
|
|
611
|
+
"push",
|
|
612
|
+
"replace-slice",
|
|
613
|
+
"subseq-as",
|
|
614
|
+
"unclip-last"
|
|
615
|
+
],
|
|
616
|
+
"math-builtin": [
|
|
617
|
+
"number=",
|
|
618
|
+
"next-power-of-2",
|
|
619
|
+
"?1+",
|
|
620
|
+
"fp-special?",
|
|
621
|
+
"imaginary-part",
|
|
622
|
+
"float>bits",
|
|
623
|
+
"number?",
|
|
624
|
+
"fp-infinity?",
|
|
625
|
+
"bignum?",
|
|
626
|
+
"fp-snan?",
|
|
627
|
+
"denominator",
|
|
628
|
+
"gcd",
|
|
629
|
+
"*",
|
|
630
|
+
"+",
|
|
631
|
+
"fp-bitwise=",
|
|
632
|
+
"-",
|
|
633
|
+
"u>=",
|
|
634
|
+
"/",
|
|
635
|
+
">=",
|
|
636
|
+
"bitand",
|
|
637
|
+
"power-of-2?",
|
|
638
|
+
"log2-expects-positive",
|
|
639
|
+
"neg?",
|
|
640
|
+
"<",
|
|
641
|
+
"log2",
|
|
642
|
+
">",
|
|
643
|
+
"integer?",
|
|
644
|
+
"number",
|
|
645
|
+
"bits>double",
|
|
646
|
+
"2/",
|
|
647
|
+
"zero?",
|
|
648
|
+
"bits>float",
|
|
649
|
+
"float?",
|
|
650
|
+
"shift",
|
|
651
|
+
"ratio?",
|
|
652
|
+
"rect>",
|
|
653
|
+
"even?",
|
|
654
|
+
"ratio",
|
|
655
|
+
"fp-sign",
|
|
656
|
+
"bitnot",
|
|
657
|
+
">fixnum",
|
|
658
|
+
"complex?",
|
|
659
|
+
"/i",
|
|
660
|
+
"integer>fixnum",
|
|
661
|
+
"/f",
|
|
662
|
+
"sgn",
|
|
663
|
+
">bignum",
|
|
664
|
+
"next-float",
|
|
665
|
+
"u<",
|
|
666
|
+
"u>",
|
|
667
|
+
"mod",
|
|
668
|
+
"recip",
|
|
669
|
+
"rational",
|
|
670
|
+
">float",
|
|
671
|
+
"2^",
|
|
672
|
+
"integer",
|
|
673
|
+
"fixnum?",
|
|
674
|
+
"neg",
|
|
675
|
+
"fixnum",
|
|
676
|
+
"sq",
|
|
677
|
+
"bignum",
|
|
678
|
+
">rect",
|
|
679
|
+
"bit?",
|
|
680
|
+
"fp-qnan?",
|
|
681
|
+
"simple-gcd",
|
|
682
|
+
"complex",
|
|
683
|
+
"<fp-nan>",
|
|
684
|
+
"real",
|
|
685
|
+
">fraction",
|
|
686
|
+
"double>bits",
|
|
687
|
+
"bitor",
|
|
688
|
+
"rem",
|
|
689
|
+
"fp-nan-payload",
|
|
690
|
+
"real-part",
|
|
691
|
+
"log2-expects-positive?",
|
|
692
|
+
"prev-float",
|
|
693
|
+
"align",
|
|
694
|
+
"unordered?",
|
|
695
|
+
"float",
|
|
696
|
+
"fp-nan?",
|
|
697
|
+
"abs",
|
|
698
|
+
"bitxor",
|
|
699
|
+
"integer>fixnum-strict",
|
|
700
|
+
"u<=",
|
|
701
|
+
"odd?",
|
|
702
|
+
"<=",
|
|
703
|
+
"/mod",
|
|
704
|
+
">integer",
|
|
705
|
+
"real?",
|
|
706
|
+
"rational?",
|
|
707
|
+
"numerator"
|
|
708
|
+
]
|
|
709
|
+
// that's all for now
|
|
710
|
+
};
|
|
711
|
+
Object.keys(u).forEach(function(i) {
|
|
712
|
+
s[i].pattern = l(u[i]);
|
|
713
|
+
});
|
|
714
|
+
var m = [
|
|
715
|
+
// kernel
|
|
716
|
+
"2bi",
|
|
717
|
+
"while",
|
|
718
|
+
"2tri",
|
|
719
|
+
"bi*",
|
|
720
|
+
"4dip",
|
|
721
|
+
"both?",
|
|
722
|
+
"same?",
|
|
723
|
+
"tri@",
|
|
724
|
+
"curry",
|
|
725
|
+
"prepose",
|
|
726
|
+
"3bi",
|
|
727
|
+
"?if",
|
|
728
|
+
"tri*",
|
|
729
|
+
"2keep",
|
|
730
|
+
"3keep",
|
|
731
|
+
"curried",
|
|
732
|
+
"2keepd",
|
|
733
|
+
"when",
|
|
734
|
+
"2bi*",
|
|
735
|
+
"2tri*",
|
|
736
|
+
"4keep",
|
|
737
|
+
"bi@",
|
|
738
|
+
"keepdd",
|
|
739
|
+
"do",
|
|
740
|
+
"unless*",
|
|
741
|
+
"tri-curry",
|
|
742
|
+
"if*",
|
|
743
|
+
"loop",
|
|
744
|
+
"bi-curry*",
|
|
745
|
+
"when*",
|
|
746
|
+
"2bi@",
|
|
747
|
+
"2tri@",
|
|
748
|
+
"with",
|
|
749
|
+
"2with",
|
|
750
|
+
"either?",
|
|
751
|
+
"bi",
|
|
752
|
+
"until",
|
|
753
|
+
"3dip",
|
|
754
|
+
"3curry",
|
|
755
|
+
"tri-curry*",
|
|
756
|
+
"tri-curry@",
|
|
757
|
+
"bi-curry",
|
|
758
|
+
"keepd",
|
|
759
|
+
"compose",
|
|
760
|
+
"2dip",
|
|
761
|
+
"if",
|
|
762
|
+
"3tri",
|
|
763
|
+
"unless",
|
|
764
|
+
"tuple",
|
|
765
|
+
"keep",
|
|
766
|
+
"2curry",
|
|
767
|
+
"tri",
|
|
768
|
+
"most",
|
|
769
|
+
"while*",
|
|
770
|
+
"dip",
|
|
771
|
+
"composed",
|
|
772
|
+
"bi-curry@",
|
|
773
|
+
// sequences
|
|
774
|
+
"find-last-from",
|
|
775
|
+
"trim-head-slice",
|
|
776
|
+
"map-as",
|
|
777
|
+
"each-from",
|
|
778
|
+
"none?",
|
|
779
|
+
"trim-tail",
|
|
780
|
+
"partition",
|
|
781
|
+
"if-empty",
|
|
782
|
+
"accumulate*",
|
|
783
|
+
"reject!",
|
|
784
|
+
"find-from",
|
|
785
|
+
"accumulate-as",
|
|
786
|
+
"collector-for-as",
|
|
787
|
+
"reject",
|
|
788
|
+
"map",
|
|
789
|
+
"map-sum",
|
|
790
|
+
"accumulate!",
|
|
791
|
+
"2each-from",
|
|
792
|
+
"follow",
|
|
793
|
+
"supremum-by",
|
|
794
|
+
"map!",
|
|
795
|
+
"unless-empty",
|
|
796
|
+
"collector",
|
|
797
|
+
"padding",
|
|
798
|
+
"reduce-index",
|
|
799
|
+
"replicate-as",
|
|
800
|
+
"infimum-by",
|
|
801
|
+
"trim-tail-slice",
|
|
802
|
+
"count",
|
|
803
|
+
"find-index",
|
|
804
|
+
"filter",
|
|
805
|
+
"accumulate*!",
|
|
806
|
+
"reject-as",
|
|
807
|
+
"map-integers",
|
|
808
|
+
"map-find",
|
|
809
|
+
"reduce",
|
|
810
|
+
"selector",
|
|
811
|
+
"interleave",
|
|
812
|
+
"2map",
|
|
813
|
+
"filter-as",
|
|
814
|
+
"binary-reduce",
|
|
815
|
+
"map-index-as",
|
|
816
|
+
"find",
|
|
817
|
+
"produce",
|
|
818
|
+
"filter!",
|
|
819
|
+
"replicate",
|
|
820
|
+
"cartesian-map",
|
|
821
|
+
"cartesian-each",
|
|
822
|
+
"find-index-from",
|
|
823
|
+
"map-find-last",
|
|
824
|
+
"3map-as",
|
|
825
|
+
"3map",
|
|
826
|
+
"find-last",
|
|
827
|
+
"selector-as",
|
|
828
|
+
"2map-as",
|
|
829
|
+
"2map-reduce",
|
|
830
|
+
"accumulate",
|
|
831
|
+
"each",
|
|
832
|
+
"each-index",
|
|
833
|
+
"accumulate*-as",
|
|
834
|
+
"when-empty",
|
|
835
|
+
"all?",
|
|
836
|
+
"collector-as",
|
|
837
|
+
"push-either",
|
|
838
|
+
"new-like",
|
|
839
|
+
"collector-for",
|
|
840
|
+
"2selector",
|
|
841
|
+
"push-if",
|
|
842
|
+
"2all?",
|
|
843
|
+
"map-reduce",
|
|
844
|
+
"3each",
|
|
845
|
+
"any?",
|
|
846
|
+
"trim-slice",
|
|
847
|
+
"2reduce",
|
|
848
|
+
"change-nth",
|
|
849
|
+
"produce-as",
|
|
850
|
+
"2each",
|
|
851
|
+
"trim",
|
|
852
|
+
"trim-head",
|
|
853
|
+
"cartesian-find",
|
|
854
|
+
"map-index",
|
|
855
|
+
// math
|
|
856
|
+
"if-zero",
|
|
857
|
+
"each-integer",
|
|
858
|
+
"unless-zero",
|
|
859
|
+
"(find-integer)",
|
|
860
|
+
"when-zero",
|
|
861
|
+
"find-last-integer",
|
|
862
|
+
"(all-integers?)",
|
|
863
|
+
"times",
|
|
864
|
+
"(each-integer)",
|
|
865
|
+
"find-integer",
|
|
866
|
+
"all-integers?",
|
|
867
|
+
// math.combinators
|
|
868
|
+
"unless-negative",
|
|
869
|
+
"if-positive",
|
|
870
|
+
"when-positive",
|
|
871
|
+
"when-negative",
|
|
872
|
+
"unless-positive",
|
|
873
|
+
"if-negative",
|
|
874
|
+
// combinators
|
|
875
|
+
"case",
|
|
876
|
+
"2cleave",
|
|
877
|
+
"cond>quot",
|
|
878
|
+
"case>quot",
|
|
879
|
+
"3cleave",
|
|
880
|
+
"wrong-values",
|
|
881
|
+
"to-fixed-point",
|
|
882
|
+
"alist>quot",
|
|
883
|
+
"cond",
|
|
884
|
+
"cleave",
|
|
885
|
+
"call-effect",
|
|
886
|
+
"recursive-hashcode",
|
|
887
|
+
"spread",
|
|
888
|
+
"deep-spread>quot",
|
|
889
|
+
// combinators.short-circuit
|
|
890
|
+
"2||",
|
|
891
|
+
"0||",
|
|
892
|
+
"n||",
|
|
893
|
+
"0&&",
|
|
894
|
+
"2&&",
|
|
895
|
+
"3||",
|
|
896
|
+
"1||",
|
|
897
|
+
"1&&",
|
|
898
|
+
"n&&",
|
|
899
|
+
"3&&",
|
|
900
|
+
// combinators.smart
|
|
901
|
+
"smart-unless*",
|
|
902
|
+
"keep-inputs",
|
|
903
|
+
"reduce-outputs",
|
|
904
|
+
"smart-when*",
|
|
905
|
+
"cleave>array",
|
|
906
|
+
"smart-with",
|
|
907
|
+
"smart-apply",
|
|
908
|
+
"smart-if",
|
|
909
|
+
"inputs/outputs",
|
|
910
|
+
"output>sequence-n",
|
|
911
|
+
"map-outputs",
|
|
912
|
+
"map-reduce-outputs",
|
|
913
|
+
"dropping",
|
|
914
|
+
"output>array",
|
|
915
|
+
"smart-map-reduce",
|
|
916
|
+
"smart-2map-reduce",
|
|
917
|
+
"output>array-n",
|
|
918
|
+
"nullary",
|
|
919
|
+
"input<sequence",
|
|
920
|
+
"append-outputs",
|
|
921
|
+
"drop-inputs",
|
|
922
|
+
"inputs",
|
|
923
|
+
"smart-2reduce",
|
|
924
|
+
"drop-outputs",
|
|
925
|
+
"smart-reduce",
|
|
926
|
+
"preserving",
|
|
927
|
+
"smart-when",
|
|
928
|
+
"outputs",
|
|
929
|
+
"append-outputs-as",
|
|
930
|
+
"smart-unless",
|
|
931
|
+
"smart-if*",
|
|
932
|
+
"sum-outputs",
|
|
933
|
+
"input<sequence-unsafe",
|
|
934
|
+
"output>sequence"
|
|
935
|
+
// tafn
|
|
936
|
+
];
|
|
937
|
+
s.combinators.pattern = l(m), n.languages.factor = s;
|
|
938
|
+
})(a);
|
|
939
|
+
}
|
|
940
|
+
return o;
|
|
941
|
+
}
|
|
942
|
+
var c = f();
|
|
943
|
+
const g = /* @__PURE__ */ b(c), v = /* @__PURE__ */ h({
|
|
944
|
+
__proto__: null,
|
|
945
|
+
default: g
|
|
946
|
+
}, [c]);
|
|
947
|
+
export {
|
|
948
|
+
v as f
|
|
949
|
+
};
|