ut-tools
Version:
Build and Release management automation package.
1,937 lines (1,746 loc) • 66.8 kB
JavaScript
/*
* Generated by PEG.js 0.10.0.
*
* http://pegjs.org/
*/
"use strict";
function peg$subclass(child, parent) {
function ctor() { this.constructor = child; }
ctor.prototype = parent.prototype;
child.prototype = new ctor();
}
function peg$SyntaxError(message, expected, found, location) {
this.message = message;
this.expected = expected;
this.found = found;
this.location = location;
this.name = "SyntaxError";
if (typeof Error.captureStackTrace === "function") {
Error.captureStackTrace(this, peg$SyntaxError);
}
}
peg$subclass(peg$SyntaxError, Error);
peg$SyntaxError.buildMessage = function(expected, found) {
var DESCRIBE_EXPECTATION_FNS = {
literal: function(expectation) {
return "\"" + literalEscape(expectation.text) + "\"";
},
"class": function(expectation) {
var escapedParts = "",
i;
for (i = 0; i < expectation.parts.length; i++) {
escapedParts += expectation.parts[i] instanceof Array
? classEscape(expectation.parts[i][0]) + "-" + classEscape(expectation.parts[i][1])
: classEscape(expectation.parts[i]);
}
return "[" + (expectation.inverted ? "^" : "") + escapedParts + "]";
},
any: function(expectation) {
return "any character";
},
end: function(expectation) {
return "end of input";
},
other: function(expectation) {
return expectation.description;
}
};
function hex(ch) {
return ch.charCodeAt(0).toString(16).toUpperCase();
}
function literalEscape(s) {
return s
.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); });
}
function classEscape(s) {
return s
.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); });
}
function describeExpectation(expectation) {
return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
}
function describeExpected(expected) {
var descriptions = new Array(expected.length),
i, j;
for (i = 0; i < expected.length; i++) {
descriptions[i] = describeExpectation(expected[i]);
}
descriptions.sort();
if (descriptions.length > 0) {
for (i = 1, j = 1; i < descriptions.length; i++) {
if (descriptions[i - 1] !== descriptions[i]) {
descriptions[j] = descriptions[i];
j++;
}
}
descriptions.length = j;
}
switch (descriptions.length) {
case 1:
return descriptions[0];
case 2:
return descriptions[0] + " or " + descriptions[1];
default:
return descriptions.slice(0, -1).join(", ")
+ ", or "
+ descriptions[descriptions.length - 1];
}
}
function describeFound(found) {
return found ? "\"" + literalEscape(found) + "\"" : "end of input";
}
return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
};
function peg$parse(input, options) {
options = options !== void 0 ? options : {};
var peg$FAILED = {},
peg$startRuleFunctions = { body: peg$parsebody },
peg$startRuleFunction = peg$parsebody,
peg$c0 = function(token, last) {
token.push(last);
var result = token.reduce(function(prev, pair){
pair.forEach && pair.forEach(function(cur){
(cur.text != '') && prev[prev.length-1].push(cur);
cur.type === 'newline' && prev.push([]);
});
return prev;
},[[]]);
!result[result.length-1].length && result.pop();
return {
lint: lint(result),
tokens: result
}
},
peg$c1 = function(ws, token) {return ws.concat(token)},
peg$c2 = function() {return {type: 'whitespace', text: text(), location: location()}},
peg$c3 = function() {return {type: 'newline', text: text(), location: location()}},
peg$c4 = function() {return {type: 'comment', text: text(), location: location()}},
peg$c5 = function() {return {type: 'literal', text: text(), location: location()}},
peg$c6 = function(s) {return {type: 'system', text:s, location: location()}},
peg$c7 = function(t) {return {type: 'globaltemp', text:t, location: location()}},
peg$c8 = function(t) {return {type: 'temp', text:t, location: location()}},
peg$c9 = function(v) {return {type: 'variable', text:v, location: location()}},
peg$c10 = function(n) {return isKeyword(n) ? {type: 'keyword', text:n, location: location()} : {type: 'word', text:n, location: location()}},
peg$c11 = function(p) {return {type: 'paren', text:p, location: location()}},
peg$c12 = function(o) {return {type: 'operator', text:o, location: location()}},
peg$c13 = "(",
peg$c14 = peg$literalExpectation("(", false),
peg$c15 = ")",
peg$c16 = peg$literalExpectation(")", false),
peg$c17 = "+",
peg$c18 = peg$literalExpectation("+", false),
peg$c19 = "-",
peg$c20 = peg$literalExpectation("-", false),
peg$c21 = ",",
peg$c22 = peg$literalExpectation(",", false),
peg$c23 = "=",
peg$c24 = peg$literalExpectation("=", false),
peg$c25 = "!=",
peg$c26 = peg$literalExpectation("!=", false),
peg$c27 = "<>",
peg$c28 = peg$literalExpectation("<>", false),
peg$c29 = "&",
peg$c30 = peg$literalExpectation("&", false),
peg$c31 = "<",
peg$c32 = peg$literalExpectation("<", false),
peg$c33 = "<=",
peg$c34 = peg$literalExpectation("<=", false),
peg$c35 = ">",
peg$c36 = peg$literalExpectation(">", false),
peg$c37 = ">=",
peg$c38 = peg$literalExpectation(">=", false),
peg$c39 = ".*",
peg$c40 = peg$literalExpectation(".*", false),
peg$c41 = "*",
peg$c42 = peg$literalExpectation("*", false),
peg$c43 = "%",
peg$c44 = peg$literalExpectation("%", false),
peg$c45 = "/",
peg$c46 = peg$literalExpectation("/", false),
peg$c47 = ";",
peg$c48 = peg$literalExpectation(";", false),
peg$c49 = "^",
peg$c50 = peg$literalExpectation("^", false),
peg$c51 = "%=",
peg$c52 = peg$literalExpectation("%=", false),
peg$c53 = "*=",
peg$c54 = peg$literalExpectation("*=", false),
peg$c55 = "+=",
peg$c56 = peg$literalExpectation("+=", false),
peg$c57 = "-=",
peg$c58 = peg$literalExpectation("-=", false),
peg$c59 = "/=",
peg$c60 = peg$literalExpectation("/=", false),
peg$c61 = "|=",
peg$c62 = peg$literalExpectation("|=", false),
peg$c63 = "^=",
peg$c64 = peg$literalExpectation("^=", false),
peg$c65 = "&=",
peg$c66 = peg$literalExpectation("&=", false),
peg$c67 = "|",
peg$c68 = peg$literalExpectation("|", false),
peg$c69 = peg$otherExpectation("operator"),
peg$c70 = peg$otherExpectation("word"),
peg$c71 = "[",
peg$c72 = peg$literalExpectation("[", false),
peg$c73 = /^[^\]]/,
peg$c74 = peg$classExpectation(["]"], true, false),
peg$c75 = "]",
peg$c76 = peg$literalExpectation("]", false),
peg$c77 = function(str) {return text()},
peg$c78 = "\"",
peg$c79 = peg$literalExpectation("\"", false),
peg$c80 = /^[^"]/,
peg$c81 = peg$classExpectation(["\""], true, false),
peg$c82 = function() {return text()},
peg$c83 = /^[A-Za-z0-9_$]/,
peg$c84 = peg$classExpectation([["A", "Z"], ["a", "z"], ["0", "9"], "_", "$"], false, false),
peg$c85 = peg$otherExpectation("system variable"),
peg$c86 = "@@",
peg$c87 = peg$literalExpectation("@@", false),
peg$c88 = peg$otherExpectation("variable"),
peg$c89 = "@",
peg$c90 = peg$literalExpectation("@", false),
peg$c91 = function(n) {return text()},
peg$c92 = peg$otherExpectation("global temporary table"),
peg$c93 = "##",
peg$c94 = peg$literalExpectation("##", false),
peg$c95 = peg$otherExpectation("temporary table"),
peg$c96 = "#",
peg$c97 = peg$literalExpectation("#", false),
peg$c98 = "null",
peg$c99 = peg$literalExpectation("NULL", true),
peg$c100 = peg$otherExpectation("string"),
peg$c101 = "N",
peg$c102 = peg$literalExpectation("N", false),
peg$c103 = /^[^']/,
peg$c104 = peg$classExpectation(["'"], true, false),
peg$c105 = function(s) {return s.join('')},
peg$c106 = function() {return '\''},
peg$c107 = peg$otherExpectation("number"),
peg$c108 = /^[0-9]/,
peg$c109 = peg$classExpectation([["0", "9"]], false, false),
peg$c110 = "'",
peg$c111 = peg$literalExpectation("'", false),
peg$c112 = ".",
peg$c113 = peg$literalExpectation(".", false),
peg$c114 = "e",
peg$c115 = peg$literalExpectation("E", true),
peg$c116 = /^[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,
peg$c117 = peg$classExpectation([" ", "\xA0", "\u1680", ["\u2000", "\u200A"], "\u202F", "\u205F", "\u3000"], false, false),
peg$c118 = peg$anyExpectation(),
peg$c119 = peg$otherExpectation("whitespace"),
peg$c120 = "\t",
peg$c121 = peg$literalExpectation("\t", false),
peg$c122 = "\x0B",
peg$c123 = peg$literalExpectation("\x0B", false),
peg$c124 = "\f",
peg$c125 = peg$literalExpectation("\f", false),
peg$c126 = " ",
peg$c127 = peg$literalExpectation(" ", false),
peg$c128 = "\xA0",
peg$c129 = peg$literalExpectation("\xA0", false),
peg$c130 = "\uFEFF",
peg$c131 = peg$literalExpectation("\uFEFF", false),
peg$c132 = /^[\n\r\u2028\u2029]/,
peg$c133 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false),
peg$c134 = peg$otherExpectation("end of line"),
peg$c135 = "\r\n",
peg$c136 = peg$literalExpectation("\r\n", false),
peg$c137 = "\n",
peg$c138 = peg$literalExpectation("\n", false),
peg$c139 = "\r",
peg$c140 = peg$literalExpectation("\r", false),
peg$c141 = "\u2028",
peg$c142 = peg$literalExpectation("\u2028", false),
peg$c143 = "\u2029",
peg$c144 = peg$literalExpectation("\u2029", false),
peg$c145 = peg$otherExpectation("comment"),
peg$c146 = "*/",
peg$c147 = peg$literalExpectation("*/", false),
peg$c148 = function() {return {multi:text()}},
peg$c149 = "/*",
peg$c150 = peg$literalExpectation("/*", false),
peg$c151 = function(x) {return x},
peg$c152 = function() {return {single:text()}},
peg$c153 = "--",
peg$c154 = peg$literalExpectation("--", false),
peg$currPos = 0,
peg$savedPos = 0,
peg$posDetailsCache = [{ line: 1, column: 1 }],
peg$maxFailPos = 0,
peg$maxFailExpected = [],
peg$silentFails = 0,
peg$result;
if ("startRule" in options) {
if (!(options.startRule in peg$startRuleFunctions)) {
throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
}
peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
}
function text() {
return input.substring(peg$savedPos, peg$currPos);
}
function location() {
return peg$computeLocation(peg$savedPos, peg$currPos);
}
function expected(description, location) {
location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)
throw peg$buildStructuredError(
[peg$otherExpectation(description)],
input.substring(peg$savedPos, peg$currPos),
location
);
}
function error(message, location) {
location = location !== void 0 ? location : peg$computeLocation(peg$savedPos, peg$currPos)
throw peg$buildSimpleError(message, location);
}
function peg$literalExpectation(text, ignoreCase) {
return { type: "literal", text: text, ignoreCase: ignoreCase };
}
function peg$classExpectation(parts, inverted, ignoreCase) {
return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };
}
function peg$anyExpectation() {
return { type: "any" };
}
function peg$endExpectation() {
return { type: "end" };
}
function peg$otherExpectation(description) {
return { type: "other", description: description };
}
function peg$computePosDetails(pos) {
var details = peg$posDetailsCache[pos], p;
if (details) {
return details;
} else {
p = pos - 1;
while (!peg$posDetailsCache[p]) {
p--;
}
details = peg$posDetailsCache[p];
details = {
line: details.line,
column: details.column
};
while (p < pos) {
if (input.charCodeAt(p) === 10) {
details.line++;
details.column = 1;
} else {
details.column++;
}
p++;
}
peg$posDetailsCache[pos] = details;
return details;
}
}
function peg$computeLocation(startPos, endPos) {
var startPosDetails = peg$computePosDetails(startPos),
endPosDetails = peg$computePosDetails(endPos);
return {
start: {
offset: startPos,
line: startPosDetails.line,
column: startPosDetails.column
},
end: {
offset: endPos,
line: endPosDetails.line,
column: endPosDetails.column
}
};
}
function peg$fail(expected) {
if (peg$currPos < peg$maxFailPos) { return; }
if (peg$currPos > peg$maxFailPos) {
peg$maxFailPos = peg$currPos;
peg$maxFailExpected = [];
}
peg$maxFailExpected.push(expected);
}
function peg$buildSimpleError(message, location) {
return new peg$SyntaxError(message, null, null, location);
}
function peg$buildStructuredError(expected, found, location) {
return new peg$SyntaxError(
peg$SyntaxError.buildMessage(expected, found),
expected,
found,
location
);
}
function peg$parsebody() {
var s0, s1, s2;
s0 = peg$currPos;
s1 = [];
s2 = peg$parsewstoken();
while (s2 !== peg$FAILED) {
s1.push(s2);
s2 = peg$parsewstoken();
}
if (s1 !== peg$FAILED) {
s2 = peg$parselintws();
if (s2 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c0(s1, s2);
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
return s0;
}
function peg$parsewstoken() {
var s0, s1, s2;
s0 = peg$currPos;
s1 = peg$parselintws();
if (s1 !== peg$FAILED) {
s2 = peg$parsetoken();
if (s2 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c1(s1, s2);
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
return s0;
}
function peg$parselintws() {
var s0, s1, s2;
s0 = [];
s1 = peg$currPos;
s2 = peg$parseWhiteSpace();
if (s2 !== peg$FAILED) {
peg$savedPos = s1;
s2 = peg$c2();
}
s1 = s2;
if (s1 === peg$FAILED) {
s1 = peg$currPos;
s2 = peg$parseLineTerminatorSequence();
if (s2 !== peg$FAILED) {
peg$savedPos = s1;
s2 = peg$c3();
}
s1 = s2;
if (s1 === peg$FAILED) {
s1 = peg$currPos;
s2 = peg$parseComment();
if (s2 !== peg$FAILED) {
peg$savedPos = s1;
s2 = peg$c4();
}
s1 = s2;
}
}
while (s1 !== peg$FAILED) {
s0.push(s1);
s1 = peg$currPos;
s2 = peg$parseWhiteSpace();
if (s2 !== peg$FAILED) {
peg$savedPos = s1;
s2 = peg$c2();
}
s1 = s2;
if (s1 === peg$FAILED) {
s1 = peg$currPos;
s2 = peg$parseLineTerminatorSequence();
if (s2 !== peg$FAILED) {
peg$savedPos = s1;
s2 = peg$c3();
}
s1 = s2;
if (s1 === peg$FAILED) {
s1 = peg$currPos;
s2 = peg$parseComment();
if (s2 !== peg$FAILED) {
peg$savedPos = s1;
s2 = peg$c4();
}
s1 = s2;
}
}
}
return s0;
}
function peg$parsetoken() {
var s0, s1;
s0 = peg$currPos;
s1 = peg$parseliteral();
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c5();
}
s0 = s1;
if (s0 === peg$FAILED) {
s0 = peg$currPos;
s1 = peg$parsesystem_var();
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c6(s1);
}
s0 = s1;
if (s0 === peg$FAILED) {
s0 = peg$currPos;
s1 = peg$parseglobaltemp();
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c7(s1);
}
s0 = s1;
if (s0 === peg$FAILED) {
s0 = peg$currPos;
s1 = peg$parsetemp();
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c8(s1);
}
s0 = s1;
if (s0 === peg$FAILED) {
s0 = peg$currPos;
s1 = peg$parsevariable();
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c9(s1);
}
s0 = s1;
if (s0 === peg$FAILED) {
s0 = peg$currPos;
s1 = peg$parsename();
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c10(s1);
}
s0 = s1;
if (s0 === peg$FAILED) {
s0 = peg$currPos;
s1 = peg$parselparen();
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c11(s1);
}
s0 = s1;
if (s0 === peg$FAILED) {
s0 = peg$currPos;
s1 = peg$parserparen();
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c11(s1);
}
s0 = s1;
if (s0 === peg$FAILED) {
s0 = peg$currPos;
s1 = peg$parseoperator();
if (s1 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c12(s1);
}
s0 = s1;
}
}
}
}
}
}
}
}
return s0;
}
function peg$parselparen() {
var s0;
if (input.charCodeAt(peg$currPos) === 40) {
s0 = peg$c13;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c14); }
}
return s0;
}
function peg$parserparen() {
var s0;
if (input.charCodeAt(peg$currPos) === 41) {
s0 = peg$c15;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c16); }
}
return s0;
}
function peg$parseplus() {
var s0;
if (input.charCodeAt(peg$currPos) === 43) {
s0 = peg$c17;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c18); }
}
return s0;
}
function peg$parseminus() {
var s0;
if (input.charCodeAt(peg$currPos) === 45) {
s0 = peg$c19;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c20); }
}
return s0;
}
function peg$parsecomma() {
var s0;
if (input.charCodeAt(peg$currPos) === 44) {
s0 = peg$c21;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c22); }
}
return s0;
}
function peg$parseequals() {
var s0;
if (input.charCodeAt(peg$currPos) === 61) {
s0 = peg$c23;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c24); }
}
return s0;
}
function peg$parsenot_equals() {
var s0;
if (input.substr(peg$currPos, 2) === peg$c25) {
s0 = peg$c25;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c26); }
}
if (s0 === peg$FAILED) {
if (input.substr(peg$currPos, 2) === peg$c27) {
s0 = peg$c27;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c28); }
}
}
return s0;
}
function peg$parseampersand() {
var s0;
if (input.charCodeAt(peg$currPos) === 38) {
s0 = peg$c29;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c30); }
}
return s0;
}
function peg$parselt() {
var s0;
if (input.charCodeAt(peg$currPos) === 60) {
s0 = peg$c31;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c32); }
}
return s0;
}
function peg$parselte() {
var s0;
if (input.substr(peg$currPos, 2) === peg$c33) {
s0 = peg$c33;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c34); }
}
return s0;
}
function peg$parsegt() {
var s0;
if (input.charCodeAt(peg$currPos) === 62) {
s0 = peg$c35;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c36); }
}
return s0;
}
function peg$parsegte() {
var s0;
if (input.substr(peg$currPos, 2) === peg$c37) {
s0 = peg$c37;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c38); }
}
return s0;
}
function peg$parsedotasterisk() {
var s0;
if (input.substr(peg$currPos, 2) === peg$c39) {
s0 = peg$c39;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c40); }
}
return s0;
}
function peg$parseasterisk() {
var s0;
if (input.charCodeAt(peg$currPos) === 42) {
s0 = peg$c41;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c42); }
}
return s0;
}
function peg$parsepercent() {
var s0;
if (input.charCodeAt(peg$currPos) === 37) {
s0 = peg$c43;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c44); }
}
return s0;
}
function peg$parseslash() {
var s0;
if (input.charCodeAt(peg$currPos) === 47) {
s0 = peg$c45;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c46); }
}
return s0;
}
function peg$parsesemicolon() {
var s0;
if (input.charCodeAt(peg$currPos) === 59) {
s0 = peg$c47;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c48); }
}
return s0;
}
function peg$parsecaret() {
var s0;
if (input.charCodeAt(peg$currPos) === 94) {
s0 = peg$c49;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c50); }
}
return s0;
}
function peg$parsemutate() {
var s0;
if (input.substr(peg$currPos, 2) === peg$c51) {
s0 = peg$c51;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c52); }
}
if (s0 === peg$FAILED) {
if (input.substr(peg$currPos, 2) === peg$c53) {
s0 = peg$c53;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c54); }
}
if (s0 === peg$FAILED) {
if (input.substr(peg$currPos, 2) === peg$c55) {
s0 = peg$c55;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c56); }
}
if (s0 === peg$FAILED) {
if (input.substr(peg$currPos, 2) === peg$c57) {
s0 = peg$c57;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c58); }
}
if (s0 === peg$FAILED) {
if (input.substr(peg$currPos, 2) === peg$c59) {
s0 = peg$c59;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c60); }
}
if (s0 === peg$FAILED) {
if (input.substr(peg$currPos, 2) === peg$c61) {
s0 = peg$c61;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c62); }
}
if (s0 === peg$FAILED) {
if (input.substr(peg$currPos, 2) === peg$c63) {
s0 = peg$c63;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c64); }
}
if (s0 === peg$FAILED) {
if (input.substr(peg$currPos, 2) === peg$c65) {
s0 = peg$c65;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c66); }
}
}
}
}
}
}
}
}
return s0;
}
function peg$parsepipe() {
var s0;
if (input.charCodeAt(peg$currPos) === 124) {
s0 = peg$c67;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c68); }
}
return s0;
}
function peg$parseoperator() {
var s0, s1;
peg$silentFails++;
s0 = peg$parsemutate();
if (s0 === peg$FAILED) {
s0 = peg$parsecaret();
if (s0 === peg$FAILED) {
s0 = peg$parseplus();
if (s0 === peg$FAILED) {
s0 = peg$parseminus();
if (s0 === peg$FAILED) {
s0 = peg$parsecomma();
if (s0 === peg$FAILED) {
s0 = peg$parseequals();
if (s0 === peg$FAILED) {
s0 = peg$parsedotasterisk();
if (s0 === peg$FAILED) {
s0 = peg$parsedecimal_point();
if (s0 === peg$FAILED) {
s0 = peg$parseslash();
if (s0 === peg$FAILED) {
s0 = peg$parseampersand();
if (s0 === peg$FAILED) {
s0 = peg$parsenot_equals();
if (s0 === peg$FAILED) {
s0 = peg$parselte();
if (s0 === peg$FAILED) {
s0 = peg$parsegte();
if (s0 === peg$FAILED) {
s0 = peg$parselt();
if (s0 === peg$FAILED) {
s0 = peg$parsegt();
if (s0 === peg$FAILED) {
s0 = peg$parseasterisk();
if (s0 === peg$FAILED) {
s0 = peg$parsepercent();
if (s0 === peg$FAILED) {
s0 = peg$parsepipe();
if (s0 === peg$FAILED) {
s0 = peg$parsesemicolon();
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
}
peg$silentFails--;
if (s0 === peg$FAILED) {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c69); }
}
return s0;
}
function peg$parsename() {
var s0, s1, s2, s3, s4;
peg$silentFails++;
s0 = peg$currPos;
if (input.charCodeAt(peg$currPos) === 91) {
s1 = peg$c71;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c72); }
}
if (s1 !== peg$FAILED) {
s2 = peg$currPos;
s3 = [];
if (peg$c73.test(input.charAt(peg$currPos))) {
s4 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c74); }
}
if (s4 !== peg$FAILED) {
while (s4 !== peg$FAILED) {
s3.push(s4);
if (peg$c73.test(input.charAt(peg$currPos))) {
s4 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c74); }
}
}
} else {
s3 = peg$FAILED;
}
if (s3 !== peg$FAILED) {
s2 = input.substring(s2, peg$currPos);
} else {
s2 = s3;
}
if (s2 !== peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 93) {
s3 = peg$c75;
peg$currPos++;
} else {
s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c76); }
}
if (s3 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c77(s2);
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
if (s0 === peg$FAILED) {
s0 = peg$currPos;
if (input.charCodeAt(peg$currPos) === 34) {
s1 = peg$c78;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c79); }
}
if (s1 !== peg$FAILED) {
s2 = peg$currPos;
s3 = [];
if (peg$c80.test(input.charAt(peg$currPos))) {
s4 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c81); }
}
if (s4 !== peg$FAILED) {
while (s4 !== peg$FAILED) {
s3.push(s4);
if (peg$c80.test(input.charAt(peg$currPos))) {
s4 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c81); }
}
}
} else {
s3 = peg$FAILED;
}
if (s3 !== peg$FAILED) {
s2 = input.substring(s2, peg$currPos);
} else {
s2 = s3;
}
if (s2 !== peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 34) {
s3 = peg$c78;
peg$currPos++;
} else {
s3 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c79); }
}
if (s3 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c82();
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
if (s0 === peg$FAILED) {
s0 = peg$currPos;
s1 = [];
if (peg$c83.test(input.charAt(peg$currPos))) {
s2 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c84); }
}
if (s2 !== peg$FAILED) {
while (s2 !== peg$FAILED) {
s1.push(s2);
if (peg$c83.test(input.charAt(peg$currPos))) {
s2 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s2 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c84); }
}
}
} else {
s1 = peg$FAILED;
}
if (s1 !== peg$FAILED) {
s0 = input.substring(s0, peg$currPos);
} else {
s0 = s1;
}
}
}
peg$silentFails--;
if (s0 === peg$FAILED) {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c70); }
}
return s0;
}
function peg$parsesystem_var() {
var s0, s1, s2;
peg$silentFails++;
s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c86) {
s1 = peg$c86;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c87); }
}
if (s1 !== peg$FAILED) {
s2 = peg$parsename();
if (s2 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c82();
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
peg$silentFails--;
if (s0 === peg$FAILED) {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c85); }
}
return s0;
}
function peg$parsevariable() {
var s0, s1, s2;
peg$silentFails++;
s0 = peg$currPos;
if (input.charCodeAt(peg$currPos) === 64) {
s1 = peg$c89;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c90); }
}
if (s1 !== peg$FAILED) {
s2 = peg$parsename();
if (s2 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c91(s2);
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
peg$silentFails--;
if (s0 === peg$FAILED) {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c88); }
}
return s0;
}
function peg$parseglobaltemp() {
var s0, s1, s2;
peg$silentFails++;
s0 = peg$currPos;
if (input.substr(peg$currPos, 2) === peg$c93) {
s1 = peg$c93;
peg$currPos += 2;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c94); }
}
if (s1 !== peg$FAILED) {
s2 = peg$parsename();
if (s2 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c82();
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
peg$silentFails--;
if (s0 === peg$FAILED) {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c92); }
}
return s0;
}
function peg$parsetemp() {
var s0, s1, s2;
peg$silentFails++;
s0 = peg$currPos;
if (input.charCodeAt(peg$currPos) === 35) {
s1 = peg$c96;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c97); }
}
if (s1 !== peg$FAILED) {
s2 = peg$parsename();
if (s2 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c82();
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
peg$silentFails--;
if (s0 === peg$FAILED) {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c95); }
}
return s0;
}
function peg$parseliteral() {
var s0;
s0 = peg$parsenumeric_literal();
if (s0 === peg$FAILED) {
s0 = peg$parsestring_literal();
if (s0 === peg$FAILED) {
if (input.substr(peg$currPos, 4).toLowerCase() === peg$c98) {
s0 = input.substr(peg$currPos, 4);
peg$currPos += 4;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c99); }
}
}
}
return s0;
}
function peg$parsestring_literal() {
var s0, s1, s2, s3, s4;
peg$silentFails++;
s0 = peg$currPos;
if (input.charCodeAt(peg$currPos) === 78) {
s1 = peg$c101;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c102); }
}
if (s1 === peg$FAILED) {
s1 = null;
}
if (s1 !== peg$FAILED) {
s2 = peg$parsequote();
if (s2 !== peg$FAILED) {
s3 = [];
if (peg$c103.test(input.charAt(peg$currPos))) {
s4 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c104); }
}
if (s4 === peg$FAILED) {
s4 = peg$parseqq();
}
while (s4 !== peg$FAILED) {
s3.push(s4);
if (peg$c103.test(input.charAt(peg$currPos))) {
s4 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s4 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c104); }
}
if (s4 === peg$FAILED) {
s4 = peg$parseqq();
}
}
if (s3 !== peg$FAILED) {
s4 = peg$parsequote();
if (s4 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c105(s3);
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
peg$silentFails--;
if (s0 === peg$FAILED) {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c100); }
}
return s0;
}
function peg$parseqq() {
var s0, s1, s2;
s0 = peg$currPos;
s1 = peg$parsequote();
if (s1 !== peg$FAILED) {
s2 = peg$parsequote();
if (s2 !== peg$FAILED) {
peg$savedPos = s0;
s1 = peg$c106();
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
return s0;
}
function peg$parsenumeric_literal() {
var s0, s1, s2, s3, s4, s5, s6;
peg$silentFails++;
s0 = peg$currPos;
s1 = peg$currPos;
s2 = [];
s3 = peg$parsedigit();
if (s3 !== peg$FAILED) {
while (s3 !== peg$FAILED) {
s2.push(s3);
s3 = peg$parsedigit();
}
} else {
s2 = peg$FAILED;
}
if (s2 !== peg$FAILED) {
s3 = peg$currPos;
s4 = peg$parsedecimal_point();
if (s4 !== peg$FAILED) {
s5 = [];
s6 = peg$parsedigit();
if (s6 !== peg$FAILED) {
while (s6 !== peg$FAILED) {
s5.push(s6);
s6 = peg$parsedigit();
}
} else {
s5 = peg$FAILED;
}
if (s5 !== peg$FAILED) {
s4 = [s4, s5];
s3 = s4;
} else {
peg$currPos = s3;
s3 = peg$FAILED;
}
} else {
peg$currPos = s3;
s3 = peg$FAILED;
}
if (s3 === peg$FAILED) {
s3 = null;
}
if (s3 !== peg$FAILED) {
s2 = [s2, s3];
s1 = s2;
} else {
peg$currPos = s1;
s1 = peg$FAILED;
}
} else {
peg$currPos = s1;
s1 = peg$FAILED;
}
if (s1 === peg$FAILED) {
s1 = peg$currPos;
s2 = peg$parsedecimal_point();
if (s2 !== peg$FAILED) {
s3 = [];
s4 = peg$parsedigit();
if (s4 !== peg$FAILED) {
while (s4 !== peg$FAILED) {
s3.push(s4);
s4 = peg$parsedigit();
}
} else {
s3 = peg$FAILED;
}
if (s3 !== peg$FAILED) {
s2 = [s2, s3];
s1 = s2;
} else {
peg$currPos = s1;
s1 = peg$FAILED;
}
} else {
peg$currPos = s1;
s1 = peg$FAILED;
}
}
if (s1 !== peg$FAILED) {
s2 = peg$currPos;
s3 = peg$parseE();
if (s3 !== peg$FAILED) {
s4 = peg$parseplus();
if (s4 === peg$FAILED) {
s4 = peg$parseminus();
}
if (s4 === peg$FAILED) {
s4 = null;
}
if (s4 !== peg$FAILED) {
s5 = [];
s6 = peg$parsedigit();
if (s6 !== peg$FAILED) {
while (s6 !== peg$FAILED) {
s5.push(s6);
s6 = peg$parsedigit();
}
} else {
s5 = peg$FAILED;
}
if (s5 !== peg$FAILED) {
s3 = [s3, s4, s5];
s2 = s3;
} else {
peg$currPos = s2;
s2 = peg$FAILED;
}
} else {
peg$currPos = s2;
s2 = peg$FAILED;
}
} else {
peg$currPos = s2;
s2 = peg$FAILED;
}
if (s2 === peg$FAILED) {
s2 = null;
}
if (s2 !== peg$FAILED) {
s1 = [s1, s2];
s0 = s1;
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
} else {
peg$currPos = s0;
s0 = peg$FAILED;
}
peg$silentFails--;
if (s0 === peg$FAILED) {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c107); }
}
return s0;
}
function peg$parsedigit() {
var s0;
if (peg$c108.test(input.charAt(peg$currPos))) {
s0 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c109); }
}
return s0;
}
function peg$parsequote() {
var s0;
if (input.charCodeAt(peg$currPos) === 39) {
s0 = peg$c110;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c111); }
}
return s0;
}
function peg$parsedecimal_point() {
var s0;
if (input.charCodeAt(peg$currPos) === 46) {
s0 = peg$c112;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c113); }
}
return s0;
}
function peg$parseE() {
var s0;
if (input.substr(peg$currPos, 1).toLowerCase() === peg$c114) {
s0 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c115); }
}
return s0;
}
function peg$parseZs() {
var s0;
if (peg$c116.test(input.charAt(peg$currPos))) {
s0 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c117); }
}
return s0;
}
function peg$parseSourceCharacter() {
var s0;
if (input.length > peg$currPos) {
s0 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c118); }
}
return s0;
}
function peg$parseWhiteSpace() {
var s0, s1;
peg$silentFails++;
s0 = [];
if (input.charCodeAt(peg$currPos) === 9) {
s1 = peg$c120;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c121); }
}
if (s1 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 11) {
s1 = peg$c122;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c123); }
}
if (s1 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 12) {
s1 = peg$c124;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c125); }
}
if (s1 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 32) {
s1 = peg$c126;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c127); }
}
if (s1 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 160) {
s1 = peg$c128;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c129); }
}
if (s1 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 65279) {
s1 = peg$c130;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c131); }
}
if (s1 === peg$FAILED) {
s1 = peg$parseZs();
}
}
}
}
}
}
if (s1 !== peg$FAILED) {
while (s1 !== peg$FAILED) {
s0.push(s1);
if (input.charCodeAt(peg$currPos) === 9) {
s1 = peg$c120;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c121); }
}
if (s1 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 11) {
s1 = peg$c122;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c123); }
}
if (s1 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 12) {
s1 = peg$c124;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c125); }
}
if (s1 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 32) {
s1 = peg$c126;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c127); }
}
if (s1 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 160) {
s1 = peg$c128;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c129); }
}
if (s1 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 65279) {
s1 = peg$c130;
peg$currPos++;
} else {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c131); }
}
if (s1 === peg$FAILED) {
s1 = peg$parseZs();
}
}
}
}
}
}
}
} else {
s0 = peg$FAILED;
}
peg$silentFails--;
if (s0 === peg$FAILED) {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c119); }
}
return s0;
}
function peg$parseLineTerminator() {
var s0;
if (peg$c132.test(input.charAt(peg$currPos))) {
s0 = input.charAt(peg$currPos);
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c133); }
}
return s0;
}
function peg$parseLineTerminatorSequence() {
var s0, s1;
peg$silentFails++;
if (input.substr(peg$currPos, 2) === peg$c135) {
s0 = peg$c135;
peg$currPos += 2;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c136); }
}
if (s0 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 10) {
s0 = peg$c137;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c138); }
}
if (s0 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 13) {
s0 = peg$c139;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c140); }
}
if (s0 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 8232) {
s0 = peg$c141;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c142); }
}
if (s0 === peg$FAILED) {
if (input.charCodeAt(peg$currPos) === 8233) {
s0 = peg$c143;
peg$currPos++;
} else {
s0 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c144); }
}
}
}
}
}
peg$silentFails--;
if (s0 === peg$FAILED) {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c134); }
}
return s0;
}
function peg$parseComment() {
var s0, s1;
peg$silentFails++;
s0 = peg$parseMultiLineComment();
if (s0 === peg$FAILED) {
s0 = peg$parseSingleLineComment();
}
peg$silentFails--;
if (s0 === peg$FAILED) {
s1 = peg$FAILED;
if (peg$silentFails === 0) { peg$fail(peg$c145); }
}
return s0;
}
function peg$parseMultiLineCommentBody() {
var s0, s1, s2, s3, s4;
s0 = peg$currPos;