How to use the ret.types.SET function in ret

To help you get started, we’ve selected a few ret 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 fent / randexp.js / lib / util.js View on Github external
function addTokenList(prevTokens, nextTokens, add) {
  console.log('add', prevTokens, nextTokens, add);
  var union = [];

  var minLength = Math.min(prevTokens.length, nextTokens.length);
  for (var i = 0; i < minLength; i++) {
    var prevToken = prevTokens[i];
    var nextToken = nextTokens[i];
    switch (prevToken.type) {
      case types.SET:
      case types.REPETITION:
      case types.REFERENCE:
      case types.CHAR:
    }
  }

  return union;
}

ret

Tokenizes a string that represents a regular expression.

MIT
Latest version published 2 years ago

Package Health Score

67 / 100
Full package analysis