|
|
|
@ -6,22 +6,16 @@
|
|
|
|
|
*
|
|
|
|
|
* http://pegjs.org/
|
|
|
|
|
*/
|
|
|
|
|
(function(root, factory) {
|
|
|
|
|
if (typeof define === "function" && define.amd) {
|
|
|
|
|
define([], factory);
|
|
|
|
|
} else if (typeof module === "object" && module.exports) {
|
|
|
|
|
module.exports = factory();
|
|
|
|
|
}
|
|
|
|
|
})(this, function() {
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
function peg$subclass(child, parent) {
|
|
|
|
|
"use strict";
|
|
|
|
|
|
|
|
|
|
function peg$subclass(child, parent) {
|
|
|
|
|
function ctor() { this.constructor = child; }
|
|
|
|
|
ctor.prototype = parent.prototype;
|
|
|
|
|
child.prototype = new ctor();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function peg$SyntaxError(message, expected, found, location) {
|
|
|
|
|
function peg$SyntaxError(message, expected, found, location) {
|
|
|
|
|
this.message = message;
|
|
|
|
|
this.expected = expected;
|
|
|
|
|
this.found = found;
|
|
|
|
@ -31,11 +25,11 @@
|
|
|
|
|
if (typeof Error.captureStackTrace === "function") {
|
|
|
|
|
Error.captureStackTrace(this, peg$SyntaxError);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
peg$subclass(peg$SyntaxError, Error);
|
|
|
|
|
peg$subclass(peg$SyntaxError, Error);
|
|
|
|
|
|
|
|
|
|
peg$SyntaxError.buildMessage = function(expected, found) {
|
|
|
|
|
peg$SyntaxError.buildMessage = function(expected, found) {
|
|
|
|
|
var DESCRIBE_EXPECTATION_FNS = {
|
|
|
|
|
literal: function(expectation) {
|
|
|
|
|
return "\"" + literalEscape(expectation.text) + "\"";
|
|
|
|
@ -140,9 +134,9 @@
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
|
|
|
|
|
};
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
function peg$parse(input, options) {
|
|
|
|
|
function peg$parse(input, options) {
|
|
|
|
|
options = options !== void 0 ? options : {};
|
|
|
|
|
|
|
|
|
|
var peg$FAILED = {},
|
|
|
|
@ -5041,10 +5035,9 @@
|
|
|
|
|
: peg$computeLocation(peg$maxFailPos, peg$maxFailPos)
|
|
|
|
|
);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
|
module.exports = {
|
|
|
|
|
SyntaxError: peg$SyntaxError,
|
|
|
|
|
parse: peg$parse
|
|
|
|
|
};
|
|
|
|
|
});
|
|
|
|
|
};
|
|
|
|
|