From 2c07531810a580204873a7765e06fdc3becd40b0 Mon Sep 17 00:00:00 2001 From: demotomohiro Date: Fri, 25 Oct 2024 10:09:32 +0000 Subject: [PATCH] deploy: a77f42ee2912f407c6585f928eac8995f650a554 --- bitwiseCopy.html | 17 +- dochack.js | 1408 ++++++++++++++++++++------------------- expandFirst.html | 17 +- namedWhile.html | 17 +- nimdoc.out.css | 20 +- reinterpretPtr.html | 26 +- reinterpretPtr.idx | 2 +- replaceNimNodeTree.html | 17 +- setLambda.html | 17 +- staticDeque.html | 35 +- staticDeque.idx | 27 +- staticSeq.html | 20 +- staticSeq.idx | 2 +- theindex.html | 21 +- unpackToArgs.html | 17 +- withAliases.html | 17 +- 16 files changed, 847 insertions(+), 833 deletions(-) diff --git a/bitwiseCopy.html b/bitwiseCopy.html index fddd304..c986f56 100644 --- a/bitwiseCopy.html +++ b/bitwiseCopy.html @@ -1,21 +1,25 @@ - + src/littlesugar/bitwiseCopy + + + + - + - +
@@ -37,7 +41,7 @@

src/littlesugar/bitwiseCopy

- Search: + Search:
Group by: @@ -127,13 +131,10 @@

Procs

