jssm 5.143.21 → 5.143.23
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/cdn/instance.js +191 -594
- package/dist/cdn/viz.js +191 -594
- package/dist/cli/fsl-render.cjs +1 -1
- package/dist/cli/fsl.cjs +1 -1
- package/dist/deno/README.md +2 -2
- package/dist/deno/jssm.js +1 -1
- package/dist/jssm.es5.cjs +1 -1
- package/dist/jssm.es5.iife.js +1 -1
- package/dist/jssm.es6.mjs +1 -1
- package/dist/jssm_viz.cjs +1 -1
- package/dist/jssm_viz.iife.cjs +1 -1
- package/dist/jssm_viz.mjs +1 -1
- package/package.json +1 -1
package/dist/cdn/instance.js
CHANGED
|
@@ -334,9 +334,7 @@ peg$SyntaxError.buildMessage = function (expected, found) {
|
|
|
334
334
|
function peg$parse(input, options) {
|
|
335
335
|
options = options !== void 0 ? options : {};
|
|
336
336
|
var peg$FAILED = {}, peg$startRuleFunctions = { Document: peg$parseDocument }, peg$startRuleFunction = peg$parseDocument, peg$c0 = function (e) { return e; }, peg$c1 = "default", peg$c2 = peg$literalExpectation("default", false), peg$c3 = "ocean", peg$c4 = peg$literalExpectation("ocean", false), peg$c5 = "modern", peg$c6 = peg$literalExpectation("modern", false), peg$c7 = "plain", peg$c8 = peg$literalExpectation("plain", false), peg$c9 = "bold", peg$c10 = peg$literalExpectation("bold", false), peg$c11 = "[", peg$c12 = peg$literalExpectation("[", false), peg$c13 = "]", peg$c14 = peg$literalExpectation("]", false), peg$c15 = function (ths, th) { const themes = ths.map(t => t[0]); if (th)
|
|
337
|
-
themes.push(th); return themes; }, peg$c16 = function (th) { return [th]; }, peg$c17 = "box3d", peg$c18 = peg$literalExpectation("box3d", false), peg$c19 = "polygon", peg$c20 = peg$literalExpectation("polygon", false), peg$c21 = "ellipse", peg$c22 = peg$literalExpectation("ellipse", false), peg$c23 = "oval", peg$c24 = peg$literalExpectation("oval", false), peg$c25 = "circle", peg$c26 = peg$literalExpectation("circle", false), peg$c27 = "point", peg$c28 = peg$literalExpectation("point", false), peg$c29 = "egg", peg$c30 = peg$literalExpectation("egg", false), peg$c31 = "triangle", peg$c32 = peg$literalExpectation("triangle", false), peg$c33 = "plaintext", peg$c34 = peg$literalExpectation("plaintext", false), peg$c35 = "diamond", peg$c36 = peg$literalExpectation("diamond", false), peg$c37 = "trapezium", peg$c38 = peg$literalExpectation("trapezium", false), peg$c39 = "parallelogram", peg$c40 = peg$literalExpectation("parallelogram", false), peg$c41 = "house", peg$c42 = peg$literalExpectation("house", false), peg$c43 = "pentagon", peg$c44 = peg$literalExpectation("pentagon", false), peg$c45 = "hexagon", peg$c46 = peg$literalExpectation("hexagon", false), peg$c47 = "septagon", peg$c48 = peg$literalExpectation("septagon", false), peg$c49 = "octagon", peg$c50 = peg$literalExpectation("octagon", false), peg$c51 = "doublecircle", peg$c52 = peg$literalExpectation("doublecircle", false), peg$c53 = "doubleoctagon", peg$c54 = peg$literalExpectation("doubleoctagon", false), peg$c55 = "tripleoctagon", peg$c56 = peg$literalExpectation("tripleoctagon", false), peg$c57 = "invtriangle", peg$c58 = peg$literalExpectation("invtriangle", false), peg$c59 = "invtrapezium", peg$c60 = peg$literalExpectation("invtrapezium", false), peg$c61 = "invhouse", peg$c62 = peg$literalExpectation("invhouse", false), peg$c63 = "Mdiamond", peg$c64 = peg$literalExpectation("Mdiamond", false), peg$c65 = "Msquare", peg$c66 = peg$literalExpectation("Msquare", false), peg$c67 = "Mcircle", peg$c68 = peg$literalExpectation("Mcircle", false), peg$c69 = "rectangle", peg$c70 = peg$literalExpectation("rectangle", false), peg$c71 = "rect", peg$c72 = peg$literalExpectation("rect", false), peg$c73 = "square", peg$c74 = peg$literalExpectation("square", false), peg$c75 = "star", peg$c76 = peg$literalExpectation("star", false), peg$c77 = "none", peg$c78 = peg$literalExpectation("none", false), peg$c79 = "underline", peg$c80 = peg$literalExpectation("underline", false), peg$c81 = "cylinder", peg$c82 = peg$literalExpectation("cylinder", false), peg$c83 = "note", peg$c84 = peg$literalExpectation("note", false), peg$c85 = "tab", peg$c86 = peg$literalExpectation("tab", false), peg$c87 = "folder", peg$c88 = peg$literalExpectation("folder", false), peg$c89 = "box", peg$c90 = peg$literalExpectation("box", false), peg$c91 = "component", peg$c92 = peg$literalExpectation("component", false), peg$c93 = "promoter", peg$c94 = peg$literalExpectation("promoter", false), peg$c95 = "cds", peg$c96 = peg$literalExpectation("cds", false), peg$c97 = "terminator", peg$c98 = peg$literalExpectation("terminator", false), peg$c99 = "utr", peg$c100 = peg$literalExpectation("utr", false), peg$c101 = "primersite", peg$c102 = peg$literalExpectation("primersite", false), peg$c103 = "restrictionsite", peg$c104 = peg$literalExpectation("restrictionsite", false), peg$c105 = "fivepoverhang", peg$c106 = peg$literalExpectation("fivepoverhang", false), peg$c107 = "threepoverhang", peg$c108 = peg$literalExpectation("threepoverhang", false), peg$c109 = "noverhang", peg$c110 = peg$literalExpectation("noverhang", false), peg$c111 = "assembly", peg$c112 = peg$literalExpectation("assembly", false), peg$c113 = "signature", peg$c114 = peg$literalExpectation("signature", false), peg$c115 = "insulator", peg$c116 = peg$literalExpectation("insulator", false), peg$c117 = "ribosite", peg$c118 = peg$literalExpectation("ribosite", false), peg$c119 = "rnastab", peg$c120 = peg$literalExpectation("rnastab", false), peg$c121 = "proteasesite", peg$c122 = peg$literalExpectation("proteasesite", false), peg$c123 = "proteinstab", peg$c124 = peg$literalExpectation("proteinstab", false), peg$c125 = "rpromoter", peg$c126 = peg$literalExpectation("rpromoter", false), peg$c127 = "rarrow", peg$c128 = peg$literalExpectation("rarrow", false), peg$c129 = "larrow", peg$c130 = peg$literalExpectation("larrow", false), peg$c131 = "lpromoter", peg$c132 = peg$literalExpectation("lpromoter", false), peg$c133 = "record", peg$c134 = peg$literalExpectation("record", false), peg$c135 = peg$otherExpectation("forward light arrow ->"), peg$c136 = "->", peg$c137 = peg$literalExpectation("->", false), peg$c138 = "\u2192", peg$c139 = peg$literalExpectation("\u2192", false), peg$c140 = function () { return "->"; }, peg$c141 = peg$otherExpectation("two way light arrow <->"), peg$c142 = "<->", peg$c143 = peg$literalExpectation("<->", false), peg$c144 = "\u2194", peg$c145 = peg$literalExpectation("\u2194", false), peg$c146 = function () { return "<->"; }, peg$c147 = peg$otherExpectation("back light arrow <-"), peg$c148 = "<-", peg$c149 = peg$literalExpectation("<-", false), peg$c150 = "\u2190", peg$c151 = peg$literalExpectation("\u2190", false), peg$c152 = function () { return "<-"; }, peg$c153 = peg$otherExpectation("forward fat arrow =>"), peg$c154 = "=>", peg$c155 = peg$literalExpectation("=>", false), peg$c156 = "\u21D2", peg$c157 = peg$literalExpectation("\u21D2", false), peg$c158 = function () { return "=>"; }, peg$c159 = peg$otherExpectation("two way fat arrow <=>"), peg$c160 = "<=>", peg$c161 = peg$literalExpectation("<=>", false), peg$c162 = "\u21D4", peg$c163 = peg$literalExpectation("\u21D4", false), peg$c164 = function () { return "<=>"; }, peg$c165 = peg$otherExpectation("back fat arrow <="), peg$c166 = "<=", peg$c167 = peg$literalExpectation("<=", false), peg$c168 = "\u21D0", peg$c169 = peg$literalExpectation("\u21D0", false), peg$c170 = function () { return "<="; }, peg$c171 = peg$otherExpectation("forward tilde arrow ~>"), peg$c172 = "~>", peg$c173 = peg$literalExpectation("~>", false), peg$c174 = "\u219B", peg$c175 = peg$literalExpectation("\u219B", false), peg$c176 = function () { return "~>"; }, peg$c177 = peg$otherExpectation("two way tilde arrow <~>"), peg$c178 = "<~>", peg$c179 = peg$literalExpectation("<~>", false), peg$c180 = "\u21AE", peg$c181 = peg$literalExpectation("\u21AE", false), peg$c182 = function () { return "<~>"; }, peg$c183 = peg$otherExpectation("back tilde arrow <~"), peg$c184 = "<~", peg$c185 = peg$literalExpectation("<~", false), peg$c186 = "\u219A", peg$c187 = peg$literalExpectation("\u219A", false), peg$c188 = function () { return "<~"; }, peg$c189 = peg$otherExpectation("light fat arrow <-=>"), peg$c190 = "<-=>", peg$c191 = peg$literalExpectation("<-=>", false), peg$c192 = "\u2190\u21D2", peg$c193 = peg$literalExpectation("\u2190\u21D2", false), peg$c194 = function () { return "<-=>"; }, peg$c195 = peg$otherExpectation("light tilde arrow <-~>"), peg$c196 = "<-~>", peg$c197 = peg$literalExpectation("<-~>", false), peg$c198 = "\u2190\u219B", peg$c199 = peg$literalExpectation("\u2190\u219B", false), peg$c200 = function () { return "<-~>"; }, peg$c201 = peg$otherExpectation("fat light arrow <=->"), peg$c202 = "<=->", peg$c203 = peg$literalExpectation("<=->", false), peg$c204 = "\u21D0\u2192", peg$c205 = peg$literalExpectation("\u21D0\u2192", false), peg$c206 = function () { return "<=->"; }, peg$c207 = peg$otherExpectation("fat tilde arrow <=~>"), peg$c208 = "<=~>", peg$c209 = peg$literalExpectation("<=~>", false), peg$c210 = "\u21D0\u219B", peg$c211 = peg$literalExpectation("\u21D0\u219B", false), peg$c212 = function () { return "<=~>"; }, peg$c213 = peg$otherExpectation("tilde light arrow <~->"), peg$c214 = "<~->", peg$c215 = peg$literalExpectation("<~->", false), peg$c216 = "\u219A\u2192", peg$c217 = peg$literalExpectation("\u219A\u2192", false), peg$c218 = function () { return "<~->"; }, peg$c219 = peg$otherExpectation("tilde fat arrow <~=>"), peg$c220 = "<~=>", peg$c221 = peg$literalExpectation("<~=>", false), peg$c222 = "\u219A\u21D2", peg$c223 = peg$literalExpectation("\u219A\u21D2", false), peg$c224 = function () { return "<~=>"; }, peg$c225 = peg$otherExpectation("light arrow"), peg$c226 = peg$otherExpectation("fat arrow"), peg$c227 = peg$otherExpectation("tilde arrow"), peg$c228 = peg$otherExpectation("mixed arrow"), peg$c229 = peg$otherExpectation("arrow"), peg$c230 = "true", peg$c231 = peg$literalExpectation("true", false), peg$c232 = function () { return true; }, peg$c233 = "false", peg$c234 = peg$literalExpectation("false", false), peg$c235 = function () { return false; }, peg$c236 = "regular", peg$c237 = peg$literalExpectation("regular", false), peg$c238 = "rounded", peg$c239 = peg$literalExpectation("rounded", false), peg$c240 = "lined", peg$c241 = peg$literalExpectation("lined", false), peg$c242 = "solid", peg$c243 = peg$literalExpectation("solid", false), peg$c244 = "dotted", peg$c245 = peg$literalExpectation("dotted", false), peg$c246 = "dashed", peg$c247 = peg$literalExpectation("dashed", false), peg$c248 = "\"", peg$c249 = peg$literalExpectation("\"", false), peg$c250 = "\\", peg$c251 = peg$literalExpectation("\\", false), peg$c252 = "/", peg$c253 = peg$literalExpectation("/", false), peg$c254 = "b", peg$c255 = peg$literalExpectation("b", false), peg$c256 = function () { return "\b"; }, peg$c257 = "f", peg$c258 = peg$literalExpectation("f", false), peg$c259 = function () { return "\f"; }, peg$c260 = "n", peg$c261 = peg$literalExpectation("n", false), peg$c262 = function () { return "\n"; }, peg$c263 = "r", peg$c264 = peg$literalExpectation("r", false), peg$c265 = function () { return "\r"; }, peg$c266 = "t", peg$c267 = peg$literalExpectation("t", false), peg$c268 = function () { return "\t"; }, peg$c269 = "v", peg$c270 = peg$literalExpectation("v", false), peg$c271 = function () { return "\v"; }, peg$c272 = "u", peg$c273 = peg$literalExpectation("u", false), peg$c274 = function (digits) {
|
|
338
|
-
return String.fromCharCode(parseInt(digits, 16));
|
|
339
|
-
}, peg$c275 = function (Sequence) { return Sequence; }, peg$c276 = "null", peg$c277 = peg$literalExpectation("null", false), peg$c278 = function () { return null; }, peg$c279 = "undefined", peg$c280 = peg$literalExpectation("undefined", false), peg$c281 = function () { return undefined; }, peg$c282 = /^[\0-!#-[\]-\uFFFF]/, peg$c283 = peg$classExpectation([["\0", "!"], ["#", "["], ["]", "\uFFFF"]], false, false), peg$c284 = "'", peg$c285 = peg$literalExpectation("'", false), peg$c286 = /^[ -&(-[\]-\uFFFF]/, peg$c287 = peg$classExpectation([[" ", "&"], ["(", "["], ["]", "\uFFFF"]], false, false), peg$c288 = peg$otherExpectation("action label"), peg$c289 = function (chars) { return chars.join(""); }, peg$c290 = /^[\n\r\u2028\u2029]/, peg$c291 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false), peg$c292 = peg$otherExpectation("block comment"), peg$c293 = "/*", peg$c294 = peg$literalExpectation("/*", false), peg$c295 = "*/", peg$c296 = peg$literalExpectation("*/", false), peg$c297 = peg$anyExpectation(), peg$c298 = peg$otherExpectation("line comment"), peg$c299 = "//", peg$c300 = peg$literalExpectation("//", false), peg$c301 = peg$otherExpectation("whitespace"), peg$c304 = peg$otherExpectation("string"), peg$c309 = peg$otherExpectation("atom"), peg$c311 = peg$otherExpectation("label"), peg$c312 = "0", peg$c313 = peg$literalExpectation("0", false), peg$c314 = /^[0-9]/, peg$c315 = peg$classExpectation([["0", "9"]], false, false), peg$c316 = /^[1-9]/, peg$c317 = peg$classExpectation([["1", "9"]], false, false), peg$c318 = /^[0-9a-f]/i, peg$c319 = peg$classExpectation([["0", "9"], ["a", "f"]], false, true), peg$c320 = /^[0-1]/, peg$c321 = peg$classExpectation([["0", "1"]], false, false), peg$c322 = /^[0-7]/, peg$c323 = peg$classExpectation([["0", "7"]], false, false), peg$c324 = peg$otherExpectation("nonneg number"), peg$c325 = ".", peg$c326 = peg$literalExpectation(".", false), peg$c327 = function () { return parseFloat(text()); }, peg$c328 = peg$otherExpectation("number"), peg$c329 = function (literal) { return literal; }, peg$c330 = "NaN", peg$c331 = peg$literalExpectation("NaN", false), peg$c332 = function () { return NaN; }, peg$c333 = "NegativeInfinity", peg$c334 = peg$literalExpectation("NegativeInfinity", false), peg$c335 = function () { return Number.NEGATIVE_INFINITY; }, peg$c336 = "NegativeInf", peg$c337 = peg$literalExpectation("NegativeInf", false), peg$c338 = "NegInfinity", peg$c339 = peg$literalExpectation("NegInfinity", false), peg$c340 = "NegInf", peg$c341 = peg$literalExpectation("NegInf", false), peg$c342 = "NInfinity", peg$c343 = peg$literalExpectation("NInfinity", false), peg$c344 = "NInf", peg$c345 = peg$literalExpectation("NInf", false), peg$c346 = "-\u221E", peg$c347 = peg$literalExpectation("-\u221E", false), peg$c348 = "PInfinity", peg$c349 = peg$literalExpectation("PInfinity", false), peg$c350 = function () { return Number.POSITIVE_INFINITY; }, peg$c351 = "Infinity", peg$c352 = peg$literalExpectation("Infinity", false), peg$c353 = "PInf", peg$c354 = peg$literalExpectation("PInf", false), peg$c355 = "Inf", peg$c356 = peg$literalExpectation("Inf", false), peg$c357 = "\u221E", peg$c358 = peg$literalExpectation("\u221E", false), peg$c359 = "Epsilon", peg$c360 = peg$literalExpectation("Epsilon", false), peg$c361 = function () { return Number.EPSILON; }, peg$c362 = "\uD835\uDF00", peg$c363 = peg$literalExpectation("\uD835\uDF00", false), peg$c364 = "\u03B5", peg$c365 = peg$literalExpectation("\u03B5", false), peg$c366 = "Pi", peg$c367 = peg$literalExpectation("Pi", false), peg$c368 = function () { return Math.PI; }, peg$c369 = "\uD835\uDF0B", peg$c370 = peg$literalExpectation("\uD835\uDF0B", false), peg$c371 = "\u03C0", peg$c372 = peg$literalExpectation("\u03C0", false), peg$c373 = "EulerNumber", peg$c374 = peg$literalExpectation("EulerNumber", false), peg$c375 = function () { return Math.E; }, peg$c376 = "E", peg$c377 = peg$literalExpectation("E", false), peg$c378 = "e", peg$c379 = peg$literalExpectation("e", false), peg$c380 = "\u0190", peg$c381 = peg$literalExpectation("\u0190", false), peg$c382 = "\u2107", peg$c383 = peg$literalExpectation("\u2107", false), peg$c384 = "Root2", peg$c385 = peg$literalExpectation("Root2", false), peg$c386 = function () { return Math.SQRT2; }, peg$c387 = "RootHalf", peg$c388 = peg$literalExpectation("RootHalf", false), peg$c389 = function () { return Math.SQRT1_2; }, peg$c390 = "Ln2", peg$c391 = peg$literalExpectation("Ln2", false), peg$c392 = function () { return Math.LN2; }, peg$c393 = "NatLog2", peg$c394 = peg$literalExpectation("NatLog2", false), peg$c395 = "Ln10", peg$c396 = peg$literalExpectation("Ln10", false), peg$c397 = function () { return Math.LN10; }, peg$c398 = "NatLog10", peg$c399 = peg$literalExpectation("NatLog10", false), peg$c400 = "Log2E", peg$c401 = peg$literalExpectation("Log2E", false), peg$c402 = function () { return Math.LOG2E; }, peg$c403 = "Log10E", peg$c404 = peg$literalExpectation("Log10E", false), peg$c405 = function () { return Math.LOG10E; }, peg$c406 = "MaxSafeInt", peg$c407 = peg$literalExpectation("MaxSafeInt", false), peg$c408 = function () { return Number.MAX_SAFE_INTEGER; }, peg$c409 = "MinSafeInt", peg$c410 = peg$literalExpectation("MinSafeInt", false), peg$c411 = function () { return Number.MIN_SAFE_INTEGER; }, peg$c412 = "MaxPosNum", peg$c413 = peg$literalExpectation("MaxPosNum", false), peg$c414 = function () { return Number.MAX_VALUE; }, peg$c415 = "MinPosNum", peg$c416 = peg$literalExpectation("MinPosNum", false), peg$c417 = function () { return Number.MIN_VALUE; }, peg$c418 = "Phi", peg$c419 = peg$literalExpectation("Phi", false), peg$c420 = function () { return 1.61803398874989484820; }, peg$c421 = "\uD835\uDF11", peg$c422 = peg$literalExpectation("\uD835\uDF11", false), peg$c423 = "\uD835\uDF19", peg$c424 = peg$literalExpectation("\uD835\uDF19", false), peg$c425 = "\u03D5", peg$c426 = peg$literalExpectation("\u03D5", false), peg$c427 = "\u03C6", peg$c428 = peg$literalExpectation("\u03C6", false), peg$c429 = "EulerConstant", peg$c430 = peg$literalExpectation("EulerConstant", false), peg$c431 = function () { return 0.57721566490153286060; }, peg$c432 = "\u03B3", peg$c433 = peg$literalExpectation("\u03B3", false), peg$c434 = "\uD835\uDEFE", peg$c435 = peg$literalExpectation("\uD835\uDEFE", false), peg$c436 = peg$literalExpectation("e", true), peg$c437 = /^[+\-]/, peg$c438 = peg$classExpectation(["+", "-"], false, false), peg$c439 = "0x", peg$c440 = peg$literalExpectation("0x", true), peg$c441 = function (digits) {
|
|
337
|
+
themes.push(th); return themes; }, peg$c16 = function (th) { return [th]; }, peg$c17 = "box3d", peg$c18 = peg$literalExpectation("box3d", false), peg$c19 = "polygon", peg$c20 = peg$literalExpectation("polygon", false), peg$c21 = "ellipse", peg$c22 = peg$literalExpectation("ellipse", false), peg$c23 = "oval", peg$c24 = peg$literalExpectation("oval", false), peg$c25 = "circle", peg$c26 = peg$literalExpectation("circle", false), peg$c27 = "point", peg$c28 = peg$literalExpectation("point", false), peg$c29 = "egg", peg$c30 = peg$literalExpectation("egg", false), peg$c31 = "triangle", peg$c32 = peg$literalExpectation("triangle", false), peg$c33 = "plaintext", peg$c34 = peg$literalExpectation("plaintext", false), peg$c35 = "diamond", peg$c36 = peg$literalExpectation("diamond", false), peg$c37 = "trapezium", peg$c38 = peg$literalExpectation("trapezium", false), peg$c39 = "parallelogram", peg$c40 = peg$literalExpectation("parallelogram", false), peg$c41 = "house", peg$c42 = peg$literalExpectation("house", false), peg$c43 = "pentagon", peg$c44 = peg$literalExpectation("pentagon", false), peg$c45 = "hexagon", peg$c46 = peg$literalExpectation("hexagon", false), peg$c47 = "septagon", peg$c48 = peg$literalExpectation("septagon", false), peg$c49 = "octagon", peg$c50 = peg$literalExpectation("octagon", false), peg$c51 = "doublecircle", peg$c52 = peg$literalExpectation("doublecircle", false), peg$c53 = "doubleoctagon", peg$c54 = peg$literalExpectation("doubleoctagon", false), peg$c55 = "tripleoctagon", peg$c56 = peg$literalExpectation("tripleoctagon", false), peg$c57 = "invtriangle", peg$c58 = peg$literalExpectation("invtriangle", false), peg$c59 = "invtrapezium", peg$c60 = peg$literalExpectation("invtrapezium", false), peg$c61 = "invhouse", peg$c62 = peg$literalExpectation("invhouse", false), peg$c63 = "Mdiamond", peg$c64 = peg$literalExpectation("Mdiamond", false), peg$c65 = "Msquare", peg$c66 = peg$literalExpectation("Msquare", false), peg$c67 = "Mcircle", peg$c68 = peg$literalExpectation("Mcircle", false), peg$c69 = "rectangle", peg$c70 = peg$literalExpectation("rectangle", false), peg$c71 = "rect", peg$c72 = peg$literalExpectation("rect", false), peg$c73 = "square", peg$c74 = peg$literalExpectation("square", false), peg$c75 = "star", peg$c76 = peg$literalExpectation("star", false), peg$c77 = "none", peg$c78 = peg$literalExpectation("none", false), peg$c79 = "underline", peg$c80 = peg$literalExpectation("underline", false), peg$c81 = "cylinder", peg$c82 = peg$literalExpectation("cylinder", false), peg$c83 = "note", peg$c84 = peg$literalExpectation("note", false), peg$c85 = "tab", peg$c86 = peg$literalExpectation("tab", false), peg$c87 = "folder", peg$c88 = peg$literalExpectation("folder", false), peg$c89 = "box", peg$c90 = peg$literalExpectation("box", false), peg$c91 = "component", peg$c92 = peg$literalExpectation("component", false), peg$c93 = "promoter", peg$c94 = peg$literalExpectation("promoter", false), peg$c95 = "cds", peg$c96 = peg$literalExpectation("cds", false), peg$c97 = "terminator", peg$c98 = peg$literalExpectation("terminator", false), peg$c99 = "utr", peg$c100 = peg$literalExpectation("utr", false), peg$c101 = "primersite", peg$c102 = peg$literalExpectation("primersite", false), peg$c103 = "restrictionsite", peg$c104 = peg$literalExpectation("restrictionsite", false), peg$c105 = "fivepoverhang", peg$c106 = peg$literalExpectation("fivepoverhang", false), peg$c107 = "threepoverhang", peg$c108 = peg$literalExpectation("threepoverhang", false), peg$c109 = "noverhang", peg$c110 = peg$literalExpectation("noverhang", false), peg$c111 = "assembly", peg$c112 = peg$literalExpectation("assembly", false), peg$c113 = "signature", peg$c114 = peg$literalExpectation("signature", false), peg$c115 = "insulator", peg$c116 = peg$literalExpectation("insulator", false), peg$c117 = "ribosite", peg$c118 = peg$literalExpectation("ribosite", false), peg$c119 = "rnastab", peg$c120 = peg$literalExpectation("rnastab", false), peg$c121 = "proteasesite", peg$c122 = peg$literalExpectation("proteasesite", false), peg$c123 = "proteinstab", peg$c124 = peg$literalExpectation("proteinstab", false), peg$c125 = "rpromoter", peg$c126 = peg$literalExpectation("rpromoter", false), peg$c127 = "rarrow", peg$c128 = peg$literalExpectation("rarrow", false), peg$c129 = "larrow", peg$c130 = peg$literalExpectation("larrow", false), peg$c131 = "lpromoter", peg$c132 = peg$literalExpectation("lpromoter", false), peg$c133 = "record", peg$c134 = peg$literalExpectation("record", false), peg$c135 = peg$otherExpectation("forward light arrow ->"), peg$c136 = "->", peg$c137 = peg$literalExpectation("->", false), peg$c138 = "\u2192", peg$c139 = peg$literalExpectation("\u2192", false), peg$c140 = function () { return "->"; }, peg$c141 = peg$otherExpectation("two way light arrow <->"), peg$c142 = "<->", peg$c143 = peg$literalExpectation("<->", false), peg$c144 = "\u2194", peg$c145 = peg$literalExpectation("\u2194", false), peg$c146 = function () { return "<->"; }, peg$c147 = peg$otherExpectation("back light arrow <-"), peg$c148 = "<-", peg$c149 = peg$literalExpectation("<-", false), peg$c150 = "\u2190", peg$c151 = peg$literalExpectation("\u2190", false), peg$c152 = function () { return "<-"; }, peg$c153 = peg$otherExpectation("forward fat arrow =>"), peg$c154 = "=>", peg$c155 = peg$literalExpectation("=>", false), peg$c156 = "\u21D2", peg$c157 = peg$literalExpectation("\u21D2", false), peg$c158 = function () { return "=>"; }, peg$c159 = peg$otherExpectation("two way fat arrow <=>"), peg$c160 = "<=>", peg$c161 = peg$literalExpectation("<=>", false), peg$c162 = "\u21D4", peg$c163 = peg$literalExpectation("\u21D4", false), peg$c164 = function () { return "<=>"; }, peg$c165 = peg$otherExpectation("back fat arrow <="), peg$c166 = "<=", peg$c167 = peg$literalExpectation("<=", false), peg$c168 = "\u21D0", peg$c169 = peg$literalExpectation("\u21D0", false), peg$c170 = function () { return "<="; }, peg$c171 = peg$otherExpectation("forward tilde arrow ~>"), peg$c172 = "~>", peg$c173 = peg$literalExpectation("~>", false), peg$c174 = "\u219B", peg$c175 = peg$literalExpectation("\u219B", false), peg$c176 = function () { return "~>"; }, peg$c177 = peg$otherExpectation("two way tilde arrow <~>"), peg$c178 = "<~>", peg$c179 = peg$literalExpectation("<~>", false), peg$c180 = "\u21AE", peg$c181 = peg$literalExpectation("\u21AE", false), peg$c182 = function () { return "<~>"; }, peg$c183 = peg$otherExpectation("back tilde arrow <~"), peg$c184 = "<~", peg$c185 = peg$literalExpectation("<~", false), peg$c186 = "\u219A", peg$c187 = peg$literalExpectation("\u219A", false), peg$c188 = function () { return "<~"; }, peg$c189 = peg$otherExpectation("light fat arrow <-=>"), peg$c190 = "<-=>", peg$c191 = peg$literalExpectation("<-=>", false), peg$c192 = "\u2190\u21D2", peg$c193 = peg$literalExpectation("\u2190\u21D2", false), peg$c194 = function () { return "<-=>"; }, peg$c195 = peg$otherExpectation("light tilde arrow <-~>"), peg$c196 = "<-~>", peg$c197 = peg$literalExpectation("<-~>", false), peg$c198 = "\u2190\u219B", peg$c199 = peg$literalExpectation("\u2190\u219B", false), peg$c200 = function () { return "<-~>"; }, peg$c201 = peg$otherExpectation("fat light arrow <=->"), peg$c202 = "<=->", peg$c203 = peg$literalExpectation("<=->", false), peg$c204 = "\u21D0\u2192", peg$c205 = peg$literalExpectation("\u21D0\u2192", false), peg$c206 = function () { return "<=->"; }, peg$c207 = peg$otherExpectation("fat tilde arrow <=~>"), peg$c208 = "<=~>", peg$c209 = peg$literalExpectation("<=~>", false), peg$c210 = "\u21D0\u219B", peg$c211 = peg$literalExpectation("\u21D0\u219B", false), peg$c212 = function () { return "<=~>"; }, peg$c213 = peg$otherExpectation("tilde light arrow <~->"), peg$c214 = "<~->", peg$c215 = peg$literalExpectation("<~->", false), peg$c216 = "\u219A\u2192", peg$c217 = peg$literalExpectation("\u219A\u2192", false), peg$c218 = function () { return "<~->"; }, peg$c219 = peg$otherExpectation("tilde fat arrow <~=>"), peg$c220 = "<~=>", peg$c221 = peg$literalExpectation("<~=>", false), peg$c222 = "\u219A\u21D2", peg$c223 = peg$literalExpectation("\u219A\u21D2", false), peg$c224 = function () { return "<~=>"; }, peg$c225 = peg$otherExpectation("light arrow"), peg$c226 = peg$otherExpectation("fat arrow"), peg$c227 = peg$otherExpectation("tilde arrow"), peg$c228 = peg$otherExpectation("mixed arrow"), peg$c229 = peg$otherExpectation("arrow"), peg$c230 = "true", peg$c231 = peg$literalExpectation("true", false), peg$c232 = function () { return true; }, peg$c233 = "false", peg$c234 = peg$literalExpectation("false", false), peg$c235 = function () { return false; }, peg$c236 = "regular", peg$c237 = peg$literalExpectation("regular", false), peg$c238 = "rounded", peg$c239 = peg$literalExpectation("rounded", false), peg$c240 = "lined", peg$c241 = peg$literalExpectation("lined", false), peg$c242 = "solid", peg$c243 = peg$literalExpectation("solid", false), peg$c244 = "dotted", peg$c245 = peg$literalExpectation("dotted", false), peg$c246 = "dashed", peg$c247 = peg$literalExpectation("dashed", false), peg$c276 = "null", peg$c277 = peg$literalExpectation("null", false), peg$c278 = function () { return null; }, peg$c279 = "undefined", peg$c280 = peg$literalExpectation("undefined", false), peg$c281 = function () { return undefined; }, peg$c288 = peg$otherExpectation("action label"), peg$c290 = /^[\n\r\u2028\u2029]/, peg$c291 = peg$classExpectation(["\n", "\r", "\u2028", "\u2029"], false, false), peg$c292 = peg$otherExpectation("block comment"), peg$c293 = "/*", peg$c294 = peg$literalExpectation("/*", false), peg$c295 = "*/", peg$c296 = peg$literalExpectation("*/", false), peg$c297 = peg$anyExpectation(), peg$c298 = peg$otherExpectation("line comment"), peg$c299 = "//", peg$c300 = peg$literalExpectation("//", false), peg$c301 = peg$otherExpectation("whitespace"), peg$c304 = peg$otherExpectation("string"), peg$c309 = peg$otherExpectation("atom"), peg$c311 = peg$otherExpectation("label"), peg$c312 = "0", peg$c313 = peg$literalExpectation("0", false), peg$c314 = /^[0-9]/, peg$c315 = peg$classExpectation([["0", "9"]], false, false), peg$c316 = /^[1-9]/, peg$c317 = peg$classExpectation([["1", "9"]], false, false), peg$c318 = /^[0-9a-f]/i, peg$c319 = peg$classExpectation([["0", "9"], ["a", "f"]], false, true), peg$c320 = /^[0-1]/, peg$c321 = peg$classExpectation([["0", "1"]], false, false), peg$c322 = /^[0-7]/, peg$c323 = peg$classExpectation([["0", "7"]], false, false), peg$c324 = peg$otherExpectation("nonneg number"), peg$c325 = ".", peg$c326 = peg$literalExpectation(".", false), peg$c327 = function () { return parseFloat(text()); }, peg$c328 = peg$otherExpectation("number"), peg$c329 = function (literal) { return literal; }, peg$c330 = "NaN", peg$c331 = peg$literalExpectation("NaN", false), peg$c332 = function () { return NaN; }, peg$c333 = "NegativeInfinity", peg$c334 = peg$literalExpectation("NegativeInfinity", false), peg$c335 = function () { return Number.NEGATIVE_INFINITY; }, peg$c336 = "NegativeInf", peg$c337 = peg$literalExpectation("NegativeInf", false), peg$c338 = "NegInfinity", peg$c339 = peg$literalExpectation("NegInfinity", false), peg$c340 = "NegInf", peg$c341 = peg$literalExpectation("NegInf", false), peg$c342 = "NInfinity", peg$c343 = peg$literalExpectation("NInfinity", false), peg$c344 = "NInf", peg$c345 = peg$literalExpectation("NInf", false), peg$c346 = "-\u221E", peg$c347 = peg$literalExpectation("-\u221E", false), peg$c348 = "PInfinity", peg$c349 = peg$literalExpectation("PInfinity", false), peg$c350 = function () { return Number.POSITIVE_INFINITY; }, peg$c351 = "Infinity", peg$c352 = peg$literalExpectation("Infinity", false), peg$c353 = "PInf", peg$c354 = peg$literalExpectation("PInf", false), peg$c355 = "Inf", peg$c356 = peg$literalExpectation("Inf", false), peg$c357 = "\u221E", peg$c358 = peg$literalExpectation("\u221E", false), peg$c359 = "Epsilon", peg$c360 = peg$literalExpectation("Epsilon", false), peg$c361 = function () { return Number.EPSILON; }, peg$c362 = "\uD835\uDF00", peg$c363 = peg$literalExpectation("\uD835\uDF00", false), peg$c364 = "\u03B5", peg$c365 = peg$literalExpectation("\u03B5", false), peg$c366 = "Pi", peg$c367 = peg$literalExpectation("Pi", false), peg$c368 = function () { return Math.PI; }, peg$c369 = "\uD835\uDF0B", peg$c370 = peg$literalExpectation("\uD835\uDF0B", false), peg$c371 = "\u03C0", peg$c372 = peg$literalExpectation("\u03C0", false), peg$c373 = "EulerNumber", peg$c374 = peg$literalExpectation("EulerNumber", false), peg$c375 = function () { return Math.E; }, peg$c376 = "E", peg$c377 = peg$literalExpectation("E", false), peg$c378 = "e", peg$c379 = peg$literalExpectation("e", false), peg$c380 = "\u0190", peg$c381 = peg$literalExpectation("\u0190", false), peg$c382 = "\u2107", peg$c383 = peg$literalExpectation("\u2107", false), peg$c384 = "Root2", peg$c385 = peg$literalExpectation("Root2", false), peg$c386 = function () { return Math.SQRT2; }, peg$c387 = "RootHalf", peg$c388 = peg$literalExpectation("RootHalf", false), peg$c389 = function () { return Math.SQRT1_2; }, peg$c390 = "Ln2", peg$c391 = peg$literalExpectation("Ln2", false), peg$c392 = function () { return Math.LN2; }, peg$c393 = "NatLog2", peg$c394 = peg$literalExpectation("NatLog2", false), peg$c395 = "Ln10", peg$c396 = peg$literalExpectation("Ln10", false), peg$c397 = function () { return Math.LN10; }, peg$c398 = "NatLog10", peg$c399 = peg$literalExpectation("NatLog10", false), peg$c400 = "Log2E", peg$c401 = peg$literalExpectation("Log2E", false), peg$c402 = function () { return Math.LOG2E; }, peg$c403 = "Log10E", peg$c404 = peg$literalExpectation("Log10E", false), peg$c405 = function () { return Math.LOG10E; }, peg$c406 = "MaxSafeInt", peg$c407 = peg$literalExpectation("MaxSafeInt", false), peg$c408 = function () { return Number.MAX_SAFE_INTEGER; }, peg$c409 = "MinSafeInt", peg$c410 = peg$literalExpectation("MinSafeInt", false), peg$c411 = function () { return Number.MIN_SAFE_INTEGER; }, peg$c412 = "MaxPosNum", peg$c413 = peg$literalExpectation("MaxPosNum", false), peg$c414 = function () { return Number.MAX_VALUE; }, peg$c415 = "MinPosNum", peg$c416 = peg$literalExpectation("MinPosNum", false), peg$c417 = function () { return Number.MIN_VALUE; }, peg$c418 = "Phi", peg$c419 = peg$literalExpectation("Phi", false), peg$c420 = function () { return 1.61803398874989484820; }, peg$c421 = "\uD835\uDF11", peg$c422 = peg$literalExpectation("\uD835\uDF11", false), peg$c423 = "\uD835\uDF19", peg$c424 = peg$literalExpectation("\uD835\uDF19", false), peg$c425 = "\u03D5", peg$c426 = peg$literalExpectation("\u03D5", false), peg$c427 = "\u03C6", peg$c428 = peg$literalExpectation("\u03C6", false), peg$c429 = "EulerConstant", peg$c430 = peg$literalExpectation("EulerConstant", false), peg$c431 = function () { return 0.57721566490153286060; }, peg$c432 = "\u03B3", peg$c433 = peg$literalExpectation("\u03B3", false), peg$c434 = "\uD835\uDEFE", peg$c435 = peg$literalExpectation("\uD835\uDEFE", false), peg$c436 = peg$literalExpectation("e", true), peg$c437 = /^[+\-]/, peg$c438 = peg$classExpectation(["+", "-"], false, false), peg$c439 = "0x", peg$c440 = peg$literalExpectation("0x", true), peg$c441 = function (digits) {
|
|
340
338
|
return parseInt(digits, 16);
|
|
341
339
|
}, peg$c442 = "0b", peg$c443 = peg$literalExpectation("0b", true), peg$c444 = function (digits) {
|
|
342
340
|
return parseInt(digits, 2);
|
|
@@ -2726,238 +2724,6 @@ function peg$parse(input, options) {
|
|
|
2726
2724
|
}
|
|
2727
2725
|
return s0;
|
|
2728
2726
|
}
|
|
2729
|
-
function peg$parseChar() {
|
|
2730
|
-
var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
|
|
2731
|
-
s0 = peg$parseUnescaped();
|
|
2732
|
-
if (s0 === peg$FAILED) {
|
|
2733
|
-
s0 = peg$currPos;
|
|
2734
|
-
s1 = peg$parseEscape();
|
|
2735
|
-
if (s1 !== peg$FAILED) {
|
|
2736
|
-
if (input.charCodeAt(peg$currPos) === 34) {
|
|
2737
|
-
s2 = peg$c248;
|
|
2738
|
-
peg$currPos++;
|
|
2739
|
-
}
|
|
2740
|
-
else {
|
|
2741
|
-
s2 = peg$FAILED;
|
|
2742
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
2743
|
-
peg$fail(peg$c249);
|
|
2744
|
-
}
|
|
2745
|
-
}
|
|
2746
|
-
if (s2 === peg$FAILED) {
|
|
2747
|
-
if (input.charCodeAt(peg$currPos) === 92) {
|
|
2748
|
-
s2 = peg$c250;
|
|
2749
|
-
peg$currPos++;
|
|
2750
|
-
}
|
|
2751
|
-
else {
|
|
2752
|
-
s2 = peg$FAILED;
|
|
2753
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
2754
|
-
peg$fail(peg$c251);
|
|
2755
|
-
}
|
|
2756
|
-
}
|
|
2757
|
-
if (s2 === peg$FAILED) {
|
|
2758
|
-
if (input.charCodeAt(peg$currPos) === 47) {
|
|
2759
|
-
s2 = peg$c252;
|
|
2760
|
-
peg$currPos++;
|
|
2761
|
-
}
|
|
2762
|
-
else {
|
|
2763
|
-
s2 = peg$FAILED;
|
|
2764
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
2765
|
-
peg$fail(peg$c253);
|
|
2766
|
-
}
|
|
2767
|
-
}
|
|
2768
|
-
if (s2 === peg$FAILED) {
|
|
2769
|
-
s2 = peg$currPos;
|
|
2770
|
-
if (input.charCodeAt(peg$currPos) === 98) {
|
|
2771
|
-
s3 = peg$c254;
|
|
2772
|
-
peg$currPos++;
|
|
2773
|
-
}
|
|
2774
|
-
else {
|
|
2775
|
-
s3 = peg$FAILED;
|
|
2776
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
2777
|
-
peg$fail(peg$c255);
|
|
2778
|
-
}
|
|
2779
|
-
}
|
|
2780
|
-
if (s3 !== peg$FAILED) {
|
|
2781
|
-
peg$savedPos = s2;
|
|
2782
|
-
s3 = peg$c256();
|
|
2783
|
-
}
|
|
2784
|
-
s2 = s3;
|
|
2785
|
-
if (s2 === peg$FAILED) {
|
|
2786
|
-
s2 = peg$currPos;
|
|
2787
|
-
if (input.charCodeAt(peg$currPos) === 102) {
|
|
2788
|
-
s3 = peg$c257;
|
|
2789
|
-
peg$currPos++;
|
|
2790
|
-
}
|
|
2791
|
-
else {
|
|
2792
|
-
s3 = peg$FAILED;
|
|
2793
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
2794
|
-
peg$fail(peg$c258);
|
|
2795
|
-
}
|
|
2796
|
-
}
|
|
2797
|
-
if (s3 !== peg$FAILED) {
|
|
2798
|
-
peg$savedPos = s2;
|
|
2799
|
-
s3 = peg$c259();
|
|
2800
|
-
}
|
|
2801
|
-
s2 = s3;
|
|
2802
|
-
if (s2 === peg$FAILED) {
|
|
2803
|
-
s2 = peg$currPos;
|
|
2804
|
-
if (input.charCodeAt(peg$currPos) === 110) {
|
|
2805
|
-
s3 = peg$c260;
|
|
2806
|
-
peg$currPos++;
|
|
2807
|
-
}
|
|
2808
|
-
else {
|
|
2809
|
-
s3 = peg$FAILED;
|
|
2810
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
2811
|
-
peg$fail(peg$c261);
|
|
2812
|
-
}
|
|
2813
|
-
}
|
|
2814
|
-
if (s3 !== peg$FAILED) {
|
|
2815
|
-
peg$savedPos = s2;
|
|
2816
|
-
s3 = peg$c262();
|
|
2817
|
-
}
|
|
2818
|
-
s2 = s3;
|
|
2819
|
-
if (s2 === peg$FAILED) {
|
|
2820
|
-
s2 = peg$currPos;
|
|
2821
|
-
if (input.charCodeAt(peg$currPos) === 114) {
|
|
2822
|
-
s3 = peg$c263;
|
|
2823
|
-
peg$currPos++;
|
|
2824
|
-
}
|
|
2825
|
-
else {
|
|
2826
|
-
s3 = peg$FAILED;
|
|
2827
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
2828
|
-
peg$fail(peg$c264);
|
|
2829
|
-
}
|
|
2830
|
-
}
|
|
2831
|
-
if (s3 !== peg$FAILED) {
|
|
2832
|
-
peg$savedPos = s2;
|
|
2833
|
-
s3 = peg$c265();
|
|
2834
|
-
}
|
|
2835
|
-
s2 = s3;
|
|
2836
|
-
if (s2 === peg$FAILED) {
|
|
2837
|
-
s2 = peg$currPos;
|
|
2838
|
-
if (input.charCodeAt(peg$currPos) === 116) {
|
|
2839
|
-
s3 = peg$c266;
|
|
2840
|
-
peg$currPos++;
|
|
2841
|
-
}
|
|
2842
|
-
else {
|
|
2843
|
-
s3 = peg$FAILED;
|
|
2844
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
2845
|
-
peg$fail(peg$c267);
|
|
2846
|
-
}
|
|
2847
|
-
}
|
|
2848
|
-
if (s3 !== peg$FAILED) {
|
|
2849
|
-
peg$savedPos = s2;
|
|
2850
|
-
s3 = peg$c268();
|
|
2851
|
-
}
|
|
2852
|
-
s2 = s3;
|
|
2853
|
-
if (s2 === peg$FAILED) {
|
|
2854
|
-
s2 = peg$currPos;
|
|
2855
|
-
if (input.charCodeAt(peg$currPos) === 118) {
|
|
2856
|
-
s3 = peg$c269;
|
|
2857
|
-
peg$currPos++;
|
|
2858
|
-
}
|
|
2859
|
-
else {
|
|
2860
|
-
s3 = peg$FAILED;
|
|
2861
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
2862
|
-
peg$fail(peg$c270);
|
|
2863
|
-
}
|
|
2864
|
-
}
|
|
2865
|
-
if (s3 !== peg$FAILED) {
|
|
2866
|
-
peg$savedPos = s2;
|
|
2867
|
-
s3 = peg$c271();
|
|
2868
|
-
}
|
|
2869
|
-
s2 = s3;
|
|
2870
|
-
if (s2 === peg$FAILED) {
|
|
2871
|
-
s2 = peg$currPos;
|
|
2872
|
-
if (input.charCodeAt(peg$currPos) === 117) {
|
|
2873
|
-
s3 = peg$c272;
|
|
2874
|
-
peg$currPos++;
|
|
2875
|
-
}
|
|
2876
|
-
else {
|
|
2877
|
-
s3 = peg$FAILED;
|
|
2878
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
2879
|
-
peg$fail(peg$c273);
|
|
2880
|
-
}
|
|
2881
|
-
}
|
|
2882
|
-
if (s3 !== peg$FAILED) {
|
|
2883
|
-
s4 = peg$currPos;
|
|
2884
|
-
s5 = peg$currPos;
|
|
2885
|
-
s6 = peg$parseHexDigit();
|
|
2886
|
-
if (s6 !== peg$FAILED) {
|
|
2887
|
-
s7 = peg$parseHexDigit();
|
|
2888
|
-
if (s7 !== peg$FAILED) {
|
|
2889
|
-
s8 = peg$parseHexDigit();
|
|
2890
|
-
if (s8 !== peg$FAILED) {
|
|
2891
|
-
s9 = peg$parseHexDigit();
|
|
2892
|
-
if (s9 !== peg$FAILED) {
|
|
2893
|
-
s6 = [s6, s7, s8, s9];
|
|
2894
|
-
s5 = s6;
|
|
2895
|
-
}
|
|
2896
|
-
else {
|
|
2897
|
-
peg$currPos = s5;
|
|
2898
|
-
s5 = peg$FAILED;
|
|
2899
|
-
}
|
|
2900
|
-
}
|
|
2901
|
-
else {
|
|
2902
|
-
peg$currPos = s5;
|
|
2903
|
-
s5 = peg$FAILED;
|
|
2904
|
-
}
|
|
2905
|
-
}
|
|
2906
|
-
else {
|
|
2907
|
-
peg$currPos = s5;
|
|
2908
|
-
s5 = peg$FAILED;
|
|
2909
|
-
}
|
|
2910
|
-
}
|
|
2911
|
-
else {
|
|
2912
|
-
peg$currPos = s5;
|
|
2913
|
-
s5 = peg$FAILED;
|
|
2914
|
-
}
|
|
2915
|
-
if (s5 !== peg$FAILED) {
|
|
2916
|
-
s4 = input.substring(s4, peg$currPos);
|
|
2917
|
-
}
|
|
2918
|
-
else {
|
|
2919
|
-
s4 = s5;
|
|
2920
|
-
}
|
|
2921
|
-
if (s4 !== peg$FAILED) {
|
|
2922
|
-
peg$savedPos = s2;
|
|
2923
|
-
s3 = peg$c274(s4);
|
|
2924
|
-
s2 = s3;
|
|
2925
|
-
}
|
|
2926
|
-
else {
|
|
2927
|
-
peg$currPos = s2;
|
|
2928
|
-
s2 = peg$FAILED;
|
|
2929
|
-
}
|
|
2930
|
-
}
|
|
2931
|
-
else {
|
|
2932
|
-
peg$currPos = s2;
|
|
2933
|
-
s2 = peg$FAILED;
|
|
2934
|
-
}
|
|
2935
|
-
}
|
|
2936
|
-
}
|
|
2937
|
-
}
|
|
2938
|
-
}
|
|
2939
|
-
}
|
|
2940
|
-
}
|
|
2941
|
-
}
|
|
2942
|
-
}
|
|
2943
|
-
}
|
|
2944
|
-
if (s2 !== peg$FAILED) {
|
|
2945
|
-
peg$savedPos = s0;
|
|
2946
|
-
s1 = peg$c275(s2);
|
|
2947
|
-
s0 = s1;
|
|
2948
|
-
}
|
|
2949
|
-
else {
|
|
2950
|
-
peg$currPos = s0;
|
|
2951
|
-
s0 = peg$FAILED;
|
|
2952
|
-
}
|
|
2953
|
-
}
|
|
2954
|
-
else {
|
|
2955
|
-
peg$currPos = s0;
|
|
2956
|
-
s0 = peg$FAILED;
|
|
2957
|
-
}
|
|
2958
|
-
}
|
|
2959
|
-
return s0;
|
|
2960
|
-
}
|
|
2961
2727
|
function peg$parseNull() {
|
|
2962
2728
|
var s0, s1;
|
|
2963
2729
|
s0 = peg$currPos;
|
|
@@ -2998,349 +2764,105 @@ function peg$parse(input, options) {
|
|
|
2998
2764
|
s0 = s1;
|
|
2999
2765
|
return s0;
|
|
3000
2766
|
}
|
|
3001
|
-
function peg$
|
|
3002
|
-
var
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
peg$currPos
|
|
3006
|
-
}
|
|
3007
|
-
else {
|
|
3008
|
-
s0 = peg$FAILED;
|
|
3009
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3010
|
-
peg$fail(peg$c251);
|
|
3011
|
-
}
|
|
3012
|
-
}
|
|
3013
|
-
return s0;
|
|
3014
|
-
}
|
|
3015
|
-
function peg$parseQuoteMark() {
|
|
3016
|
-
var s0;
|
|
3017
|
-
if (input.charCodeAt(peg$currPos) === 34) {
|
|
3018
|
-
s0 = peg$c248;
|
|
3019
|
-
peg$currPos++;
|
|
3020
|
-
}
|
|
3021
|
-
else {
|
|
3022
|
-
s0 = peg$FAILED;
|
|
3023
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3024
|
-
peg$fail(peg$c249);
|
|
3025
|
-
}
|
|
3026
|
-
}
|
|
3027
|
-
return s0;
|
|
3028
|
-
}
|
|
3029
|
-
function peg$parseUnescaped() {
|
|
3030
|
-
var s0;
|
|
3031
|
-
if (peg$c282.test(input.charAt(peg$currPos))) {
|
|
3032
|
-
s0 = input.charAt(peg$currPos);
|
|
2767
|
+
function peg$parseActionLabel() {
|
|
2768
|
+
var c, start, chunk, out, h, hv;
|
|
2769
|
+
peg$silentFails++;
|
|
2770
|
+
if (input.charCodeAt(peg$currPos) === 39) {
|
|
2771
|
+
start = peg$currPos;
|
|
3033
2772
|
peg$currPos++;
|
|
3034
|
-
|
|
3035
|
-
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
}
|
|
3040
|
-
}
|
|
3041
|
-
return s0;
|
|
3042
|
-
}
|
|
3043
|
-
function peg$parseActionLabelChar() {
|
|
3044
|
-
var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9;
|
|
3045
|
-
s0 = peg$parseActionLabelUnescaped();
|
|
3046
|
-
if (s0 === peg$FAILED) {
|
|
3047
|
-
s0 = peg$currPos;
|
|
3048
|
-
s1 = peg$parseEscape();
|
|
3049
|
-
if (s1 !== peg$FAILED) {
|
|
3050
|
-
if (input.charCodeAt(peg$currPos) === 39) {
|
|
3051
|
-
s2 = peg$c284;
|
|
2773
|
+
chunk = peg$currPos;
|
|
2774
|
+
out = '';
|
|
2775
|
+
for (;;) {
|
|
2776
|
+
c = input.charCodeAt(peg$currPos);
|
|
2777
|
+
if (c >= 32 && c !== 39 && c !== 92) { // unescaped run
|
|
3052
2778
|
peg$currPos++;
|
|
2779
|
+
continue;
|
|
3053
2780
|
}
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
2781
|
+
if (c === 39) { // closing quote: emit
|
|
2782
|
+
out = out + input.substring(chunk, peg$currPos);
|
|
2783
|
+
peg$currPos++;
|
|
2784
|
+
peg$silentFails--;
|
|
2785
|
+
return out;
|
|
3059
2786
|
}
|
|
3060
|
-
if (
|
|
3061
|
-
|
|
3062
|
-
|
|
2787
|
+
if (c === 92) { // backslash: one escape
|
|
2788
|
+
out += input.substring(chunk, peg$currPos);
|
|
2789
|
+
peg$currPos++;
|
|
2790
|
+
c = input.charCodeAt(peg$currPos);
|
|
2791
|
+
if (c === 39) {
|
|
2792
|
+
out += "'";
|
|
3063
2793
|
peg$currPos++;
|
|
3064
2794
|
}
|
|
3065
|
-
else {
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
peg$fail(peg$c251);
|
|
3069
|
-
}
|
|
2795
|
+
else if (c === 92) {
|
|
2796
|
+
out += '\\';
|
|
2797
|
+
peg$currPos++;
|
|
3070
2798
|
}
|
|
3071
|
-
if (
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
2799
|
+
else if (c === 47) {
|
|
2800
|
+
out += '/';
|
|
2801
|
+
peg$currPos++;
|
|
2802
|
+
}
|
|
2803
|
+
else if (c === 98) {
|
|
2804
|
+
out += '\b';
|
|
2805
|
+
peg$currPos++;
|
|
2806
|
+
}
|
|
2807
|
+
else if (c === 102) {
|
|
2808
|
+
out += '\f';
|
|
2809
|
+
peg$currPos++;
|
|
2810
|
+
}
|
|
2811
|
+
else if (c === 110) {
|
|
2812
|
+
out += '\n';
|
|
2813
|
+
peg$currPos++;
|
|
2814
|
+
}
|
|
2815
|
+
else if (c === 114) {
|
|
2816
|
+
out += '\r';
|
|
2817
|
+
peg$currPos++;
|
|
2818
|
+
}
|
|
2819
|
+
else if (c === 116) {
|
|
2820
|
+
out += '\t';
|
|
2821
|
+
peg$currPos++;
|
|
2822
|
+
}
|
|
2823
|
+
else if (c === 118) {
|
|
2824
|
+
out += '\v';
|
|
2825
|
+
peg$currPos++;
|
|
2826
|
+
}
|
|
2827
|
+
else if (c === 117) { // \uXXXX, hex case-insensitive
|
|
2828
|
+
hv = 0;
|
|
2829
|
+
for (h = 1; h <= 4; ++h) {
|
|
2830
|
+
c = input.charCodeAt(peg$currPos + h);
|
|
2831
|
+
if (c >= 48 && c <= 57) {
|
|
2832
|
+
hv = hv * 16 + (c - 48);
|
|
3087
2833
|
}
|
|
3088
|
-
else {
|
|
3089
|
-
|
|
3090
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3091
|
-
peg$fail(peg$c255);
|
|
3092
|
-
}
|
|
2834
|
+
else if (c >= 97 && c <= 102) {
|
|
2835
|
+
hv = hv * 16 + (c - 87);
|
|
3093
2836
|
}
|
|
3094
|
-
if (
|
|
3095
|
-
|
|
3096
|
-
s3 = peg$c256();
|
|
2837
|
+
else if (c >= 65 && c <= 70) {
|
|
2838
|
+
hv = hv * 16 + (c - 55);
|
|
3097
2839
|
}
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
if (input.charCodeAt(peg$currPos) === 102) {
|
|
3102
|
-
s3 = peg$c257;
|
|
3103
|
-
peg$currPos++;
|
|
3104
|
-
}
|
|
3105
|
-
else {
|
|
3106
|
-
s3 = peg$FAILED;
|
|
3107
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3108
|
-
peg$fail(peg$c258);
|
|
3109
|
-
}
|
|
3110
|
-
}
|
|
3111
|
-
if (s3 !== peg$FAILED) {
|
|
3112
|
-
peg$savedPos = s2;
|
|
3113
|
-
s3 = peg$c259();
|
|
3114
|
-
}
|
|
3115
|
-
s2 = s3;
|
|
3116
|
-
if (s2 === peg$FAILED) {
|
|
3117
|
-
s2 = peg$currPos;
|
|
3118
|
-
if (input.charCodeAt(peg$currPos) === 110) {
|
|
3119
|
-
s3 = peg$c260;
|
|
3120
|
-
peg$currPos++;
|
|
3121
|
-
}
|
|
3122
|
-
else {
|
|
3123
|
-
s3 = peg$FAILED;
|
|
3124
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3125
|
-
peg$fail(peg$c261);
|
|
3126
|
-
}
|
|
3127
|
-
}
|
|
3128
|
-
if (s3 !== peg$FAILED) {
|
|
3129
|
-
peg$savedPos = s2;
|
|
3130
|
-
s3 = peg$c262();
|
|
3131
|
-
}
|
|
3132
|
-
s2 = s3;
|
|
3133
|
-
if (s2 === peg$FAILED) {
|
|
3134
|
-
s2 = peg$currPos;
|
|
3135
|
-
if (input.charCodeAt(peg$currPos) === 114) {
|
|
3136
|
-
s3 = peg$c263;
|
|
3137
|
-
peg$currPos++;
|
|
3138
|
-
}
|
|
3139
|
-
else {
|
|
3140
|
-
s3 = peg$FAILED;
|
|
3141
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3142
|
-
peg$fail(peg$c264);
|
|
3143
|
-
}
|
|
3144
|
-
}
|
|
3145
|
-
if (s3 !== peg$FAILED) {
|
|
3146
|
-
peg$savedPos = s2;
|
|
3147
|
-
s3 = peg$c265();
|
|
3148
|
-
}
|
|
3149
|
-
s2 = s3;
|
|
3150
|
-
if (s2 === peg$FAILED) {
|
|
3151
|
-
s2 = peg$currPos;
|
|
3152
|
-
if (input.charCodeAt(peg$currPos) === 116) {
|
|
3153
|
-
s3 = peg$c266;
|
|
3154
|
-
peg$currPos++;
|
|
3155
|
-
}
|
|
3156
|
-
else {
|
|
3157
|
-
s3 = peg$FAILED;
|
|
3158
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3159
|
-
peg$fail(peg$c267);
|
|
3160
|
-
}
|
|
3161
|
-
}
|
|
3162
|
-
if (s3 !== peg$FAILED) {
|
|
3163
|
-
peg$savedPos = s2;
|
|
3164
|
-
s3 = peg$c268();
|
|
3165
|
-
}
|
|
3166
|
-
s2 = s3;
|
|
3167
|
-
if (s2 === peg$FAILED) {
|
|
3168
|
-
s2 = peg$currPos;
|
|
3169
|
-
if (input.charCodeAt(peg$currPos) === 118) {
|
|
3170
|
-
s3 = peg$c269;
|
|
3171
|
-
peg$currPos++;
|
|
3172
|
-
}
|
|
3173
|
-
else {
|
|
3174
|
-
s3 = peg$FAILED;
|
|
3175
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3176
|
-
peg$fail(peg$c270);
|
|
3177
|
-
}
|
|
3178
|
-
}
|
|
3179
|
-
if (s3 !== peg$FAILED) {
|
|
3180
|
-
peg$savedPos = s2;
|
|
3181
|
-
s3 = peg$c271();
|
|
3182
|
-
}
|
|
3183
|
-
s2 = s3;
|
|
3184
|
-
if (s2 === peg$FAILED) {
|
|
3185
|
-
s2 = peg$currPos;
|
|
3186
|
-
if (input.charCodeAt(peg$currPos) === 117) {
|
|
3187
|
-
s3 = peg$c272;
|
|
3188
|
-
peg$currPos++;
|
|
3189
|
-
}
|
|
3190
|
-
else {
|
|
3191
|
-
s3 = peg$FAILED;
|
|
3192
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3193
|
-
peg$fail(peg$c273);
|
|
3194
|
-
}
|
|
3195
|
-
}
|
|
3196
|
-
if (s3 !== peg$FAILED) {
|
|
3197
|
-
s4 = peg$currPos;
|
|
3198
|
-
s5 = peg$currPos;
|
|
3199
|
-
s6 = peg$parseHexDigit();
|
|
3200
|
-
if (s6 !== peg$FAILED) {
|
|
3201
|
-
s7 = peg$parseHexDigit();
|
|
3202
|
-
if (s7 !== peg$FAILED) {
|
|
3203
|
-
s8 = peg$parseHexDigit();
|
|
3204
|
-
if (s8 !== peg$FAILED) {
|
|
3205
|
-
s9 = peg$parseHexDigit();
|
|
3206
|
-
if (s9 !== peg$FAILED) {
|
|
3207
|
-
s6 = [s6, s7, s8, s9];
|
|
3208
|
-
s5 = s6;
|
|
3209
|
-
}
|
|
3210
|
-
else {
|
|
3211
|
-
peg$currPos = s5;
|
|
3212
|
-
s5 = peg$FAILED;
|
|
3213
|
-
}
|
|
3214
|
-
}
|
|
3215
|
-
else {
|
|
3216
|
-
peg$currPos = s5;
|
|
3217
|
-
s5 = peg$FAILED;
|
|
3218
|
-
}
|
|
3219
|
-
}
|
|
3220
|
-
else {
|
|
3221
|
-
peg$currPos = s5;
|
|
3222
|
-
s5 = peg$FAILED;
|
|
3223
|
-
}
|
|
3224
|
-
}
|
|
3225
|
-
else {
|
|
3226
|
-
peg$currPos = s5;
|
|
3227
|
-
s5 = peg$FAILED;
|
|
3228
|
-
}
|
|
3229
|
-
if (s5 !== peg$FAILED) {
|
|
3230
|
-
s4 = input.substring(s4, peg$currPos);
|
|
3231
|
-
}
|
|
3232
|
-
else {
|
|
3233
|
-
s4 = s5;
|
|
3234
|
-
}
|
|
3235
|
-
if (s4 !== peg$FAILED) {
|
|
3236
|
-
peg$savedPos = s2;
|
|
3237
|
-
s3 = peg$c274(s4);
|
|
3238
|
-
s2 = s3;
|
|
3239
|
-
}
|
|
3240
|
-
else {
|
|
3241
|
-
peg$currPos = s2;
|
|
3242
|
-
s2 = peg$FAILED;
|
|
3243
|
-
}
|
|
3244
|
-
}
|
|
3245
|
-
else {
|
|
3246
|
-
peg$currPos = s2;
|
|
3247
|
-
s2 = peg$FAILED;
|
|
3248
|
-
}
|
|
3249
|
-
}
|
|
3250
|
-
}
|
|
3251
|
-
}
|
|
3252
|
-
}
|
|
3253
|
-
}
|
|
2840
|
+
else {
|
|
2841
|
+
hv = -1;
|
|
2842
|
+
break;
|
|
3254
2843
|
}
|
|
3255
2844
|
}
|
|
2845
|
+
if (hv < 0) {
|
|
2846
|
+
break;
|
|
2847
|
+
} // bad hex: rule fails
|
|
2848
|
+
out += String.fromCharCode(hv);
|
|
2849
|
+
peg$currPos += 5;
|
|
3256
2850
|
}
|
|
2851
|
+
else {
|
|
2852
|
+
break;
|
|
2853
|
+
} // unknown escape: rule fails
|
|
2854
|
+
chunk = peg$currPos;
|
|
2855
|
+
continue;
|
|
3257
2856
|
}
|
|
3258
|
-
|
|
3259
|
-
peg$savedPos = s0;
|
|
3260
|
-
s1 = peg$c275(s2);
|
|
3261
|
-
s0 = s1;
|
|
3262
|
-
}
|
|
3263
|
-
else {
|
|
3264
|
-
peg$currPos = s0;
|
|
3265
|
-
s0 = peg$FAILED;
|
|
3266
|
-
}
|
|
3267
|
-
}
|
|
3268
|
-
else {
|
|
3269
|
-
peg$currPos = s0;
|
|
3270
|
-
s0 = peg$FAILED;
|
|
3271
|
-
}
|
|
3272
|
-
}
|
|
3273
|
-
return s0;
|
|
3274
|
-
}
|
|
3275
|
-
function peg$parseActionLabelQuoteMark() {
|
|
3276
|
-
var s0;
|
|
3277
|
-
if (input.charCodeAt(peg$currPos) === 39) {
|
|
3278
|
-
s0 = peg$c284;
|
|
3279
|
-
peg$currPos++;
|
|
3280
|
-
}
|
|
3281
|
-
else {
|
|
3282
|
-
s0 = peg$FAILED;
|
|
3283
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3284
|
-
peg$fail(peg$c285);
|
|
3285
|
-
}
|
|
3286
|
-
}
|
|
3287
|
-
return s0;
|
|
3288
|
-
}
|
|
3289
|
-
function peg$parseActionLabelUnescaped() {
|
|
3290
|
-
var s0;
|
|
3291
|
-
if (peg$c286.test(input.charAt(peg$currPos))) {
|
|
3292
|
-
s0 = input.charAt(peg$currPos);
|
|
3293
|
-
peg$currPos++;
|
|
3294
|
-
}
|
|
3295
|
-
else {
|
|
3296
|
-
s0 = peg$FAILED;
|
|
3297
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3298
|
-
peg$fail(peg$c287);
|
|
3299
|
-
}
|
|
3300
|
-
}
|
|
3301
|
-
return s0;
|
|
3302
|
-
}
|
|
3303
|
-
function peg$parseActionLabel() {
|
|
3304
|
-
var s0, s1, s2, s3;
|
|
3305
|
-
peg$silentFails++;
|
|
3306
|
-
s0 = peg$currPos;
|
|
3307
|
-
s1 = peg$parseActionLabelQuoteMark();
|
|
3308
|
-
if (s1 !== peg$FAILED) {
|
|
3309
|
-
s2 = [];
|
|
3310
|
-
s3 = peg$parseActionLabelChar();
|
|
3311
|
-
while (s3 !== peg$FAILED) {
|
|
3312
|
-
s2.push(s3);
|
|
3313
|
-
s3 = peg$parseActionLabelChar();
|
|
3314
|
-
}
|
|
3315
|
-
if (s2 !== peg$FAILED) {
|
|
3316
|
-
s3 = peg$parseActionLabelQuoteMark();
|
|
3317
|
-
if (s3 !== peg$FAILED) {
|
|
3318
|
-
peg$savedPos = s0;
|
|
3319
|
-
s1 = peg$c289(s2);
|
|
3320
|
-
s0 = s1;
|
|
3321
|
-
}
|
|
3322
|
-
else {
|
|
3323
|
-
peg$currPos = s0;
|
|
3324
|
-
s0 = peg$FAILED;
|
|
3325
|
-
}
|
|
3326
|
-
}
|
|
3327
|
-
else {
|
|
3328
|
-
peg$currPos = s0;
|
|
3329
|
-
s0 = peg$FAILED;
|
|
2857
|
+
break; // EOF or out-of-class char
|
|
3330
2858
|
}
|
|
3331
|
-
|
|
3332
|
-
else {
|
|
3333
|
-
peg$currPos = s0;
|
|
3334
|
-
s0 = peg$FAILED;
|
|
2859
|
+
peg$currPos = start; // backtrack to rule start
|
|
3335
2860
|
}
|
|
3336
2861
|
peg$silentFails--;
|
|
3337
|
-
if (
|
|
3338
|
-
|
|
3339
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3340
|
-
peg$fail(peg$c288);
|
|
3341
|
-
}
|
|
2862
|
+
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
2863
|
+
peg$fail(peg$c288);
|
|
3342
2864
|
}
|
|
3343
|
-
return
|
|
2865
|
+
return peg$FAILED;
|
|
3344
2866
|
}
|
|
3345
2867
|
function peg$parseLineTerminator() {
|
|
3346
2868
|
var s0;
|
|
@@ -3683,46 +3205,104 @@ function peg$parse(input, options) {
|
|
|
3683
3205
|
return peg$FAILED;
|
|
3684
3206
|
}
|
|
3685
3207
|
function peg$parseString() {
|
|
3686
|
-
var
|
|
3208
|
+
var c, start, chunk, out, h, hv;
|
|
3687
3209
|
peg$silentFails++;
|
|
3688
|
-
|
|
3689
|
-
|
|
3690
|
-
|
|
3691
|
-
|
|
3692
|
-
|
|
3693
|
-
|
|
3694
|
-
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
s3 = peg$parseQuoteMark();
|
|
3699
|
-
if (s3 !== peg$FAILED) {
|
|
3700
|
-
peg$savedPos = s0;
|
|
3701
|
-
s1 = peg$c289(s2);
|
|
3702
|
-
s0 = s1;
|
|
3210
|
+
if (input.charCodeAt(peg$currPos) === 34) {
|
|
3211
|
+
start = peg$currPos;
|
|
3212
|
+
peg$currPos++;
|
|
3213
|
+
chunk = peg$currPos;
|
|
3214
|
+
out = '';
|
|
3215
|
+
for (;;) {
|
|
3216
|
+
c = input.charCodeAt(peg$currPos);
|
|
3217
|
+
if (c >= 0 && c !== 34 && c !== 92) { // unescaped run
|
|
3218
|
+
peg$currPos++;
|
|
3219
|
+
continue;
|
|
3703
3220
|
}
|
|
3704
|
-
|
|
3705
|
-
peg$currPos
|
|
3706
|
-
|
|
3221
|
+
if (c === 34) { // closing quote: emit
|
|
3222
|
+
out = out + input.substring(chunk, peg$currPos);
|
|
3223
|
+
peg$currPos++;
|
|
3224
|
+
peg$silentFails--;
|
|
3225
|
+
return out;
|
|
3707
3226
|
}
|
|
3227
|
+
if (c === 92) { // backslash: one escape
|
|
3228
|
+
out += input.substring(chunk, peg$currPos);
|
|
3229
|
+
peg$currPos++;
|
|
3230
|
+
c = input.charCodeAt(peg$currPos);
|
|
3231
|
+
if (c === 34) {
|
|
3232
|
+
out += '"';
|
|
3233
|
+
peg$currPos++;
|
|
3234
|
+
}
|
|
3235
|
+
else if (c === 92) {
|
|
3236
|
+
out += '\\';
|
|
3237
|
+
peg$currPos++;
|
|
3238
|
+
}
|
|
3239
|
+
else if (c === 47) {
|
|
3240
|
+
out += '/';
|
|
3241
|
+
peg$currPos++;
|
|
3242
|
+
}
|
|
3243
|
+
else if (c === 98) {
|
|
3244
|
+
out += '\b';
|
|
3245
|
+
peg$currPos++;
|
|
3246
|
+
}
|
|
3247
|
+
else if (c === 102) {
|
|
3248
|
+
out += '\f';
|
|
3249
|
+
peg$currPos++;
|
|
3250
|
+
}
|
|
3251
|
+
else if (c === 110) {
|
|
3252
|
+
out += '\n';
|
|
3253
|
+
peg$currPos++;
|
|
3254
|
+
}
|
|
3255
|
+
else if (c === 114) {
|
|
3256
|
+
out += '\r';
|
|
3257
|
+
peg$currPos++;
|
|
3258
|
+
}
|
|
3259
|
+
else if (c === 116) {
|
|
3260
|
+
out += '\t';
|
|
3261
|
+
peg$currPos++;
|
|
3262
|
+
}
|
|
3263
|
+
else if (c === 118) {
|
|
3264
|
+
out += '\v';
|
|
3265
|
+
peg$currPos++;
|
|
3266
|
+
}
|
|
3267
|
+
else if (c === 117) { // \uXXXX, hex case-insensitive
|
|
3268
|
+
hv = 0;
|
|
3269
|
+
for (h = 1; h <= 4; ++h) {
|
|
3270
|
+
c = input.charCodeAt(peg$currPos + h);
|
|
3271
|
+
if (c >= 48 && c <= 57) {
|
|
3272
|
+
hv = hv * 16 + (c - 48);
|
|
3273
|
+
}
|
|
3274
|
+
else if (c >= 97 && c <= 102) {
|
|
3275
|
+
hv = hv * 16 + (c - 87);
|
|
3276
|
+
}
|
|
3277
|
+
else if (c >= 65 && c <= 70) {
|
|
3278
|
+
hv = hv * 16 + (c - 55);
|
|
3279
|
+
}
|
|
3280
|
+
else {
|
|
3281
|
+
hv = -1;
|
|
3282
|
+
break;
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
if (hv < 0) {
|
|
3286
|
+
break;
|
|
3287
|
+
} // bad hex: rule fails
|
|
3288
|
+
out += String.fromCharCode(hv);
|
|
3289
|
+
peg$currPos += 5;
|
|
3290
|
+
}
|
|
3291
|
+
else {
|
|
3292
|
+
break;
|
|
3293
|
+
} // unknown escape: rule fails
|
|
3294
|
+
chunk = peg$currPos;
|
|
3295
|
+
continue;
|
|
3296
|
+
}
|
|
3297
|
+
break; // EOF or out-of-class char
|
|
3708
3298
|
}
|
|
3709
|
-
|
|
3710
|
-
peg$currPos = s0;
|
|
3711
|
-
s0 = peg$FAILED;
|
|
3712
|
-
}
|
|
3713
|
-
}
|
|
3714
|
-
else {
|
|
3715
|
-
peg$currPos = s0;
|
|
3716
|
-
s0 = peg$FAILED;
|
|
3299
|
+
peg$currPos = start; // backtrack to rule start
|
|
3717
3300
|
}
|
|
3718
3301
|
peg$silentFails--;
|
|
3719
|
-
if (
|
|
3720
|
-
|
|
3721
|
-
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3722
|
-
peg$fail(peg$c304);
|
|
3723
|
-
}
|
|
3302
|
+
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
3303
|
+
peg$fail(peg$c304);
|
|
3724
3304
|
}
|
|
3725
|
-
return
|
|
3305
|
+
return peg$FAILED;
|
|
3726
3306
|
}
|
|
3727
3307
|
function peg$parseAtom() {
|
|
3728
3308
|
var c, start;
|
|
@@ -12262,6 +11842,14 @@ function peg$parse(input, options) {
|
|
|
12262
11842
|
}
|
|
12263
11843
|
function peg$parseStripe() {
|
|
12264
11844
|
var s0, s1, s2, s3, s4, s5, s6;
|
|
11845
|
+
var cg = input.charCodeAt(peg$currPos);
|
|
11846
|
+
if (cg !== 43 && cg !== 45) {
|
|
11847
|
+
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
11848
|
+
peg$fail(peg$c1297);
|
|
11849
|
+
peg$fail(peg$c1300);
|
|
11850
|
+
}
|
|
11851
|
+
return peg$FAILED;
|
|
11852
|
+
}
|
|
12265
11853
|
s0 = peg$currPos;
|
|
12266
11854
|
if (input.substr(peg$currPos, 2) === peg$c1296) {
|
|
12267
11855
|
s1 = peg$c1296;
|
|
@@ -12378,6 +11966,15 @@ function peg$parse(input, options) {
|
|
|
12378
11966
|
}
|
|
12379
11967
|
function peg$parseCycle() {
|
|
12380
11968
|
var s0, s1, s2, s3, s4, s5, s6;
|
|
11969
|
+
var cg = input.charCodeAt(peg$currPos);
|
|
11970
|
+
if (cg !== 43 && cg !== 45) {
|
|
11971
|
+
if (peg$silentFails === 0 && peg$currPos >= peg$maxFailPos) {
|
|
11972
|
+
peg$fail(peg$c1303);
|
|
11973
|
+
peg$fail(peg$c1306);
|
|
11974
|
+
peg$fail(peg$c1309);
|
|
11975
|
+
}
|
|
11976
|
+
return peg$FAILED;
|
|
11977
|
+
}
|
|
12381
11978
|
s0 = peg$currPos;
|
|
12382
11979
|
if (input.charCodeAt(peg$currPos) === 43) {
|
|
12383
11980
|
s1 = peg$c1302;
|
|
@@ -22803,7 +22400,7 @@ var constants = /*#__PURE__*/Object.freeze({
|
|
|
22803
22400
|
* Useful for runtime diagnostics and for embedding in serialized machine
|
|
22804
22401
|
* snapshots so that deserializers can detect version-skew.
|
|
22805
22402
|
*/
|
|
22806
|
-
const version = "5.143.
|
|
22403
|
+
const version = "5.143.23";
|
|
22807
22404
|
|
|
22808
22405
|
// whargarbl lots of these return arrays could/should be sets
|
|
22809
22406
|
const { state_name_chars, state_name_first_chars, action_label_chars } = constants;
|