How to use the jsep.addLiteral function in jsep

To help you get started, we’ve selected a few jsep examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github CartoDB / carto-vl / src / renderer / viz / parser.js View on Github external
function cleanJsep () {
    jsep.removeBinaryOp('and');
    jsep.removeBinaryOp('or');
    jsep.removeBinaryOp('^');
    jsep.removeBinaryOp(':');
    jsep.removeIdentifierChar('@');
    jsep.removeIdentifierChar('#');
    jsep.addLiteral('true');
    jsep.addLiteral('false');
}
github CartoDB / carto-vl / src / renderer / viz / parser.js View on Github external
function cleanJsep () {
    jsep.removeBinaryOp('and');
    jsep.removeBinaryOp('or');
    jsep.removeBinaryOp('^');
    jsep.removeBinaryOp(':');
    jsep.removeIdentifierChar('@');
    jsep.removeIdentifierChar('#');
    jsep.addLiteral('true');
    jsep.addLiteral('false');
}
github CartoDB / carto-vl / src / renderer / viz / parser.js View on Github external
function cleanJsep () {
    jsep.removeBinaryOp('in');
    jsep.removeBinaryOp('nin');
    jsep.removeBinaryOp('and');
    jsep.removeBinaryOp('or');
    jsep.removeBinaryOp('^');
    jsep.removeBinaryOp(':');
    jsep.removeIdentifierChar('@');
    jsep.removeIdentifierChar('#');
    jsep.addLiteral('true');
    jsep.addLiteral('false');
}
github CartoDB / carto-vl / src / renderer / viz / parser.js View on Github external
function cleanJsep () {
    jsep.removeBinaryOp('in');
    jsep.removeBinaryOp('nin');
    jsep.removeBinaryOp('and');
    jsep.removeBinaryOp('or');
    jsep.removeBinaryOp('^');
    jsep.removeBinaryOp(':');
    jsep.removeIdentifierChar('@');
    jsep.removeIdentifierChar('#');
    jsep.addLiteral('true');
    jsep.addLiteral('false');
}

jsep

a tiny JavaScript expression parser

MIT
Latest version published 1 year ago

Package Health Score

82 / 100
Full package analysis