- - - diff --git a/dochack.js b/dochack.js index fc716d7..6f7280d 100644 --- a/dochack.js +++ b/dochack.js @@ -1,143 +1,143 @@ -/* Generated by the Nim Compiler v2.0.4 */ +/* Generated by the Nim Compiler v2.2.0 */ var framePtr = null; var excHandler = 0; var lastJSError = null; var NTI33554466 = {size: 0,kind: 1,base: null,node: null,finalizer: null}; -var NTI721420302 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI704643086 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; var NTI33554435 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; -var NTI973078607 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; -var NTI973078613 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; +var NTI939524175 = {size: 0,kind: 31,base: null,node: null,finalizer: null}; +var NTI939524181 = {size: 0, kind: 18, base: null, node: null, finalizer: null}; var NTI134217745 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI134217749 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI134217751 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI33555173 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI33555181 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI33555167 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI33555175 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; var NTI33554449 = {size: 0,kind: 28,base: null,node: null,finalizer: null}; var NTI33554450 = {size: 0,kind: 29,base: null,node: null,finalizer: null}; -var NTI33555180 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; -var NTI33555177 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; -var NTI33555178 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI33555174 = {size: 0, kind: 22, base: null, node: null, finalizer: null}; +var NTI33555171 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; +var NTI33555172 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI134217741 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NTI134217743 = {size: 0, kind: 17, base: null, node: null, finalizer: null}; var NNI134217743 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; NTI134217743.node = NNI134217743; var NNI134217741 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; NTI134217741.node = NNI134217741; -var NNI33555178 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI33555178.node = NNI33555178; -NTI33555180.base = NTI33555177; -NTI33555181.base = NTI33555177; -var NNI33555177 = {kind: 2, len: 5, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "parent", len: 0, typ: NTI33555180, name: "parent", sons: null}, +var NNI33555172 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; +NTI33555172.node = NNI33555172; +NTI33555174.base = NTI33555171; +NTI33555175.base = NTI33555171; +var NNI33555171 = {kind: 2, len: 5, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "parent", len: 0, typ: NTI33555174, name: "parent", sons: null}, {kind: 1, offset: "name", len: 0, typ: NTI33554450, name: "name", sons: null}, {kind: 1, offset: "message", len: 0, typ: NTI33554449, name: "msg", sons: null}, {kind: 1, offset: "trace", len: 0, typ: NTI33554449, name: "trace", sons: null}, -{kind: 1, offset: "up", len: 0, typ: NTI33555181, name: "up", sons: null}]}; -NTI33555177.node = NNI33555177; -var NNI33555173 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; -NTI33555173.node = NNI33555173; -NTI33555177.base = NTI33555173; -NTI33555178.base = NTI33555177; -NTI134217741.base = NTI33555178; +{kind: 1, offset: "up", len: 0, typ: NTI33555175, name: "up", sons: null}]}; +NTI33555171.node = NNI33555171; +var NNI33555167 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; +NTI33555167.node = NNI33555167; +NTI33555171.base = NTI33555167; +NTI33555172.base = NTI33555171; +NTI134217741.base = NTI33555172; NTI134217743.base = NTI134217741; var NNI134217751 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; NTI134217751.node = NNI134217751; -NTI134217751.base = NTI33555178; +NTI134217751.base = NTI33555172; var NNI134217749 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; NTI134217749.node = NNI134217749; -NTI134217749.base = NTI33555178; +NTI134217749.base = NTI33555172; var NNI134217745 = {kind: 2, len: 0, offset: 0, typ: null, name: null, sons: []}; NTI134217745.node = NNI134217745; -NTI134217745.base = NTI33555178; -var NNI973078613 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a", len: 0, typ: NTI973078607, name: "a", sons: null}, +NTI134217745.base = NTI33555172; +var NNI939524181 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "a", len: 0, typ: NTI939524175, name: "a", sons: null}, {kind: 1, offset: "b", len: 0, typ: NTI33554435, name: "b", sons: null}]}; -NTI973078613.node = NNI973078613; -var NNI721420302 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554435, name: "Field0", sons: null}, +NTI939524181.node = NNI939524181; +var NNI704643086 = {kind: 2, len: 2, offset: 0, typ: null, name: null, sons: [{kind: 1, offset: "Field0", len: 0, typ: NTI33554435, name: "Field0", sons: null}, {kind: 1, offset: "Field1", len: 0, typ: NTI33554466, name: "Field1", sons: null}]}; -NTI721420302.node = NNI721420302; +NTI704643086.node = NNI704643086; -function mnewString(len_33557003) { - var result = new Array(len_33557003); - for (var i = 0; i < len_33557003; i++) {result[i] = 0;} +function mnewString(len_p0) { + var result = new Array(len_p0); + for (var i = 0; i < len_p0; i++) {result[i] = 0;} return result; } -function toJSStr(s_33556901) { - var result_33556902 = null; +function toJSStr(s_p0) { + var result_33556911 = null; - var res_33556943 = newSeq_33556919((s_33556901).length); - var i_33556944 = 0; - var j_33556945 = 0; + var res_33556965 = newSeq__system_u2508((s_p0).length); + var i_33556966 = 0; + var j_33556967 = 0; Label1: { Label2: while (true) { - if (!(i_33556944 < (s_33556901).length)) break Label2; - var c_33556946 = s_33556901[i_33556944]; - if ((c_33556946 < 128)) { - res_33556943[j_33556945] = String.fromCharCode(c_33556946); - i_33556944 += 1; + if (!(i_33556966 < (s_p0).length)) break Label2; + var c_33556968 = s_p0[i_33556966]; + if ((c_33556968 < 128)) { + res_33556965[j_33556967] = String.fromCharCode(c_33556968); + i_33556966 += 1; } else { - var helper_33556959 = newSeq_33556919(0); + var helper_33556994 = newSeq__system_u2508(0); Label3: { Label4: while (true) { if (!true) break Label4; - var code_33556960 = c_33556946.toString(16); - if ((((code_33556960) == null ? 0 : (code_33556960).length) == 1)) { - helper_33556959.push("%0");; + var code_33556995 = c_33556968.toString(16); + if ((((code_33556995) == null ? 0 : (code_33556995).length) == 1)) { + helper_33556994.push("%0");; } else { - helper_33556959.push("%");; + helper_33556994.push("%");; } - helper_33556959.push(code_33556960);; - i_33556944 += 1; - if ((((s_33556901).length <= i_33556944) || (s_33556901[i_33556944] < 128))) { + helper_33556994.push(code_33556995);; + i_33556966 += 1; + if ((((s_p0).length <= i_33556966) || (s_p0[i_33556966] < 128))) { break Label3; } - c_33556946 = s_33556901[i_33556944]; + c_33556968 = s_p0[i_33556966]; } }; ++excHandler; try { - res_33556943[j_33556945] = decodeURIComponent(helper_33556959.join("")); + res_33556965[j_33556967] = decodeURIComponent(helper_33556994.join("")); --excHandler; } catch (EXCEPTION) { var prevJSError = lastJSError; lastJSError = EXCEPTION; --excHandler; - res_33556943[j_33556945] = helper_33556959.join(""); + res_33556965[j_33556967] = helper_33556994.join(""); lastJSError = prevJSError; } finally { } } - j_33556945 += 1; + j_33556967 += 1; } }; - if (res_33556943.length < j_33556945) { for (var i = res_33556943.length ; i < j_33556945 ; ++i) res_33556943.push(null); } - else { res_33556943.length = j_33556945; }; - result_33556902 = res_33556943.join(""); + if (res_33556965.length < j_33556967) { for (var i = res_33556965.length ; i < j_33556967 ; ++i) res_33556965.push(null); } + else { res_33556965.length = j_33556967; }; + result_33556911 = res_33556965.join(""); - return result_33556902; + return result_33556911; } -function raiseException(e_33556653, ename_33556654) { - e_33556653.name = ename_33556654; +function raiseException(e_p0, ename_p1) { + e_p0.name = ename_p1; if ((excHandler == 0)) { - unhandledException(e_33556653); + unhandledException(e_p0); } - throw e_33556653; + throw e_p0; } -function addInt(a_33557050, b_33557051) { - var result = a_33557050 + b_33557051; +function addInt(a_p0, b_p1) { + var result = a_p0 + b_p1; checkOverflowInt(result); return result; @@ -145,12 +145,12 @@ function addInt(a_33557050, b_33557051) { } -function chckRange(i_33557324, a_33557325, b_33557326) { - var result_33557327 = 0; +function chckRange(i_p0, a_p1, b_p2) { + var result_33557358 = 0; BeforeRet: { - if (((a_33557325 <= i_33557324) && (i_33557324 <= b_33557326))) { - result_33557327 = i_33557324; + if (((a_p1 <= i_p0) && (i_p0 <= b_p2))) { + result_33557358 = i_p0; break BeforeRet; } else { @@ -159,7 +159,7 @@ function chckRange(i_33557324, a_33557325, b_33557326) { }; - return result_33557327; + return result_33557358; } @@ -182,68 +182,68 @@ function setConstr() { } var ConstSet1 = setConstr(17, 16, 4, 18, 27, 19, 23, 22, 21); -function nimCopy(dest_33557268, src_33557269, ti_33557270) { - var result_33557279 = null; +function nimCopy(dest_p0, src_p1, ti_p2) { + var result_33557318 = null; - switch (ti_33557270.kind) { + switch (ti_p2.kind) { case 21: case 22: case 23: case 5: - if (!(isFatPointer_33557259(ti_33557270))) { - result_33557279 = src_33557269; + if (!(isFatPointer__system_u2866(ti_p2))) { + result_33557318 = src_p1; } else { - result_33557279 = [src_33557269[0], src_33557269[1]]; + result_33557318 = [src_p1[0], src_p1[1]]; } break; case 19: - if (dest_33557268 === null || dest_33557268 === undefined) { - dest_33557268 = {}; + if (dest_p0 === null || dest_p0 === undefined) { + dest_p0 = {}; } else { - for (var key in dest_33557268) { delete dest_33557268[key]; } + for (var key in dest_p0) { delete dest_p0[key]; } } - for (var key in src_33557269) { dest_33557268[key] = src_33557269[key]; } - result_33557279 = dest_33557268; + for (var key in src_p1) { dest_p0[key] = src_p1[key]; } + result_33557318 = dest_p0; break; case 18: case 17: - if (!((ti_33557270.base == null))) { - result_33557279 = nimCopy(dest_33557268, src_33557269, ti_33557270.base); + if (!((ti_p2.base == null))) { + result_33557318 = nimCopy(dest_p0, src_p1, ti_p2.base); } else { - if ((ti_33557270.kind == 17)) { - result_33557279 = (dest_33557268 === null || dest_33557268 === undefined) ? {m_type: ti_33557270} : dest_33557268; + if ((ti_p2.kind == 17)) { + result_33557318 = (dest_p0 === null || dest_p0 === undefined) ? {m_type: ti_p2} : dest_p0; } else { - result_33557279 = (dest_33557268 === null || dest_33557268 === undefined) ? {} : dest_33557268; + result_33557318 = (dest_p0 === null || dest_p0 === undefined) ? {} : dest_p0; } } - nimCopyAux(result_33557279, src_33557269, ti_33557270.node); + nimCopyAux(result_33557318, src_p1, ti_p2.node); break; case 4: case 16: - if(ArrayBuffer.isView(src_33557269)) { - if(dest_33557268 === null || dest_33557268 === undefined || dest_33557268.length != src_33557269.length) { - dest_33557268 = new src_33557269.constructor(src_33557269); + if(ArrayBuffer.isView(src_p1)) { + if(dest_p0 === null || dest_p0 === undefined || dest_p0.length != src_p1.length) { + dest_p0 = new src_p1.constructor(src_p1); } else { - dest_33557268.set(src_33557269, 0); + dest_p0.set(src_p1, 0); } - result_33557279 = dest_33557268; + result_33557318 = dest_p0; } else { - if (src_33557269 === null) { - result_33557279 = null; + if (src_p1 === null) { + result_33557318 = null; } else { - if (dest_33557268 === null || dest_33557268 === undefined || dest_33557268.length != src_33557269.length) { - dest_33557268 = new Array(src_33557269.length); + if (dest_p0 === null || dest_p0 === undefined || dest_p0.length != src_p1.length) { + dest_p0 = new Array(src_p1.length); } - result_33557279 = dest_33557268; - for (var i = 0; i < src_33557269.length; ++i) { - result_33557279[i] = nimCopy(result_33557279[i], src_33557269[i], ti_33557270.base); + result_33557318 = dest_p0; + for (var i = 0; i < src_p1.length; ++i) { + result_33557318[i] = nimCopy(result_33557318[i], src_p1[i], ti_p2.base); } } } @@ -251,57 +251,57 @@ function nimCopy(dest_33557268, src_33557269, ti_33557270) { break; case 24: case 27: - if (src_33557269 === null) { - result_33557279 = null; + if (src_p1 === null) { + result_33557318 = null; } else { - if (dest_33557268 === null || dest_33557268 === undefined || dest_33557268.length != src_33557269.length) { - dest_33557268 = new Array(src_33557269.length); + if (dest_p0 === null || dest_p0 === undefined || dest_p0.length != src_p1.length) { + dest_p0 = new Array(src_p1.length); } - result_33557279 = dest_33557268; - for (var i = 0; i < src_33557269.length; ++i) { - result_33557279[i] = nimCopy(result_33557279[i], src_33557269[i], ti_33557270.base); + result_33557318 = dest_p0; + for (var i = 0; i < src_p1.length; ++i) { + result_33557318[i] = nimCopy(result_33557318[i], src_p1[i], ti_p2.base); } } break; case 28: - if (src_33557269 !== null) { - result_33557279 = src_33557269.slice(0); + if (src_p1 !== null) { + result_33557318 = src_p1.slice(0); } break; default: - result_33557279 = src_33557269; + result_33557318 = src_p1; break; } - return result_33557279; + return result_33557318; } -function chckIndx(i_33557319, a_33557320, b_33557321) { - var result_33557322 = 0; +function chckIndx(i_p0, a_p1, b_p2) { + var result_33557353 = 0; BeforeRet: { - if (((a_33557320 <= i_33557319) && (i_33557319 <= b_33557321))) { - result_33557322 = i_33557319; + if (((a_p1 <= i_p0) && (i_p0 <= b_p2))) { + result_33557353 = i_p0; break BeforeRet; } else { - raiseIndexError(i_33557319, a_33557320, b_33557321); + raiseIndexError(i_p0, a_p1, b_p2); } }; - return result_33557322; + return result_33557353; } -function makeNimstrLit(c_33556895) { +function makeNimstrLit(c_p0) { var result = []; - for (var i = 0; i < c_33556895.length; ++i) { - result[i] = c_33556895.charCodeAt(i); + for (var i = 0; i < c_p0.length; ++i) { + result[i] = c_p0.charCodeAt(i); } return result; @@ -309,8 +309,8 @@ function makeNimstrLit(c_33556895) { } -function subInt(a_33557054, b_33557055) { - var result = a_33557054 - b_33557055; +function subInt(a_p0, b_p1) { + var result = a_p0 - b_p1; checkOverflowInt(result); return result; @@ -318,12 +318,12 @@ function subInt(a_33557054, b_33557055) { } -function cstrToNimstr(c_33556898) { - var ln = c_33556898.length; +function cstrToNimstr(c_p0) { + var ln = c_p0.length; var result = new Array(ln); var r = 0; for (var i = 0; i < ln; ++i) { - var ch = c_33556898.charCodeAt(i); + var ch = c_p0.charCodeAt(i); if (ch < 128) { result[r] = ch; @@ -338,7 +338,7 @@ function cstrToNimstr(c_33556898) { } else { ++i; - ch = 65536 + (((ch & 1023) << 10) | (c_33556898.charCodeAt(i) & 1023)); + ch = 65536 + (((ch & 1023) << 10) | (c_p0.charCodeAt(i) & 1023)); result[r] = (ch >> 18) | 240; ++r; result[r] = ((ch >> 12) & 63) | 128; @@ -360,8 +360,8 @@ var ConstSet2 = setConstr([65, 90]); var ConstSet3 = setConstr(95, 32, 46); var ConstSet4 = setConstr(95, 32, 46); -function mulInt(a_33557058, b_33557059) { - var result = a_33557058 * b_33557059; +function mulInt(a_p0, b_p1) { + var result = a_p0 * b_p1; checkOverflowInt(result); return result; @@ -374,101 +374,101 @@ var ConstSet7 = setConstr([97, 122]); var ConstSet8 = setConstr([65, 90]); var ConstSet9 = setConstr([65, 90], [97, 122]); -function nimMax(a_33557108, b_33557109) { +function nimMax(a_p0, b_p1) { var Temporary1; - var result_33557110 = 0; + var result_33557145 = 0; BeforeRet: { - if ((b_33557109 <= a_33557108)) { - Temporary1 = a_33557108; + if ((b_p1 <= a_p0)) { + Temporary1 = a_p0; } else { - Temporary1 = b_33557109; + Temporary1 = b_p1; } - result_33557110 = Temporary1; + result_33557145 = Temporary1; break BeforeRet; }; - return result_33557110; + return result_33557145; } -function nimMin(a_33557104, b_33557105) { +function nimMin(a_p0, b_p1) { var Temporary1; - var result_33557106 = 0; + var result_33557141 = 0; BeforeRet: { - if ((a_33557104 <= b_33557105)) { - Temporary1 = a_33557104; + if ((a_p0 <= b_p1)) { + Temporary1 = a_p0; } else { - Temporary1 = b_33557105; + Temporary1 = b_p1; } - result_33557106 = Temporary1; + result_33557141 = Temporary1; break BeforeRet; }; - return result_33557106; + return result_33557141; } -function addChar(x_33557415, c_33557416) { - x_33557415.push(c_33557416); +function addChar(x_p0, c_p1) { + x_p0.push(c_p1); } -var objectID_1207959729 = [0]; +var objectID_1157628081 = [0]; -function setTheme(theme_570425350) { - document.documentElement.setAttribute("data-theme", theme_570425350); - window.localStorage.setItem("theme", theme_570425350); +function setTheme(theme_p0) { + document.documentElement.setAttribute("data-theme", theme_p0); + window.localStorage.setItem("theme", theme_p0); } -function add_33556373(x_33556374, x_33556374_Idx, y_33556375) { - if (x_33556374[x_33556374_Idx] === null) { x_33556374[x_33556374_Idx] = []; } - var off = x_33556374[x_33556374_Idx].length; - x_33556374[x_33556374_Idx].length += y_33556375.length; - for (var i = 0; i < y_33556375.length; ++i) { - x_33556374[x_33556374_Idx][off+i] = y_33556375.charCodeAt(i); +function add__system_u1943(x_p0, x_p0_Idx, y_p1) { + if (x_p0[x_p0_Idx] === null) { x_p0[x_p0_Idx] = []; } + var off = x_p0[x_p0_Idx].length; + x_p0[x_p0_Idx].length += y_p1.length; + for (var i = 0; i < y_p1.length; ++i) { + x_p0[x_p0_Idx][off+i] = y_p1.charCodeAt(i); } } -function newSeq_33556919(len_33556921) { - var result_33556922 = []; +function newSeq__system_u2508(len_p0) { + var result_33556944 = []; - result_33556922 = new Array(len_33556921); for (var i = 0 ; i < len_33556921 ; ++i) { result_33556922[i] = null; } - return result_33556922; + result_33556944 = new Array(len_p0); for (var i = 0 ; i < len_p0 ; ++i) { result_33556944[i] = null; } + return result_33556944; } -function unhandledException(e_33556649) { - var buf_33556650 = [[]]; - if (!(((e_33556649.message).length == 0))) { - buf_33556650[0].push.apply(buf_33556650[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110,58,32]);; - buf_33556650[0].push.apply(buf_33556650[0], e_33556649.message);; +function unhandledException(e_p0) { + var buf_33556659 = [[]]; + if (!(((e_p0.message).length == 0))) { + buf_33556659[0].push.apply(buf_33556659[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110,58,32]);; + buf_33556659[0].push.apply(buf_33556659[0], e_p0.message);; } else { - buf_33556650[0].push.apply(buf_33556650[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110]);; + buf_33556659[0].push.apply(buf_33556659[0], [69,114,114,111,114,58,32,117,110,104,97,110,100,108,101,100,32,101,120,99,101,112,116,105,111,110]);; } - buf_33556650[0].push.apply(buf_33556650[0], [32,91]);; - add_33556373(buf_33556650, 0, e_33556649.name); - buf_33556650[0].push.apply(buf_33556650[0], [93,10]);; - var cbuf_33556651 = toJSStr(buf_33556650[0]); + buf_33556659[0].push.apply(buf_33556659[0], [32,91]);; + add__system_u1943(buf_33556659, 0, e_p0.name); + buf_33556659[0].push.apply(buf_33556659[0], [93,10]);; + var cbuf_33556660 = toJSStr(buf_33556659[0]); if (typeof(Error) !== "undefined") { - throw new Error(cbuf_33556651); + throw new Error(cbuf_33556660); } else { - throw cbuf_33556651; + throw cbuf_33556660; } @@ -481,8 +481,8 @@ function raiseOverflow() { } -function checkOverflowInt(a_33557048) { - if (a_33557048 > 2147483647 || a_33557048 < -2147483648) raiseOverflow(); +function checkOverflowInt(a_p0) { + if (a_p0 > 2147483647 || a_p0 < -2147483648) raiseOverflow(); @@ -494,21 +494,21 @@ function raiseRangeError() { } -function addChars_301990090(result_301990092, result_301990092_Idx, x_301990093, start_301990094, n_301990095) { +function addChars__stdZprivateZdigitsutils_u202(result_p0, result_p0_Idx, x_p1, start_p2, n_p3) { var Temporary1; - var old_301990096 = (result_301990092[result_301990092_Idx]).length; - if (result_301990092[result_301990092_Idx].length < (Temporary1 = chckRange(addInt(old_301990096, n_301990095), 0, 2147483647), Temporary1)) { for (var i = result_301990092[result_301990092_Idx].length; i < Temporary1; ++i) result_301990092[result_301990092_Idx].push(0); } - else {result_301990092[result_301990092_Idx].length = Temporary1; }; + var old_301990096 = (result_p0[result_p0_Idx]).length; + if (result_p0[result_p0_Idx].length < (Temporary1 = chckRange(addInt(old_301990096, n_p3), 0, 2147483647), Temporary1)) { for (var i = result_p0[result_p0_Idx].length; i < Temporary1; ++i) result_p0[result_p0_Idx].push(0); } + else {result_p0[result_p0_Idx].length = Temporary1; }; Label2: { var iHEX60gensym4_301990110 = 0; - var i_570426543 = 0; + var i_553649329 = 0; Label3: { Label4: while (true) { - if (!(i_570426543 < n_301990095)) break Label4; - iHEX60gensym4_301990110 = i_570426543; - result_301990092[result_301990092_Idx][chckIndx(addInt(old_301990096, iHEX60gensym4_301990110), 0, (result_301990092[result_301990092_Idx]).length - 1)] = x_301990093.charCodeAt(chckIndx(addInt(start_301990094, iHEX60gensym4_301990110), 0, (x_301990093).length - 1)); - i_570426543 = addInt(i_570426543, 1); + if (!(i_553649329 < n_p3)) break Label4; + iHEX60gensym4_301990110 = i_553649329; + result_p0[result_p0_Idx][chckIndx(addInt(old_301990096, iHEX60gensym4_301990110), 0, (result_p0[result_p0_Idx]).length - 1)] = x_p1.charCodeAt(chckIndx(addInt(start_p2, iHEX60gensym4_301990110), 0, (x_p1).length - 1)); + i_553649329 = addInt(i_553649329, 1); } }; }; @@ -516,63 +516,63 @@ function addChars_301990090(result_301990092, result_301990092_Idx, x_301990093, } -function addChars_301990086(result_301990088, result_301990088_Idx, x_301990089) { - addChars_301990090(result_301990088, result_301990088_Idx, x_301990089, 0, ((x_301990089) == null ? 0 : (x_301990089).length)); +function addChars__stdZprivateZdigitsutils_u198(result_p0, result_p0_Idx, x_p1) { + addChars__stdZprivateZdigitsutils_u202(result_p0, result_p0_Idx, x_p1, 0, ((x_p1) == null ? 0 : (x_p1).length)); } -function addInt_301990111(result_301990112, result_301990112_Idx, x_301990113) { - addChars_301990086(result_301990112, result_301990112_Idx, ((x_301990113) + "")); +function addInt__stdZprivateZdigitsutils_u223(result_p0, result_p0_Idx, x_p1) { + addChars__stdZprivateZdigitsutils_u198(result_p0, result_p0_Idx, ((x_p1) + "")); } -function addInt_301990129(result_301990130, result_301990130_Idx, x_301990131) { - addInt_301990111(result_301990130, result_301990130_Idx, BigInt(x_301990131)); +function addInt__stdZprivateZdigitsutils_u241(result_p0, result_p0_Idx, x_p1) { + addInt__stdZprivateZdigitsutils_u223(result_p0, result_p0_Idx, BigInt(x_p1)); } -function HEX24_385875976(x_385875977) { +function HEX24__systemZdollars_u8(x_p0) { var result_385875978 = [[]]; - addInt_301990129(result_385875978, 0, x_385875977); + addInt__stdZprivateZdigitsutils_u241(result_385875978, 0, x_p0); return result_385875978[0]; } -function isFatPointer_33557259(ti_33557260) { - var result_33557261 = false; +function isFatPointer__system_u2866(ti_p0) { + var result_33557300 = false; BeforeRet: { - result_33557261 = !((ConstSet1[ti_33557260.base.kind] != undefined)); + result_33557300 = !((ConstSet1[ti_p0.base.kind] != undefined)); break BeforeRet; }; - return result_33557261; + return result_33557300; } -function nimCopyAux(dest_33557272, src_33557273, n_33557274) { - switch (n_33557274.kind) { +function nimCopyAux(dest_p0, src_p1, n_p2) { + switch (n_p2.kind) { case 0: break; case 1: - dest_33557272[n_33557274.offset] = nimCopy(dest_33557272[n_33557274.offset], src_33557273[n_33557274.offset], n_33557274.typ); + dest_p0[n_p2.offset] = nimCopy(dest_p0[n_p2.offset], src_p1[n_p2.offset], n_p2.typ); break; case 2: - for (var i = 0; i < n_33557274.sons.length; i++) { - nimCopyAux(dest_33557272, src_33557273, n_33557274.sons[i]); + for (var i = 0; i < n_p2.sons.length; i++) { + nimCopyAux(dest_p0, src_p1, n_p2.sons[i]); } break; case 3: - dest_33557272[n_33557274.offset] = nimCopy(dest_33557272[n_33557274.offset], src_33557273[n_33557274.offset], n_33557274.typ); - for (var i = 0; i < n_33557274.sons.length; ++i) { - nimCopyAux(dest_33557272, src_33557273, n_33557274.sons[i][1]); + dest_p0[n_p2.offset] = nimCopy(dest_p0[n_p2.offset], src_p1[n_p2.offset], n_p2.typ); + for (var i = 0; i < n_p2.sons.length; ++i) { + nimCopyAux(dest_p0, src_p1, n_p2.sons[i][1]); } break; @@ -581,14 +581,14 @@ function nimCopyAux(dest_33557272, src_33557273, n_33557274) { } -function raiseIndexError(i_33556812, a_33556813, b_33556814) { +function raiseIndexError(i_p0, a_p1, b_p2) { var Temporary1; - if ((b_33556814 < a_33556813)) { + if ((b_p2 < a_p1)) { Temporary1 = [105,110,100,101,120,32,111,117,116,32,111,102,32,98,111,117,110,100,115,44,32,116,104,101,32,99,111,110,116,97,105,110,101,114,32,105,115,32,101,109,112,116,121]; } else { - Temporary1 = ([105,110,100,101,120,32] || []).concat(HEX24_385875976(i_33556812) || [],[32,110,111,116,32,105,110,32] || [],HEX24_385875976(a_33556813) || [],[32,46,46,32] || [],HEX24_385875976(b_33556814) || []); + Temporary1 = ([105,110,100,101,120,32]).concat(HEX24__systemZdollars_u8(i_p0),[32,110,111,116,32,105,110,32],HEX24__systemZdollars_u8(a_p1),[32,46,46,32],HEX24__systemZdollars_u8(b_p2)); } raiseException({message: nimCopy(null, Temporary1, NTI33554449), parent: null, m_type: NTI134217749, name: null, trace: [], up: null}, "IndexDefect"); @@ -596,48 +596,50 @@ function raiseIndexError(i_33556812, a_33556813, b_33556814) { } -function sysFatal_268435501(message_268435504) { - raiseException({message: nimCopy(null, message_268435504, NTI33554449), m_type: NTI134217745, parent: null, name: null, trace: [], up: null}, "AssertionDefect"); +function sysFatal__stdZassertions_u45(message_p1) { + raiseException({message: nimCopy(null, message_p1, NTI33554449), m_type: NTI134217745, parent: null, name: null, trace: [], up: null}, "AssertionDefect"); } -function raiseAssert_268435499(msg_268435500) { - sysFatal_268435501(msg_268435500); +function raiseAssert__stdZassertions_u43(msg_p0) { + sysFatal__stdZassertions_u45(msg_p0); } -function failedAssertImpl_268435541(msg_268435542) { - raiseAssert_268435499(msg_268435542); +function failedAssertImpl__stdZassertions_u85(msg_p0) { + raiseAssert__stdZassertions_u43(msg_p0); } -function onDOMLoaded(e_570425385) { - -function HEX3Aanonymous_570425409(event_570425410) { - event_570425410.target.parentNode.style.display = "none"; - event_570425410.target.parentNode.nextSibling.style.display = "inline"; +function onDOMLoaded(e_p0) { + var Temporary4; - - } +function HEX3Aanonymous__dochack_u65(event_p0) { + event_p0.target.parentNode.style.display = "none"; + event_p0.target.parentNode.nextSibling.style.display = "inline"; + + +} document.getElementById("theme-select").value = window.localStorage.getItem("theme"); Label1: { - var pragmaDots_570425408 = null; - var colontmp__570426534 = []; - colontmp__570426534 = document.getElementsByClassName("pragmadots"); - var i_570426536 = 0; - var L_570426537 = (colontmp__570426534).length; + var pragmaDots_553648192 = null; + var colontmp__553649320 = []; + colontmp__553649320 = document.getElementsByClassName("pragmadots"); + var i_553649322 = 0; + var L_553649323 = (colontmp__553649320).length; Label2: { Label3: while (true) { - if (!(i_570426536 < L_570426537)) break Label3; - pragmaDots_570425408 = colontmp__570426534[chckIndx(i_570426536, 0, (colontmp__570426534).length - 1)]; - pragmaDots_570425408.onclick = HEX3Aanonymous_570425409; - i_570426536 = addInt(i_570426536, 1); - if (!(((colontmp__570426534).length == L_570426537))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553649322 < L_553649323)) break Label3; + pragmaDots_553648192 = colontmp__553649320[chckIndx(i_553649322, 0, (colontmp__553649320).length - 1)]; + Temporary4 = HEX3Aanonymous__dochack_u65.bind(null); Temporary4.ClP_0 = HEX3Aanonymous__dochack_u65; Temporary4.ClE_0 = null; + pragmaDots_553648192.onclick = Temporary4; + i_553649322 += 1; + if (!(((colontmp__553649320).length == L_553649323))) { + failedAssertImpl__stdZassertions_u85(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -647,118 +649,118 @@ function HEX3Aanonymous_570425409(event_570425410) { } -function isWhitespace_570425752(x_570425753) { - var result_570425754 = false; +function isWhitespace__dochack_u408(x_p0) { + var result_553648538 = false; - result_570425754 = (((x_570425753.nodeName == "#text") && !/\S/.test(x_570425753.textContent)) || (x_570425753.nodeName == "#comment")); + result_553648538 = (((x_p0.nodeName == "#text") && !/\S/.test(x_p0.textContent)) || (x_p0.nodeName == "#comment")); - return result_570425754; + return result_553648538; } -function toToc_570425755(x_570425756, father_570425757) { +function toToc__dochack_u411(x_p0, father_p1) { var Temporary5; var Temporary6; var Temporary7; var Temporary8; var Temporary15; - if ((x_570425756.nodeName == "UL")) { - var f_570425765 = {heading: null, kids: [], sortId: (father_570425757.kids).length, doSort: false}; - var i_570425766 = 0; + if ((x_p0.nodeName == "UL")) { + var f_553648549 = {heading: null, kids: [], sortId: (father_p1.kids).length, doSort: false}; + var i_553648550 = 0; Label1: { Label2: while (true) { - if (!(i_570425766 < x_570425756.childNodes.length)) break Label2; - var nxt_570425767 = addInt(i_570425766, 1); + if (!(i_553648550 < x_p0.childNodes.length)) break Label2; + var nxt_553648551 = addInt(i_553648550, 1); Label3: { Label4: while (true) { - if (!(nxt_570425767 < x_570425756.childNodes.length)) Temporary5 = false; else { Temporary5 = isWhitespace_570425752(x_570425756.childNodes[nxt_570425767]); } if (!Temporary5) break Label4; - nxt_570425767 = addInt(nxt_570425767, 1); + if (!(nxt_553648551 < x_p0.childNodes.length)) Temporary5 = false; else { Temporary5 = isWhitespace__dochack_u408(x_p0.childNodes[nxt_553648551]); } if (!Temporary5) break Label4; + nxt_553648551 = addInt(nxt_553648551, 1); } }; - if (!(nxt_570425767 < x_570425756.childNodes.length)) Temporary8 = false; else { Temporary8 = (x_570425756.childNodes[i_570425766].nodeName == "LI"); } if (!Temporary8) Temporary7 = false; else { Temporary7 = (x_570425756.childNodes[i_570425766].childNodes.length == 1); } if (!Temporary7) Temporary6 = false; else { Temporary6 = (x_570425756.childNodes[nxt_570425767].nodeName == "UL"); } if (Temporary6) { - var e_570425780 = {heading: x_570425756.childNodes[i_570425766].childNodes[0], kids: [], sortId: (f_570425765.kids).length, doSort: false}; - var it_570425781 = x_570425756.childNodes[nxt_570425767]; + if (!(nxt_553648551 < x_p0.childNodes.length)) Temporary8 = false; else { Temporary8 = (x_p0.childNodes[i_553648550].nodeName == "LI"); } if (!Temporary8) Temporary7 = false; else { Temporary7 = (x_p0.childNodes[i_553648550].childNodes.length == 1); } if (!Temporary7) Temporary6 = false; else { Temporary6 = (x_p0.childNodes[nxt_553648551].nodeName == "UL"); } if (Temporary6) { + var e_553648564 = {heading: x_p0.childNodes[i_553648550].childNodes[0], kids: [], sortId: (f_553648549.kids).length, doSort: false}; + var it_553648565 = x_p0.childNodes[nxt_553648551]; Label9: { - var j_570425786 = 0; - var colontmp__570426550 = 0; - colontmp__570426550 = it_570425781.childNodes.length; - var i_570426551 = 0; + var j_553648570 = 0; + var colontmp__553649336 = 0; + colontmp__553649336 = it_553648565.childNodes.length; + var i_553649337 = 0; Label10: { Label11: while (true) { - if (!(i_570426551 < colontmp__570426550)) break Label11; - j_570425786 = i_570426551; - toToc_570425755(it_570425781.childNodes[j_570425786], e_570425780); - i_570426551 = addInt(i_570426551, 1); + if (!(i_553649337 < colontmp__553649336)) break Label11; + j_553648570 = i_553649337; + toToc__dochack_u411(it_553648565.childNodes[j_553648570], e_553648564); + i_553649337 = addInt(i_553649337, 1); } }; }; - f_570425765.kids.push(e_570425780);; - i_570425766 = addInt(nxt_570425767, 1); + f_553648549.kids.push(e_553648564);; + i_553648550 = addInt(nxt_553648551, 1); } else { - toToc_570425755(x_570425756.childNodes[i_570425766], f_570425765); - i_570425766 = addInt(i_570425766, 1); + toToc__dochack_u411(x_p0.childNodes[i_553648550], f_553648549); + i_553648550 = addInt(i_553648550, 1); } } }; - father_570425757.kids.push(f_570425765);; + father_p1.kids.push(f_553648549);; } else { - if (isWhitespace_570425752(x_570425756)) { + if (isWhitespace__dochack_u408(x_p0)) { } else { - if ((x_570425756.nodeName == "LI")) { - var idx_570425804 = []; + if ((x_p0.nodeName == "LI")) { + var idx_553648588 = []; Label12: { - var i_570425809 = 0; - var colontmp__570426554 = 0; - colontmp__570426554 = x_570425756.childNodes.length; - var i_570426555 = 0; + var i_553648593 = 0; + var colontmp__553649340 = 0; + colontmp__553649340 = x_p0.childNodes.length; + var i_553649341 = 0; Label13: { Label14: while (true) { - if (!(i_570426555 < colontmp__570426554)) break Label14; - i_570425809 = i_570426555; - if (!(isWhitespace_570425752(x_570425756.childNodes[i_570425809]))) { - idx_570425804.push(i_570425809);; + if (!(i_553649341 < colontmp__553649340)) break Label14; + i_553648593 = i_553649341; + if (!(isWhitespace__dochack_u408(x_p0.childNodes[i_553648593]))) { + idx_553648588.push(i_553648593);; } - i_570426555 = addInt(i_570426555, 1); + i_553649341 = addInt(i_553649341, 1); } }; }; - if (!((idx_570425804).length == 2)) Temporary15 = false; else { Temporary15 = (x_570425756.childNodes[idx_570425804[chckIndx(1, 0, (idx_570425804).length - 1)]].nodeName == "UL"); } if (Temporary15) { - var e_570425825 = {heading: x_570425756.childNodes[idx_570425804[chckIndx(0, 0, (idx_570425804).length - 1)]], kids: [], sortId: (father_570425757.kids).length, doSort: false}; - var it_570425826 = x_570425756.childNodes[idx_570425804[chckIndx(1, 0, (idx_570425804).length - 1)]]; + if (!((idx_553648588).length == 2)) Temporary15 = false; else { Temporary15 = (x_p0.childNodes[idx_553648588[chckIndx(1, 0, (idx_553648588).length - 1)]].nodeName == "UL"); } if (Temporary15) { + var e_553648609 = {heading: x_p0.childNodes[idx_553648588[chckIndx(0, 0, (idx_553648588).length - 1)]], kids: [], sortId: (father_p1.kids).length, doSort: false}; + var it_553648610 = x_p0.childNodes[idx_553648588[chckIndx(1, 0, (idx_553648588).length - 1)]]; Label16: { - var j_570425831 = 0; - var colontmp__570426558 = 0; - colontmp__570426558 = it_570425826.childNodes.length; - var i_570426559 = 0; + var j_553648615 = 0; + var colontmp__553649344 = 0; + colontmp__553649344 = it_553648610.childNodes.length; + var i_553649345 = 0; Label17: { Label18: while (true) { - if (!(i_570426559 < colontmp__570426558)) break Label18; - j_570425831 = i_570426559; - toToc_570425755(it_570425826.childNodes[j_570425831], e_570425825); - i_570426559 = addInt(i_570426559, 1); + if (!(i_553649345 < colontmp__553649344)) break Label18; + j_553648615 = i_553649345; + toToc__dochack_u411(it_553648610.childNodes[j_553648615], e_553648609); + i_553649345 = addInt(i_553649345, 1); } }; }; - father_570425757.kids.push(e_570425825);; + father_p1.kids.push(e_553648609);; } else { Label19: { - var i_570425840 = 0; - var colontmp__570426562 = 0; - colontmp__570426562 = x_570425756.childNodes.length; - var i_570426563 = 0; + var i_553648624 = 0; + var colontmp__553649348 = 0; + colontmp__553649348 = x_p0.childNodes.length; + var i_553649349 = 0; Label20: { Label21: while (true) { - if (!(i_570426563 < colontmp__570426562)) break Label21; - i_570425840 = i_570426563; - toToc_570425755(x_570425756.childNodes[i_570425840], father_570425757); - i_570426563 = addInt(i_570426563, 1); + if (!(i_553649349 < colontmp__553649348)) break Label21; + i_553648624 = i_553649349; + toToc__dochack_u411(x_p0.childNodes[i_553648624], father_p1); + i_553649349 = addInt(i_553649349, 1); } }; }; @@ -766,48 +768,48 @@ function toToc_570425755(x_570425756, father_570425757) { } else { - father_570425757.kids.push({heading: x_570425756, kids: [], sortId: (father_570425757.kids).length, doSort: false});; + father_p1.kids.push({heading: x_p0, kids: [], sortId: (father_p1.kids).length, doSort: false});; } }} } -function extractItems_570425543(x_570425544, heading_570425545, items_570425546, items_570425546_Idx) { +function extractItems__dochack_u199(x_p0, heading_p1, items_p2, items_p2_Idx) { BeforeRet: { - if ((x_570425544 == null)) { + if ((x_p0 == null)) { break BeforeRet; } - if ((!((x_570425544.heading == null)) && (x_570425544.heading.textContent == heading_570425545))) { + if ((!((x_p0.heading == null)) && (x_p0.heading.textContent == heading_p1))) { Label1: { - var i_570425563 = 0; - var colontmp__570426566 = 0; - colontmp__570426566 = (x_570425544.kids).length; - var i_570426567 = 0; + var i_553648347 = 0; + var colontmp__553649352 = 0; + colontmp__553649352 = (x_p0.kids).length; + var i_553649353 = 0; Label2: { Label3: while (true) { - if (!(i_570426567 < colontmp__570426566)) break Label3; - i_570425563 = i_570426567; - items_570425546[items_570425546_Idx].push(x_570425544.kids[chckIndx(i_570425563, 0, (x_570425544.kids).length - 1)].heading);; - i_570426567 = addInt(i_570426567, 1); + if (!(i_553649353 < colontmp__553649352)) break Label3; + i_553648347 = i_553649353; + items_p2[items_p2_Idx].push(x_p0.kids[chckIndx(i_553648347, 0, (x_p0.kids).length - 1)].heading);; + i_553649353 = addInt(i_553649353, 1); } }; }; } else { Label4: { - var k_570425589 = null; - var i_570426571 = 0; - var L_570426572 = (x_570425544.kids).length; + var k_553648373 = null; + var i_553649357 = 0; + var L_553649358 = (x_p0.kids).length; Label5: { Label6: while (true) { - if (!(i_570426571 < L_570426572)) break Label6; - k_570425589 = x_570425544.kids[chckIndx(i_570426571, 0, (x_570425544.kids).length - 1)]; - extractItems_570425543(k_570425589, heading_570425545, items_570425546, items_570425546_Idx); - i_570426571 = addInt(i_570426571, 1); - if (!(((x_570425544.kids).length == L_570426572))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553649357 < L_553649358)) break Label6; + k_553648373 = x_p0.kids[chckIndx(i_553649357, 0, (x_p0.kids).length - 1)]; + extractItems__dochack_u199(k_553648373, heading_p1, items_p2, items_p2_Idx); + i_553649357 += 1; + if (!(((x_p0.kids).length == L_553649358))) { + failedAssertImpl__stdZassertions_u85(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } @@ -820,716 +822,722 @@ function extractItems_570425543(x_570425544, heading_570425545, items_570425546, } -function tree_570425474(tag_570425475, kids_570425476) { - var result_570425477 = null; +function tree__dochack_u130(tag_p0, kids_p1) { + var result_553648261 = null; - result_570425477 = document.createElement(tag_570425475); + result_553648261 = document.createElement(tag_p0); Label1: { - var k_570425491 = null; - var i_570426584 = 0; + var k_553648275 = null; + var i_553649370 = 0; Label2: { Label3: while (true) { - if (!(i_570426584 < (kids_570425476).length)) break Label3; - k_570425491 = kids_570425476[chckIndx(i_570426584, 0, (kids_570425476).length - 1)]; - result_570425477.appendChild(k_570425491); - i_570426584 = addInt(i_570426584, 1); + if (!(i_553649370 < (kids_p1).length)) break Label3; + k_553648275 = kids_p1[chckIndx(i_553649370, 0, (kids_p1).length - 1)]; + result_553648261.appendChild(k_553648275); + i_553649370 += 1; } }; }; - return result_570425477; + return result_553648261; } -function text_570425499(s_570425500) { - var result_570425501 = null; +function text__dochack_u155(s_p0) { + var result_553648285 = null; - result_570425501 = document.createTextNode(s_570425500); + result_553648285 = document.createTextNode(s_p0); - return result_570425501; + return result_553648285; } -function uncovered_570425944(x_570425945) { +function uncovered__dochack_u600(x_p0) { var Temporary1; - var result_570425946 = null; + var result_553648730 = null; BeforeRet: { - if ((((x_570425945.kids).length == 0) && !((x_570425945.heading == null)))) { - if (!(x_570425945.heading.hasOwnProperty('__karaxMarker__'))) { - Temporary1 = x_570425945; + if ((((x_p0.kids).length == 0) && !((x_p0.heading == null)))) { + if (!(x_p0.heading.hasOwnProperty('__karaxMarker__'))) { + Temporary1 = x_p0; } else { Temporary1 = null; } - result_570425946 = Temporary1; + result_553648730 = Temporary1; break BeforeRet; } - result_570425946 = {heading: x_570425945.heading, kids: [], sortId: x_570425945.sortId, doSort: x_570425945.doSort}; + result_553648730 = {heading: x_p0.heading, kids: [], sortId: x_p0.sortId, doSort: x_p0.doSort}; Label2: { - var k_570425961 = null; - var i_570426591 = 0; - var L_570426592 = (x_570425945.kids).length; + var k_553648745 = null; + var i_553649377 = 0; + var L_553649378 = (x_p0.kids).length; Label3: { Label4: while (true) { - if (!(i_570426591 < L_570426592)) break Label4; - k_570425961 = x_570425945.kids[chckIndx(i_570426591, 0, (x_570425945.kids).length - 1)]; - var y_570425962 = uncovered_570425944(k_570425961); - if (!((y_570425962 == null))) { - result_570425946.kids.push(y_570425962);; + if (!(i_553649377 < L_553649378)) break Label4; + k_553648745 = x_p0.kids[chckIndx(i_553649377, 0, (x_p0.kids).length - 1)]; + var y_553648746 = uncovered__dochack_u600(k_553648745); + if (!((y_553648746 == null))) { + result_553648730.kids.push(y_553648746);; } - i_570426591 = addInt(i_570426591, 1); - if (!(((x_570425945.kids).length == L_570426592))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553649377 += 1; + if (!(((x_p0.kids).length == L_553649378))) { + failedAssertImpl__stdZassertions_u85(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - if (((result_570425946.kids).length == 0)) { - result_570425946 = null; + if (((result_553648730.kids).length == 0)) { + result_553648730 = null; } }; - return result_570425946; + return result_553648730; } -function mergeTocs_570425974(orig_570425975, news_570425976) { - var result_570425977 = null; +function mergeTocs__dochack_u630(orig_p0, news_p1) { + var result_553648761 = null; - result_570425977 = uncovered_570425944(orig_570425975); - if ((result_570425977 == null)) { - result_570425977 = news_570425976; + result_553648761 = uncovered__dochack_u600(orig_p0); + if ((result_553648761 == null)) { + result_553648761 = news_p1; } else { Label1: { - var i_570425989 = 0; - var colontmp__570426587 = 0; - colontmp__570426587 = (news_570425976.kids).length; - var i_570426588 = 0; + var i_553648773 = 0; + var colontmp__553649373 = 0; + colontmp__553649373 = (news_p1.kids).length; + var i_553649374 = 0; Label2: { Label3: while (true) { - if (!(i_570426588 < colontmp__570426587)) break Label3; - i_570425989 = i_570426588; - result_570425977.kids.push(news_570425976.kids[chckIndx(i_570425989, 0, (news_570425976.kids).length - 1)]);; - i_570426588 = addInt(i_570426588, 1); + if (!(i_553649374 < colontmp__553649373)) break Label3; + i_553648773 = i_553649374; + result_553648761.kids.push(news_p1.kids[chckIndx(i_553648773, 0, (news_p1.kids).length - 1)]);; + i_553649374 = addInt(i_553649374, 1); } }; }; } - return result_570425977; + return result_553648761; } -function buildToc_570425994(orig_570425995, types_570425996, procs_570425997) { - var result_570425998 = null; +function buildToc__dochack_u650(orig_p0, types_p1, procs_p2) { + var result_553648782 = null; - var newStuff_570426003 = {heading: null, kids: [], doSort: true, sortId: 0}; + var newStuff_553648787 = {heading: null, kids: [], doSort: true, sortId: 0}; Label1: { - var t_570426007 = null; - var i_570426579 = 0; - var L_570426580 = (types_570425996).length; + var t_553648791 = null; + var i_553649365 = 0; + var L_553649366 = (types_p1).length; Label2: { Label3: while (true) { - if (!(i_570426579 < L_570426580)) break Label3; - t_570426007 = types_570425996[chckIndx(i_570426579, 0, (types_570425996).length - 1)]; - var c_570426012 = {heading: t_570426007.cloneNode(true), kids: [], doSort: true, sortId: 0}; - t_570426007.__karaxMarker__ = true; + if (!(i_553649365 < L_553649366)) break Label3; + t_553648791 = types_p1[chckIndx(i_553649365, 0, (types_p1).length - 1)]; + var c_553648796 = {heading: t_553648791.cloneNode(true), kids: [], doSort: true, sortId: 0}; + t_553648791.__karaxMarker__ = true; Label4: { - var p_570426016 = null; - var i_570426576 = 0; - var L_570426577 = (procs_570425997).length; + var p_553648800 = null; + var i_553649362 = 0; + var L_553649363 = (procs_p2).length; Label5: { Label6: while (true) { - if (!(i_570426576 < L_570426577)) break Label6; - p_570426016 = procs_570425997[chckIndx(i_570426576, 0, (procs_570425997).length - 1)]; - if (!(p_570426016.hasOwnProperty('__karaxMarker__'))) { - var xx_570426017 = p_570426016.parentNode.getElementsByClassName("attachedType"); - if ((((xx_570426017).length == 1) && (xx_570426017[chckIndx(0, 0, (xx_570426017).length - 1)].textContent == t_570426007.textContent))) { - var q_570426022 = tree_570425474("A", [text_570425499(p_570426016.title)]); - q_570426022.setAttribute("href", p_570426016.getAttribute("href")); - c_570426012.kids.push({heading: q_570426022, kids: [], sortId: 0, doSort: false});; - p_570426016.__karaxMarker__ = true; + if (!(i_553649362 < L_553649363)) break Label6; + p_553648800 = procs_p2[chckIndx(i_553649362, 0, (procs_p2).length - 1)]; + if (!(p_553648800.hasOwnProperty('__karaxMarker__'))) { + var xx_553648801 = p_553648800.parentNode.getElementsByClassName("attachedType"); + if ((((xx_553648801).length == 1) && (xx_553648801[chckIndx(0, 0, (xx_553648801).length - 1)].textContent == t_553648791.textContent))) { + var q_553648806 = tree__dochack_u130("A", [text__dochack_u155(p_553648800.title)]); + q_553648806.setAttribute("href", p_553648800.getAttribute("href")); + c_553648796.kids.push({heading: q_553648806, kids: [], sortId: 0, doSort: false});; + p_553648800.__karaxMarker__ = true; } } - i_570426576 = addInt(i_570426576, 1); - if (!(((procs_570425997).length == L_570426577))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553649362 += 1; + if (!(((procs_p2).length == L_553649363))) { + failedAssertImpl__stdZassertions_u85(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - newStuff_570426003.kids.push(c_570426012);; - i_570426579 = addInt(i_570426579, 1); - if (!(((types_570425996).length == L_570426580))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + newStuff_553648787.kids.push(c_553648796);; + i_553649365 += 1; + if (!(((types_p1).length == L_553649366))) { + failedAssertImpl__stdZassertions_u85(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_570425998 = mergeTocs_570425974(orig_570425995, newStuff_570426003); + result_553648782 = mergeTocs__dochack_u630(orig_p0, newStuff_553648787); - return result_570425998; + return result_553648782; } -function add_570425492(parent_570425493, kid_570425494) { - if (((parent_570425493.nodeName == "TR") && ((kid_570425494.nodeName == "TD") || (kid_570425494.nodeName == "TH")))) { - var k_570425495 = document.createElement("TD"); - k_570425495.appendChild(kid_570425494); - parent_570425493.appendChild(k_570425495); +function add__dochack_u148(parent_p0, kid_p1) { + if (((parent_p0.nodeName == "TR") && ((kid_p1.nodeName == "TD") || (kid_p1.nodeName == "TH")))) { + var k_553648279 = document.createElement("TD"); + k_553648279.appendChild(kid_p1); + parent_p0.appendChild(k_553648279); } else { - parent_570425493.appendChild(kid_570425494); + parent_p0.appendChild(kid_p1); } } -function setClass_570425496(e_570425497, value_570425498) { - e_570425497.setAttribute("class", value_570425498); +function setClass__dochack_u152(e_p0, value_p1) { + e_p0.setAttribute("class", value_p1); } -function toHtml_570425622(x_570425623, isRoot_570425624) { - -function HEX3Aanonymous_570425642(a_570425643, b_570425644) { - var result_570425645 = 0; - - BeforeRet: { - if ((!((a_570425643.heading == null)) && !((b_570425644.heading == null)))) { - var x_570425654 = a_570425643.heading.textContent; - var y_570425655 = b_570425644.heading.textContent; - if ((x_570425654 < y_570425655)) { - result_570425645 = (-1); - break BeforeRet; - } - - if ((y_570425655 < x_570425654)) { - result_570425645 = 1; - break BeforeRet; - } - - result_570425645 = 0; - break BeforeRet; - } - else { - result_570425645 = subInt(a_570425643.sortId, b_570425644.sortId); - break BeforeRet; - } - - }; +function toHtml__dochack_u278(x_p0, isRoot_p1) { + var Temporary1; - return result_570425645; +function HEX3Aanonymous__dochack_u298(a_p0, b_p1) { + var result_553648429 = 0; + BeforeRet: { + if ((!((a_p0.heading == null)) && !((b_p1.heading == null)))) { + var x_553648438 = a_p0.heading.textContent; + var y_553648439 = b_p1.heading.textContent; + if ((x_553648438 < y_553648439)) { + result_553648429 = (-1); + break BeforeRet; + } + + if ((y_553648439 < x_553648438)) { + result_553648429 = 1; + break BeforeRet; } + + result_553648429 = 0; + break BeforeRet; + } + else { + result_553648429 = subInt(a_p0.sortId, b_p1.sortId); + break BeforeRet; + } + + }; - var result_570425625 = null; + return result_553648429; + +} + + var result_553648409 = null; BeforeRet: { - if ((x_570425623 == null)) { - result_570425625 = null; + if ((x_p0 == null)) { + result_553648409 = null; break BeforeRet; } - if (((x_570425623.kids).length == 0)) { - if ((x_570425623.heading == null)) { - result_570425625 = null; + if (((x_p0.kids).length == 0)) { + if ((x_p0.heading == null)) { + result_553648409 = null; break BeforeRet; } - result_570425625 = x_570425623.heading.cloneNode(true); + result_553648409 = x_p0.heading.cloneNode(true); break BeforeRet; } - result_570425625 = tree_570425474("DIV", []); - if ((!((x_570425623.heading == null)) && !(x_570425623.heading.hasOwnProperty('__karaxMarker__')))) { - add_570425492(result_570425625, x_570425623.heading.cloneNode(true)); + result_553648409 = tree__dochack_u130("DIV", []); + if ((!((x_p0.heading == null)) && !(x_p0.heading.hasOwnProperty('__karaxMarker__')))) { + add__dochack_u148(result_553648409, x_p0.heading.cloneNode(true)); } - var ul_570425641 = tree_570425474("UL", []); - if (isRoot_570425624) { - setClass_570425496(ul_570425641, "simple simple-toc"); + var ul_553648425 = tree__dochack_u130("UL", []); + if (isRoot_p1) { + setClass__dochack_u152(ul_553648425, "simple simple-toc"); } else { - setClass_570425496(ul_570425641, "simple"); + setClass__dochack_u152(ul_553648425, "simple"); } - if (x_570425623.doSort) { - x_570425623.kids.sort(HEX3Aanonymous_570425642); + if (x_p0.doSort) { + Temporary1 = HEX3Aanonymous__dochack_u298.bind(null); Temporary1.ClP_0 = HEX3Aanonymous__dochack_u298; Temporary1.ClE_0 = null; + x_p0.kids.sort(Temporary1); } - Label1: { - var k_570425667 = null; - var i_570426595 = 0; - var L_570426596 = (x_570425623.kids).length; - Label2: { - Label3: while (true) { - if (!(i_570426595 < L_570426596)) break Label3; - k_570425667 = x_570425623.kids[chckIndx(i_570426595, 0, (x_570425623.kids).length - 1)]; - var y_570425668 = toHtml_570425622(k_570425667, false); - if (!((y_570425668 == null))) { - add_570425492(ul_570425641, tree_570425474("LI", [y_570425668])); + Label2: { + var k_553648451 = null; + var i_553649381 = 0; + var L_553649382 = (x_p0.kids).length; + Label3: { + Label4: while (true) { + if (!(i_553649381 < L_553649382)) break Label4; + k_553648451 = x_p0.kids[chckIndx(i_553649381, 0, (x_p0.kids).length - 1)]; + var y_553648452 = toHtml__dochack_u278(k_553648451, false); + if (!((y_553648452 == null))) { + add__dochack_u148(ul_553648425, tree__dochack_u130("LI", [y_553648452])); } - i_570426595 = addInt(i_570426595, 1); - if (!(((x_570425623.kids).length == L_570426596))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + i_553649381 += 1; + if (!(((x_p0.kids).length == L_553649382))) { + failedAssertImpl__stdZassertions_u85(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - if (!((ul_570425641.childNodes.length == 0))) { - add_570425492(result_570425625, ul_570425641); + if (!((ul_553648425.childNodes.length == 0))) { + add__dochack_u148(result_553648409, ul_553648425); } - if ((result_570425625.childNodes.length == 0)) { - result_570425625 = null; + if ((result_553648409.childNodes.length == 0)) { + result_553648409 = null; } }; - return result_570425625; + return result_553648409; } -function replaceById_570425502(id_570425503, newTree_570425504) { - var x_570425505 = document.getElementById(id_570425503); - x_570425505.parentNode.replaceChild(newTree_570425504, x_570425505); - newTree_570425504.id = id_570425503; +function replaceById__dochack_u158(id_p0, newTree_p1) { + var x_553648289 = document.getElementById(id_p0); + x_553648289.parentNode.replaceChild(newTree_p1, x_553648289); + newTree_p1.id = id_p0; } -function togglevis_570426052(d_570426053) { - if ((d_570426053.style.display == "none")) { - d_570426053.style.display = "inline"; +function togglevis__dochack_u708(d_p0) { + if ((d_p0.style.display == "none")) { + d_p0.style.display = "inline"; } else { - d_570426053.style.display = "none"; + d_p0.style.display = "none"; } } -function groupBy(value_570426055) { - var toc_570426056 = document.getElementById("toc-list"); - if ((alternative_570426051[0] == null)) { - var tt_570426064 = {heading: null, kids: [], sortId: 0, doSort: false}; - toToc_570425755(toc_570426056, tt_570426064); - tt_570426064 = tt_570426064.kids[chckIndx(0, 0, (tt_570426064.kids).length - 1)]; - var types_570426069 = [[]]; - var procs_570426074 = [[]]; - extractItems_570425543(tt_570426064, "Types", types_570426069, 0); - extractItems_570425543(tt_570426064, "Procs", procs_570426074, 0); - extractItems_570425543(tt_570426064, "Converters", procs_570426074, 0); - extractItems_570425543(tt_570426064, "Methods", procs_570426074, 0); - extractItems_570425543(tt_570426064, "Templates", procs_570426074, 0); - extractItems_570425543(tt_570426064, "Macros", procs_570426074, 0); - extractItems_570425543(tt_570426064, "Iterators", procs_570426074, 0); - var ntoc_570426075 = buildToc_570425994(tt_570426064, types_570426069[0], procs_570426074[0]); - var x_570426076 = toHtml_570425622(ntoc_570426075, true); - alternative_570426051[0] = tree_570425474("DIV", [x_570426076]); +function groupBy(value_p0) { + var toc_553648840 = document.getElementById("toc-list"); + if ((alternative_553648835[0] == null)) { + var tt_553648848 = {heading: null, kids: [], sortId: 0, doSort: false}; + toToc__dochack_u411(toc_553648840, tt_553648848); + tt_553648848 = tt_553648848.kids[chckIndx(0, 0, (tt_553648848.kids).length - 1)]; + var types_553648853 = [[]]; + var procs_553648858 = [[]]; + extractItems__dochack_u199(tt_553648848, "Types", types_553648853, 0); + extractItems__dochack_u199(tt_553648848, "Procs", procs_553648858, 0); + extractItems__dochack_u199(tt_553648848, "Converters", procs_553648858, 0); + extractItems__dochack_u199(tt_553648848, "Methods", procs_553648858, 0); + extractItems__dochack_u199(tt_553648848, "Templates", procs_553648858, 0); + extractItems__dochack_u199(tt_553648848, "Macros", procs_553648858, 0); + extractItems__dochack_u199(tt_553648848, "Iterators", procs_553648858, 0); + var ntoc_553648859 = buildToc__dochack_u650(tt_553648848, types_553648853[0], procs_553648858[0]); + var x_553648860 = toHtml__dochack_u278(ntoc_553648859, true); + alternative_553648835[0] = tree__dochack_u130("DIV", [x_553648860]); } - if ((value_570426055 == "type")) { - replaceById_570425502("tocRoot", alternative_570426051[0]); + if ((value_p0 == "type")) { + replaceById__dochack_u158("tocRoot", alternative_553648835[0]); } else { - replaceById_570425502("tocRoot", tree_570425474("DIV", [])); + replaceById__dochack_u158("tocRoot", tree__dochack_u130("DIV", [])); } - togglevis_570426052(document.getElementById("toc-list")); + togglevis__dochack_u708(document.getElementById("toc-list")); } -function HEX5BHEX5D_738198811(s_738198814, x_738198815) { - var result_738198816 = []; +function HEX5BHEX5D__pureZstrutils_u1307(s_p0, x_p1) { + var result_721421600 = []; - var a_738198818 = x_738198815.a; - var L_738198820 = addInt(subInt(subInt((s_738198814).length, x_738198815.b), a_738198818), 1); - result_738198816 = nimCopy(null, mnewString(chckRange(L_738198820, 0, 2147483647)), NTI33554449); + var a_721421602 = x_p1.a; + var L_721421604 = addInt(subInt(subInt((s_p0).length, x_p1.b), a_721421602), 1); + result_721421600 = nimCopy(null, mnewString(chckRange(L_721421604, 0, 2147483647)), NTI33554449); Label1: { - var i_738198825 = 0; - var i_570426605 = 0; + var i_721421609 = 0; + var i_553649391 = 0; Label2: { Label3: while (true) { - if (!(i_570426605 < L_738198820)) break Label3; - i_738198825 = i_570426605; - result_738198816[chckIndx(i_738198825, 0, (result_738198816).length - 1)] = s_738198814[chckIndx(addInt(i_738198825, a_738198818), 0, (s_738198814).length - 1)]; - i_570426605 = addInt(i_570426605, 1); + if (!(i_553649391 < L_721421604)) break Label3; + i_721421609 = i_553649391; + result_721421600[chckIndx(i_721421609, 0, (result_721421600).length - 1)] = s_p0[chckIndx(addInt(i_721421609, a_721421602), 0, (s_p0).length - 1)]; + i_553649391 = addInt(i_553649391, 1); } }; }; - return result_738198816; + return result_721421600; } -function HEX2EHEX2E_973078632(a_973078635, b_973078636) { - var result_973078639 = ({a: 0, b: 0}); +function HEX2EHEX2E__stdZenumutils_u105(a_p0, b_p1) { + var result_939524208 = ({a: 0, b: 0}); - result_973078639 = nimCopy(result_973078639, {a: a_973078635, b: b_973078636}, NTI973078613); + result_939524208 = nimCopy(result_939524208, {a: a_p0, b: b_p1}, NTI939524181); - return result_973078639; + return result_939524208; } -async function loadIndex_570426270() { - var result_570426272 = null; +async function loadIndex__dochack_u928() { + var result_553649058 = null; BeforeRet: { - var indexURL_570426278 = document.getElementById("indexLink").getAttribute("href"); - var rootURL_570426304 = HEX5BHEX5D_738198811(cstrToNimstr(indexURL_570426278), HEX2EHEX2E_973078632(0, 14)); - var resp_570426316 = (await (await fetch(indexURL_570426278)).text()); - var indexElem_570426317 = document.createElement("div"); - indexElem_570426317.innerHTML = resp_570426316; + var indexURL_553649064 = document.getElementById("indexLink").getAttribute("href"); + var rootURL_553649090 = HEX5BHEX5D__pureZstrutils_u1307(cstrToNimstr(indexURL_553649064), HEX2EHEX2E__stdZenumutils_u105(0, 14)); + var resp_553649102 = (await (await fetch(indexURL_553649064)).text()); + var indexElem_553649103 = document.createElement("div"); + indexElem_553649103.innerHTML = resp_553649102; Label1: { - var href_570426339 = null; - var colontmp__570426599 = []; - colontmp__570426599 = indexElem_570426317.getElementsByClassName("reference"); - var i_570426601 = 0; - var L_570426602 = (colontmp__570426599).length; + var href_553649125 = null; + var colontmp__553649385 = []; + colontmp__553649385 = indexElem_553649103.getElementsByClassName("reference"); + var i_553649387 = 0; + var L_553649388 = (colontmp__553649385).length; Label2: { Label3: while (true) { - if (!(i_570426601 < L_570426602)) break Label3; - href_570426339 = colontmp__570426599[chckIndx(i_570426601, 0, (colontmp__570426599).length - 1)]; - href_570426339.setAttribute("href", toJSStr((rootURL_570426304 || []).concat(cstrToNimstr(href_570426339.getAttribute("href")) || []))); - db_570426093[0].push(href_570426339);; - contents_570426094[0].push(href_570426339.getAttribute("data-doc-search-tag"));; - i_570426601 = addInt(i_570426601, 1); - if (!(((colontmp__570426599).length == L_570426602))) { - failedAssertImpl_268435541(makeNimstrLit("iterators.nim(246, 11) `len(a) == L` the length of the seq changed while iterating over it")); + if (!(i_553649387 < L_553649388)) break Label3; + href_553649125 = colontmp__553649385[chckIndx(i_553649387, 0, (colontmp__553649385).length - 1)]; + href_553649125.setAttribute("href", toJSStr((rootURL_553649090).concat(cstrToNimstr(href_553649125.getAttribute("href"))))); + db_553648877[0].push(href_553649125);; + contents_553648878[0].push(href_553649125.getAttribute("data-doc-search-tag"));; + i_553649387 += 1; + if (!(((colontmp__553649385).length == L_553649388))) { + failedAssertImpl__stdZassertions_u85(makeNimstrLit("iterators.nim(254, 11) `len(a) == L` the length of the seq changed while iterating over it")); } } }; }; - result_570426272 = undefined; + result_553649058 = undefined; break BeforeRet; }; - return result_570426272; + return result_553649058; } -function then_570426448(future_570426451, onSuccess_570426452, onReject_570426453) { - var result_570426454 = null; +function then__dochack_u1106(future_p0, onSuccess_p1, onReject_p2) { + var result_553649240 = null; BeforeRet: { - var ret_570426464 = null; - ret_570426464 = future_570426451.then(onSuccess_570426452, onReject_570426453) - result_570426454 = ret_570426464; + var ret_553649250 = null; + ret_553649250 = future_p0.then(onSuccess_p1, onReject_p2); + result_553649240 = ret_553649250; break BeforeRet; }; - return result_570426454; + return result_553649240; } -function nsuToLowerAsciiChar(c_738197589) { - var result_738197590 = 0; +function nsuToLowerAsciiChar(c_p0) { + var result_721420374 = 0; - if ((ConstSet2[c_738197589] != undefined)) { - result_738197590 = (c_738197589 ^ 32); + if ((ConstSet2[c_p0] != undefined)) { + result_721420374 = (c_p0 ^ 32); } else { - result_738197590 = c_738197589; + result_721420374 = c_p0; } - return result_738197590; + return result_721420374; } -function fuzzyMatch_721420304(pattern_721420305, str_721420306) { +function fuzzyMatch__fuzzysearch_u16(pattern_p0, str_p1) { var Temporary4; var Temporary5; var Temporary6; var Temporary7; var Temporary8; - var result_721420309 = {Field0: 0, Field1: false}; + var result_704643093 = {Field0: 0, Field1: false}; - var scoreState_721420310 = (-100); - var headerMatched_721420311 = false; - var unmatchedLeadingCharCount_721420312 = 0; - var consecutiveMatchCount_721420313 = 0; - var strIndex_721420314 = 0; - var patIndex_721420315 = 0; - var score_721420316 = 0; + var scoreState_704643094 = (-100); + var headerMatched_704643095 = false; + var unmatchedLeadingCharCount_704643096 = 0; + var consecutiveMatchCount_704643097 = 0; + var strIndex_704643098 = 0; + var patIndex_704643099 = 0; + var score_704643100 = 0; Label1: { Label2: while (true) { - if (!((strIndex_721420314 < ((str_721420306) == null ? 0 : (str_721420306).length)) && (patIndex_721420315 < ((pattern_721420305) == null ? 0 : (pattern_721420305).length)))) break Label2; + if (!((strIndex_704643098 < ((str_p1) == null ? 0 : (str_p1).length)) && (patIndex_704643099 < ((pattern_p0) == null ? 0 : (pattern_p0).length)))) break Label2; Label3: { - var patternChar_721420319 = nsuToLowerAsciiChar(pattern_721420305.charCodeAt(chckIndx(patIndex_721420315, 0, (pattern_721420305).length - 1))); - var strChar_721420320 = nsuToLowerAsciiChar(str_721420306.charCodeAt(chckIndx(strIndex_721420314, 0, (str_721420306).length - 1))); - if ((ConstSet3[patternChar_721420319] != undefined)) { - patIndex_721420315 = addInt(patIndex_721420315, 1); + var patternChar_704643103 = nsuToLowerAsciiChar(pattern_p0.charCodeAt(chckIndx(patIndex_704643099, 0, (pattern_p0).length - 1))); + var strChar_704643104 = nsuToLowerAsciiChar(str_p1.charCodeAt(chckIndx(strIndex_704643098, 0, (str_p1).length - 1))); + if ((ConstSet3[patternChar_704643103] != undefined)) { + patIndex_704643099 = addInt(patIndex_704643099, 1); break Label3; } - if ((ConstSet4[strChar_721420320] != undefined)) { - strIndex_721420314 = addInt(strIndex_721420314, 1); + if ((ConstSet4[strChar_704643104] != undefined)) { + strIndex_704643098 = addInt(strIndex_704643098, 1); break Label3; } - if ((!(headerMatched_721420311) && (strChar_721420320 == 58))) { - headerMatched_721420311 = true; - scoreState_721420310 = (-100); - score_721420316 = ((Math.floor((0.5 * score_721420316))) | 0); - patIndex_721420315 = 0; - strIndex_721420314 = addInt(strIndex_721420314, 1); + if ((!(headerMatched_704643095) && (strChar_704643104 == 58))) { + headerMatched_704643095 = true; + scoreState_704643094 = (-100); + score_704643100 = ((Math.floor((0.5 * score_704643100))) | 0); + patIndex_704643099 = 0; + strIndex_704643098 = addInt(strIndex_704643098, 1); break Label3; } - if ((strChar_721420320 == patternChar_721420319)) { - switch (scoreState_721420310) { + if ((strChar_704643104 == patternChar_704643103)) { + switch (scoreState_704643094) { case (-100): case 20: - scoreState_721420310 = 10; + scoreState_704643094 = 10; break; case 0: - scoreState_721420310 = 5; - score_721420316 = addInt(score_721420316, scoreState_721420310); + scoreState_704643094 = 5; + score_704643100 = addInt(score_704643100, scoreState_704643094); break; case 10: case 5: - consecutiveMatchCount_721420313 = addInt(consecutiveMatchCount_721420313, 1); - scoreState_721420310 = 5; - score_721420316 = addInt(score_721420316, mulInt(5, consecutiveMatchCount_721420313)); - if ((scoreState_721420310 == 10)) { - score_721420316 = addInt(score_721420316, 10); + consecutiveMatchCount_704643097 = addInt(consecutiveMatchCount_704643097, 1); + scoreState_704643094 = 5; + score_704643100 = addInt(score_704643100, mulInt(5, consecutiveMatchCount_704643097)); + if ((scoreState_704643094 == 10)) { + score_704643100 = addInt(score_704643100, 10); } - var onBoundary_721420372 = (patIndex_721420315 == ((pattern_721420305) == null ? -1 : (pattern_721420305).length - 1)); - if ((!(onBoundary_721420372) && (strIndex_721420314 < ((str_721420306) == null ? -1 : (str_721420306).length - 1)))) { - var nextPatternChar_721420373 = nsuToLowerAsciiChar(pattern_721420305.charCodeAt(chckIndx(addInt(patIndex_721420315, 1), 0, (pattern_721420305).length - 1))); - var nextStrChar_721420374 = nsuToLowerAsciiChar(str_721420306.charCodeAt(chckIndx(addInt(strIndex_721420314, 1), 0, (str_721420306).length - 1))); - if (!!((ConstSet5[nextStrChar_721420374] != undefined))) Temporary4 = false; else { Temporary4 = !((nextStrChar_721420374 == nextPatternChar_721420373)); } onBoundary_721420372 = Temporary4; + var onBoundary_704643156 = (patIndex_704643099 == ((pattern_p0) == null ? -1 : (pattern_p0).length - 1)); + if ((!(onBoundary_704643156) && (strIndex_704643098 < ((str_p1) == null ? -1 : (str_p1).length - 1)))) { + var nextPatternChar_704643157 = nsuToLowerAsciiChar(pattern_p0.charCodeAt(chckIndx(addInt(patIndex_704643099, 1), 0, (pattern_p0).length - 1))); + var nextStrChar_704643158 = nsuToLowerAsciiChar(str_p1.charCodeAt(chckIndx(addInt(strIndex_704643098, 1), 0, (str_p1).length - 1))); + if (!!((ConstSet5[nextStrChar_704643158] != undefined))) Temporary4 = false; else { Temporary4 = !((nextStrChar_704643158 == nextPatternChar_704643157)); } onBoundary_704643156 = Temporary4; } - if (onBoundary_721420372) { - scoreState_721420310 = 20; - score_721420316 = addInt(score_721420316, scoreState_721420310); + if (onBoundary_704643156) { + scoreState_704643094 = 20; + score_704643100 = addInt(score_704643100, scoreState_704643094); } break; case (-1): case (-3): - if (!((ConstSet6[str_721420306.charCodeAt(chckIndx(subInt(strIndex_721420314, 1), 0, (str_721420306).length - 1))] != undefined))) Temporary5 = true; else { if (!(ConstSet7[str_721420306.charCodeAt(chckIndx(subInt(strIndex_721420314, 1), 0, (str_721420306).length - 1))] != undefined)) Temporary6 = false; else { Temporary6 = (ConstSet8[str_721420306.charCodeAt(chckIndx(strIndex_721420314, 0, (str_721420306).length - 1))] != undefined); } Temporary5 = Temporary6; } var isLeadingChar_721420398 = Temporary5; - if (isLeadingChar_721420398) { - scoreState_721420310 = 10; + if (!((ConstSet6[str_p1.charCodeAt(chckIndx(subInt(strIndex_704643098, 1), 0, (str_p1).length - 1))] != undefined))) Temporary5 = true; else { if (!(ConstSet7[str_p1.charCodeAt(chckIndx(subInt(strIndex_704643098, 1), 0, (str_p1).length - 1))] != undefined)) Temporary6 = false; else { Temporary6 = (ConstSet8[str_p1.charCodeAt(chckIndx(strIndex_704643098, 0, (str_p1).length - 1))] != undefined); } Temporary5 = Temporary6; } var isLeadingChar_704643182 = Temporary5; + if (isLeadingChar_704643182) { + scoreState_704643094 = 10; } else { - scoreState_721420310 = 0; - score_721420316 = addInt(score_721420316, scoreState_721420310); + scoreState_704643094 = 0; + score_704643100 = addInt(score_704643100, scoreState_704643094); } break; } - patIndex_721420315 = addInt(patIndex_721420315, 1); + patIndex_704643099 = addInt(patIndex_704643099, 1); } else { - switch (scoreState_721420310) { + switch (scoreState_704643094) { case (-100): - scoreState_721420310 = (-3); - score_721420316 = addInt(score_721420316, scoreState_721420310); + scoreState_704643094 = (-3); + score_704643100 = addInt(score_704643100, scoreState_704643094); break; case 5: - scoreState_721420310 = (-1); - score_721420316 = addInt(score_721420316, scoreState_721420310); - consecutiveMatchCount_721420313 = 0; + scoreState_704643094 = (-1); + score_704643100 = addInt(score_704643100, scoreState_704643094); + consecutiveMatchCount_704643097 = 0; break; case (-3): - if ((unmatchedLeadingCharCount_721420312 < 3)) { - scoreState_721420310 = (-3); - score_721420316 = addInt(score_721420316, scoreState_721420310); + if ((unmatchedLeadingCharCount_704643096 < 3)) { + scoreState_704643094 = (-3); + score_704643100 = addInt(score_704643100, scoreState_704643094); } - unmatchedLeadingCharCount_721420312 = addInt(unmatchedLeadingCharCount_721420312, 1); + unmatchedLeadingCharCount_704643096 = addInt(unmatchedLeadingCharCount_704643096, 1); break; default: - scoreState_721420310 = (-1); - score_721420316 = addInt(score_721420316, scoreState_721420310); + scoreState_704643094 = (-1); + score_704643100 = addInt(score_704643100, scoreState_704643094); break; } } - strIndex_721420314 = addInt(strIndex_721420314, 1); + strIndex_704643098 = addInt(strIndex_704643098, 1); }; } }; - if (!(patIndex_721420315 == ((pattern_721420305) == null ? 0 : (pattern_721420305).length))) Temporary7 = false; else { if ((strIndex_721420314 == ((str_721420306) == null ? 0 : (str_721420306).length))) Temporary8 = true; else { Temporary8 = !((ConstSet9[str_721420306.charCodeAt(chckIndx(strIndex_721420314, 0, (str_721420306).length - 1))] != undefined)); } Temporary7 = Temporary8; } if (Temporary7) { - score_721420316 = addInt(score_721420316, 10); + if (!(patIndex_704643099 == ((pattern_p0) == null ? 0 : (pattern_p0).length))) Temporary7 = false; else { if ((strIndex_704643098 == ((str_p1) == null ? 0 : (str_p1).length))) Temporary8 = true; else { Temporary8 = !((ConstSet9[str_p1.charCodeAt(chckIndx(strIndex_704643098, 0, (str_p1).length - 1))] != undefined)); } Temporary7 = Temporary8; } if (Temporary7) { + score_704643100 = addInt(score_704643100, 10); } - var colontmp__570426618 = nimMax(0, score_721420316); - var colontmp__570426619 = (0 < score_721420316); - result_721420309 = nimCopy(result_721420309, {Field0: colontmp__570426618, Field1: colontmp__570426619}, NTI721420302); + var colontmp__553649404 = nimMax(0, score_704643100); + var colontmp__553649405 = (0 < score_704643100); + result_704643093 = nimCopy(result_704643093, {Field0: colontmp__553649404, Field1: colontmp__553649405}, NTI704643086); - return result_721420309; + return result_704643093; } -function escapeCString_570426095(x_570426096, x_570426096_Idx) { - var s_570426097 = []; +function escapeCString__dochack_u751(x_p0, x_p0_Idx) { + var s_553648881 = []; Label1: { - var c_570426098 = 0; - var iHEX60gensym6_570426622 = 0; - var nHEX60gensym6_570426623 = ((x_570426096[x_570426096_Idx]) == null ? 0 : (x_570426096[x_570426096_Idx]).length); + var c_553648882 = 0; + var iHEX60gensym13_553649408 = 0; + var nHEX60gensym13_553649409 = ((x_p0[x_p0_Idx]) == null ? 0 : (x_p0[x_p0_Idx]).length); Label2: { Label3: while (true) { - if (!(iHEX60gensym6_570426622 < nHEX60gensym6_570426623)) break Label3; - c_570426098 = x_570426096[x_570426096_Idx].charCodeAt(chckIndx(iHEX60gensym6_570426622, 0, (x_570426096[x_570426096_Idx]).length - 1)); - switch (c_570426098) { + if (!(iHEX60gensym13_553649408 < nHEX60gensym13_553649409)) break Label3; + c_553648882 = x_p0[x_p0_Idx].charCodeAt(chckIndx(iHEX60gensym13_553649408, 0, (x_p0[x_p0_Idx]).length - 1)); + switch (c_553648882) { case 60: - s_570426097.push.apply(s_570426097, [38,108,116,59]);; + s_553648881.push.apply(s_553648881, [38,108,116,59]);; break; case 62: - s_570426097.push.apply(s_570426097, [38,103,116,59]);; + s_553648881.push.apply(s_553648881, [38,103,116,59]);; break; default: - addChar(s_570426097, c_570426098);; + addChar(s_553648881, c_553648882);; break; } - iHEX60gensym6_570426622 = addInt(iHEX60gensym6_570426622, 1); + iHEX60gensym13_553649408 += 1; } }; }; - x_570426096[x_570426096_Idx] = toJSStr(s_570426097); + x_p0[x_p0_Idx] = toJSStr(s_553648881); } -function dosearch_570426099(value_570426100) { - -function HEX3Aanonymous_570426127(a_570426132, b_570426133) { - var result_570426138 = 0; +function dosearch__dochack_u755(value_p0) { + var Temporary5; - result_570426138 = subInt(b_570426133["Field1"], a_570426132["Field1"]); +function HEX3Aanonymous__dochack_u783(a_p0, b_p1) { + var result_553648924 = 0; - return result_570426138; + result_553648924 = subInt(b_p1["Field1"], a_p0["Field1"]); - } + return result_553648924; - var result_570426101 = null; +} + + var result_553648885 = null; BeforeRet: { - if (((db_570426093[0]).length == 0)) { + if (((db_553648877[0]).length == 0)) { break BeforeRet; } - var ul_570426105 = tree_570425474("UL", []); - result_570426101 = tree_570425474("DIV", []); - setClass_570425496(result_570426101, "search_results"); - var matches_570426110 = []; + var ul_553648889 = tree__dochack_u130("UL", []); + result_553648885 = tree__dochack_u130("DIV", []); + setClass__dochack_u152(result_553648885, "search_results"); + var matches_553648894 = []; Label1: { - var i_570426118 = 0; - var colontmp__570426609 = 0; - colontmp__570426609 = (db_570426093[0]).length; - var i_570426610 = 0; + var i_553648902 = 0; + var colontmp__553649395 = 0; + colontmp__553649395 = (db_553648877[0]).length; + var i_553649396 = 0; Label2: { Label3: while (true) { - if (!(i_570426610 < colontmp__570426609)) break Label3; - i_570426118 = i_570426610; + if (!(i_553649396 < colontmp__553649395)) break Label3; + i_553648902 = i_553649396; Label4: { - var c_570426119 = contents_570426094[0][chckIndx(i_570426118, 0, (contents_570426094[0]).length - 1)]; - if (((c_570426119 == "Examples") || (c_570426119 == "PEG construction"))) { + var c_553648903 = contents_553648878[0][chckIndx(i_553648902, 0, (contents_553648878[0]).length - 1)]; + if (((c_553648903 == "Examples") || (c_553648903 == "PEG construction"))) { break Label4; } - var tmpTuple_570426120 = fuzzyMatch_721420304(value_570426100, c_570426119); - var score_570426121 = tmpTuple_570426120["Field0"]; - var matched_570426122 = tmpTuple_570426120["Field1"]; - if (matched_570426122) { - matches_570426110.push({Field0: db_570426093[0][chckIndx(i_570426118, 0, (db_570426093[0]).length - 1)], Field1: score_570426121});; + var tmpTuple_553648904 = fuzzyMatch__fuzzysearch_u16(value_p0, c_553648903); + var score_553648905 = tmpTuple_553648904["Field0"]; + var matched_553648906 = tmpTuple_553648904["Field1"]; + if (matched_553648906) { + matches_553648894.push({Field0: db_553648877[0][chckIndx(i_553648902, 0, (db_553648877[0]).length - 1)], Field1: score_553648905});; } }; - i_570426610 = addInt(i_570426610, 1); + i_553649396 = addInt(i_553649396, 1); } }; }; - matches_570426110.sort(HEX3Aanonymous_570426127); - Label5: { - var i_570426155 = 0; - var colontmp__570426613 = 0; - colontmp__570426613 = nimMin((matches_570426110).length, 29); - var i_570426614 = 0; - Label6: { - Label7: while (true) { - if (!(i_570426614 < colontmp__570426613)) break Label7; - i_570426155 = i_570426614; - matches_570426110[chckIndx(i_570426155, 0, (matches_570426110).length - 1)]["Field0"].innerHTML = matches_570426110[chckIndx(i_570426155, 0, (matches_570426110).length - 1)]["Field0"].getAttribute("data-doc-search-tag"); - escapeCString_570426095(matches_570426110[chckIndx(i_570426155, 0, (matches_570426110).length - 1)]["Field0"], "innerHTML"); - add_570425492(ul_570426105, tree_570425474("LI", [matches_570426110[chckIndx(i_570426155, 0, (matches_570426110).length - 1)]["Field0"]])); - i_570426614 = addInt(i_570426614, 1); + Temporary5 = HEX3Aanonymous__dochack_u783.bind(null); Temporary5.ClP_0 = HEX3Aanonymous__dochack_u783; Temporary5.ClE_0 = null; + matches_553648894.sort(Temporary5); + Label6: { + var i_553648941 = 0; + var colontmp__553649399 = 0; + colontmp__553649399 = nimMin((matches_553648894).length, 29); + var i_553649400 = 0; + Label7: { + Label8: while (true) { + if (!(i_553649400 < colontmp__553649399)) break Label8; + i_553648941 = i_553649400; + matches_553648894[chckIndx(i_553648941, 0, (matches_553648894).length - 1)]["Field0"].innerHTML = matches_553648894[chckIndx(i_553648941, 0, (matches_553648894).length - 1)]["Field0"].getAttribute("data-doc-search-tag"); + escapeCString__dochack_u751(matches_553648894[chckIndx(i_553648941, 0, (matches_553648894).length - 1)]["Field0"], "innerHTML"); + add__dochack_u148(ul_553648889, tree__dochack_u130("LI", [matches_553648894[chckIndx(i_553648941, 0, (matches_553648894).length - 1)]["Field0"]])); + i_553649400 = addInt(i_553649400, 1); } }; }; - if ((ul_570426105.childNodes.length == 0)) { - add_570425492(result_570426101, tree_570425474("B", [text_570425499("no search results")])); + if ((ul_553648889.childNodes.length == 0)) { + add__dochack_u148(result_553648885, tree__dochack_u130("B", [text__dochack_u155("no search results")])); } else { - add_570425492(result_570426101, tree_570425474("B", [text_570425499("search results")])); - add_570425492(result_570426101, ul_570426105); + add__dochack_u148(result_553648885, tree__dochack_u130("B", [text__dochack_u155("search results")])); + add__dochack_u148(result_553648885, ul_553648889); } }; - return result_570426101; + return result_553648885; } -function search() { +function wrapper__dochack_u1091() { + var elem_553649220 = document.getElementById("searchInput"); + var value_553649221 = elem_553649220.value; + if (!((((value_553649221) == null ? 0 : (value_553649221).length) == 0))) { + if ((oldtoc_553649214[0] == null)) { + oldtoc_553649214[0] = document.getElementById("tocRoot"); + } -function wrapper_570426433() { - var elem_570426434 = document.getElementById("searchInput"); - var value_570426435 = elem_570426434.value; - if (!((((value_570426435) == null ? 0 : (value_570426435).length) == 0))) { - if ((oldtoc_570426428[0] == null)) { - oldtoc_570426428[0] = document.getElementById("tocRoot"); - } - - var results_570426439 = dosearch_570426099(value_570426435); - replaceById_570425502("tocRoot", results_570426439); - } - else { - if (!((oldtoc_570426428[0] == null))) { - replaceById_570425502("tocRoot", oldtoc_570426428[0]); - } - } - - + var results_553649225 = dosearch__dochack_u755(value_553649221); + replaceById__dochack_u158("tocRoot", results_553649225); } + else { + if (!((oldtoc_553649214[0] == null))) { + replaceById__dochack_u158("tocRoot", oldtoc_553649214[0]); + } + } + + +} - if ((loadIndexFut_570426431[0] == null)) { - loadIndexFut_570426431[0] = loadIndex_570426270(); - var _ = then_570426448(loadIndexFut_570426431[0], wrapper_570426433, null); +function search() { + var Temporary1; + + if ((loadIndexFut_553649217[0] == null)) { + loadIndexFut_553649217[0] = loadIndex__dochack_u928(); + (then__dochack_u1106(loadIndexFut_553649217[0], wrapper__dochack_u1091, null)); } - if (!((timer_570426429[0] == null))) { - clearTimeout(timer_570426429[0]); + if (!((timer_553649215[0] == null))) { + clearTimeout(timer_553649215[0]); } - timer_570426429[0] = setTimeout(wrapper_570426433, 400); + Temporary1 = wrapper__dochack_u1091.bind(null); Temporary1.ClP_0 = wrapper__dochack_u1091; Temporary1.ClE_0 = null; + timer_553649215[0] = setTimeout(Temporary1, 400); } @@ -1538,8 +1546,8 @@ function copyToClipboard() { function updatePreTags() { - const allPreTags = document.querySelectorAll("pre") - + const allPreTags = document.querySelectorAll("pre:not(.line-nums)") + allPreTags.forEach((e) => { const div = document.createElement("div") @@ -1590,20 +1598,22 @@ function copyToClipboard() { } var Temporary1; -var t_570425383 = window.localStorage.getItem("theme"); -if ((t_570425383 == null)) { +var Temporary2; +var t_553648167 = window.localStorage.getItem("theme"); +if ((t_553648167 == null)) { Temporary1 = "auto"; } else { -Temporary1 = t_570425383; +Temporary1 = t_553648167; } setTheme(Temporary1); -var alternative_570426051 = [null]; -var db_570426093 = [[]]; -var contents_570426094 = [[]]; -var oldtoc_570426428 = [null]; -var timer_570426429 = [null]; -var loadIndexFut_570426431 = [null]; +var alternative_553648835 = [null]; +var db_553648877 = [[]]; +var contents_553648878 = [[]]; +var oldtoc_553649214 = [null]; +var timer_553649215 = [null]; +var loadIndexFut_553649217 = [null]; copyToClipboard(); -window.addEventListener("DOMContentLoaded", onDOMLoaded, false); +Temporary2 = onDOMLoaded.bind(null); Temporary2.ClP_0 = onDOMLoaded; Temporary2.ClE_0 = null; +window.addEventListener("DOMContentLoaded", Temporary2, false); diff --git a/expandFirst.html b/expandFirst.html index 5fd7056..a700dee 100644 --- a/expandFirst.html +++ b/expandFirst.html @@ -1,21 +1,25 @@ - + src/littlesugar/expandFirst + + + + - + - +
@@ -37,7 +41,7 @@

