From ebcd22823286caef03d02f7398f09573b26395b8 Mon Sep 17 00:00:00 2001 From: Quinn Dougherty Date: Mon, 23 May 2022 07:05:42 -0400 Subject: [PATCH] .gitignore, package.json, .prettierignore: #576 Value: [1e-7 to 1e-3] --- packages/squiggle-lang/.gitignore | 1 + packages/squiggle-lang/.prettierignore | 3 +- packages/squiggle-lang/package.json | 6 +- .../Reducer_Peggy_GeneratedParser.js | 1049 +++++------------ 4 files changed, 306 insertions(+), 753 deletions(-) diff --git a/packages/squiggle-lang/.gitignore b/packages/squiggle-lang/.gitignore index 4db5c5f4..1449d5f3 100644 --- a/packages/squiggle-lang/.gitignore +++ b/packages/squiggle-lang/.gitignore @@ -21,3 +21,4 @@ dist _coverage coverage .nyc_output/ +src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js diff --git a/packages/squiggle-lang/.prettierignore b/packages/squiggle-lang/.prettierignore index 1c242bb9..46ac9925 100644 --- a/packages/squiggle-lang/.prettierignore +++ b/packages/squiggle-lang/.prettierignore @@ -4,4 +4,5 @@ lib *.gen.tsx .nyc_output/ coverage/ -.cache/ \ No newline at end of file +.cache/ +Reducer_Peggy_GeneratedParser.js diff --git a/packages/squiggle-lang/package.json b/packages/squiggle-lang/package.json index bf76709a..e751979b 100644 --- a/packages/squiggle-lang/package.json +++ b/packages/squiggle-lang/package.json @@ -4,9 +4,9 @@ "homepage": "https://squiggle-language.com", "license": "MIT", "scripts": { - "peggy": "peggy --cache ", - "build:peggy": "find . -type f -name *.peggy -exec yarn run peggy {} \\;", - "build": "yarn build:rescript && yarn build:typescript", + "peggy": "peggy --cache", + "build": "yarn build:peggy && yarn build:rescript && yarn build:typescript", + "build:peggy": "find . -type f -name *.peggy -exec yarn peggy {} \\;", "build:rescript": "rescript build -with-deps", "build:typescript": "tsc", "bundle": "webpack", diff --git a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js index 3a34dfb2..67fa36a1 100644 --- a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js +++ b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Peggy/Reducer_Peggy_GeneratedParser.js @@ -4,103 +4,71 @@ "use strict"; -var toFunction = { - "-": "subtract", - "->": "pipe", - "!=": "unequal", - ".-": "dotSubtract", - ".*": "dotMultiply", - "./": "dotDivide", - ".^": "dotPow", - ".+": "dotAdd", - "*": "multiply", - "/": "divide", - "&&": "and", - "^": "pow", // or xor - "+": "add", - "<": "smaller", - "<=": "smallerEq", - "==": "equal", - ">": "larger", - ">=": "largerEq", - "||": "or", - to: "credibleIntervalToDistribution", -}; -var unaryToFunction = { - "-": "unaryMinus", - "!": "not", - ".-": "unaryDotMinus", -}; + var toFunction = { + '-': 'subtract', + '->': 'pipe', + '!=': 'unequal', + '.-': 'dotSubtract', + '.*': 'dotMultiply', + './': 'dotDivide', + '.^': 'dotPow', + '.+': 'dotAdd', + '*': 'multiply', + '/': 'divide', + '&&': 'and', + '^': 'pow', // or xor + '+': 'add', + '<': 'smaller', + '<=': 'smallerEq', + '==': 'equal', + '>': 'larger', + '>=': 'largerEq', + '||': 'or', + 'to': 'credibleIntervalToDistribution', + } -var postOperatorToFunction = { - ".": "$_atIndex_$", - "()": "$$_applyAll_$$", - "[]": "$_atIndex_$", -}; + var unaryToFunction = { + '-': 'unaryMinus', + '!': 'not', + '.-': 'unaryDotMinus', + } -function nodeBlock(statements) { - return { type: "Block", statements: statements }; -} -function nodeBoolean(value) { - return { type: "Boolean", value: value }; -} -function nodeCallIndentifier(value) { - return { type: "CallIdentifier", value: value }; -} -function nodeExpression(args) { - return { type: "Expression", nodes: args }; -} -function nodeFloat(value) { - return { type: "Float", value: value }; -} -function makeFunctionCall(fn, args) { - if (fn === "$$_applyAll_$$") { - // Any list of values is applied from left to right anyway. - // Like in Haskell and Lisp. - // So we remove the redundant $$_applyAll_$$. - if (args[0].type === "Identifier") { - args[0].type = "CallIdentifier"; + var postOperatorToFunction = { + '.': '$_atIndex_$', + '()': '$$_applyAll_$$', + '[]': '$_atIndex_$', + } + + function nodeBlock(statements) {return{type: 'Block', statements: statements}} + function nodeBoolean(value) {return {type: 'Boolean', value: value}} + function nodeCallIndentifier(value) {return {type: 'CallIdentifier', value: value}} + function nodeExpression(args) {return {type: 'Expression', nodes: args}} + function nodeFloat(value) {return {type: 'Float', value: value}} + function makeFunctionCall(fn, args) { + if (fn === '$$_applyAll_$$') { + // Any list of values is applied from left to right anyway. + // Like in Haskell and Lisp. + // So we remove the redundant $$_applyAll_$$. + if (args[0].type === "Identifier") {args[0].type = "CallIdentifier"} + return nodeExpression(args) + } else { + return nodeExpression([nodeCallIndentifier(fn), ...args]) } - return nodeExpression(args); - } else { - return nodeExpression([nodeCallIndentifier(fn), ...args]); } -} -function nodeIdentifier(value) { - return { type: "Identifier", value: value }; -} -function nodeInteger(value) { - return { type: "Integer", value: value }; -} -function nodeKeyValue(key, value) { - if (key.type === "Identifier") { - key.type = "String"; - } - return { type: "KeyValue", key: key, value: value }; -} -function nodeLambda(args, body) { - return { type: "Lambda", args: args, body: body }; -} -function nodeLetStatment(variable, value) { - return { type: "LetStatement", variable: variable, value: value }; -} -function nodeString(value) { - return { type: "String", value: value }; -} -function nodeTernary(condition, trueExpression, falseExpression) { - return { - type: "Ternary", - condition: condition, - trueExpression: trueExpression, - falseExpression: falseExpression, - }; -} + function nodeIdentifier(value) {return {type: 'Identifier', value: value}} + function nodeInteger(value) {return {type: 'Integer', value: value}} + function nodeKeyValue(key, value) { + if (key.type === 'Identifier') {key.type = 'String'} + return {type: 'KeyValue', key: key, value: value}} + function nodeLambda(args, body) {return {type: 'Lambda', args: args, body: body}} + function nodeLetStatment(variable, value) {return {type: 'LetStatement', variable: variable, value: value}} + function nodeString(value) {return {type: 'String', value: value}} + function nodeTernary(condition, trueExpression, falseExpression) {return {type: 'Ternary', condition: condition, trueExpression: trueExpression, falseExpression: falseExpression}} + function peg$subclass(child, parent) { - function C() { - this.constructor = child; - } + function C() { this.constructor = child; } C.prototype = parent.prototype; child.prototype = new C(); } @@ -121,15 +89,13 @@ peg$subclass(peg$SyntaxError, Error); function peg$padEnd(str, targetLength, padString) { padString = padString || " "; - if (str.length > targetLength) { - return str; - } + if (str.length > targetLength) { return str; } targetLength -= str.length; padString += padString.repeat(targetLength); return str + padString.slice(0, targetLength); } -peg$SyntaxError.prototype.format = function (sources) { +peg$SyntaxError.prototype.format = function(sources) { var str = "Error: " + this.message; if (this.location) { var src = null; @@ -147,20 +113,11 @@ peg$SyntaxError.prototype.format = function (sources) { var filler = peg$padEnd("", s.line.toString().length); var line = src[s.line - 1]; var last = s.line === e.line ? e.column : line.length + 1; - str += - "\n --> " + - loc + - "\n" + - filler + - " |\n" + - s.line + - " | " + - line + - "\n" + - filler + - " | " + - peg$padEnd("", s.column - 1) + - peg$padEnd("", last - s.column, "^"); + str += "\n --> " + loc + "\n" + + filler + " |\n" + + s.line + " | " + line + "\n" + + filler + " | " + peg$padEnd("", s.column - 1) + + peg$padEnd("", last - s.column, "^"); } else { str += "\n at " + loc; } @@ -168,14 +125,14 @@ peg$SyntaxError.prototype.format = function (sources) { return str; }; -peg$SyntaxError.buildMessage = function (expected, found) { +peg$SyntaxError.buildMessage = function(expected, found) { var DESCRIBE_EXPECTATION_FNS = { - literal: function (expectation) { - return '"' + literalEscape(expectation.text) + '"'; + literal: function(expectation) { + return "\"" + literalEscape(expectation.text) + "\""; }, - class: function (expectation) { - var escapedParts = expectation.parts.map(function (part) { + class: function(expectation) { + var escapedParts = expectation.parts.map(function(part) { return Array.isArray(part) ? classEscape(part[0]) + "-" + classEscape(part[1]) : classEscape(part); @@ -184,17 +141,17 @@ peg$SyntaxError.buildMessage = function (expected, found) { return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]"; }, - any: function () { + any: function() { return "any character"; }, - end: function () { + end: function() { return "end of input"; }, - other: function (expectation) { + other: function(expectation) { return expectation.description; - }, + } }; function hex(ch) { @@ -204,17 +161,13 @@ peg$SyntaxError.buildMessage = function (expected, found) { function literalEscape(s) { return s .replace(/\\/g, "\\\\") - .replace(/"/g, '\\"') + .replace(/"/g, "\\\"") .replace(/\0/g, "\\0") .replace(/\t/g, "\\t") .replace(/\n/g, "\\n") .replace(/\r/g, "\\r") - .replace(/[\x00-\x0F]/g, function (ch) { - return "\\x0" + hex(ch); - }) - .replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { - return "\\x" + hex(ch); - }); + .replace(/[\x00-\x0F]/g, function(ch) { return "\\x0" + hex(ch); }) + .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return "\\x" + hex(ch); }); } function classEscape(s) { @@ -222,17 +175,13 @@ peg$SyntaxError.buildMessage = function (expected, found) { .replace(/\\/g, "\\\\") .replace(/\]/g, "\\]") .replace(/\^/g, "\\^") - .replace(/-/g, "\\-") + .replace(/-/g, "\\-") .replace(/\0/g, "\\0") .replace(/\t/g, "\\t") .replace(/\n/g, "\\n") .replace(/\r/g, "\\r") - .replace(/[\x00-\x0F]/g, function (ch) { - return "\\x0" + hex(ch); - }) - .replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) { - return "\\x" + hex(ch); - }); + .replace(/[\x00-\x0F]/g, function(ch) { return "\\x0" + hex(ch); }) + .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return "\\x" + hex(ch); }); } function describeExpectation(expectation) { @@ -263,25 +212,17 @@ peg$SyntaxError.buildMessage = function (expected, found) { return descriptions[0] + " or " + descriptions[1]; default: - return ( - descriptions.slice(0, -1).join(", ") + - ", or " + - descriptions[descriptions.length - 1] - ); + return descriptions.slice(0, -1).join(", ") + + ", or " + + descriptions[descriptions.length - 1]; } } function describeFound(found) { - return found ? '"' + literalEscape(found) + '"' : "end of input"; + return found ? "\"" + literalEscape(found) + "\"" : "end of input"; } - return ( - "Expected " + - describeExpected(expected) + - " but " + - describeFound(found) + - " found." - ); + return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found."; }; function peg$parse(input, options) { @@ -330,7 +271,7 @@ function peg$parse(input, options) { var peg$c34 = "."; var peg$c35 = "]"; var peg$c36 = "'"; - var peg$c37 = '"'; + var peg$c37 = "\""; var peg$c38 = "true"; var peg$c39 = "false"; var peg$c40 = "|"; @@ -394,23 +335,15 @@ function peg$parse(input, options) { var peg$e38 = peg$literalExpectation("]", false); var peg$e39 = peg$otherExpectation("identifier"); var peg$e40 = peg$classExpectation(["_", ["a", "z"]], false, false); - var peg$e41 = peg$classExpectation( - ["_", ["a", "z"], ["0", "9"]], - false, - true - ); + var peg$e41 = peg$classExpectation(["_", ["a", "z"], ["0", "9"]], false, true); var peg$e42 = peg$otherExpectation("$identifier"); var peg$e43 = peg$classExpectation(["$", "_", ["a", "z"]], false, false); - var peg$e44 = peg$classExpectation( - ["$", "_", ["a", "z"], ["0", "9"]], - false, - true - ); + var peg$e44 = peg$classExpectation(["$", "_", ["a", "z"], ["0", "9"]], false, true); var peg$e45 = peg$otherExpectation("string"); var peg$e46 = peg$literalExpectation("'", false); var peg$e47 = peg$classExpectation(["'"], true, false); - var peg$e48 = peg$literalExpectation('"', false); - var peg$e49 = peg$classExpectation(['"'], true, false); + var peg$e48 = peg$literalExpectation("\"", false); + var peg$e49 = peg$classExpectation(["\""], true, false); var peg$e50 = peg$otherExpectation("integer"); var peg$e51 = peg$classExpectation(["e"], false, true); var peg$e52 = peg$otherExpectation("float"); @@ -438,134 +371,55 @@ function peg$parse(input, options) { var peg$e74 = peg$otherExpectation("newline"); var peg$e75 = peg$classExpectation(["\n", "\r"], false, false); - var peg$f0 = function (start) { - return start; - }; - var peg$f1 = function (statements, finalExpression) { - if (finalExpression != null) { - statements.push(finalExpression); - } - return nodeBlock(statements); - }; - var peg$f2 = function (finalExpression) { - return nodeBlock([finalExpression]); - }; - var peg$f3 = function (statements, finalExpression) { - statements.push(finalExpression); - return nodeBlock(statements); - }; - var peg$f4 = function (finalExpression) { - return nodeBlock([finalExpression]); - }; - var peg$f5 = function (head, tail) { - return [head, ...tail]; - }; - var peg$f6 = function (head) { - return [head]; - }; - var peg$f7 = function (variable, value) { - return nodeLetStatment(variable, value); - }; - var peg$f8 = function (variable, args, body) { - var value = nodeLambda(args, body); - return nodeLetStatment(variable, value); - }; - var peg$f9 = function (head, tail) { - return [head, ...tail]; - }; - var peg$f10 = function (condition, trueExpression, falseExpression) { - return nodeTernary(condition, trueExpression, falseExpression); - }; - var peg$f11 = function (head, operator, arg) { - return { operator: operator, right: arg }; - }; - var peg$f12 = function (head, tail) { - return tail.reduce(function (result, element) { - return makeFunctionCall(toFunction[element.operator], [ - result, - element.right, - ]); - }, head); - }; - var peg$f13 = function (left, operator, right) { - return makeFunctionCall(toFunction[operator], [left, right]); - }; - var peg$f14 = function (head, chained) { - return chained; - }; - var peg$f15 = function (head, tail) { - return tail.reduce(function (result, element) { - return makeFunctionCall(element.fnName, [result, ...element.args]); - }, head); - }; - var peg$f16 = function (fn, args) { - return { fnName: fn.value, args: args }; - }; - var peg$f17 = function (fn) { - return { fnName: fn.value, args: [] }; - }; - var peg$f18 = function (unaryOperator, right) { - return makeFunctionCall(unaryToFunction[unaryOperator], [right]); - }; - var peg$f19 = function (head, arg) { - return { fn: postOperatorToFunction["[]"], args: [arg] }; - }; - var peg$f20 = function (head, args) { - return { fn: postOperatorToFunction["()"], args: args }; - }; - var peg$f21 = function (head, arg) { - return { fn: postOperatorToFunction["[]"], args: [nodeString(arg)] }; - }; - var peg$f22 = function (head, tail) { - return tail.reduce(function (result, element) { - return makeFunctionCall(element.fn, [result, ...element.args]); - }, head); - }; - var peg$f23 = function (head, arg) { - return { fn: postOperatorToFunction["."], args: [nodeString(arg)] }; - }; - var peg$f24 = function (head, tail) { - return tail.reduce(function (result, element) { - return makeFunctionCall(element.fn, [result, ...element.args]); - }, head); - }; - var peg$f25 = function (expression) { - return expression; - }; - var peg$f26 = function () { - return nodeIdentifier(text()); - }; - var peg$f27 = function (characters) { - return nodeString(characters.join("")); - }; - var peg$f28 = function () { - return nodeInteger(parseInt(text())); - }; - var peg$f29 = function () { - return nodeFloat(parseFloat(text())); - }; - var peg$f30 = function () { - return nodeBoolean(text() === "true"); - }; - var peg$f31 = function (args, statements, finalExpression) { - statements.push(finalExpression); - return nodeLambda(args, nodeBlock(statements)); - }; - var peg$f32 = function (args, finalExpression) { - return nodeLambda(args, nodeBlock([finalExpression])); - }; - var peg$f33 = function () { - return makeFunctionCall("$_constructArray_$", [nodeExpression([])]); - }; - var peg$f34 = function (args) { - return makeFunctionCall("$_constructArray_$", [nodeExpression(args)]); - }; - var peg$f35 = function (args) { - return makeFunctionCall("$_constructRecord_$", [nodeExpression(args)]); - }; - var peg$f36 = function (key, value) { - return nodeKeyValue(key, value); - }; + var peg$f0 = function(start) {return start}; + var peg$f1 = function(statements, finalExpression) { if (finalExpression != null) { statements.push(finalExpression) } + return nodeBlock(statements) }; + var peg$f2 = function(finalExpression) { return nodeBlock([finalExpression])}; + var peg$f3 = function(statements, finalExpression) { statements.push(finalExpression) + return nodeBlock(statements) }; + var peg$f4 = function(finalExpression) { return nodeBlock([finalExpression]) }; + var peg$f5 = function(head, tail) { return [head, ...tail] }; + var peg$f6 = function(head) { return [head] }; + var peg$f7 = function(variable, value) { return nodeLetStatment(variable, value) }; + var peg$f8 = function(variable, args, body) { var value = nodeLambda(args, body) + return nodeLetStatment(variable, value) }; + var peg$f9 = function(head, tail) { return [head, ...tail]; }; + var peg$f10 = function(condition, trueExpression, falseExpression) { return nodeTernary(condition, trueExpression, falseExpression) }; + var peg$f11 = function(head, operator, arg) {return {operator: operator, right: arg}}; + var peg$f12 = function(head, tail) { return tail.reduce(function(result, element) { + return makeFunctionCall(toFunction[element.operator], [result, element.right]) + }, head)}; + var peg$f13 = function(left, operator, right) { return makeFunctionCall(toFunction[operator], [left, right])}; + var peg$f14 = function(head, chained) {return chained}; + var peg$f15 = function(head, tail) { return tail.reduce(function(result, element) { + return makeFunctionCall(element.fnName, [result, ...element.args]) + }, head)}; + var peg$f16 = function(fn, args) { return {fnName: fn.value, args: args}}; + var peg$f17 = function(fn) { return {fnName: fn.value, args: []}}; + var peg$f18 = function(unaryOperator, right) { return makeFunctionCall(unaryToFunction[unaryOperator], [right])}; + var peg$f19 = function(head, arg) {return {fn: postOperatorToFunction['[]'], args: [arg]}}; + var peg$f20 = function(head, args) {return {fn: postOperatorToFunction['()'], args: args}}; + var peg$f21 = function(head, arg) {return {fn: postOperatorToFunction['[]'], args: [nodeString(arg)]}}; + var peg$f22 = function(head, tail) { return tail.reduce(function(result, element) { + return makeFunctionCall(element.fn, [result, ...element.args]) + }, head)}; + var peg$f23 = function(head, arg) {return {fn: postOperatorToFunction['.'], args: [nodeString(arg)]}}; + var peg$f24 = function(head, tail) { return tail.reduce(function(result, element) { + return makeFunctionCall(element.fn, [result, ...element.args]) + }, head)}; + var peg$f25 = function(expression) {return expression}; + var peg$f26 = function() {return nodeIdentifier(text())}; + var peg$f27 = function(characters) {return nodeString(characters.join(''))}; + var peg$f28 = function() { return nodeInteger(parseInt(text()))}; + var peg$f29 = function() { return nodeFloat(parseFloat(text()))}; + var peg$f30 = function() { return nodeBoolean(text() === 'true')}; + var peg$f31 = function(args, statements, finalExpression) { statements.push(finalExpression) + return nodeLambda(args, nodeBlock(statements)) }; + var peg$f32 = function(args, finalExpression) { return nodeLambda(args, nodeBlock([finalExpression])) }; + var peg$f33 = function() { return makeFunctionCall('$_constructArray_$', [nodeExpression([])])}; + var peg$f34 = function(args) { return makeFunctionCall('$_constructArray_$', [nodeExpression(args)])}; + var peg$f35 = function(args) { return makeFunctionCall('$_constructRecord_$', [nodeExpression(args)])}; + var peg$f36 = function(key, value) { return nodeKeyValue(key, value)}; var peg$currPos = 0; var peg$savedPos = 0; @@ -580,9 +434,7 @@ function peg$parse(input, options) { if ("startRule" in options) { if (!(options.startRule in peg$startRuleFunctions)) { - throw new Error( - "Can't start parsing from rule \"" + options.startRule + '".' - ); + throw new Error("Can't start parsing from rule \"" + options.startRule + "\"."); } peg$startRuleFunction = peg$startRuleFunctions[options.startRule]; @@ -600,7 +452,7 @@ function peg$parse(input, options) { return { source: peg$source, start: peg$savedPos, - end: peg$currPos, + end: peg$currPos }; } @@ -609,10 +461,9 @@ function peg$parse(input, options) { } function expected(description, location) { - location = - location !== undefined - ? location - : peg$computeLocation(peg$savedPos, peg$currPos); + location = location !== undefined + ? location + : peg$computeLocation(peg$savedPos, peg$currPos); throw peg$buildStructuredError( [peg$otherExpectation(description)], @@ -622,10 +473,9 @@ function peg$parse(input, options) { } function error(message, location) { - location = - location !== undefined - ? location - : peg$computeLocation(peg$savedPos, peg$currPos); + location = location !== undefined + ? location + : peg$computeLocation(peg$savedPos, peg$currPos); throw peg$buildSimpleError(message, location); } @@ -635,12 +485,7 @@ function peg$parse(input, options) { } function peg$classExpectation(parts, inverted, ignoreCase) { - return { - type: "class", - parts: parts, - inverted: inverted, - ignoreCase: ignoreCase, - }; + return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase }; } function peg$anyExpectation() { @@ -670,7 +515,7 @@ function peg$parse(input, options) { details = peg$posDetailsCache[p]; details = { line: details.line, - column: details.column, + column: details.column }; while (p < pos) { @@ -699,20 +544,18 @@ function peg$parse(input, options) { start: { offset: startPos, line: startPosDetails.line, - column: startPosDetails.column, + column: startPosDetails.column }, end: { offset: endPos, line: endPosDetails.line, - column: endPosDetails.column, - }, + column: endPosDetails.column + } }; } function peg$fail(expected) { - if (peg$currPos < peg$maxFailPos) { - return; - } + if (peg$currPos < peg$maxFailPos) { return; } if (peg$currPos > peg$maxFailPos) { peg$maxFailPos = peg$currPos; @@ -889,9 +732,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e0); - } + if (peg$silentFails === 0) { peg$fail(peg$e0); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -918,9 +759,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e1); - } + if (peg$silentFails === 0) { peg$fail(peg$e1); } } if (s6 !== peg$FAILED) { peg$savedPos = s0; @@ -948,9 +787,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e0); - } + if (peg$silentFails === 0) { peg$fail(peg$e0); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -962,9 +799,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e1); - } + if (peg$silentFails === 0) { peg$fail(peg$e1); } } if (s5 !== peg$FAILED) { peg$savedPos = s0; @@ -1126,9 +961,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s2 !== peg$FAILED) { s3 = peg$parse_nl(); @@ -1140,9 +973,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s6 !== peg$FAILED) { s7 = peg$parse_(); @@ -1201,16 +1032,12 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e5); - } + if (peg$silentFails === 0) { peg$fail(peg$e5); } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e4); - } + if (peg$silentFails === 0) { peg$fail(peg$e4); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -1241,9 +1068,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -1267,9 +1092,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -1340,9 +1163,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e7); - } + if (peg$silentFails === 0) { peg$fail(peg$e7); } } if (s1 !== peg$FAILED) { s2 = peg$parse__nl(); @@ -1356,9 +1177,7 @@ function peg$parse(input, options) { peg$currPos += 4; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e8); - } + if (peg$silentFails === 0) { peg$fail(peg$e8); } } if (s5 !== peg$FAILED) { s6 = peg$parse__nl(); @@ -1372,9 +1191,7 @@ function peg$parse(input, options) { peg$currPos += 4; } else { s9 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e9); - } + if (peg$silentFails === 0) { peg$fail(peg$e9); } } if (s9 !== peg$FAILED) { s10 = peg$parse__nl(); @@ -1457,9 +1274,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e10); - } + if (peg$silentFails === 0) { peg$fail(peg$e10); } } if (s3 !== peg$FAILED) { s4 = peg$parse_nl(); @@ -1471,9 +1286,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s7 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e11); - } + if (peg$silentFails === 0) { peg$fail(peg$e11); } } if (s7 !== peg$FAILED) { s8 = peg$parse_nl(); @@ -1593,16 +1406,12 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e13); - } + if (peg$silentFails === 0) { peg$fail(peg$e13); } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -1693,16 +1502,12 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e14); - } + if (peg$silentFails === 0) { peg$fail(peg$e14); } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -1772,9 +1577,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e15); - } + if (peg$silentFails === 0) { peg$fail(peg$e15); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c14) { @@ -1782,17 +1585,13 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e16); - } + if (peg$silentFails === 0) { peg$fail(peg$e16); } } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -1862,9 +1661,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e17); - } + if (peg$silentFails === 0) { peg$fail(peg$e17); } } if (s0 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 60) { @@ -1872,9 +1669,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e18); - } + if (peg$silentFails === 0) { peg$fail(peg$e18); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c17) { @@ -1882,9 +1677,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e19); - } + if (peg$silentFails === 0) { peg$fail(peg$e19); } } if (s0 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 62) { @@ -1892,9 +1685,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e20); - } + if (peg$silentFails === 0) { peg$fail(peg$e20); } } } } @@ -1902,9 +1693,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -1995,9 +1784,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e21); - } + if (peg$silentFails === 0) { peg$fail(peg$e21); } } if (s0 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 45) { @@ -2005,9 +1792,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e22); - } + if (peg$silentFails === 0) { peg$fail(peg$e22); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c21) { @@ -2015,9 +1800,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e23); - } + if (peg$silentFails === 0) { peg$fail(peg$e23); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c22) { @@ -2025,9 +1808,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e24); - } + if (peg$silentFails === 0) { peg$fail(peg$e24); } } } } @@ -2035,9 +1816,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -2128,9 +1907,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e25); - } + if (peg$silentFails === 0) { peg$fail(peg$e25); } } if (s0 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 47) { @@ -2138,9 +1915,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e26); - } + if (peg$silentFails === 0) { peg$fail(peg$e26); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c25) { @@ -2148,9 +1923,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e27); - } + if (peg$silentFails === 0) { peg$fail(peg$e27); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c26) { @@ -2158,9 +1931,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e28); - } + if (peg$silentFails === 0) { peg$fail(peg$e28); } } } } @@ -2168,9 +1939,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -2261,9 +2030,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e29); - } + if (peg$silentFails === 0) { peg$fail(peg$e29); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c28) { @@ -2271,17 +2038,13 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e30); - } + if (peg$silentFails === 0) { peg$fail(peg$e30); } } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -2392,16 +2155,12 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e31); - } + if (peg$silentFails === 0) { peg$fail(peg$e31); } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e12); - } + if (peg$silentFails === 0) { peg$fail(peg$e12); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -2432,9 +2191,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e32); - } + if (peg$silentFails === 0) { peg$fail(peg$e32); } } if (s5 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c31) { @@ -2442,9 +2199,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e33); - } + if (peg$silentFails === 0) { peg$fail(peg$e33); } } } if (s5 !== peg$FAILED) { @@ -2470,9 +2225,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e32); - } + if (peg$silentFails === 0) { peg$fail(peg$e32); } } if (s5 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c31) { @@ -2480,9 +2233,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e33); - } + if (peg$silentFails === 0) { peg$fail(peg$e33); } } } if (s5 !== peg$FAILED) { @@ -2532,9 +2283,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s2 !== peg$FAILED) { s3 = peg$parse_nl(); @@ -2546,9 +2295,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s6 !== peg$FAILED) { peg$savedPos = s0; @@ -2578,9 +2325,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s2 !== peg$FAILED) { s3 = peg$parse_nl(); @@ -2589,9 +2334,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s4 !== peg$FAILED) { peg$savedPos = s0; @@ -2682,9 +2425,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e22); - } + if (peg$silentFails === 0) { peg$fail(peg$e22); } } if (s0 === peg$FAILED) { if (input.substr(peg$currPos, 2) === peg$c22) { @@ -2692,9 +2433,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e24); - } + if (peg$silentFails === 0) { peg$fail(peg$e24); } } if (s0 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 33) { @@ -2702,18 +2441,14 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e35); - } + if (peg$silentFails === 0) { peg$fail(peg$e35); } } } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e34); - } + if (peg$silentFails === 0) { peg$fail(peg$e34); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -2768,9 +2503,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e36); - } + if (peg$silentFails === 0) { peg$fail(peg$e36); } } if (s3 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 40) { @@ -2778,9 +2511,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s3 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 46) { @@ -2788,9 +2519,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } } } @@ -2810,9 +2539,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e36); - } + if (peg$silentFails === 0) { peg$fail(peg$e36); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -2824,9 +2551,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s10 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e38); - } + if (peg$silentFails === 0) { peg$fail(peg$e38); } } if (s10 !== peg$FAILED) { peg$savedPos = s4; @@ -2851,9 +2576,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -2865,9 +2588,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s10 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s10 !== peg$FAILED) { peg$savedPos = s4; @@ -2891,9 +2612,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s5 !== peg$FAILED) { s6 = peg$currPos; @@ -2925,9 +2644,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e36); - } + if (peg$silentFails === 0) { peg$fail(peg$e36); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -2939,9 +2656,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s10 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e38); - } + if (peg$silentFails === 0) { peg$fail(peg$e38); } } if (s10 !== peg$FAILED) { peg$savedPos = s4; @@ -2966,9 +2681,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -2980,9 +2693,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s10 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s10 !== peg$FAILED) { peg$savedPos = s4; @@ -3006,9 +2717,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s5 !== peg$FAILED) { s6 = peg$currPos; @@ -3071,9 +2780,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -3097,9 +2804,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -3149,9 +2854,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } peg$silentFails--; if (s3 !== peg$FAILED) { @@ -3169,9 +2872,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -3202,9 +2903,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s6 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s6 !== peg$FAILED) { s7 = peg$parse_nl(); @@ -3261,9 +2960,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e2); - } + if (peg$silentFails === 0) { peg$fail(peg$e2); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -3275,9 +2972,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e3); - } + if (peg$silentFails === 0) { peg$fail(peg$e3); } } if (s5 !== peg$FAILED) { peg$savedPos = s0; @@ -3377,9 +3072,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e40); - } + if (peg$silentFails === 0) { peg$fail(peg$e40); } } if (s3 !== peg$FAILED) { while (s3 !== peg$FAILED) { @@ -3389,9 +3082,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e40); - } + if (peg$silentFails === 0) { peg$fail(peg$e40); } } } } else { @@ -3404,9 +3095,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e41); - } + if (peg$silentFails === 0) { peg$fail(peg$e41); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -3415,9 +3104,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e41); - } + if (peg$silentFails === 0) { peg$fail(peg$e41); } } } s2 = [s2, s3]; @@ -3434,9 +3121,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e39); - } + if (peg$silentFails === 0) { peg$fail(peg$e39); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -3465,9 +3150,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e43); - } + if (peg$silentFails === 0) { peg$fail(peg$e43); } } if (s3 !== peg$FAILED) { while (s3 !== peg$FAILED) { @@ -3477,9 +3160,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e43); - } + if (peg$silentFails === 0) { peg$fail(peg$e43); } } } } else { @@ -3492,9 +3173,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e44); - } + if (peg$silentFails === 0) { peg$fail(peg$e44); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -3503,9 +3182,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e44); - } + if (peg$silentFails === 0) { peg$fail(peg$e44); } } } s2 = [s2, s3]; @@ -3522,9 +3199,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e42); - } + if (peg$silentFails === 0) { peg$fail(peg$e42); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -3552,9 +3227,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e46); - } + if (peg$silentFails === 0) { peg$fail(peg$e46); } } if (s2 !== peg$FAILED) { s3 = []; @@ -3563,9 +3236,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e47); - } + if (peg$silentFails === 0) { peg$fail(peg$e47); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -3574,9 +3245,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e47); - } + if (peg$silentFails === 0) { peg$fail(peg$e47); } } } if (input.charCodeAt(peg$currPos) === 39) { @@ -3584,9 +3253,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e46); - } + if (peg$silentFails === 0) { peg$fail(peg$e46); } } if (s4 !== peg$FAILED) { s1 = s3; @@ -3611,9 +3278,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e48); - } + if (peg$silentFails === 0) { peg$fail(peg$e48); } } if (s2 !== peg$FAILED) { s3 = []; @@ -3622,9 +3287,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e49); - } + if (peg$silentFails === 0) { peg$fail(peg$e49); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -3633,9 +3296,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e49); - } + if (peg$silentFails === 0) { peg$fail(peg$e49); } } } if (input.charCodeAt(peg$currPos) === 34) { @@ -3643,9 +3304,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e48); - } + if (peg$silentFails === 0) { peg$fail(peg$e48); } } if (s4 !== peg$FAILED) { s1 = s3; @@ -3666,9 +3325,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e45); - } + if (peg$silentFails === 0) { peg$fail(peg$e45); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -3708,9 +3365,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } peg$silentFails--; if (s3 === peg$FAILED) { @@ -3727,9 +3382,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e51); - } + if (peg$silentFails === 0) { peg$fail(peg$e51); } } peg$silentFails--; if (s4 === peg$FAILED) { @@ -3756,9 +3409,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e50); - } + if (peg$silentFails === 0) { peg$fail(peg$e50); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -3799,9 +3450,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s5 !== peg$FAILED) { s6 = []; @@ -3827,9 +3476,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e37); - } + if (peg$silentFails === 0) { peg$fail(peg$e37); } } if (s4 !== peg$FAILED) { s5 = []; @@ -3904,9 +3551,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e52); - } + if (peg$silentFails === 0) { peg$fail(peg$e52); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -3932,9 +3577,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e51); - } + if (peg$silentFails === 0) { peg$fail(peg$e51); } } if (s1 !== peg$FAILED) { if (input.charCodeAt(peg$currPos) === 45) { @@ -3942,9 +3585,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e22); - } + if (peg$silentFails === 0) { peg$fail(peg$e22); } } if (s2 === peg$FAILED) { s2 = null; @@ -3993,9 +3634,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e53); - } + if (peg$silentFails === 0) { peg$fail(peg$e53); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4022,9 +3661,7 @@ function peg$parse(input, options) { peg$currPos += 4; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e55); - } + if (peg$silentFails === 0) { peg$fail(peg$e55); } } if (s1 === peg$FAILED) { if (input.substr(peg$currPos, 5) === peg$c39) { @@ -4032,9 +3669,7 @@ function peg$parse(input, options) { peg$currPos += 5; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e56); - } + if (peg$silentFails === 0) { peg$fail(peg$e56); } } } if (s1 !== peg$FAILED) { @@ -4045,9 +3680,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e54); - } + if (peg$silentFails === 0) { peg$fail(peg$e54); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4101,9 +3734,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e0); - } + if (peg$silentFails === 0) { peg$fail(peg$e0); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -4112,9 +3743,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e57); - } + if (peg$silentFails === 0) { peg$fail(peg$e57); } } if (s3 !== peg$FAILED) { s4 = peg$parse_nl(); @@ -4126,9 +3755,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s7 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e57); - } + if (peg$silentFails === 0) { peg$fail(peg$e57); } } if (s7 !== peg$FAILED) { s8 = peg$parse_nl(); @@ -4155,9 +3782,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s12 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e1); - } + if (peg$silentFails === 0) { peg$fail(peg$e1); } } if (s12 !== peg$FAILED) { peg$savedPos = s0; @@ -4197,9 +3822,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e0); - } + if (peg$silentFails === 0) { peg$fail(peg$e0); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -4208,9 +3831,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e57); - } + if (peg$silentFails === 0) { peg$fail(peg$e57); } } if (s3 !== peg$FAILED) { s4 = peg$parse_nl(); @@ -4222,9 +3843,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s7 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e57); - } + if (peg$silentFails === 0) { peg$fail(peg$e57); } } if (s7 !== peg$FAILED) { s8 = peg$parse_nl(); @@ -4236,9 +3855,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s11 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e1); - } + if (peg$silentFails === 0) { peg$fail(peg$e1); } } if (s11 !== peg$FAILED) { peg$savedPos = s0; @@ -4293,9 +3910,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e36); - } + if (peg$silentFails === 0) { peg$fail(peg$e36); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -4304,9 +3919,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e38); - } + if (peg$silentFails === 0) { peg$fail(peg$e38); } } if (s3 !== peg$FAILED) { peg$savedPos = s0; @@ -4326,9 +3939,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e36); - } + if (peg$silentFails === 0) { peg$fail(peg$e36); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -4340,9 +3951,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e38); - } + if (peg$silentFails === 0) { peg$fail(peg$e38); } } if (s5 !== peg$FAILED) { peg$savedPos = s0; @@ -4363,9 +3972,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e58); - } + if (peg$silentFails === 0) { peg$fail(peg$e58); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4396,9 +4003,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -4422,9 +4027,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -4471,9 +4074,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e0); - } + if (peg$silentFails === 0) { peg$fail(peg$e0); } } if (s1 !== peg$FAILED) { s2 = peg$parse_nl(); @@ -4485,9 +4086,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e1); - } + if (peg$silentFails === 0) { peg$fail(peg$e1); } } if (s5 !== peg$FAILED) { peg$savedPos = s0; @@ -4507,9 +4106,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e59); - } + if (peg$silentFails === 0) { peg$fail(peg$e59); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4540,9 +4137,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -4566,9 +4161,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s5 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e6); - } + if (peg$silentFails === 0) { peg$fail(peg$e6); } } if (s5 !== peg$FAILED) { s6 = peg$parse_nl(); @@ -4617,9 +4210,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e11); - } + if (peg$silentFails === 0) { peg$fail(peg$e11); } } if (s3 !== peg$FAILED) { s4 = peg$parse_nl(); @@ -4666,9 +4257,7 @@ function peg$parse(input, options) { } peg$silentFails--; s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e60); - } + if (peg$silentFails === 0) { peg$fail(peg$e60); } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4702,9 +4291,7 @@ function peg$parse(input, options) { } peg$silentFails--; s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e61); - } + if (peg$silentFails === 0) { peg$fail(peg$e61); } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4737,9 +4324,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e60); - } + if (peg$silentFails === 0) { peg$fail(peg$e60); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4779,9 +4364,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e62); - } + if (peg$silentFails === 0) { peg$fail(peg$e62); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4810,9 +4393,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e64); - } + if (peg$silentFails === 0) { peg$fail(peg$e64); } } if (s3 === peg$FAILED) { s3 = peg$parsecommentOrNewLine(); @@ -4825,9 +4406,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e64); - } + if (peg$silentFails === 0) { peg$fail(peg$e64); } } if (s3 === peg$FAILED) { s3 = peg$parsecommentOrNewLine(); @@ -4847,9 +4426,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e63); - } + if (peg$silentFails === 0) { peg$fail(peg$e63); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -4908,9 +4485,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e66); - } + if (peg$silentFails === 0) { peg$fail(peg$e66); } } if (s2 === peg$FAILED) { if (input.charCodeAt(peg$currPos) === 35) { @@ -4918,9 +4493,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s2 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e67); - } + if (peg$silentFails === 0) { peg$fail(peg$e67); } } } if (s2 !== peg$FAILED) { @@ -4930,9 +4503,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e68); - } + if (peg$silentFails === 0) { peg$fail(peg$e68); } } while (s4 !== peg$FAILED) { s3.push(s4); @@ -4941,9 +4512,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s4 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e68); - } + if (peg$silentFails === 0) { peg$fail(peg$e68); } } } s0 = s3; @@ -4954,9 +4523,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e65); - } + if (peg$silentFails === 0) { peg$fail(peg$e65); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -5005,9 +4572,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e70); - } + if (peg$silentFails === 0) { peg$fail(peg$e70); } } if (s1 !== peg$FAILED) { s2 = []; @@ -5016,9 +4581,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e71); - } + if (peg$silentFails === 0) { peg$fail(peg$e71); } } while (s3 !== peg$FAILED) { s2.push(s3); @@ -5027,9 +4590,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e71); - } + if (peg$silentFails === 0) { peg$fail(peg$e71); } } } if (input.substr(peg$currPos, 2) === peg$c45) { @@ -5037,9 +4598,7 @@ function peg$parse(input, options) { peg$currPos += 2; } else { s3 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e72); - } + if (peg$silentFails === 0) { peg$fail(peg$e72); } } if (s3 !== peg$FAILED) { s0 = s2; @@ -5054,9 +4613,7 @@ function peg$parse(input, options) { peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e69); - } + if (peg$silentFails === 0) { peg$fail(peg$e69); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -5081,9 +4638,7 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e73); - } + if (peg$silentFails === 0) { peg$fail(peg$e73); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -5109,16 +4664,12 @@ function peg$parse(input, options) { peg$currPos++; } else { s0 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e75); - } + if (peg$silentFails === 0) { peg$fail(peg$e75); } } peg$silentFails--; if (s0 === peg$FAILED) { s1 = peg$FAILED; - if (peg$silentFails === 0) { - peg$fail(peg$e74); - } + if (peg$silentFails === 0) { peg$fail(peg$e74); } } peg$resultsCache[key] = { nextPos: peg$currPos, result: s0 }; @@ -5147,5 +4698,5 @@ function peg$parse(input, options) { module.exports = { SyntaxError: peg$SyntaxError, - parse: peg$parse, + parse: peg$parse };