subscript 8.5.0 → 8.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/feature/shift.js +6 -1
- package/justin.js +6 -0
- package/justin.min.js +1 -1
- package/package.json +1 -1
- package/subscript.min.js +1 -1
package/README.md
CHANGED
|
@@ -38,7 +38,7 @@ _Subscript_ supports [common syntax](https://en.wikipedia.org/wiki/Comparison_of
|
|
|
38
38
|
* `a < b`, `a <= b`, `a > b`, `a >= b`, `a == b`, `a != b`
|
|
39
39
|
* `~a`, `a & b`, `a ^ b`, `a | b`, `a << b`, `a >> b`
|
|
40
40
|
* `!a`, `a && b`, `a || b`
|
|
41
|
-
* `a = b`, `a += b`, `a -= b`, `a *= b`, `a /= b`, `a %= b`
|
|
41
|
+
* `a = b`, `a += b`, `a -= b`, `a *= b`, `a /= b`, `a %= b`, , `a <<= b`, `a >>= b`
|
|
42
42
|
* `(a, (b))`, `a; b;`
|
|
43
43
|
* `"abc"`, `'abc'`
|
|
44
44
|
* `0.1`, `1.2e+3`
|
|
@@ -52,6 +52,7 @@ It extends _subscript_ with:
|
|
|
52
52
|
+ `a ** b`, `a **= b`
|
|
53
53
|
+ `a ?? b`, `a ??= b`
|
|
54
54
|
+ `a ||= b`, `a &&= b`
|
|
55
|
+
+ `a >>> b`, `a >>>= b`
|
|
55
56
|
+ `a ? b : c`, `a?.b`
|
|
56
57
|
+ `...a`
|
|
57
58
|
+ `[a, b]`
|
package/feature/shift.js
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
|
-
import { PREC_OR, PREC_AND, PREC_SHIFT, PREC_XOR, PREC_PREFIX } from "../src/const.js"
|
|
1
|
+
import { PREC_OR, PREC_AND, PREC_SHIFT, PREC_XOR, PREC_PREFIX, PREC_ASSIGN } from "../src/const.js"
|
|
2
2
|
import { unary, binary } from "../src/parse.js"
|
|
3
3
|
import { operator, compile } from "../src/compile.js"
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
binary('>>', PREC_SHIFT), operator('>>', (a, b) => b && (a = compile(a), b = compile(b), ctx => a(ctx) >> b(ctx)))
|
|
7
7
|
binary('<<', PREC_SHIFT), operator('<<', (a, b) => b && (a = compile(a), b = compile(b), ctx => a(ctx) << b(ctx)))
|
|
8
|
+
|
|
9
|
+
binary('>>=', PREC_ASSIGN, true)
|
|
10
|
+
operator('>>=', (a, b) => (b = compile(b), prop(a, (obj, path, ctx) => (obj[path] >>= b(ctx)))))
|
|
11
|
+
binary('<<=', PREC_ASSIGN, true)
|
|
12
|
+
operator('<<=', (a, b) => (b = compile(b), prop(a, (obj, path, ctx) => (obj[path] <<= b(ctx)))))
|
package/justin.js
CHANGED
|
@@ -33,6 +33,12 @@ operator('||=', (a, b) => (b = compile(b), prop(a, (obj, path, ctx) => (obj[path
|
|
|
33
33
|
binary('&&=', PREC_ASSIGN, true)
|
|
34
34
|
operator('&&=', (a, b) => (b = compile(b), prop(a, (obj, path, ctx) => (obj[path] &&= b(ctx)))))
|
|
35
35
|
|
|
36
|
+
// unsigned shift
|
|
37
|
+
binary('>>>', PREC_EQ)
|
|
38
|
+
operator('>>>', (a, b) => (a = compile(a), b = compile(b), ctx => a(ctx) >>> b(ctx)))
|
|
39
|
+
binary('>>>=', PREC_ASSIGN, true)
|
|
40
|
+
operator('>>>=', (a, b) => (b = compile(b), prop(a, (obj, path, ctx) => (obj[path] >>>= b(ctx)))))
|
|
41
|
+
|
|
36
42
|
// add JS literals
|
|
37
43
|
token('undefined', 20, a => a ? err() : [, undefined])
|
|
38
44
|
token('NaN', 20, a => a ? err() : [, NaN])
|
package/justin.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
let e,
|
|
1
|
+
let r,e,t=t=>(r=0,e=t,t=i(),e[r]?a():t||""),a=(t="Bad syntax",a=e.slice(0,r).split("\n"),l=a.pop())=>{let s=e.slice(r-108,r).split("\n").pop(),i=e.slice(r,r+108).split("\n").shift();throw EvalError(`${t} at ${a.length}:${l.length} \`${r>=108?"…":""}${s}┃${i}\``,"font-weight: bold")},l=(t,a=r,l)=>{for(;l=t(e.charCodeAt(r));)r+=l;return e.slice(a,r)},s=(t=1,a=r)=>(r+=t,e.slice(a,r)),i=(e=0,s)=>{let i,o,c,d;for(;(i=p())&&(c=((d=n[i])&&d(o,e))??(!o&&l(t.id)));)o=c;return s&&(i==s?r++:a()),o},p=t=>{for(;(t=e.charCodeAt(r))<=32;)r++;return t};t.id=r=>r>=48&&r<=57||r>=65&&r<=90||r>=97&&r<=122||36==r||95==r||r>=192&&215!=r&&247!=r;let n=[],o=(l,s=32,i,p=l.charCodeAt(0),o=l.length,c=n[p],d=l.toUpperCase()!==l)=>n[p]=(p,n,f,h=r)=>(f?l==f:(o<2||e.substr(r,o)==l)&&(f=l))&&n<s&&!(d&&t.id(e.charCodeAt(r+o)))&&(r+=o,i(p)||(r=h,!c&&a()))||c?.(p,n,f),c=(r,e,t=!1)=>o(r,e,((a,l)=>a&&(l=i(e-(t?.5:0)))&&[r,a,l])),d=(r,e,t)=>o(r,e,(a=>t?a&&[r,a]:!a&&(a=i(e-.5))&&[r,a])),f=(r,e,t)=>{o(r,e,((t,a)=>(a=i(e),t?.[0]!==r&&(t=[r,t]),a?.[0]===r?t.push(...a.slice(1)):t.push(a),t)))},h=(r,e)=>o(r[0],e,(e=>!e&&[r,i(0,r.charCodeAt(1))])),u=(r,e)=>o(r[0],e,(e=>e&&[r[0],e,i(0,r.charCodeAt(1))]));const A=r=>Array.isArray(r)?r[0]?m[r[0]](...r.slice(1)):()=>r[1]:A.id(r);A.id=r=>e=>e?.[r];const m={},y=(r,e,t=m[r])=>m[r]=(...r)=>e(...r)||t&&t(...r),C=(r,e,t,l,s)=>"()"===r[0]?C(r[1],e,t):"string"==typeof r?t=>e(t,r,t):"."===r[0]?(l=A(r[1]),s=r[2],r=>e(l(r),s,r)):"["===r[0]?(l=A(r[1]),s=A(r[2]),r=>e(l(r),s(r),r)):t?(r=A(r),t=>e([r(t)],0,t)):()=>a("Bad left value"),g=(r,e)=>[,(r=+l((r=>46===r||r>=48&&r<=57||(69===r||101===r?2:0))))!=r?a():r];n[46]=r=>!r&&g();for(let r=48;r<=57;r++)n[r]=r=>r?a():g();const b={n:"\n",r:"\r",t:"\t",b:"\b",f:"\f",v:"\v"},v=t=>(l,i,p="")=>{for(l&&a("Unexpected string"),s();(i=e.charCodeAt(r))-t;)92===i?(s(),i=s(),p+=b[i]||i):p+=s();return s()||a("Bad string"),[,p]};n[34]=v(34),n[39]=v(39),u("()",170),y("(",((r,e,t)=>(t=e?","===e[0]?(e=e.slice(1).map((r=>r?A(r):err())),r=>e.map((e=>e(r)))):(e=A(e),r=>[e(r)]):()=>[],C(r,((r,e,a)=>r[e](...t(a))),!0)))),u("[]",170),y("[",((r,e)=>e?(r=A(r),e=A(e),t=>r(t)[e(t)]):err())),c(".",170),y(".",((r,e)=>(r=A(r),e=e[0]?e:e[1],t=>r(t)[e]))),h("()",170),y("()",(r=>(!r&&a("Empty ()"),A(r))));const $=(...r)=>(r=r.map(A),e=>r.map((r=>r(e))).pop());f(",",10),y(",",$),f(";",5),y(";",$),c("=",20,!0),y("=",((r,e)=>(e=A(e),C(r,((r,t,a)=>r[t]=e(a)))))),c("*",120),y("*",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)*e(t)))),c("/",120),y("/",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)/e(t)))),c("%",120),y("%",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)%e(t)))),c("*=",20,!0),y("*=",((r,e)=>(e=A(e),C(r,((r,t,a)=>r[t]*=e(a)))))),c("/=",20,!0),y("/=",((r,e)=>(e=A(e),C(r,((r,t,a)=>r[t]/=e(a)))))),c("%=",20,!0),y("%=",((r,e)=>(e=A(e),C(r,((r,t,a)=>r[t]%=e(a)))))),c("+",110),y("+",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)+e(t)))),c("-",110),y("-",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)-e(t)))),d("+",140),y("+",((r,e)=>!e&&(r=A(r),e=>+r(e)))),d("-",140),y("-",((r,e)=>!e&&(r=A(r),e=>-r(e)))),c("+=",20,!0),y("+=",((r,e)=>(e=A(e),C(r,((r,t,a)=>r[t]+=e(a)))))),c("-=",20,!0),y("-=",((r,e)=>(e=A(e),C(r,((r,t,a)=>r[t]-=e(a)))))),o("++",150,(r=>r?["++-",r]:["++",i(149)])),y("++",(r=>C(r,((r,e,t)=>++r[e])))),y("++-",(r=>C(r,((r,e,t)=>r[e]++)))),o("--",150,(r=>r?["--+",r]:["--",i(149)])),y("--",(r=>C(r,((r,e,t)=>--r[e])))),y("--+",(r=>C(r,((r,e,t)=>r[e]--)))),d("~",140),y("~",((r,e)=>!e&&(r=A(r),e=>~r(e)))),c("|",50),y("|",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)|e(t)))),c("&",70),y("&",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)&e(t)))),c("^",60),y("^",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)^e(t)))),c("==",80),y("==",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)==e(t)))),c("!=",80),y("!=",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)!=e(t)))),c(">",90),y(">",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)>e(t)))),c("<",90),y("<",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)<e(t)))),c(">=",90),y(">=",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)>=e(t)))),c("<=",90),y("<=",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)<=e(t)))),c(">>",100),y(">>",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)>>e(t)))),c("<<",100),y("<<",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)<<e(t)))),c(">>=",20,!0),y(">>=",((r,e)=>(e=A(e),prop(r,((r,t,a)=>r[t]>>=e(a)))))),c("<<=",20,!0),y("<<=",((r,e)=>(e=A(e),prop(r,((r,t,a)=>r[t]<<=e(a)))))),d("!",140),y("!",((r,e)=>!e&&(r=A(r),e=>!r(e)))),c("||",30),y("||",((r,e)=>(r=A(r),e=A(e),t=>r(t)||e(t)))),c("&&",40),y("&&",((r,e)=>(r=A(r),e=A(e),t=>r(t)&&e(t))));var E=r=>A(t(r));o("/*",200,((t,a)=>(l((t=>42!==t&&47!==e.charCodeAt(r+1))),s(2),t||i(a)||[]))),o("//",200,((r,e)=>(l((r=>r>=32)),r||i(e)||[]))),c("**",130,!0),y("**",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)**e(t)))),o("?",20,((r,e,t)=>r&&(e=i(19))&&l((r=>58===r))&&["?",r,e,i(19)])),y("?",((r,e,t)=>(r=A(r),e=A(e),t=A(t),a=>r(a)?e(a):t(a)))),o("true",200,(r=>r?err():[,!0])),o("false",200,(r=>r?err():[,!1])),h("[]",200),y("[]",((r,e)=>(r=(r=r?","===r[0]?r.slice(1):[r]:[]).map((r=>"..."===r[0]?(r=A(r[1]),e=>r(e)):(r=A(r),e=>[r(e)]))),e=>r.flatMap((r=>r(e)))))),h("{}",200),y("{}",((r,e)=>(r=(r=r?","!==r[0]?[r]:r.slice(1):[]).map((r=>A("string"==typeof r?[":",r,r]:r))),e=>Object.fromEntries(r.flatMap((r=>r(e))))))),c(":",19,!0),y(":",((r,e)=>(e=A(e),Array.isArray(r)?(r=A(r),t=>[[r(t),e(t)]]):t=>[[r,e(t)]]))),c("=>",20,!0),y("=>",((r,e)=>(r=(r="()"===r[0]?r[1]:r)?r=","===r[0]?r.slice(1):[r]:[],e=A("{}"===e[0]?e[1]:e),(t=null)=>(t=Object.create(t),(...a)=>(r.map(((r,e)=>t[r]=a[e])),e(t)))))),c(""),o("?.",170,(r=>r&&["?.",r])),y("?.",(r=>(r=A(r),e=>r(e)||(()=>{})))),o("?.",170,((r,e)=>r&&!(e=i(170))?.map&&["?.",r,e])),y("?.",((r,e)=>e&&(r=A(r),t=>r(t)?.[e]))),y("(",((r,e,t,a,l,s)=>"?."===r[0]&&(r[2]||Array.isArray(r[1]))&&(a=e?","===e[0]?(e=e.slice(1).map(A),r=>e.map((e=>e(r)))):(e=A(e),r=>[e(r)]):()=>[],!r[2]&&(r=r[1]),l="["===r[0]?A(r[2]):()=>r[2],t=A(r[1]),r=>t(r)?.[l(r)]?.(...a(r))))),d("...",140),y("...",(r=>(r=A(r),e=>Object.entries(r(e))))),c("in",90),y("in",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)in e(t)))),c("===",80),c("!==",9),y("===",((r,e)=>(r=A(r),e=A(e),t=>r(t)===e(t)))),y("!==",((r,e)=>(r=A(r),e=A(e),t=>r(t)!==e(t)))),c("??",30),y("??",((r,e)=>e&&(r=A(r),e=A(e),t=>r(t)??e(t)))),c("??=",20,!0),y("??=",((r,e)=>(e=A(e),C(r,((r,t,a)=>r[t]??=e(a)))))),c("||=",20,!0),y("||=",((r,e)=>(e=A(e),C(r,((r,t,a)=>r[t]||=e(a)))))),c("&&=",20,!0),y("&&=",((r,e)=>(e=A(e),C(r,((r,t,a)=>r[t]&&=e(a)))))),c(">>>",80),y(">>>",((r,e)=>(r=A(r),e=A(e),t=>r(t)>>>e(t)))),c(">>>=",20,!0),y(">>>=",((r,e)=>(e=A(e),C(r,((r,t,a)=>r[t]>>>=e(a)))))),o("undefined",20,(r=>r?a():[,void 0])),o("NaN",20,(r=>r?a():[,NaN])),o("null",20,(r=>r?a():[,null]));export{u as access,c as binary,A as compile,E as default,h as group,f as nary,y as operator,t as parse,o as token,d as unary};
|
package/package.json
CHANGED
package/subscript.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
let t,r,e=e=>(t=0,r=e,e=
|
|
1
|
+
let t,r,e=e=>(t=0,r=e,e=a(),r[t]?o():e||""),o=(e="Bad syntax",o=r.slice(0,t).split("\n"),s=o.pop())=>{let p=r.slice(t-108,t).split("\n").pop(),a=r.slice(t,t+108).split("\n").shift();throw EvalError(`${e} at ${o.length}:${s.length} \`${t>=108?"…":""}${p}┃${a}\``,"font-weight: bold")},s=(e,o=t,s)=>{for(;s=e(r.charCodeAt(t));)t+=s;return r.slice(o,t)},p=(e=1,o=t)=>(t+=e,r.slice(o,t)),a=(r=0,p)=>{let a,i,c,d;for(;(a=l())&&(c=((d=n[a])&&d(i,r))??(!i&&s(e.id)));)i=c;return p&&(a==p?t++:o()),i},l=e=>{for(;(e=r.charCodeAt(t))<=32;)t++;return e};e.id=t=>t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||36==t||95==t||t>=192&&215!=t&&247!=t;let n=[],i=(s,p=32,a,l=s.charCodeAt(0),i=s.length,c=n[l],d=s.toUpperCase()!==s)=>n[l]=(l,n,h,f=t)=>(h?s==h:(i<2||r.substr(t,i)==s)&&(h=s))&&n<p&&!(d&&e.id(r.charCodeAt(t+i)))&&(t+=i,a(l)||(t=f,!c&&o()))||c?.(l,n,h),c=(t,r,e=!1)=>i(t,r,((o,s)=>o&&(s=a(r-(e?.5:0)))&&[t,o,s])),d=(t,r,e)=>i(t,r,(o=>e?o&&[t,o]:!o&&(o=a(r-.5))&&[t,o])),h=(t,r,e)=>{i(t,r,((e,o)=>(o=a(r),e?.[0]!==t&&(e=[t,e]),o?.[0]===t?e.push(...o.slice(1)):e.push(o),e)))},f=(t,r)=>i(t[0],r,(r=>!r&&[t,a(0,t.charCodeAt(1))])),u=(t,r)=>i(t[0],r,(r=>r&&[t[0],r,a(0,t.charCodeAt(1))]));const A=(t,r)=>[,(t=+s((t=>46===t||t>=48&&t<=57||(69===t||101===t?2:0))))!=t?o():t];n[46]=t=>!t&&A();for(let t=48;t<=57;t++)n[t]=t=>t?o():A();const C={n:"\n",r:"\r",t:"\t",b:"\b",f:"\f",v:"\v"},g=e=>(s,a,l="")=>{for(s&&o("Unexpected string"),p();(a=r.charCodeAt(t))-e;)92===a?(p(),a=p(),l+=C[a]||a):l+=p();return p()||o("Bad string"),[,l]};n[34]=g(34),n[39]=g(39);const $=t=>Array.isArray(t)?t[0]?m[t[0]](...t.slice(1)):()=>t[1]:$.id(t);$.id=t=>r=>r?.[t];const m={},v=(t,r,e=m[t])=>m[t]=(...t)=>r(...t)||e&&e(...t),y=(t,r,e,s,p)=>"()"===t[0]?y(t[1],r,e):"string"==typeof t?e=>r(e,t,e):"."===t[0]?(s=$(t[1]),p=t[2],t=>r(s(t),p,t)):"["===t[0]?(s=$(t[1]),p=$(t[2]),t=>r(s(t),p(t),t)):e?(t=$(t),e=>r([t(e)],0,e)):()=>o("Bad left value");u("()",170),v("(",((t,r,e)=>(e=r?","===r[0]?(r=r.slice(1).map((t=>t?$(t):err())),t=>r.map((r=>r(t)))):(r=$(r),t=>[r(t)]):()=>[],y(t,((t,r,o)=>t[r](...e(o))),!0)))),u("[]",170),v("[",((t,r)=>r?(t=$(t),r=$(r),e=>t(e)[r(e)]):err())),c(".",170),v(".",((t,r)=>(t=$(t),r=r[0]?r:r[1],e=>t(e)[r]))),f("()",170),v("()",(t=>(!t&&o("Empty ()"),$(t))));const b=(...t)=>(t=t.map($),r=>t.map((t=>t(r))).pop());h(",",10),v(",",b),h(";",5),v(";",b),c("=",20,!0),v("=",((t,r)=>(r=$(r),y(t,((t,e,o)=>t[e]=r(o)))))),c("*",120),v("*",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)*r(e)))),c("/",120),v("/",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)/r(e)))),c("%",120),v("%",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)%r(e)))),c("*=",20,!0),v("*=",((t,r)=>(r=$(r),y(t,((t,e,o)=>t[e]*=r(o)))))),c("/=",20,!0),v("/=",((t,r)=>(r=$(r),y(t,((t,e,o)=>t[e]/=r(o)))))),c("%=",20,!0),v("%=",((t,r)=>(r=$(r),y(t,((t,e,o)=>t[e]%=r(o)))))),c("+",110),v("+",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)+r(e)))),c("-",110),v("-",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)-r(e)))),d("+",140),v("+",((t,r)=>!r&&(t=$(t),r=>+t(r)))),d("-",140),v("-",((t,r)=>!r&&(t=$(t),r=>-t(r)))),c("+=",20,!0),v("+=",((t,r)=>(r=$(r),y(t,((t,e,o)=>t[e]+=r(o)))))),c("-=",20,!0),v("-=",((t,r)=>(r=$(r),y(t,((t,e,o)=>t[e]-=r(o)))))),i("++",150,(t=>t?["++-",t]:["++",a(149)])),v("++",(t=>y(t,((t,r,e)=>++t[r])))),v("++-",(t=>y(t,((t,r,e)=>t[r]++)))),i("--",150,(t=>t?["--+",t]:["--",a(149)])),v("--",(t=>y(t,((t,r,e)=>--t[r])))),v("--+",(t=>y(t,((t,r,e)=>t[r]--)))),d("~",140),v("~",((t,r)=>!r&&(t=$(t),r=>~t(r)))),c("|",50),v("|",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)|r(e)))),c("&",70),v("&",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)&r(e)))),c("^",60),v("^",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)^r(e)))),c("==",80),v("==",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)==r(e)))),c("!=",80),v("!=",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)!=r(e)))),c(">",90),v(">",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)>r(e)))),c("<",90),v("<",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)<r(e)))),c(">=",90),v(">=",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)>=r(e)))),c("<=",90),v("<=",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)<=r(e)))),c(">>",100),v(">>",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)>>r(e)))),c("<<",100),v("<<",((t,r)=>r&&(t=$(t),r=$(r),e=>t(e)<<r(e)))),c(">>=",20,!0),v(">>=",((t,r)=>(r=$(r),prop(t,((t,e,o)=>t[e]>>=r(o)))))),c("<<=",20,!0),v("<<=",((t,r)=>(r=$(r),prop(t,((t,e,o)=>t[e]<<=r(o)))))),d("!",140),v("!",((t,r)=>!r&&(t=$(t),r=>!t(r)))),c("||",30),v("||",((t,r)=>(t=$(t),r=$(r),e=>t(e)||r(e)))),c("&&",40),v("&&",((t,r)=>(t=$(t),r=$(r),e=>t(e)&&r(e))));var x=t=>$(e(t));export{u as access,c as binary,$ as compile,x as default,f as group,h as nary,v as operator,e as parse,i as token,d as unary};
|