src/littlesugar/expandFirst

- Search: + Search:
Group by: @@ -132,13 +136,10 @@

Templates

- - - diff --git a/namedWhile.html b/namedWhile.html index ab96c69..423ac64 100644 --- a/namedWhile.html +++ b/namedWhile.html @@ -1,21 +1,25 @@ - + src/littlesugar/namedWhile + + + + - + - +
@@ -37,7 +41,7 @@

src/littlesugar/namedWhile

- Search: + Search:
Group by: @@ -106,13 +110,10 @@

Macros

- - - diff --git a/nimdoc.out.css b/nimdoc.out.css index 1417d9e..0c399e4 100644 --- a/nimdoc.out.css +++ b/nimdoc.out.css @@ -623,8 +623,8 @@ pre { table.line-nums-table { border-radius: 4px; - border: 1px solid #cccccc; - background-color: ghostwhite; + border: 1px solid var(--border); + background-color: var(--secondary-background); border-collapse: separate; margin-top: 15px; margin-bottom: 25px; } @@ -660,6 +660,9 @@ table { border-collapse: collapse; border-color: var(--third-background); border-spacing: 0; +} + +table:not(.line-nums-table) { font-size: 0.9em; } @@ -678,7 +681,7 @@ table th.docinfo-name { text-align: right; } -table tr:hover { +table:not(.line-nums-table) tr:hover { background-color: var(--third-background); } @@ -767,9 +770,16 @@ div.topic { div.search_results { background-color: var(--third-background); - margin: 3em; + margin: 3vh 5vw; padding: 1em; - border: 1px solid #4d4d4d; } + border: 1px solid #4d4d4d; + position: fixed; + top: 10px; + isolation: isolate; + max-width: calc(100vw - 6em); + z-index: 1; + max-height: calc(100vh - 6em); + overflow-y: scroll;} div#global-links ul { margin-left: 0; diff --git a/reinterpretPtr.html b/reinterpretPtr.html index b9edc21..f48b95f 100644 --- a/reinterpretPtr.html +++ b/reinterpretPtr.html @@ -1,21 +1,25 @@ - + src/littlesugar/reinterpretPtr + + + + - + - +
@@ -37,7 +41,7 @@

src/littlesugar/reinterpretPtr

- Search: + Search:
Group by: @@ -52,7 +56,7 @@

src/littlesugar/reinterpretPtr

Procs
- - - diff --git a/reinterpretPtr.idx b/reinterpretPtr.idx index a6be84d..3b2a3b1 100644 --- a/reinterpretPtr.idx +++ b/reinterpretPtr.idx @@ -1,2 +1,2 @@ nimTitle reinterpretPtr reinterpretPtr.html module src/littlesugar/reinterpretPtr 0 -nim reinterpretPtr reinterpretPtr.html#reinterpretPtr proc reinterpretPtr[T: ptr](src: ptr or pointer): T 1 +nim reinterpretPtr reinterpretPtr.html#reinterpretPtr proc reinterpretPtr[T: ptr or cstring](src: ptr or pointer): T 1 diff --git a/replaceNimNodeTree.html b/replaceNimNodeTree.html index 6db0716..8cf64f0 100644 --- a/replaceNimNodeTree.html +++ b/replaceNimNodeTree.html @@ -1,21 +1,25 @@ - + src/littlesugar/replaceNimNodeTree + + + + - + - +
@@ -37,7 +41,7 @@

src/littlesugar/replaceNimNodeTree

- Search: + Search:
Group by: @@ -98,13 +102,10 @@

Procs

- - - diff --git a/setLambda.html b/setLambda.html index 09de934..c5d47ab 100644 --- a/setLambda.html +++ b/setLambda.html @@ -1,21 +1,25 @@ - + src/littlesugar/setLambda + + + + - + - +
@@ -37,7 +41,7 @@

src/littlesugar/setLambda

- Search: + Search:
Group by: @@ -102,13 +106,10 @@

Macros

- - - diff --git a/staticDeque.html b/staticDeque.html index aadc282..4be0458 100644 --- a/staticDeque.html +++ b/staticDeque.html @@ -1,21 +1,25 @@ - + src/littlesugar/staticDeque + + + + - + - +
@@ -37,7 +41,7 @@

src/littlesugar/staticDeque

- Search: + Search:
Group by: @@ -116,10 +120,6 @@

src/littlesugar/staticDeque

- @@ -138,8 +138,7 @@

src/littlesugar/staticDeque

Types

-
StaticDeque[N; T] = object
-  
+
StaticDeque[N; T] = object

This is similar to std/deques, but has fixed size storage that can be allocated on stack.

@@ -294,17 +293,6 @@

Templates

-
-
- -
-
-
-
template minimumSizeUint(N: static range[1 .. MaxBitSize]): untyped
-
- - -
@@ -319,13 +307,10 @@

Templates

- - - diff --git a/staticDeque.idx b/staticDeque.idx index 6dc60ea..831eb27 100644 --- a/staticDeque.idx +++ b/staticDeque.idx @@ -1,15 +1,14 @@ nimTitle staticDeque staticDeque.html module src/littlesugar/staticDeque 0 -nim minimumSizeUint staticDeque.html#minimumSizeUint.t,staticrange[] template minimumSizeUint(N: static range[1 .. MaxBitSize]): untyped 2 -nim StaticDeque staticDeque.html#StaticDeque object StaticDeque 23 -nim high staticDeque.html#high,StaticDeque proc high(x: StaticDeque): int 31 -nim maxLen staticDeque.html#maxLen,typedesc[StaticDeque] proc maxLen(T: typedesc[StaticDeque]): int 34 -nim maxLen staticDeque.html#maxLen.t,StaticDeque template maxLen(x: StaticDeque): int 37 -nim len staticDeque.html#len,StaticDeque proc len(x: StaticDeque): int 40 -nim isFull staticDeque.html#isFull,StaticDeque proc isFull(x: StaticDeque): bool 43 -nim addLast staticDeque.html#addLast,StaticDeque,sink proc addLast(x: var StaticDeque; item: sink x.T) 49 -nim popFirst staticDeque.html#popFirst,StaticDeque proc popFirst(x: var StaticDeque): x.T 54 -nim `[]` staticDeque.html#[],StaticDeque,Natural proc `[]`(x: StaticDeque; i: Natural): lent x.T 69 -nim `[]` staticDeque.html#[],StaticDeque,Natural_2 proc `[]`(x: var StaticDeque; i: Natural): var x.T 84 -nim items staticDeque.html#items.i,StaticDeque iterator items(x: StaticDeque): x.T 96 -nim mitems staticDeque.html#mitems.i,StaticDeque iterator mitems(x: var StaticDeque): var x.T 102 -nimgrp [] staticDeque.html#[]-procs-all proc 69 +nim StaticDeque staticDeque.html#StaticDeque object StaticDeque 20 +nim high staticDeque.html#high,StaticDeque proc high(x: StaticDeque): int 28 +nim maxLen staticDeque.html#maxLen,typedesc[StaticDeque] proc maxLen(T: typedesc[StaticDeque]): int 31 +nim maxLen staticDeque.html#maxLen.t,StaticDeque template maxLen(x: StaticDeque): int 34 +nim len staticDeque.html#len,StaticDeque proc len(x: StaticDeque): int 37 +nim isFull staticDeque.html#isFull,StaticDeque proc isFull(x: StaticDeque): bool 40 +nim addLast staticDeque.html#addLast,StaticDeque,sink proc addLast(x: var StaticDeque; item: sink x.T) 46 +nim popFirst staticDeque.html#popFirst,StaticDeque proc popFirst(x: var StaticDeque): x.T 51 +nim `[]` staticDeque.html#[],StaticDeque,Natural proc `[]`(x: StaticDeque; i: Natural): lent x.T 66 +nim `[]` staticDeque.html#[],StaticDeque,Natural_2 proc `[]`(x: var StaticDeque; i: Natural): var x.T 81 +nim items staticDeque.html#items.i,StaticDeque iterator items(x: StaticDeque): x.T 93 +nim mitems staticDeque.html#mitems.i,StaticDeque iterator mitems(x: var StaticDeque): var x.T 99 +nimgrp [] staticDeque.html#[]-procs-all proc 66 diff --git a/staticSeq.html b/staticSeq.html index f89e160..1270fba 100644 --- a/staticSeq.html +++ b/staticSeq.html @@ -1,21 +1,25 @@ - + src/littlesugar/staticSeq + + + + - + - +
@@ -37,7 +41,7 @@

src/littlesugar/staticSeq

- Search: + Search:
Group by: @@ -156,8 +160,7 @@

src/littlesugar/staticSeq

Types

-
StaticSeq[N; T] = object
-  
+
StaticSeq[N; T] = object
This is similar to seq, but internal storage size is fixed to N and it can be allocated on stack. So you can add only N items to this. Uses array as internal storage. @@ -381,13 +384,10 @@

Templates

- - - diff --git a/staticSeq.idx b/staticSeq.idx index c3a9a1b..79a248a 100644 --- a/staticSeq.idx +++ b/staticSeq.idx @@ -18,6 +18,6 @@ nim toStaticSeq staticSeq.html#toStaticSeq,staticarray[N,T] proc toStaticSeq[N: nim toStaticSeq staticSeq.html#toStaticSeq,staticstring proc toStaticSeq(src: static string): auto 110 nim toOpenArray staticSeq.html#toOpenArray.t,StaticSeq,Natural,Natural template toOpenArray(x: StaticSeq; first, last: Natural): untyped 117 nim toOpenArray staticSeq.html#toOpenArray.t,StaticSeq,Natural template toOpenArray(x: StaticSeq; first: Natural = 0): untyped 125 -nimgrp tostaticseq staticSeq.html#toStaticSeq-procs-all proc 106 nimgrp [] staticSeq.html#[]-procs-all proc 51 +nimgrp tostaticseq staticSeq.html#toStaticSeq-procs-all proc 106 nimgrp toopenarray staticSeq.html#toOpenArray-templates-all template 117 diff --git a/theindex.html b/theindex.html index 6ab7533..768bce6 100644 --- a/theindex.html +++ b/theindex.html @@ -1,21 +1,25 @@ - + Index + + + + - + - +
@@ -106,10 +110,6 @@

Index

  • staticSeq: template minimumSizeInt(N: static range[1 .. int.high]): untyped
  • -
    minimumSizeUint:
    mitems:
    reinterpretPtr:
    replace:
    - - - diff --git a/unpackToArgs.html b/unpackToArgs.html index b60dc9b..fc934eb 100644 --- a/unpackToArgs.html +++ b/unpackToArgs.html @@ -1,21 +1,25 @@ - + src/littlesugar/unpackToArgs + + + + - + - +
    @@ -37,7 +41,7 @@

    src/littlesugar/unpackToArgs

    - Search: + Search:
    Group by: @@ -101,13 +105,10 @@

    Macros

    - - - diff --git a/withAliases.html b/withAliases.html index 3ef564b..fa4cd29 100644 --- a/withAliases.html +++ b/withAliases.html @@ -1,21 +1,25 @@ - + src/littlesugar/withAliases + + + + - + - +
    @@ -37,7 +41,7 @@

    src/littlesugar/withAliases

    - Search: + Search:
    Group by: @@ -200,13 +204,10 @@

    Templates

    - - -