How to use the pegjs/lib/compiler/js.regexpClassEscape function in pegjs

To help you get started, we’ve selected a few pegjs 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 metadevpro / ts-pegjs / src / passes / generate-bytecode-ts.js View on Github external
+ node.parts.map(part =>
            Array.isArray(part)
              ? js.regexpClassEscape(part[0])
                + "-"
                + js.regexpClassEscape(part[1])
              : js.regexpClassEscape(part)
          ).join("")
github metadevpro / ts-pegjs / src / passes / generate-bytecode-ts.js View on Github external
+ node.parts.map(part =>
            Array.isArray(part)
              ? js.regexpClassEscape(part[0])
                + "-"
                + js.regexpClassEscape(part[1])
              : js.regexpClassEscape(part)
          ).join("")
github metadevpro / ts-pegjs / src / passes / generate-bytecode-ts.js View on Github external
+ node.parts.map(part =>
            Array.isArray(part)
              ? js.regexpClassEscape(part[0])
                + "-"
                + js.regexpClassEscape(part[1])
              : js.regexpClassEscape(part)
          ).join("")