nv-facutil-jsoper-def
v0.0.1
Published
nv-facutil-jsoper-def ======================= - js-operator descriptions - for build repl/cli tool
Downloads
2
Readme
nv-facutil-jsoper-def
- js-operator descriptions
- for build repl/cli tool
install
- npm install nv-facutil-jsoper-def
splitted
usage
const { } = require("nv-facutil-jsoper-def");
example
{
comma: Op(8) [ 1, 'comma', ',', 0, 1, Infinity, false, null ],
asgn: Op(8) [
1, 'asgn', '=',
1, 2, 1,
true, null
],
ternery: Op(8) [ 3, 'ternery', [ '?', ':' ], 1, 3, 3, false, null ],
or: Op(8) [
1, 'or', '||',
0, 4, 2,
false, '||='
],
or_asgn: Op(8) [ 1, 'or_asgn', '||=', 1, 2, 1, true, '||' ],
nc: Op(8) [
1, 'nc', '??',
0, 4, 2,
false, '??='
],
nc_asgn: Op(8) [ 1, 'nc_asgn', '??=', 1, 2, 1, true, '??' ],
and: Op(8) [
1, 'and', '&&',
0, 5, 2,
false, '&&='
],
and_asgn: Op(8) [ 1, 'and_asgn', '&&=', 1, 2, 1, true, '&&' ],
bor: Op(8) [
1, 'bor', '|',
0, 6, 2,
false, '|='
],
bor_asgn: Op(8) [ 1, 'bor_asgn', '|=', 1, 2, 1, true, '|' ],
bxor: Op(8) [
1, 'bxor', '^',
0, 7, 2,
false, '^='
],
bxor_asgn: Op(8) [ 1, 'bxor_asgn', '^=', 1, 2, 1, true, '^' ],
band: Op(8) [
1, 'band', '&',
0, 8, 2,
false, '&='
],
band_asgn: Op(8) [ 1, 'band_asgn', '&=', 1, 2, 1, true, '&' ],
deq: Op(8) [
1, 'deq', '==',
0, 9, 2,
false, null
],
ndeq: Op(8) [
1, 'ndeq',
'!=', 0,
9, 2,
false, null
],
eq: Op(8) [
1, 'eq', '===',
0, 9, 2,
false, null
],
neq: Op(8) [
1, 'neq', '!==',
0, 9, 2,
false, null
],
lt: Op(8) [
1, 'lt', '<',
0, 10, 2,
false, null
],
le: Op(8) [
1, 'le', '<=',
0, 10, 2,
false, null
],
ge: Op(8) [
1, 'ge', '>=',
0, 10, 2,
false, null
],
gt: Op(8) [
1, 'gt', '>',
0, 10, 2,
false, null
],
inthe: Op(8) [ 1, 'inthe', 'in', 0, 10, 2, false, null ],
istof: Op(8) [ 1, 'istof', 'instanceof ', 0, 10, 2, false, null ],
shl: Op(8) [
1, 'shl', '<<',
0, 11, 2,
false, '<<='
],
shl_asgn: Op(8) [ 1, 'shl_asgn', '<<=', 1, 2, 1, true, '<<' ],
shr: Op(8) [
1, 'shr', '>>',
0, 11, 2,
false, '>>='
],
shr_asgn: Op(8) [ 1, 'shr_asgn', '>>=', 1, 2, 1, true, '>>' ],
ushr: Op(8) [
1, 'ushr',
'>>>', 0,
11, 2,
false, '>>>='
],
ushr_asgn: Op(8) [ 1, 'ushr_asgn', '>>>=', 1, 2, 1, true, '>>>' ],
add: Op(8) [
1, 'add', '+',
0, 12, 2,
false, '+='
],
add_asgn: Op(8) [ 1, 'add_asgn', '+=', 1, 2, 1, true, '+' ],
sub: Op(8) [
1, 'sub', '-',
0, 12, 2,
false, '-='
],
sub_asgn: Op(8) [ 1, 'sub_asgn', '-=', 1, 2, 1, true, '-' ],
mul: Op(8) [
1, 'mul', '*',
0, 13, 2,
false, '*='
],
mul_asgn: Op(8) [ 1, 'mul_asgn', '*=', 1, 2, 1, true, '*' ],
div: Op(8) [
1, 'div', '/',
0, 13, 2,
false, '/='
],
div_asgn: Op(8) [ 1, 'div_asgn', '/=', 1, 2, 1, true, '/' ],
mod: Op(8) [
1, 'mod', '%',
0, 13, 2,
false, '%='
],
mod_asgn: Op(8) [ 1, 'mod_asgn', '%=', 1, 2, 1, true, '%' ],
pow: Op(8) [
1, 'pow', '**',
1, 14, 2,
false, '**='
],
pow_asgn: Op(8) [ 1, 'pow_asgn', '**=', 1, 2, 1, true, '**' ],
not: Op(8) [
0, 'not', '!',
1, 15, 1,
false, null
],
bnot: Op(8) [
0, 'bnot',
'~', 1,
15, 1,
false, null
],
pos: Op(8) [
0, 'pos', '+_',
1, 15, 1,
false, null
],
neg: Op(8) [
0, 'neg', '-_',
1, 15, 1,
false, null
],
typof: Op(8) [ 0, 'typof', 'typeof', 1, 15, 1, false, null ],
unize: Op(8) [ 0, 'unize', 'void', 1, 15, 1, false, null ],
del: Op(8) [ 0, 'del', 'delete', 1, 15, 1, false, null ],
aw: Op(8) [ 0, 'aw', 'await', 1, 15, 1, false, null ],
pre_incr: Op(8) [ 0, 'pre_incr', '++_', 1, 15, 1, true, null ],
pre_decr: Op(8) [ 0, 'pre_decr', '--_', 1, 15, 1, true, null ],
post_incr: Op(8) [ 2, 'post_incr', '_++', 0, 16, 1, true, null ],
post_decr: Op(8) [ 2, 'post_decr', '_--', 0, 16, 1, true, null ],
creat: Op(8) [ 0, 'creat', 'new', 1, 17, 1, false, null ],
dot: Op(8) [
1, 'dot', '.',
0, 18, 2,
false, null
],
oc: Op(8) [
1, 'oc', '?.',
0, 18, 2,
false, null
]
}
METHODS
> var addop = x.js.add
> addop
Op(8) [
1, 'add', '+',
0, 12, 2,
false, '+='
]
addop.asgn addop.asso addop.asso_name_ addop.constructor addop.dict addop.gsym
addop.is_infix addop.is_l2r addop.is_prefix addop.is_r2l addop.is_suffix addop.is_ternery
addop.name addop.pcnt addop.prec addop.rltd addop.sign addop.ternery_fst_sign
addop.ternery_snd_sign addop.type addop.type_name_
APIS
x.js._fltr x.js.l2r_ x.js.r2l_ x.js.prefix_ x.js.infix_ x.js.suffix_
x.js.names_
x.js.signs_ x.js.lits_
x.js.add x.js.add_asgn x.js.and x.js.and_asgn x.js.asgn
x.js.aw //this is await
x.js.band x.js.band_asgn x.js.bnot x.js.bor
x.js.bor_asgn x.js.bxor x.js.bxor_asgn x.js.comma x.js.creat x.js.del
x.js.deq x.js.div x.js.div_asgn x.js.dot x.js.eq
x.js.ge x.js.gt x.js.in
x.js.inthe // this is L in R
x.js.istof // this is L instanceof R
x.js.le x.js.lt x.js.mod x.js.mod_asgn x.js.mul
x.js.mul_asgn x.js.nc x.js.nc_asgn x.js.ndeq x.js.neg x.js.neq
x.js.new x.js.not x.js.oc x.js.or x.js.or_asgn x.js.pos
x.js.post_decr x.js.post_incr x.js.pow x.js.pow_asgn x.js.pre_decr x.js.pre_incr
x.js.shl x.js.shl_asgn x.js.shr x.js.shr_asgn
x.js.sub x.js.sub_asgn
x.js.ternery //this is cond ? consequence: alter
x.js.typof
x.js.unize //this is void
x.js.ushr
x.js.ushr_asgn
LICENSE
- ISC