You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
pegjs/docs/.vuepress/public/benchmark-bundle.min.js

1 line
91 KiB
JavaScript

!function(u,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t=e();for(var n in t)("object"==typeof exports?exports:u)[n]=t[n]}}("undefined"!=typeof self?self:window,function(){return function(u){var e={};function t(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return u[n].call(r.exports,r,r.exports,t),r.l=!0,r.exports}return t.m=u,t.c=e,t.d=function(u,e,n){t.o(u,e)||Object.defineProperty(u,e,{enumerable:!0,get:n})},t.r=function(u){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(u,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(u,"__esModule",{value:!0})},t.t=function(u,e){if(1&e&&(u=t(u)),8&e)return u;if(4&e&&"object"==typeof u&&u&&u.__esModule)return u;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:u}),2&e&&"string"!=typeof u)for(var r in u)t.d(n,r,function(e){return u[e]}.bind(null,r));return n},t.n=function(u){var e=u&&u.__esModule?function(){return u.default}:function(){return u};return t.d(e,"a",e),e},t.o=function(u,e){return Object.prototype.hasOwnProperty.call(u,e)},t.p="",t(t.s=48)}([function(u,e,t){"use strict";var n=t(9),r=t(5),o=t(23),i=t(14),a=t(1),s={VERSION:t(13).version,GrammarError:n,ast:r,parser:i,compiler:o,util:a,generate:function(u){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=new o.Session({passes:a.convertPasses(o.passes)});return Array.isArray(e.plugins)&&e.plugins.forEach(function(u){"function"==typeof u.use&&u.use(t,e)}),o.compile(t.parse(u,e.parser||{}),t,e)}};u.exports=s},function(u,e,t){"use strict";var n=t(19),r=t(20),o=t(21),i=t(11),a=function(){function u(u){return Array.isArray(u)?u:o.values(u)}return function(e){return o.map(e,u)}}();u.exports={find:n.find,findIndex:n.findIndex,stringEscape:r.stringEscape,regexpEscape:r.regexpEscape,reservedWords:r.reservedWords,clone:o.clone,each:o.each,extend:o.extend,map:o.map,values:o.values,enforceFastProperties:o.enforceFastProperties,evalModule:i.evalModule,convertPasses:a,processOptions:function(u,e){var t={};return o.extend(t,u),o.extend(t,e),t},noop:function(){}}},,,,function(u,e,t){"use strict";e.visitor=t(10),e.Node=t(12),e.Grammar=t(22)},,,,function(u,e,t){"use strict";u.exports=function u(e,t){!function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u),this.name="GrammarError",this.message=e,this.location=t,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,u)}},function(u,e,t){"use strict";function n(u,e){for(var t=0;t<e.length;t++){var n=e[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(u,n.key,n)}}var r=t(1),o=function(){function u(){!function(u,e){if(!(u instanceof e))throw new TypeError("Cannot call a class as a function")}(this,u)}var e,t,r;return e=u,(t=[{key:"visit",value:function(u){if(!u)throw new Error("Visitor function called with no arguments or a `falsy` node");var e=this[u.type];if(!e)throw new Error('Visitor function for node type "'.concat(u.type,'" not defined'));return e.apply(this,arguments)}}])&&n(e.prototype,t),r&&n(e,r),u}();u.exports={ASTVisitor:o,build:function(u){var e=new o;return r.extend(e,u),(e=r.enforceFastProperties(e)).visit.bind(e)}};var i=o.on={property:function(u){return function(e){for(var t=e[u],n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];r.length?this.visit.apply(this,[t].concat(r)):this.visit(t)}},children:function(u){return function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var o=e[u],i=this,a=n.length<1?function(u){i.visit(u)}:function(u){i.visit.apply(i,[u].concat(n))};o.forEach(a)}}},a=r.noop,s=i.property("expression"),c={grammar:function(u){for(var e=this,t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];u.initializer&&this.visit.apply(this,[u.initializer].concat(n)),u.rules.forEach(function(u){e.visit.apply(e,[u].concat(n))})},initializer:a,rule:s,named:s,choice:i.children("alt