From 4b99e0135e3da94665d65a97dc32f2959fcb25e3 Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Sun, 22 May 2022 13:02:20 -0400 Subject: [PATCH 1/2] Minor cleanup --- .../Reducer/Reducer_Expression/Reducer_Expression.res | 4 +--- .../ReducerInterface_ExpressionValue.res | 10 +++++----- yarn.lock | 4 ++-- 3 files changed, 8 insertions(+), 10 deletions(-) diff --git a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.res b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.res index 6e3c7cab..64faa43b 100644 --- a/packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.res +++ b/packages/squiggle-lang/src/rescript/Reducer/Reducer_Expression/Reducer_Expression.res @@ -21,9 +21,7 @@ type t = expression Converts a Squigle code to expression */ let parse = (peggyCode: string): result => - peggyCode - ->Reducer_Peggy_Parse.parse - ->Result.map(node => Reducer_Peggy_ToExpression.fromNode(node)) + peggyCode->Reducer_Peggy_Parse.parse->Result.map(Reducer_Peggy_ToExpression.fromNode) /* Recursively evaluate/reduce the expression (Lisp AST) diff --git a/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_ExpressionValue.res b/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_ExpressionValue.res index 7249b135..7b896509 100644 --- a/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_ExpressionValue.res +++ b/packages/squiggle-lang/src/rescript/ReducerInterface/ReducerInterface_ExpressionValue.res @@ -87,7 +87,7 @@ let toStringResult = x => | Error(m) => `Error(${ErrorValue.errorToString(m)})` } -let toStringResultOkless = codeResult => +let toStringResultOkless = (codeResult: result): string => switch codeResult { | Ok(a) => toString(a) | Error(m) => `Error(${ErrorValue.errorToString(m)})` @@ -105,7 +105,7 @@ type environment = DistributionOperation.env @genType let defaultEnvironment: environment = DistributionOperation.defaultEnv -type expresionValueType = +type expressionValueType = | EvtArray | EvtArrayString | EvtBool @@ -117,9 +117,9 @@ type expresionValueType = | EvtString | EvtSymbol -type functionCallSignature = CallSignature(string, array) +type functionCallSignature = CallSignature(string, array) type functionDefinitionSignature = - FunctionDefinitionSignature(functionCallSignature, expresionValueType) + FunctionDefinitionSignature(functionCallSignature, expressionValueType) let valueToValueType = value => switch value { @@ -140,7 +140,7 @@ let functionCallToCallSignature = (functionCall: functionCall): functionCallSign CallSignature(fn, args->Js.Array2.map(valueToValueType)) } -let valueTypeToString = (valueType: expresionValueType): string => +let valueTypeToString = (valueType: expressionValueType): string => switch valueType { | EvtArray => `Array` | EvtArrayString => `ArrayString` diff --git a/yarn.lock b/yarn.lock index d76e428d..3ba8e213 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4295,7 +4295,7 @@ dependencies: "@types/react" "*" -"@types/react@*", "@types/react@^18.0.9": +"@types/react@*", "@types/react@^18.0.1", "@types/react@^18.0.9": version "18.0.9" resolved "https://registry.yarnpkg.com/@types/react/-/react-18.0.9.tgz#d6712a38bd6cd83469603e7359511126f122e878" integrity sha512-9bjbg1hJHUm4De19L1cHiW0Jvx3geel6Qczhjd0qY5VKVE2X5+x77YxAepuCwVh4vrgZJdgEJw48zrhRIeF4Nw== @@ -14522,7 +14522,7 @@ react-vega@^7.5.1: prop-types "^15.8.1" vega-embed "^6.5.1" -react@^18.1.0: +react@^18.0.0, react@^18.1.0: version "18.1.0" resolved "https://registry.yarnpkg.com/react/-/react-18.1.0.tgz#6f8620382decb17fdc5cc223a115e2adbf104890" integrity sha512-4oL8ivCz5ZEPyclFQXaNksK3adutVS8l2xzZU0cqEFrE9Sb7fC0EFK5uEk74wIreL1DERyjvsU915j1pcT2uEQ== From f816f3c20007d0d94d544ed02753a0ec89d5c3dd Mon Sep 17 00:00:00 2001 From: Ozzie Gooen Date: Sun, 22 May 2022 13:02:54 -0400 Subject: [PATCH 2/2] Ran prettier format --- .../Reducer_Peggy_GeneratedParser.js | 1049 ++++++++++++----- 1 file changed, 749 insertions(+), 300 deletions(-) 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 67fa36a1..3a34dfb2 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,71 +4,103 @@ "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 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 unaryToFunction = { - '-': 'unaryMinus', - '!': 'not', - '.-': 'unaryDotMinus', - } +var postOperatorToFunction = { + ".": "$_atIndex_$", + "()": "$$_applyAll_$$", + "[]": "$_atIndex_$", +}; - 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]) +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]); } - 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(); } @@ -89,13 +121,15 @@ 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; @@ -113,11 +147,20 @@ 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; } @@ -125,14 +168,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); @@ -141,17 +184,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) { @@ -161,13 +204,17 @@ 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) { @@ -175,13 +222,17 @@ 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) { @@ -212,17 +263,25 @@ 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) { @@ -271,7 +330,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 = "|"; @@ -335,15 +394,23 @@ 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"); @@ -371,55 +438,134 @@ 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; @@ -434,7 +580,9 @@ 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]; @@ -452,7 +600,7 @@ function peg$parse(input, options) { return { source: peg$source, start: peg$savedPos, - end: peg$currPos + end: peg$currPos, }; } @@ -461,9 +609,10 @@ 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)], @@ -473,9 +622,10 @@ 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); } @@ -485,7 +635,12 @@ 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() { @@ -515,7 +670,7 @@ function peg$parse(input, options) { details = peg$posDetailsCache[p]; details = { line: details.line, - column: details.column + column: details.column, }; while (p < pos) { @@ -544,18 +699,20 @@ 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; @@ -732,7 +889,9 @@ 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(); @@ -759,7 +918,9 @@ 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; @@ -787,7 +948,9 @@ 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(); @@ -799,7 +962,9 @@ 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; @@ -961,7 +1126,9 @@ 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(); @@ -973,7 +1140,9 @@ 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_(); @@ -1032,12 +1201,16 @@ 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 }; @@ -1068,7 +1241,9 @@ 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(); @@ -1092,7 +1267,9 @@ 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(); @@ -1163,7 +1340,9 @@ 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(); @@ -1177,7 +1356,9 @@ 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(); @@ -1191,7 +1372,9 @@ 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(); @@ -1274,7 +1457,9 @@ 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(); @@ -1286,7 +1471,9 @@ 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(); @@ -1406,12 +1593,16 @@ 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 }; @@ -1502,12 +1693,16 @@ 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 }; @@ -1577,7 +1772,9 @@ 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) { @@ -1585,13 +1782,17 @@ 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 }; @@ -1661,7 +1862,9 @@ 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) { @@ -1669,7 +1872,9 @@ 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) { @@ -1677,7 +1882,9 @@ 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) { @@ -1685,7 +1892,9 @@ 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); + } } } } @@ -1693,7 +1902,9 @@ 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 }; @@ -1784,7 +1995,9 @@ 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) { @@ -1792,7 +2005,9 @@ 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) { @@ -1800,7 +2015,9 @@ 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) { @@ -1808,7 +2025,9 @@ 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); + } } } } @@ -1816,7 +2035,9 @@ 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 }; @@ -1907,7 +2128,9 @@ 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) { @@ -1915,7 +2138,9 @@ 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) { @@ -1923,7 +2148,9 @@ 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) { @@ -1931,7 +2158,9 @@ 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); + } } } } @@ -1939,7 +2168,9 @@ 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 }; @@ -2030,7 +2261,9 @@ 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) { @@ -2038,13 +2271,17 @@ 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 }; @@ -2155,12 +2392,16 @@ 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 }; @@ -2191,7 +2432,9 @@ 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) { @@ -2199,7 +2442,9 @@ 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) { @@ -2225,7 +2470,9 @@ 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) { @@ -2233,7 +2480,9 @@ 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) { @@ -2283,7 +2532,9 @@ 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(); @@ -2295,7 +2546,9 @@ 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; @@ -2325,7 +2578,9 @@ 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(); @@ -2334,7 +2589,9 @@ 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; @@ -2425,7 +2682,9 @@ 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) { @@ -2433,7 +2692,9 @@ 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) { @@ -2441,14 +2702,18 @@ 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 }; @@ -2503,7 +2768,9 @@ 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) { @@ -2511,7 +2778,9 @@ 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) { @@ -2519,7 +2788,9 @@ 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); + } } } } @@ -2539,7 +2810,9 @@ 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(); @@ -2551,7 +2824,9 @@ 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; @@ -2576,7 +2851,9 @@ 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(); @@ -2588,7 +2865,9 @@ 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; @@ -2612,7 +2891,9 @@ 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; @@ -2644,7 +2925,9 @@ 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(); @@ -2656,7 +2939,9 @@ 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; @@ -2681,7 +2966,9 @@ 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(); @@ -2693,7 +2980,9 @@ 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; @@ -2717,7 +3006,9 @@ 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; @@ -2780,7 +3071,9 @@ 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(); @@ -2804,7 +3097,9 @@ 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(); @@ -2854,7 +3149,9 @@ 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) { @@ -2872,7 +3169,9 @@ 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(); @@ -2903,7 +3202,9 @@ 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(); @@ -2960,7 +3261,9 @@ 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(); @@ -2972,7 +3275,9 @@ 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; @@ -3072,7 +3377,9 @@ 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) { @@ -3082,7 +3389,9 @@ 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 { @@ -3095,7 +3404,9 @@ 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); @@ -3104,7 +3415,9 @@ 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]; @@ -3121,7 +3434,9 @@ 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 }; @@ -3150,7 +3465,9 @@ 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) { @@ -3160,7 +3477,9 @@ 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 { @@ -3173,7 +3492,9 @@ 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); @@ -3182,7 +3503,9 @@ 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]; @@ -3199,7 +3522,9 @@ 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 }; @@ -3227,7 +3552,9 @@ 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 = []; @@ -3236,7 +3563,9 @@ 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); @@ -3245,7 +3574,9 @@ 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) { @@ -3253,7 +3584,9 @@ 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; @@ -3278,7 +3611,9 @@ 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 = []; @@ -3287,7 +3622,9 @@ 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); @@ -3296,7 +3633,9 @@ 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) { @@ -3304,7 +3643,9 @@ 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; @@ -3325,7 +3666,9 @@ 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 }; @@ -3365,7 +3708,9 @@ 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) { @@ -3382,7 +3727,9 @@ 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) { @@ -3409,7 +3756,9 @@ 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 }; @@ -3450,7 +3799,9 @@ 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 = []; @@ -3476,7 +3827,9 @@ 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 = []; @@ -3551,7 +3904,9 @@ 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 }; @@ -3577,7 +3932,9 @@ 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) { @@ -3585,7 +3942,9 @@ 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; @@ -3634,7 +3993,9 @@ 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 }; @@ -3661,7 +4022,9 @@ 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) { @@ -3669,7 +4032,9 @@ 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) { @@ -3680,7 +4045,9 @@ 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 }; @@ -3734,7 +4101,9 @@ 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(); @@ -3743,7 +4112,9 @@ 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(); @@ -3755,7 +4126,9 @@ 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(); @@ -3782,7 +4155,9 @@ 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; @@ -3822,7 +4197,9 @@ 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(); @@ -3831,7 +4208,9 @@ 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(); @@ -3843,7 +4222,9 @@ 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(); @@ -3855,7 +4236,9 @@ 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; @@ -3910,7 +4293,9 @@ 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(); @@ -3919,7 +4304,9 @@ 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; @@ -3939,7 +4326,9 @@ 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(); @@ -3951,7 +4340,9 @@ 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; @@ -3972,7 +4363,9 @@ 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 }; @@ -4003,7 +4396,9 @@ 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(); @@ -4027,7 +4422,9 @@ 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(); @@ -4074,7 +4471,9 @@ 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(); @@ -4086,7 +4485,9 @@ 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; @@ -4106,7 +4507,9 @@ 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 }; @@ -4137,7 +4540,9 @@ 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(); @@ -4161,7 +4566,9 @@ 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(); @@ -4210,7 +4617,9 @@ 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(); @@ -4257,7 +4666,9 @@ 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 }; @@ -4291,7 +4702,9 @@ 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 }; @@ -4324,7 +4737,9 @@ 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 }; @@ -4364,7 +4779,9 @@ 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 }; @@ -4393,7 +4810,9 @@ 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(); @@ -4406,7 +4825,9 @@ 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(); @@ -4426,7 +4847,9 @@ 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 }; @@ -4485,7 +4908,9 @@ 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) { @@ -4493,7 +4918,9 @@ 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) { @@ -4503,7 +4930,9 @@ 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); @@ -4512,7 +4941,9 @@ 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; @@ -4523,7 +4954,9 @@ 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 }; @@ -4572,7 +5005,9 @@ 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 = []; @@ -4581,7 +5016,9 @@ 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); @@ -4590,7 +5027,9 @@ 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) { @@ -4598,7 +5037,9 @@ 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; @@ -4613,7 +5054,9 @@ 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 }; @@ -4638,7 +5081,9 @@ 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 }; @@ -4664,12 +5109,16 @@ 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 }; @@ -4698,5 +5147,5 @@ function peg$parse(input, options) { module.exports = { SyntaxError: peg$SyntaxError, - parse: peg$parse + parse: peg$parse, };