@env-spec/parser 0.0.5 → 0.0.7
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/dist/{chunk-TP5IOHGP.mjs → chunk-4FFIFDV6.mjs} +37 -50
- package/dist/chunk-4FFIFDV6.mjs.map +1 -0
- package/dist/{chunk-QIAK725N.js → chunk-X4X3QSKA.js} +37 -50
- package/dist/chunk-X4X3QSKA.js.map +1 -0
- package/dist/{classes-0XkzWf10.d.mts → classes-Gq5ZJ7ej.d.mts} +9 -9
- package/dist/{classes-0XkzWf10.d.ts → classes-Gq5ZJ7ej.d.ts} +9 -9
- package/dist/index.d.mts +4 -4
- package/dist/index.d.ts +4 -4
- package/dist/index.js +515 -567
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +393 -445
- package/dist/index.mjs.map +1 -1
- package/dist/simple-resolver.d.mts +1 -1
- package/dist/simple-resolver.d.ts +1 -1
- package/dist/simple-resolver.js +11 -12
- package/dist/simple-resolver.js.map +1 -1
- package/dist/simple-resolver.mjs +2 -3
- package/dist/simple-resolver.mjs.map +1 -1
- package/package.json +4 -4
- package/dist/chunk-QIAK725N.js.map +0 -1
- package/dist/chunk-TP5IOHGP.mjs.map +0 -1
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { __name, ParsedEnvSpecCommentBlock, ParsedEnvSpecDivider, ParsedEnvSpecComment, ParsedEnvSpecBlankLine, ParsedEnvSpecDecoratorComment, ParsedEnvSpecConfigItem, ParsedEnvSpecFile,
|
|
2
|
-
export { ParsedEnvSpecBlankLine, ParsedEnvSpecComment, ParsedEnvSpecCommentBlock, ParsedEnvSpecConfigItem, ParsedEnvSpecDecorator, ParsedEnvSpecDecoratorComment, ParsedEnvSpecDivider, ParsedEnvSpecFile, ParsedEnvSpecFunctionArgs, ParsedEnvSpecFunctionCall, ParsedEnvSpecKeyValuePair, ParsedEnvSpecStaticValue, expand } from './chunk-
|
|
1
|
+
import { __name, ParsedEnvSpecCommentBlock, ParsedEnvSpecDivider, ParsedEnvSpecComment, ParsedEnvSpecBlankLine, ParsedEnvSpecDecoratorComment, ParsedEnvSpecConfigItem, ParsedEnvSpecFile, ParsedEnvSpecDecorator, ParsedEnvSpecFunctionCall, ParsedEnvSpecKeyValuePair, ParsedEnvSpecFunctionArgs, ParsedEnvSpecStaticValue } from './chunk-4FFIFDV6.mjs';
|
|
2
|
+
export { ParsedEnvSpecBlankLine, ParsedEnvSpecComment, ParsedEnvSpecCommentBlock, ParsedEnvSpecConfigItem, ParsedEnvSpecDecorator, ParsedEnvSpecDecoratorComment, ParsedEnvSpecDivider, ParsedEnvSpecFile, ParsedEnvSpecFunctionArgs, ParsedEnvSpecFunctionCall, ParsedEnvSpecKeyValuePair, ParsedEnvSpecStaticValue, expand } from './chunk-4FFIFDV6.mjs';
|
|
3
3
|
|
|
4
4
|
// src/updater.ts
|
|
5
5
|
function ensureHeader(file, newHeaderContents) {
|
|
@@ -36,7 +36,7 @@ function setRootDecorator(file, decoratorName, valueStr, opts) {
|
|
|
36
36
|
const newDecNode = createDummyDecoratorNode(decoratorName, valueStr, opts);
|
|
37
37
|
const existingDecorator = file.decoratorsObject[decoratorName];
|
|
38
38
|
if (existingDecorator) {
|
|
39
|
-
existingDecorator.data.
|
|
39
|
+
existingDecorator.data.value = newDecNode.data.value;
|
|
40
40
|
} else {
|
|
41
41
|
if (!file.header) throw new Error("No header found");
|
|
42
42
|
const lastComment = file.header.data.comments[file.header.data.comments.length - 1];
|
|
@@ -69,7 +69,7 @@ function setItemDecorator(file, key, decoratorName, valueStr, opts) {
|
|
|
69
69
|
const newDecNode = createDummyDecoratorNode(decoratorName, valueStr, opts);
|
|
70
70
|
const existingDecorator = item.decoratorsObject[decoratorName];
|
|
71
71
|
if (existingDecorator) {
|
|
72
|
-
existingDecorator.data.
|
|
72
|
+
existingDecorator.data.value = newDecNode.data.value;
|
|
73
73
|
} else {
|
|
74
74
|
const lastComment = item.data.preComments[item.data.preComments.length - 1];
|
|
75
75
|
let decCommentLine;
|
|
@@ -247,17 +247,16 @@ function peg$parse(input, options) {
|
|
|
247
247
|
const peg$c3 = "#";
|
|
248
248
|
const peg$c4 = "@";
|
|
249
249
|
const peg$c5 = ":";
|
|
250
|
-
const peg$c6 = "(
|
|
251
|
-
const peg$c7 = "
|
|
250
|
+
const peg$c6 = "(";
|
|
251
|
+
const peg$c7 = ",";
|
|
252
252
|
const peg$c8 = ")";
|
|
253
|
-
const peg$c9 = "
|
|
254
|
-
const peg$c10 = '
|
|
255
|
-
const peg$c11 = "
|
|
256
|
-
const peg$c12 = "
|
|
257
|
-
const peg$c13 = '"""';
|
|
258
|
-
const peg$c14 =
|
|
259
|
-
const peg$c15 = "
|
|
260
|
-
const peg$c16 = "\\```";
|
|
253
|
+
const peg$c9 = '\\"';
|
|
254
|
+
const peg$c10 = "\\'";
|
|
255
|
+
const peg$c11 = "\\`";
|
|
256
|
+
const peg$c12 = '"""';
|
|
257
|
+
const peg$c13 = '\\"""';
|
|
258
|
+
const peg$c14 = "```";
|
|
259
|
+
const peg$c15 = "\\```";
|
|
261
260
|
const peg$r0 = /^[a-zA-Z_]/;
|
|
262
261
|
const peg$r1 = /^[a-zA-Z0-9_.\-]/;
|
|
263
262
|
const peg$r2 = /^[^\n]/;
|
|
@@ -287,31 +286,30 @@ function peg$parse(input, options) {
|
|
|
287
286
|
const peg$e8 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false, false);
|
|
288
287
|
const peg$e9 = peg$literalExpectation(":", false);
|
|
289
288
|
const peg$e10 = peg$classExpectation(["@", "#"], false, false, false);
|
|
290
|
-
const peg$e11 = peg$
|
|
289
|
+
const peg$e11 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false, false);
|
|
291
290
|
const peg$e12 = peg$literalExpectation("(", false);
|
|
292
|
-
const peg$e13 = peg$literalExpectation("
|
|
293
|
-
const peg$e14 = peg$
|
|
294
|
-
const peg$e15 = peg$
|
|
295
|
-
const peg$e16 = peg$classExpectation(["
|
|
296
|
-
const peg$e17 = peg$classExpectation(["
|
|
297
|
-
const peg$e18 = peg$classExpectation(["
|
|
298
|
-
const peg$e19 = peg$classExpectation(["#", "\n"], true, false, false);
|
|
299
|
-
const peg$e20 = peg$classExpectation(["
|
|
300
|
-
const peg$e21 = peg$
|
|
301
|
-
const peg$e22 = peg$
|
|
302
|
-
const peg$e23 = peg$classExpectation([
|
|
303
|
-
const peg$e24 = peg$
|
|
304
|
-
const peg$e25 = peg$
|
|
305
|
-
const peg$e26 = peg$classExpectation(["
|
|
306
|
-
const peg$e27 = peg$
|
|
307
|
-
const peg$e28 = peg$
|
|
308
|
-
const peg$e29 = peg$
|
|
309
|
-
const peg$e30 = peg$literalExpectation('"""', false);
|
|
310
|
-
const peg$e31 = peg$literalExpectation(
|
|
311
|
-
const peg$e32 = peg$literalExpectation("
|
|
312
|
-
const peg$e33 = peg$
|
|
313
|
-
const peg$e34 = peg$
|
|
314
|
-
const peg$e35 = peg$classExpectation([" ", " "], false, false, false);
|
|
291
|
+
const peg$e13 = peg$literalExpectation(",", false);
|
|
292
|
+
const peg$e14 = peg$literalExpectation(")", false);
|
|
293
|
+
const peg$e15 = peg$classExpectation([" ", "\n", ",", ")"], true, false, false);
|
|
294
|
+
const peg$e16 = peg$classExpectation(["-", "=", "*", "#"], false, false, false);
|
|
295
|
+
const peg$e17 = peg$classExpectation(["'", '"', "`"], false, false, false);
|
|
296
|
+
const peg$e18 = peg$classExpectation(["#", "\n"], true, false, false);
|
|
297
|
+
const peg$e19 = peg$classExpectation(["#", " ", "\n"], true, false, false);
|
|
298
|
+
const peg$e20 = peg$classExpectation(['"'], false, false, false);
|
|
299
|
+
const peg$e21 = peg$literalExpectation('\\"', false);
|
|
300
|
+
const peg$e22 = peg$classExpectation(['"', "\n"], true, false, false);
|
|
301
|
+
const peg$e23 = peg$classExpectation(["'"], false, false, false);
|
|
302
|
+
const peg$e24 = peg$literalExpectation("\\'", false);
|
|
303
|
+
const peg$e25 = peg$classExpectation(["'", "\n"], true, false, false);
|
|
304
|
+
const peg$e26 = peg$classExpectation(["`"], false, false, false);
|
|
305
|
+
const peg$e27 = peg$literalExpectation("\\`", false);
|
|
306
|
+
const peg$e28 = peg$classExpectation(["`", "\n"], true, false, false);
|
|
307
|
+
const peg$e29 = peg$literalExpectation('"""', false);
|
|
308
|
+
const peg$e30 = peg$literalExpectation('\\"""', false);
|
|
309
|
+
const peg$e31 = peg$literalExpectation("```", false);
|
|
310
|
+
const peg$e32 = peg$literalExpectation("\\```", false);
|
|
311
|
+
const peg$e33 = peg$anyExpectation();
|
|
312
|
+
const peg$e34 = peg$classExpectation([" ", " "], false, false, false);
|
|
315
313
|
function peg$f0() {
|
|
316
314
|
return new ParsedEnvSpecBlankLine({ _location: location() });
|
|
317
315
|
}
|
|
@@ -359,55 +357,56 @@ function peg$parse(input, options) {
|
|
|
359
357
|
});
|
|
360
358
|
}
|
|
361
359
|
__name(peg$f6, "peg$f6");
|
|
362
|
-
function peg$f7(name) {
|
|
363
|
-
return new ParsedEnvSpecFunctionArgs({ values: [] });
|
|
364
|
-
}
|
|
365
|
-
__name(peg$f7, "peg$f7");
|
|
366
|
-
function peg$f8(name, valueOrFnArgs) {
|
|
360
|
+
function peg$f7(name, val) {
|
|
367
361
|
return new ParsedEnvSpecDecorator({
|
|
368
362
|
name,
|
|
369
|
-
|
|
363
|
+
value: Array.isArray(val) ? val[1] : val,
|
|
364
|
+
isBareFnCall: val && !Array.isArray(val),
|
|
370
365
|
_location: location()
|
|
371
366
|
});
|
|
372
367
|
}
|
|
373
|
-
__name(peg$
|
|
374
|
-
function peg$
|
|
368
|
+
__name(peg$f7, "peg$f7");
|
|
369
|
+
function peg$f8(name, args) {
|
|
375
370
|
return new ParsedEnvSpecFunctionCall({
|
|
376
371
|
name,
|
|
377
|
-
args
|
|
372
|
+
args,
|
|
378
373
|
_location: location()
|
|
379
374
|
});
|
|
380
375
|
}
|
|
381
|
-
__name(peg$
|
|
382
|
-
function peg$
|
|
376
|
+
__name(peg$f8, "peg$f8");
|
|
377
|
+
function peg$f9(key, val) {
|
|
383
378
|
return new ParsedEnvSpecKeyValuePair({ key, val });
|
|
384
379
|
}
|
|
385
|
-
__name(peg$
|
|
386
|
-
function peg$
|
|
380
|
+
__name(peg$f9, "peg$f9");
|
|
381
|
+
function peg$f10(values) {
|
|
387
382
|
return new ParsedEnvSpecFunctionArgs({
|
|
388
|
-
values,
|
|
383
|
+
values: values || [],
|
|
389
384
|
_location: location()
|
|
390
385
|
});
|
|
391
386
|
}
|
|
392
|
-
__name(peg$
|
|
393
|
-
function peg$
|
|
387
|
+
__name(peg$f10, "peg$f10");
|
|
388
|
+
function peg$f11() {
|
|
394
389
|
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
395
390
|
}
|
|
396
|
-
__name(peg$
|
|
397
|
-
function peg$
|
|
391
|
+
__name(peg$f11, "peg$f11");
|
|
392
|
+
function peg$f12(leadingSpace, contents) {
|
|
398
393
|
return new ParsedEnvSpecDivider({
|
|
399
394
|
contents,
|
|
400
395
|
leadingSpace,
|
|
401
396
|
_location: location()
|
|
402
397
|
});
|
|
403
398
|
}
|
|
399
|
+
__name(peg$f12, "peg$f12");
|
|
400
|
+
function peg$f13() {
|
|
401
|
+
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
402
|
+
}
|
|
404
403
|
__name(peg$f13, "peg$f13");
|
|
405
404
|
function peg$f14() {
|
|
406
405
|
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
407
406
|
}
|
|
408
407
|
__name(peg$f14, "peg$f14");
|
|
409
|
-
function peg$f15() {
|
|
410
|
-
return new ParsedEnvSpecStaticValue({ rawValue: text(), _location: location() });
|
|
408
|
+
function peg$f15(quote) {
|
|
409
|
+
return new ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
411
410
|
}
|
|
412
411
|
__name(peg$f15, "peg$f15");
|
|
413
412
|
function peg$f16(quote) {
|
|
@@ -419,7 +418,7 @@ function peg$parse(input, options) {
|
|
|
419
418
|
}
|
|
420
419
|
__name(peg$f17, "peg$f17");
|
|
421
420
|
function peg$f18(quote) {
|
|
422
|
-
return new ParsedEnvSpecStaticValue({ quote, rawValue: text(), _location: location() });
|
|
421
|
+
return new ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
423
422
|
}
|
|
424
423
|
__name(peg$f18, "peg$f18");
|
|
425
424
|
function peg$f19(quote) {
|
|
@@ -434,10 +433,6 @@ function peg$parse(input, options) {
|
|
|
434
433
|
return new ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
435
434
|
}
|
|
436
435
|
__name(peg$f21, "peg$f21");
|
|
437
|
-
function peg$f22(quote) {
|
|
438
|
-
return new ParsedEnvSpecStaticValue({ quote, isMultiLine: true, rawValue: text(), _location: location() });
|
|
439
|
-
}
|
|
440
|
-
__name(peg$f22, "peg$f22");
|
|
441
436
|
let peg$currPos = options.peg$currPos | 0;
|
|
442
437
|
let peg$savedPos = peg$currPos;
|
|
443
438
|
const peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
@@ -1353,7 +1348,7 @@ function peg$parse(input, options) {
|
|
|
1353
1348
|
}
|
|
1354
1349
|
__name(peg$parseDecoratorComment, "peg$parseDecoratorComment");
|
|
1355
1350
|
function peg$parseDecorator() {
|
|
1356
|
-
let s0, s1, s2, s3, s4, s5
|
|
1351
|
+
let s0, s1, s2, s3, s4, s5;
|
|
1357
1352
|
s0 = peg$currPos;
|
|
1358
1353
|
if (input.charCodeAt(peg$currPos) === 64) {
|
|
1359
1354
|
s1 = peg$c4;
|
|
@@ -1367,48 +1362,23 @@ function peg$parse(input, options) {
|
|
|
1367
1362
|
if (s1 !== peg$FAILED) {
|
|
1368
1363
|
s2 = peg$parseDecoratorName();
|
|
1369
1364
|
if (s2 !== peg$FAILED) {
|
|
1370
|
-
s3 = peg$
|
|
1371
|
-
if (input.substr(peg$currPos, 2) === peg$c6) {
|
|
1372
|
-
s4 = peg$c6;
|
|
1373
|
-
peg$currPos += 2;
|
|
1374
|
-
} else {
|
|
1375
|
-
s4 = peg$FAILED;
|
|
1376
|
-
if (peg$silentFails === 0) {
|
|
1377
|
-
peg$fail(peg$e11);
|
|
1378
|
-
}
|
|
1379
|
-
}
|
|
1380
|
-
if (s4 !== peg$FAILED) {
|
|
1381
|
-
peg$savedPos = s3;
|
|
1382
|
-
s4 = peg$f7();
|
|
1383
|
-
}
|
|
1384
|
-
s3 = s4;
|
|
1365
|
+
s3 = peg$parseFunctionArgs();
|
|
1385
1366
|
if (s3 === peg$FAILED) {
|
|
1386
1367
|
s3 = peg$currPos;
|
|
1387
|
-
if (input.charCodeAt(peg$currPos) ===
|
|
1388
|
-
s4 = peg$
|
|
1368
|
+
if (input.charCodeAt(peg$currPos) === 61) {
|
|
1369
|
+
s4 = peg$c2;
|
|
1389
1370
|
peg$currPos++;
|
|
1390
1371
|
} else {
|
|
1391
1372
|
s4 = peg$FAILED;
|
|
1392
1373
|
if (peg$silentFails === 0) {
|
|
1393
|
-
peg$fail(peg$
|
|
1374
|
+
peg$fail(peg$e2);
|
|
1394
1375
|
}
|
|
1395
1376
|
}
|
|
1396
1377
|
if (s4 !== peg$FAILED) {
|
|
1397
|
-
s5 = peg$
|
|
1398
|
-
if (s5
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
if (input.charCodeAt(peg$currPos) === 41) {
|
|
1402
|
-
s6 = peg$c8;
|
|
1403
|
-
peg$currPos++;
|
|
1404
|
-
} else {
|
|
1405
|
-
s6 = peg$FAILED;
|
|
1406
|
-
if (peg$silentFails === 0) {
|
|
1407
|
-
peg$fail(peg$e13);
|
|
1408
|
-
}
|
|
1409
|
-
}
|
|
1410
|
-
if (s6 !== peg$FAILED) {
|
|
1411
|
-
s3 = s5;
|
|
1378
|
+
s5 = peg$parseDecoratorValue();
|
|
1379
|
+
if (s5 !== peg$FAILED) {
|
|
1380
|
+
s4 = [s4, s5];
|
|
1381
|
+
s3 = s4;
|
|
1412
1382
|
} else {
|
|
1413
1383
|
peg$currPos = s3;
|
|
1414
1384
|
s3 = peg$FAILED;
|
|
@@ -1417,36 +1387,12 @@ function peg$parse(input, options) {
|
|
|
1417
1387
|
peg$currPos = s3;
|
|
1418
1388
|
s3 = peg$FAILED;
|
|
1419
1389
|
}
|
|
1420
|
-
if (s3 === peg$FAILED) {
|
|
1421
|
-
s3 = peg$currPos;
|
|
1422
|
-
if (input.charCodeAt(peg$currPos) === 61) {
|
|
1423
|
-
s4 = peg$c2;
|
|
1424
|
-
peg$currPos++;
|
|
1425
|
-
} else {
|
|
1426
|
-
s4 = peg$FAILED;
|
|
1427
|
-
if (peg$silentFails === 0) {
|
|
1428
|
-
peg$fail(peg$e2);
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
if (s4 !== peg$FAILED) {
|
|
1432
|
-
s5 = peg$parseDecoratorValue();
|
|
1433
|
-
if (s5 !== peg$FAILED) {
|
|
1434
|
-
s3 = s5;
|
|
1435
|
-
} else {
|
|
1436
|
-
peg$currPos = s3;
|
|
1437
|
-
s3 = peg$FAILED;
|
|
1438
|
-
}
|
|
1439
|
-
} else {
|
|
1440
|
-
peg$currPos = s3;
|
|
1441
|
-
s3 = peg$FAILED;
|
|
1442
|
-
}
|
|
1443
|
-
}
|
|
1444
1390
|
}
|
|
1445
1391
|
if (s3 === peg$FAILED) {
|
|
1446
1392
|
s3 = null;
|
|
1447
1393
|
}
|
|
1448
1394
|
peg$savedPos = s0;
|
|
1449
|
-
s0 = peg$
|
|
1395
|
+
s0 = peg$f7(s2, s3);
|
|
1450
1396
|
} else {
|
|
1451
1397
|
peg$currPos = s0;
|
|
1452
1398
|
s0 = peg$FAILED;
|
|
@@ -1479,7 +1425,7 @@ function peg$parse(input, options) {
|
|
|
1479
1425
|
} else {
|
|
1480
1426
|
s4 = peg$FAILED;
|
|
1481
1427
|
if (peg$silentFails === 0) {
|
|
1482
|
-
peg$fail(peg$
|
|
1428
|
+
peg$fail(peg$e11);
|
|
1483
1429
|
}
|
|
1484
1430
|
}
|
|
1485
1431
|
while (s4 !== peg$FAILED) {
|
|
@@ -1490,7 +1436,7 @@ function peg$parse(input, options) {
|
|
|
1490
1436
|
} else {
|
|
1491
1437
|
s4 = peg$FAILED;
|
|
1492
1438
|
if (peg$silentFails === 0) {
|
|
1493
|
-
peg$fail(peg$
|
|
1439
|
+
peg$fail(peg$e11);
|
|
1494
1440
|
}
|
|
1495
1441
|
}
|
|
1496
1442
|
}
|
|
@@ -1521,42 +1467,14 @@ function peg$parse(input, options) {
|
|
|
1521
1467
|
}
|
|
1522
1468
|
__name(peg$parseDecoratorValue, "peg$parseDecoratorValue");
|
|
1523
1469
|
function peg$parseFunctionCall() {
|
|
1524
|
-
let s0, s1, s2
|
|
1470
|
+
let s0, s1, s2;
|
|
1525
1471
|
s0 = peg$currPos;
|
|
1526
1472
|
s1 = peg$parseFunctionName();
|
|
1527
1473
|
if (s1 !== peg$FAILED) {
|
|
1528
|
-
|
|
1529
|
-
s2 = peg$c7;
|
|
1530
|
-
peg$currPos++;
|
|
1531
|
-
} else {
|
|
1532
|
-
s2 = peg$FAILED;
|
|
1533
|
-
if (peg$silentFails === 0) {
|
|
1534
|
-
peg$fail(peg$e12);
|
|
1535
|
-
}
|
|
1536
|
-
}
|
|
1474
|
+
s2 = peg$parseFunctionArgs();
|
|
1537
1475
|
if (s2 !== peg$FAILED) {
|
|
1538
|
-
peg$
|
|
1539
|
-
|
|
1540
|
-
if (s4 === peg$FAILED) {
|
|
1541
|
-
s4 = null;
|
|
1542
|
-
}
|
|
1543
|
-
peg$parse_();
|
|
1544
|
-
if (input.charCodeAt(peg$currPos) === 41) {
|
|
1545
|
-
s6 = peg$c8;
|
|
1546
|
-
peg$currPos++;
|
|
1547
|
-
} else {
|
|
1548
|
-
s6 = peg$FAILED;
|
|
1549
|
-
if (peg$silentFails === 0) {
|
|
1550
|
-
peg$fail(peg$e13);
|
|
1551
|
-
}
|
|
1552
|
-
}
|
|
1553
|
-
if (s6 !== peg$FAILED) {
|
|
1554
|
-
peg$savedPos = s0;
|
|
1555
|
-
s0 = peg$f9(s1, s4);
|
|
1556
|
-
} else {
|
|
1557
|
-
peg$currPos = s0;
|
|
1558
|
-
s0 = peg$FAILED;
|
|
1559
|
-
}
|
|
1476
|
+
peg$savedPos = s0;
|
|
1477
|
+
s0 = peg$f8(s1, s2);
|
|
1560
1478
|
} else {
|
|
1561
1479
|
peg$currPos = s0;
|
|
1562
1480
|
s0 = peg$FAILED;
|
|
@@ -1589,7 +1507,7 @@ function peg$parse(input, options) {
|
|
|
1589
1507
|
} else {
|
|
1590
1508
|
s4 = peg$FAILED;
|
|
1591
1509
|
if (peg$silentFails === 0) {
|
|
1592
|
-
peg$fail(peg$
|
|
1510
|
+
peg$fail(peg$e11);
|
|
1593
1511
|
}
|
|
1594
1512
|
}
|
|
1595
1513
|
while (s4 !== peg$FAILED) {
|
|
@@ -1600,7 +1518,7 @@ function peg$parse(input, options) {
|
|
|
1600
1518
|
} else {
|
|
1601
1519
|
s4 = peg$FAILED;
|
|
1602
1520
|
if (peg$silentFails === 0) {
|
|
1603
|
-
peg$fail(peg$
|
|
1521
|
+
peg$fail(peg$e11);
|
|
1604
1522
|
}
|
|
1605
1523
|
}
|
|
1606
1524
|
}
|
|
@@ -1619,118 +1537,148 @@ function peg$parse(input, options) {
|
|
|
1619
1537
|
}
|
|
1620
1538
|
__name(peg$parseFunctionName, "peg$parseFunctionName");
|
|
1621
1539
|
function peg$parseFunctionArgs() {
|
|
1622
|
-
let s0, s1,
|
|
1540
|
+
let s0, s1, s3, s4, s5, s6, s7, s8, s9;
|
|
1623
1541
|
s0 = peg$currPos;
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
if (
|
|
1630
|
-
|
|
1631
|
-
peg$currPos++;
|
|
1632
|
-
} else {
|
|
1633
|
-
s5 = peg$FAILED;
|
|
1634
|
-
if (peg$silentFails === 0) {
|
|
1635
|
-
peg$fail(peg$e2);
|
|
1636
|
-
}
|
|
1542
|
+
if (input.charCodeAt(peg$currPos) === 40) {
|
|
1543
|
+
s1 = peg$c6;
|
|
1544
|
+
peg$currPos++;
|
|
1545
|
+
} else {
|
|
1546
|
+
s1 = peg$FAILED;
|
|
1547
|
+
if (peg$silentFails === 0) {
|
|
1548
|
+
peg$fail(peg$e12);
|
|
1637
1549
|
}
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1550
|
+
}
|
|
1551
|
+
if (s1 !== peg$FAILED) {
|
|
1552
|
+
peg$parse_();
|
|
1553
|
+
s3 = peg$currPos;
|
|
1554
|
+
s4 = [];
|
|
1555
|
+
s5 = peg$currPos;
|
|
1556
|
+
s6 = peg$parseFunctionArgKeyName();
|
|
1557
|
+
if (s6 !== peg$FAILED) {
|
|
1558
|
+
if (input.charCodeAt(peg$currPos) === 61) {
|
|
1559
|
+
s7 = peg$c2;
|
|
1560
|
+
peg$currPos++;
|
|
1643
1561
|
} else {
|
|
1644
|
-
|
|
1645
|
-
|
|
1562
|
+
s7 = peg$FAILED;
|
|
1563
|
+
if (peg$silentFails === 0) {
|
|
1564
|
+
peg$fail(peg$e2);
|
|
1565
|
+
}
|
|
1566
|
+
}
|
|
1567
|
+
if (s7 !== peg$FAILED) {
|
|
1568
|
+
s8 = peg$parseFunctionArgValue();
|
|
1569
|
+
if (s8 !== peg$FAILED) {
|
|
1570
|
+
peg$savedPos = s5;
|
|
1571
|
+
s5 = peg$f9(s6, s8);
|
|
1572
|
+
} else {
|
|
1573
|
+
peg$currPos = s5;
|
|
1574
|
+
s5 = peg$FAILED;
|
|
1575
|
+
}
|
|
1576
|
+
} else {
|
|
1577
|
+
peg$currPos = s5;
|
|
1578
|
+
s5 = peg$FAILED;
|
|
1646
1579
|
}
|
|
1647
1580
|
} else {
|
|
1648
|
-
peg$currPos =
|
|
1649
|
-
|
|
1581
|
+
peg$currPos = s5;
|
|
1582
|
+
s5 = peg$FAILED;
|
|
1650
1583
|
}
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
s3 = peg$FAILED;
|
|
1654
|
-
}
|
|
1655
|
-
if (s3 === peg$FAILED) {
|
|
1656
|
-
s3 = peg$parseFunctionArgValue();
|
|
1657
|
-
}
|
|
1658
|
-
while (s3 !== peg$FAILED) {
|
|
1659
|
-
s2.push(s3);
|
|
1660
|
-
s3 = peg$currPos;
|
|
1661
|
-
s4 = peg$currPos;
|
|
1662
|
-
s5 = peg$parse_();
|
|
1663
|
-
if (input.charCodeAt(peg$currPos) === 44) {
|
|
1664
|
-
s6 = peg$c9;
|
|
1665
|
-
peg$currPos++;
|
|
1666
|
-
} else {
|
|
1667
|
-
s6 = peg$FAILED;
|
|
1668
|
-
if (peg$silentFails === 0) {
|
|
1669
|
-
peg$fail(peg$e15);
|
|
1670
|
-
}
|
|
1584
|
+
if (s5 === peg$FAILED) {
|
|
1585
|
+
s5 = peg$parseFunctionArgValue();
|
|
1671
1586
|
}
|
|
1672
|
-
|
|
1587
|
+
while (s5 !== peg$FAILED) {
|
|
1588
|
+
s4.push(s5);
|
|
1589
|
+
s5 = peg$currPos;
|
|
1590
|
+
s6 = peg$currPos;
|
|
1673
1591
|
s7 = peg$parse_();
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
s4 = peg$currPos;
|
|
1682
|
-
s5 = peg$parseFunctionArgKeyName();
|
|
1683
|
-
if (s5 !== peg$FAILED) {
|
|
1684
|
-
if (input.charCodeAt(peg$currPos) === 61) {
|
|
1685
|
-
s6 = peg$c2;
|
|
1686
|
-
peg$currPos++;
|
|
1687
|
-
} else {
|
|
1688
|
-
s6 = peg$FAILED;
|
|
1689
|
-
if (peg$silentFails === 0) {
|
|
1690
|
-
peg$fail(peg$e2);
|
|
1691
|
-
}
|
|
1592
|
+
if (input.charCodeAt(peg$currPos) === 44) {
|
|
1593
|
+
s8 = peg$c7;
|
|
1594
|
+
peg$currPos++;
|
|
1595
|
+
} else {
|
|
1596
|
+
s8 = peg$FAILED;
|
|
1597
|
+
if (peg$silentFails === 0) {
|
|
1598
|
+
peg$fail(peg$e13);
|
|
1692
1599
|
}
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1600
|
+
}
|
|
1601
|
+
if (s8 !== peg$FAILED) {
|
|
1602
|
+
s9 = peg$parse_();
|
|
1603
|
+
s7 = [s7, s8, s9];
|
|
1604
|
+
s6 = s7;
|
|
1605
|
+
} else {
|
|
1606
|
+
peg$currPos = s6;
|
|
1607
|
+
s6 = peg$FAILED;
|
|
1608
|
+
}
|
|
1609
|
+
if (s6 !== peg$FAILED) {
|
|
1610
|
+
s6 = peg$currPos;
|
|
1611
|
+
s7 = peg$parseFunctionArgKeyName();
|
|
1612
|
+
if (s7 !== peg$FAILED) {
|
|
1613
|
+
if (input.charCodeAt(peg$currPos) === 61) {
|
|
1614
|
+
s8 = peg$c2;
|
|
1615
|
+
peg$currPos++;
|
|
1698
1616
|
} else {
|
|
1699
|
-
|
|
1700
|
-
|
|
1617
|
+
s8 = peg$FAILED;
|
|
1618
|
+
if (peg$silentFails === 0) {
|
|
1619
|
+
peg$fail(peg$e2);
|
|
1620
|
+
}
|
|
1621
|
+
}
|
|
1622
|
+
if (s8 !== peg$FAILED) {
|
|
1623
|
+
s9 = peg$parseFunctionArgValue();
|
|
1624
|
+
if (s9 !== peg$FAILED) {
|
|
1625
|
+
peg$savedPos = s6;
|
|
1626
|
+
s6 = peg$f9(s7, s9);
|
|
1627
|
+
} else {
|
|
1628
|
+
peg$currPos = s6;
|
|
1629
|
+
s6 = peg$FAILED;
|
|
1630
|
+
}
|
|
1631
|
+
} else {
|
|
1632
|
+
peg$currPos = s6;
|
|
1633
|
+
s6 = peg$FAILED;
|
|
1701
1634
|
}
|
|
1702
1635
|
} else {
|
|
1703
|
-
peg$currPos =
|
|
1704
|
-
|
|
1636
|
+
peg$currPos = s6;
|
|
1637
|
+
s6 = peg$FAILED;
|
|
1638
|
+
}
|
|
1639
|
+
if (s6 === peg$FAILED) {
|
|
1640
|
+
s6 = peg$parseFunctionArgValue();
|
|
1641
|
+
}
|
|
1642
|
+
if (s6 === peg$FAILED) {
|
|
1643
|
+
peg$currPos = s5;
|
|
1644
|
+
s5 = peg$FAILED;
|
|
1645
|
+
} else {
|
|
1646
|
+
s5 = s6;
|
|
1705
1647
|
}
|
|
1706
1648
|
} else {
|
|
1707
|
-
|
|
1708
|
-
s4 = peg$FAILED;
|
|
1709
|
-
}
|
|
1710
|
-
if (s4 === peg$FAILED) {
|
|
1711
|
-
s4 = peg$parseFunctionArgValue();
|
|
1712
|
-
}
|
|
1713
|
-
if (s4 === peg$FAILED) {
|
|
1714
|
-
peg$currPos = s3;
|
|
1715
|
-
s3 = peg$FAILED;
|
|
1716
|
-
} else {
|
|
1717
|
-
s3 = s4;
|
|
1649
|
+
s5 = s6;
|
|
1718
1650
|
}
|
|
1651
|
+
}
|
|
1652
|
+
if (s4.length < 1) {
|
|
1653
|
+
peg$currPos = s3;
|
|
1654
|
+
s3 = peg$FAILED;
|
|
1719
1655
|
} else {
|
|
1720
1656
|
s3 = s4;
|
|
1721
1657
|
}
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1658
|
+
if (s3 === peg$FAILED) {
|
|
1659
|
+
s3 = null;
|
|
1660
|
+
}
|
|
1661
|
+
s4 = peg$parse_();
|
|
1662
|
+
if (input.charCodeAt(peg$currPos) === 41) {
|
|
1663
|
+
s5 = peg$c8;
|
|
1664
|
+
peg$currPos++;
|
|
1665
|
+
} else {
|
|
1666
|
+
s5 = peg$FAILED;
|
|
1667
|
+
if (peg$silentFails === 0) {
|
|
1668
|
+
peg$fail(peg$e14);
|
|
1669
|
+
}
|
|
1670
|
+
}
|
|
1671
|
+
if (s5 !== peg$FAILED) {
|
|
1672
|
+
peg$savedPos = s0;
|
|
1673
|
+
s0 = peg$f10(s3);
|
|
1674
|
+
} else {
|
|
1675
|
+
peg$currPos = s0;
|
|
1676
|
+
s0 = peg$FAILED;
|
|
1677
|
+
}
|
|
1726
1678
|
} else {
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
if (s1 !== peg$FAILED) {
|
|
1730
|
-
peg$savedPos = s0;
|
|
1731
|
-
s1 = peg$f11(s1);
|
|
1679
|
+
peg$currPos = s0;
|
|
1680
|
+
s0 = peg$FAILED;
|
|
1732
1681
|
}
|
|
1733
|
-
s0 = s1;
|
|
1734
1682
|
return s0;
|
|
1735
1683
|
}
|
|
1736
1684
|
__name(peg$parseFunctionArgs, "peg$parseFunctionArgs");
|
|
@@ -1755,7 +1703,7 @@ function peg$parse(input, options) {
|
|
|
1755
1703
|
} else {
|
|
1756
1704
|
s4 = peg$FAILED;
|
|
1757
1705
|
if (peg$silentFails === 0) {
|
|
1758
|
-
peg$fail(peg$
|
|
1706
|
+
peg$fail(peg$e11);
|
|
1759
1707
|
}
|
|
1760
1708
|
}
|
|
1761
1709
|
while (s4 !== peg$FAILED) {
|
|
@@ -1766,7 +1714,7 @@ function peg$parse(input, options) {
|
|
|
1766
1714
|
} else {
|
|
1767
1715
|
s4 = peg$FAILED;
|
|
1768
1716
|
if (peg$silentFails === 0) {
|
|
1769
|
-
peg$fail(peg$
|
|
1717
|
+
peg$fail(peg$e11);
|
|
1770
1718
|
}
|
|
1771
1719
|
}
|
|
1772
1720
|
}
|
|
@@ -1799,7 +1747,7 @@ function peg$parse(input, options) {
|
|
|
1799
1747
|
} else {
|
|
1800
1748
|
s3 = peg$FAILED;
|
|
1801
1749
|
if (peg$silentFails === 0) {
|
|
1802
|
-
peg$fail(peg$
|
|
1750
|
+
peg$fail(peg$e15);
|
|
1803
1751
|
}
|
|
1804
1752
|
}
|
|
1805
1753
|
if (s3 !== peg$FAILED) {
|
|
@@ -1811,7 +1759,7 @@ function peg$parse(input, options) {
|
|
|
1811
1759
|
} else {
|
|
1812
1760
|
s3 = peg$FAILED;
|
|
1813
1761
|
if (peg$silentFails === 0) {
|
|
1814
|
-
peg$fail(peg$
|
|
1762
|
+
peg$fail(peg$e15);
|
|
1815
1763
|
}
|
|
1816
1764
|
}
|
|
1817
1765
|
}
|
|
@@ -1825,7 +1773,7 @@ function peg$parse(input, options) {
|
|
|
1825
1773
|
}
|
|
1826
1774
|
if (s1 !== peg$FAILED) {
|
|
1827
1775
|
peg$savedPos = s0;
|
|
1828
|
-
s1 = peg$
|
|
1776
|
+
s1 = peg$f11();
|
|
1829
1777
|
}
|
|
1830
1778
|
s0 = s1;
|
|
1831
1779
|
}
|
|
@@ -1859,7 +1807,7 @@ function peg$parse(input, options) {
|
|
|
1859
1807
|
} else {
|
|
1860
1808
|
s7 = peg$FAILED;
|
|
1861
1809
|
if (peg$silentFails === 0) {
|
|
1862
|
-
peg$fail(peg$
|
|
1810
|
+
peg$fail(peg$e16);
|
|
1863
1811
|
}
|
|
1864
1812
|
}
|
|
1865
1813
|
while (s7 !== peg$FAILED) {
|
|
@@ -1870,7 +1818,7 @@ function peg$parse(input, options) {
|
|
|
1870
1818
|
} else {
|
|
1871
1819
|
s7 = peg$FAILED;
|
|
1872
1820
|
if (peg$silentFails === 0) {
|
|
1873
|
-
peg$fail(peg$
|
|
1821
|
+
peg$fail(peg$e16);
|
|
1874
1822
|
}
|
|
1875
1823
|
}
|
|
1876
1824
|
}
|
|
@@ -1918,7 +1866,7 @@ function peg$parse(input, options) {
|
|
|
1918
1866
|
s4 = peg$parse_n();
|
|
1919
1867
|
if (s4 !== peg$FAILED) {
|
|
1920
1868
|
peg$savedPos = s0;
|
|
1921
|
-
s0 = peg$
|
|
1869
|
+
s0 = peg$f12(s2, s3);
|
|
1922
1870
|
} else {
|
|
1923
1871
|
peg$currPos = s0;
|
|
1924
1872
|
s0 = peg$FAILED;
|
|
@@ -1948,7 +1896,7 @@ function peg$parse(input, options) {
|
|
|
1948
1896
|
} else {
|
|
1949
1897
|
s5 = peg$FAILED;
|
|
1950
1898
|
if (peg$silentFails === 0) {
|
|
1951
|
-
peg$fail(peg$
|
|
1899
|
+
peg$fail(peg$e17);
|
|
1952
1900
|
}
|
|
1953
1901
|
}
|
|
1954
1902
|
peg$silentFails--;
|
|
@@ -1966,7 +1914,7 @@ function peg$parse(input, options) {
|
|
|
1966
1914
|
} else {
|
|
1967
1915
|
s6 = peg$FAILED;
|
|
1968
1916
|
if (peg$silentFails === 0) {
|
|
1969
|
-
peg$fail(peg$
|
|
1917
|
+
peg$fail(peg$e18);
|
|
1970
1918
|
}
|
|
1971
1919
|
}
|
|
1972
1920
|
if (s6 !== peg$FAILED) {
|
|
@@ -1978,7 +1926,7 @@ function peg$parse(input, options) {
|
|
|
1978
1926
|
} else {
|
|
1979
1927
|
s6 = peg$FAILED;
|
|
1980
1928
|
if (peg$silentFails === 0) {
|
|
1981
|
-
peg$fail(peg$
|
|
1929
|
+
peg$fail(peg$e18);
|
|
1982
1930
|
}
|
|
1983
1931
|
}
|
|
1984
1932
|
}
|
|
@@ -2003,7 +1951,7 @@ function peg$parse(input, options) {
|
|
|
2003
1951
|
}
|
|
2004
1952
|
if (s1 !== peg$FAILED) {
|
|
2005
1953
|
peg$savedPos = s0;
|
|
2006
|
-
s1 = peg$
|
|
1954
|
+
s1 = peg$f13();
|
|
2007
1955
|
}
|
|
2008
1956
|
s0 = s1;
|
|
2009
1957
|
return s0;
|
|
@@ -2022,7 +1970,7 @@ function peg$parse(input, options) {
|
|
|
2022
1970
|
} else {
|
|
2023
1971
|
s4 = peg$FAILED;
|
|
2024
1972
|
if (peg$silentFails === 0) {
|
|
2025
|
-
peg$fail(peg$
|
|
1973
|
+
peg$fail(peg$e17);
|
|
2026
1974
|
}
|
|
2027
1975
|
}
|
|
2028
1976
|
peg$silentFails--;
|
|
@@ -2040,7 +1988,7 @@ function peg$parse(input, options) {
|
|
|
2040
1988
|
} else {
|
|
2041
1989
|
s5 = peg$FAILED;
|
|
2042
1990
|
if (peg$silentFails === 0) {
|
|
2043
|
-
peg$fail(peg$
|
|
1991
|
+
peg$fail(peg$e19);
|
|
2044
1992
|
}
|
|
2045
1993
|
}
|
|
2046
1994
|
if (s5 !== peg$FAILED) {
|
|
@@ -2052,7 +2000,7 @@ function peg$parse(input, options) {
|
|
|
2052
2000
|
} else {
|
|
2053
2001
|
s5 = peg$FAILED;
|
|
2054
2002
|
if (peg$silentFails === 0) {
|
|
2055
|
-
peg$fail(peg$
|
|
2003
|
+
peg$fail(peg$e19);
|
|
2056
2004
|
}
|
|
2057
2005
|
}
|
|
2058
2006
|
}
|
|
@@ -2077,7 +2025,7 @@ function peg$parse(input, options) {
|
|
|
2077
2025
|
}
|
|
2078
2026
|
if (s1 !== peg$FAILED) {
|
|
2079
2027
|
peg$savedPos = s0;
|
|
2080
|
-
s1 = peg$
|
|
2028
|
+
s1 = peg$f14();
|
|
2081
2029
|
}
|
|
2082
2030
|
s0 = s1;
|
|
2083
2031
|
return s0;
|
|
@@ -2104,18 +2052,18 @@ function peg$parse(input, options) {
|
|
|
2104
2052
|
} else {
|
|
2105
2053
|
s1 = peg$FAILED;
|
|
2106
2054
|
if (peg$silentFails === 0) {
|
|
2107
|
-
peg$fail(peg$
|
|
2055
|
+
peg$fail(peg$e20);
|
|
2108
2056
|
}
|
|
2109
2057
|
}
|
|
2110
2058
|
if (s1 !== peg$FAILED) {
|
|
2111
2059
|
s2 = [];
|
|
2112
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2113
|
-
s3 = peg$
|
|
2060
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
2061
|
+
s3 = peg$c9;
|
|
2114
2062
|
peg$currPos += 2;
|
|
2115
2063
|
} else {
|
|
2116
2064
|
s3 = peg$FAILED;
|
|
2117
2065
|
if (peg$silentFails === 0) {
|
|
2118
|
-
peg$fail(peg$
|
|
2066
|
+
peg$fail(peg$e21);
|
|
2119
2067
|
}
|
|
2120
2068
|
}
|
|
2121
2069
|
if (s3 === peg$FAILED) {
|
|
@@ -2125,19 +2073,19 @@ function peg$parse(input, options) {
|
|
|
2125
2073
|
} else {
|
|
2126
2074
|
s3 = peg$FAILED;
|
|
2127
2075
|
if (peg$silentFails === 0) {
|
|
2128
|
-
peg$fail(peg$
|
|
2076
|
+
peg$fail(peg$e22);
|
|
2129
2077
|
}
|
|
2130
2078
|
}
|
|
2131
2079
|
}
|
|
2132
2080
|
while (s3 !== peg$FAILED) {
|
|
2133
2081
|
s2.push(s3);
|
|
2134
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2135
|
-
s3 = peg$
|
|
2082
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
2083
|
+
s3 = peg$c9;
|
|
2136
2084
|
peg$currPos += 2;
|
|
2137
2085
|
} else {
|
|
2138
2086
|
s3 = peg$FAILED;
|
|
2139
2087
|
if (peg$silentFails === 0) {
|
|
2140
|
-
peg$fail(peg$
|
|
2088
|
+
peg$fail(peg$e21);
|
|
2141
2089
|
}
|
|
2142
2090
|
}
|
|
2143
2091
|
if (s3 === peg$FAILED) {
|
|
@@ -2147,7 +2095,7 @@ function peg$parse(input, options) {
|
|
|
2147
2095
|
} else {
|
|
2148
2096
|
s3 = peg$FAILED;
|
|
2149
2097
|
if (peg$silentFails === 0) {
|
|
2150
|
-
peg$fail(peg$
|
|
2098
|
+
peg$fail(peg$e22);
|
|
2151
2099
|
}
|
|
2152
2100
|
}
|
|
2153
2101
|
}
|
|
@@ -2158,12 +2106,12 @@ function peg$parse(input, options) {
|
|
|
2158
2106
|
} else {
|
|
2159
2107
|
s3 = peg$FAILED;
|
|
2160
2108
|
if (peg$silentFails === 0) {
|
|
2161
|
-
peg$fail(peg$
|
|
2109
|
+
peg$fail(peg$e20);
|
|
2162
2110
|
}
|
|
2163
2111
|
}
|
|
2164
2112
|
if (s3 !== peg$FAILED) {
|
|
2165
2113
|
peg$savedPos = s0;
|
|
2166
|
-
s0 = peg$
|
|
2114
|
+
s0 = peg$f15(s1);
|
|
2167
2115
|
} else {
|
|
2168
2116
|
peg$currPos = s0;
|
|
2169
2117
|
s0 = peg$FAILED;
|
|
@@ -2184,18 +2132,18 @@ function peg$parse(input, options) {
|
|
|
2184
2132
|
} else {
|
|
2185
2133
|
s1 = peg$FAILED;
|
|
2186
2134
|
if (peg$silentFails === 0) {
|
|
2187
|
-
peg$fail(peg$
|
|
2135
|
+
peg$fail(peg$e23);
|
|
2188
2136
|
}
|
|
2189
2137
|
}
|
|
2190
2138
|
if (s1 !== peg$FAILED) {
|
|
2191
2139
|
s2 = [];
|
|
2192
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2193
|
-
s3 = peg$
|
|
2140
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
2141
|
+
s3 = peg$c10;
|
|
2194
2142
|
peg$currPos += 2;
|
|
2195
2143
|
} else {
|
|
2196
2144
|
s3 = peg$FAILED;
|
|
2197
2145
|
if (peg$silentFails === 0) {
|
|
2198
|
-
peg$fail(peg$
|
|
2146
|
+
peg$fail(peg$e24);
|
|
2199
2147
|
}
|
|
2200
2148
|
}
|
|
2201
2149
|
if (s3 === peg$FAILED) {
|
|
@@ -2205,19 +2153,19 @@ function peg$parse(input, options) {
|
|
|
2205
2153
|
} else {
|
|
2206
2154
|
s3 = peg$FAILED;
|
|
2207
2155
|
if (peg$silentFails === 0) {
|
|
2208
|
-
peg$fail(peg$
|
|
2156
|
+
peg$fail(peg$e25);
|
|
2209
2157
|
}
|
|
2210
2158
|
}
|
|
2211
2159
|
}
|
|
2212
2160
|
while (s3 !== peg$FAILED) {
|
|
2213
2161
|
s2.push(s3);
|
|
2214
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2215
|
-
s3 = peg$
|
|
2162
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
2163
|
+
s3 = peg$c10;
|
|
2216
2164
|
peg$currPos += 2;
|
|
2217
2165
|
} else {
|
|
2218
2166
|
s3 = peg$FAILED;
|
|
2219
2167
|
if (peg$silentFails === 0) {
|
|
2220
|
-
peg$fail(peg$
|
|
2168
|
+
peg$fail(peg$e24);
|
|
2221
2169
|
}
|
|
2222
2170
|
}
|
|
2223
2171
|
if (s3 === peg$FAILED) {
|
|
@@ -2227,7 +2175,7 @@ function peg$parse(input, options) {
|
|
|
2227
2175
|
} else {
|
|
2228
2176
|
s3 = peg$FAILED;
|
|
2229
2177
|
if (peg$silentFails === 0) {
|
|
2230
|
-
peg$fail(peg$
|
|
2178
|
+
peg$fail(peg$e25);
|
|
2231
2179
|
}
|
|
2232
2180
|
}
|
|
2233
2181
|
}
|
|
@@ -2238,12 +2186,12 @@ function peg$parse(input, options) {
|
|
|
2238
2186
|
} else {
|
|
2239
2187
|
s3 = peg$FAILED;
|
|
2240
2188
|
if (peg$silentFails === 0) {
|
|
2241
|
-
peg$fail(peg$
|
|
2189
|
+
peg$fail(peg$e23);
|
|
2242
2190
|
}
|
|
2243
2191
|
}
|
|
2244
2192
|
if (s3 !== peg$FAILED) {
|
|
2245
2193
|
peg$savedPos = s0;
|
|
2246
|
-
s0 = peg$
|
|
2194
|
+
s0 = peg$f16(s1);
|
|
2247
2195
|
} else {
|
|
2248
2196
|
peg$currPos = s0;
|
|
2249
2197
|
s0 = peg$FAILED;
|
|
@@ -2264,18 +2212,18 @@ function peg$parse(input, options) {
|
|
|
2264
2212
|
} else {
|
|
2265
2213
|
s1 = peg$FAILED;
|
|
2266
2214
|
if (peg$silentFails === 0) {
|
|
2267
|
-
peg$fail(peg$
|
|
2215
|
+
peg$fail(peg$e26);
|
|
2268
2216
|
}
|
|
2269
2217
|
}
|
|
2270
2218
|
if (s1 !== peg$FAILED) {
|
|
2271
2219
|
s2 = [];
|
|
2272
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2273
|
-
s3 = peg$
|
|
2220
|
+
if (input.substr(peg$currPos, 2) === peg$c11) {
|
|
2221
|
+
s3 = peg$c11;
|
|
2274
2222
|
peg$currPos += 2;
|
|
2275
2223
|
} else {
|
|
2276
2224
|
s3 = peg$FAILED;
|
|
2277
2225
|
if (peg$silentFails === 0) {
|
|
2278
|
-
peg$fail(peg$
|
|
2226
|
+
peg$fail(peg$e27);
|
|
2279
2227
|
}
|
|
2280
2228
|
}
|
|
2281
2229
|
if (s3 === peg$FAILED) {
|
|
@@ -2285,19 +2233,19 @@ function peg$parse(input, options) {
|
|
|
2285
2233
|
} else {
|
|
2286
2234
|
s3 = peg$FAILED;
|
|
2287
2235
|
if (peg$silentFails === 0) {
|
|
2288
|
-
peg$fail(peg$
|
|
2236
|
+
peg$fail(peg$e28);
|
|
2289
2237
|
}
|
|
2290
2238
|
}
|
|
2291
2239
|
}
|
|
2292
2240
|
while (s3 !== peg$FAILED) {
|
|
2293
2241
|
s2.push(s3);
|
|
2294
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2295
|
-
s3 = peg$
|
|
2242
|
+
if (input.substr(peg$currPos, 2) === peg$c11) {
|
|
2243
|
+
s3 = peg$c11;
|
|
2296
2244
|
peg$currPos += 2;
|
|
2297
2245
|
} else {
|
|
2298
2246
|
s3 = peg$FAILED;
|
|
2299
2247
|
if (peg$silentFails === 0) {
|
|
2300
|
-
peg$fail(peg$
|
|
2248
|
+
peg$fail(peg$e27);
|
|
2301
2249
|
}
|
|
2302
2250
|
}
|
|
2303
2251
|
if (s3 === peg$FAILED) {
|
|
@@ -2307,7 +2255,7 @@ function peg$parse(input, options) {
|
|
|
2307
2255
|
} else {
|
|
2308
2256
|
s3 = peg$FAILED;
|
|
2309
2257
|
if (peg$silentFails === 0) {
|
|
2310
|
-
peg$fail(peg$
|
|
2258
|
+
peg$fail(peg$e28);
|
|
2311
2259
|
}
|
|
2312
2260
|
}
|
|
2313
2261
|
}
|
|
@@ -2318,12 +2266,12 @@ function peg$parse(input, options) {
|
|
|
2318
2266
|
} else {
|
|
2319
2267
|
s3 = peg$FAILED;
|
|
2320
2268
|
if (peg$silentFails === 0) {
|
|
2321
|
-
peg$fail(peg$
|
|
2269
|
+
peg$fail(peg$e26);
|
|
2322
2270
|
}
|
|
2323
2271
|
}
|
|
2324
2272
|
if (s3 !== peg$FAILED) {
|
|
2325
2273
|
peg$savedPos = s0;
|
|
2326
|
-
s0 = peg$
|
|
2274
|
+
s0 = peg$f17(s1);
|
|
2327
2275
|
} else {
|
|
2328
2276
|
peg$currPos = s0;
|
|
2329
2277
|
s0 = peg$FAILED;
|
|
@@ -2359,20 +2307,20 @@ function peg$parse(input, options) {
|
|
|
2359
2307
|
} else {
|
|
2360
2308
|
s1 = peg$FAILED;
|
|
2361
2309
|
if (peg$silentFails === 0) {
|
|
2362
|
-
peg$fail(peg$
|
|
2310
|
+
peg$fail(peg$e23);
|
|
2363
2311
|
}
|
|
2364
2312
|
}
|
|
2365
2313
|
if (s1 !== peg$FAILED) {
|
|
2366
2314
|
s2 = [];
|
|
2367
2315
|
s3 = peg$currPos;
|
|
2368
2316
|
s4 = [];
|
|
2369
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2370
|
-
s5 = peg$
|
|
2317
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
2318
|
+
s5 = peg$c10;
|
|
2371
2319
|
peg$currPos += 2;
|
|
2372
2320
|
} else {
|
|
2373
2321
|
s5 = peg$FAILED;
|
|
2374
2322
|
if (peg$silentFails === 0) {
|
|
2375
|
-
peg$fail(peg$
|
|
2323
|
+
peg$fail(peg$e24);
|
|
2376
2324
|
}
|
|
2377
2325
|
}
|
|
2378
2326
|
if (s5 === peg$FAILED) {
|
|
@@ -2382,19 +2330,19 @@ function peg$parse(input, options) {
|
|
|
2382
2330
|
} else {
|
|
2383
2331
|
s5 = peg$FAILED;
|
|
2384
2332
|
if (peg$silentFails === 0) {
|
|
2385
|
-
peg$fail(peg$
|
|
2333
|
+
peg$fail(peg$e25);
|
|
2386
2334
|
}
|
|
2387
2335
|
}
|
|
2388
2336
|
}
|
|
2389
2337
|
while (s5 !== peg$FAILED) {
|
|
2390
2338
|
s4.push(s5);
|
|
2391
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2392
|
-
s5 = peg$
|
|
2339
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
2340
|
+
s5 = peg$c10;
|
|
2393
2341
|
peg$currPos += 2;
|
|
2394
2342
|
} else {
|
|
2395
2343
|
s5 = peg$FAILED;
|
|
2396
2344
|
if (peg$silentFails === 0) {
|
|
2397
|
-
peg$fail(peg$
|
|
2345
|
+
peg$fail(peg$e24);
|
|
2398
2346
|
}
|
|
2399
2347
|
}
|
|
2400
2348
|
if (s5 === peg$FAILED) {
|
|
@@ -2404,7 +2352,7 @@ function peg$parse(input, options) {
|
|
|
2404
2352
|
} else {
|
|
2405
2353
|
s5 = peg$FAILED;
|
|
2406
2354
|
if (peg$silentFails === 0) {
|
|
2407
|
-
peg$fail(peg$
|
|
2355
|
+
peg$fail(peg$e25);
|
|
2408
2356
|
}
|
|
2409
2357
|
}
|
|
2410
2358
|
}
|
|
@@ -2430,13 +2378,13 @@ function peg$parse(input, options) {
|
|
|
2430
2378
|
s2.push(s3);
|
|
2431
2379
|
s3 = peg$currPos;
|
|
2432
2380
|
s4 = [];
|
|
2433
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2434
|
-
s5 = peg$
|
|
2381
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
2382
|
+
s5 = peg$c10;
|
|
2435
2383
|
peg$currPos += 2;
|
|
2436
2384
|
} else {
|
|
2437
2385
|
s5 = peg$FAILED;
|
|
2438
2386
|
if (peg$silentFails === 0) {
|
|
2439
|
-
peg$fail(peg$
|
|
2387
|
+
peg$fail(peg$e24);
|
|
2440
2388
|
}
|
|
2441
2389
|
}
|
|
2442
2390
|
if (s5 === peg$FAILED) {
|
|
@@ -2446,19 +2394,19 @@ function peg$parse(input, options) {
|
|
|
2446
2394
|
} else {
|
|
2447
2395
|
s5 = peg$FAILED;
|
|
2448
2396
|
if (peg$silentFails === 0) {
|
|
2449
|
-
peg$fail(peg$
|
|
2397
|
+
peg$fail(peg$e25);
|
|
2450
2398
|
}
|
|
2451
2399
|
}
|
|
2452
2400
|
}
|
|
2453
2401
|
while (s5 !== peg$FAILED) {
|
|
2454
2402
|
s4.push(s5);
|
|
2455
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2456
|
-
s5 = peg$
|
|
2403
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
2404
|
+
s5 = peg$c10;
|
|
2457
2405
|
peg$currPos += 2;
|
|
2458
2406
|
} else {
|
|
2459
2407
|
s5 = peg$FAILED;
|
|
2460
2408
|
if (peg$silentFails === 0) {
|
|
2461
|
-
peg$fail(peg$
|
|
2409
|
+
peg$fail(peg$e24);
|
|
2462
2410
|
}
|
|
2463
2411
|
}
|
|
2464
2412
|
if (s5 === peg$FAILED) {
|
|
@@ -2468,7 +2416,7 @@ function peg$parse(input, options) {
|
|
|
2468
2416
|
} else {
|
|
2469
2417
|
s5 = peg$FAILED;
|
|
2470
2418
|
if (peg$silentFails === 0) {
|
|
2471
|
-
peg$fail(peg$
|
|
2419
|
+
peg$fail(peg$e25);
|
|
2472
2420
|
}
|
|
2473
2421
|
}
|
|
2474
2422
|
}
|
|
@@ -2495,13 +2443,13 @@ function peg$parse(input, options) {
|
|
|
2495
2443
|
}
|
|
2496
2444
|
if (s2 !== peg$FAILED) {
|
|
2497
2445
|
s3 = [];
|
|
2498
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2499
|
-
s4 = peg$
|
|
2446
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
2447
|
+
s4 = peg$c10;
|
|
2500
2448
|
peg$currPos += 2;
|
|
2501
2449
|
} else {
|
|
2502
2450
|
s4 = peg$FAILED;
|
|
2503
2451
|
if (peg$silentFails === 0) {
|
|
2504
|
-
peg$fail(peg$
|
|
2452
|
+
peg$fail(peg$e24);
|
|
2505
2453
|
}
|
|
2506
2454
|
}
|
|
2507
2455
|
if (s4 === peg$FAILED) {
|
|
@@ -2511,19 +2459,19 @@ function peg$parse(input, options) {
|
|
|
2511
2459
|
} else {
|
|
2512
2460
|
s4 = peg$FAILED;
|
|
2513
2461
|
if (peg$silentFails === 0) {
|
|
2514
|
-
peg$fail(peg$
|
|
2462
|
+
peg$fail(peg$e25);
|
|
2515
2463
|
}
|
|
2516
2464
|
}
|
|
2517
2465
|
}
|
|
2518
2466
|
while (s4 !== peg$FAILED) {
|
|
2519
2467
|
s3.push(s4);
|
|
2520
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2521
|
-
s4 = peg$
|
|
2468
|
+
if (input.substr(peg$currPos, 2) === peg$c10) {
|
|
2469
|
+
s4 = peg$c10;
|
|
2522
2470
|
peg$currPos += 2;
|
|
2523
2471
|
} else {
|
|
2524
2472
|
s4 = peg$FAILED;
|
|
2525
2473
|
if (peg$silentFails === 0) {
|
|
2526
|
-
peg$fail(peg$
|
|
2474
|
+
peg$fail(peg$e24);
|
|
2527
2475
|
}
|
|
2528
2476
|
}
|
|
2529
2477
|
if (s4 === peg$FAILED) {
|
|
@@ -2533,7 +2481,7 @@ function peg$parse(input, options) {
|
|
|
2533
2481
|
} else {
|
|
2534
2482
|
s4 = peg$FAILED;
|
|
2535
2483
|
if (peg$silentFails === 0) {
|
|
2536
|
-
peg$fail(peg$
|
|
2484
|
+
peg$fail(peg$e25);
|
|
2537
2485
|
}
|
|
2538
2486
|
}
|
|
2539
2487
|
}
|
|
@@ -2544,12 +2492,12 @@ function peg$parse(input, options) {
|
|
|
2544
2492
|
} else {
|
|
2545
2493
|
s4 = peg$FAILED;
|
|
2546
2494
|
if (peg$silentFails === 0) {
|
|
2547
|
-
peg$fail(peg$
|
|
2495
|
+
peg$fail(peg$e23);
|
|
2548
2496
|
}
|
|
2549
2497
|
}
|
|
2550
2498
|
if (s4 !== peg$FAILED) {
|
|
2551
2499
|
peg$savedPos = s0;
|
|
2552
|
-
s0 = peg$
|
|
2500
|
+
s0 = peg$f18(s1);
|
|
2553
2501
|
} else {
|
|
2554
2502
|
peg$currPos = s0;
|
|
2555
2503
|
s0 = peg$FAILED;
|
|
@@ -2574,20 +2522,20 @@ function peg$parse(input, options) {
|
|
|
2574
2522
|
} else {
|
|
2575
2523
|
s1 = peg$FAILED;
|
|
2576
2524
|
if (peg$silentFails === 0) {
|
|
2577
|
-
peg$fail(peg$
|
|
2525
|
+
peg$fail(peg$e20);
|
|
2578
2526
|
}
|
|
2579
2527
|
}
|
|
2580
2528
|
if (s1 !== peg$FAILED) {
|
|
2581
2529
|
s2 = [];
|
|
2582
2530
|
s3 = peg$currPos;
|
|
2583
2531
|
s4 = [];
|
|
2584
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2585
|
-
s5 = peg$
|
|
2532
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
2533
|
+
s5 = peg$c9;
|
|
2586
2534
|
peg$currPos += 2;
|
|
2587
2535
|
} else {
|
|
2588
2536
|
s5 = peg$FAILED;
|
|
2589
2537
|
if (peg$silentFails === 0) {
|
|
2590
|
-
peg$fail(peg$
|
|
2538
|
+
peg$fail(peg$e21);
|
|
2591
2539
|
}
|
|
2592
2540
|
}
|
|
2593
2541
|
if (s5 === peg$FAILED) {
|
|
@@ -2597,19 +2545,19 @@ function peg$parse(input, options) {
|
|
|
2597
2545
|
} else {
|
|
2598
2546
|
s5 = peg$FAILED;
|
|
2599
2547
|
if (peg$silentFails === 0) {
|
|
2600
|
-
peg$fail(peg$
|
|
2548
|
+
peg$fail(peg$e22);
|
|
2601
2549
|
}
|
|
2602
2550
|
}
|
|
2603
2551
|
}
|
|
2604
2552
|
while (s5 !== peg$FAILED) {
|
|
2605
2553
|
s4.push(s5);
|
|
2606
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2607
|
-
s5 = peg$
|
|
2554
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
2555
|
+
s5 = peg$c9;
|
|
2608
2556
|
peg$currPos += 2;
|
|
2609
2557
|
} else {
|
|
2610
2558
|
s5 = peg$FAILED;
|
|
2611
2559
|
if (peg$silentFails === 0) {
|
|
2612
|
-
peg$fail(peg$
|
|
2560
|
+
peg$fail(peg$e21);
|
|
2613
2561
|
}
|
|
2614
2562
|
}
|
|
2615
2563
|
if (s5 === peg$FAILED) {
|
|
@@ -2619,7 +2567,7 @@ function peg$parse(input, options) {
|
|
|
2619
2567
|
} else {
|
|
2620
2568
|
s5 = peg$FAILED;
|
|
2621
2569
|
if (peg$silentFails === 0) {
|
|
2622
|
-
peg$fail(peg$
|
|
2570
|
+
peg$fail(peg$e22);
|
|
2623
2571
|
}
|
|
2624
2572
|
}
|
|
2625
2573
|
}
|
|
@@ -2645,13 +2593,13 @@ function peg$parse(input, options) {
|
|
|
2645
2593
|
s2.push(s3);
|
|
2646
2594
|
s3 = peg$currPos;
|
|
2647
2595
|
s4 = [];
|
|
2648
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2649
|
-
s5 = peg$
|
|
2596
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
2597
|
+
s5 = peg$c9;
|
|
2650
2598
|
peg$currPos += 2;
|
|
2651
2599
|
} else {
|
|
2652
2600
|
s5 = peg$FAILED;
|
|
2653
2601
|
if (peg$silentFails === 0) {
|
|
2654
|
-
peg$fail(peg$
|
|
2602
|
+
peg$fail(peg$e21);
|
|
2655
2603
|
}
|
|
2656
2604
|
}
|
|
2657
2605
|
if (s5 === peg$FAILED) {
|
|
@@ -2661,19 +2609,19 @@ function peg$parse(input, options) {
|
|
|
2661
2609
|
} else {
|
|
2662
2610
|
s5 = peg$FAILED;
|
|
2663
2611
|
if (peg$silentFails === 0) {
|
|
2664
|
-
peg$fail(peg$
|
|
2612
|
+
peg$fail(peg$e22);
|
|
2665
2613
|
}
|
|
2666
2614
|
}
|
|
2667
2615
|
}
|
|
2668
2616
|
while (s5 !== peg$FAILED) {
|
|
2669
2617
|
s4.push(s5);
|
|
2670
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2671
|
-
s5 = peg$
|
|
2618
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
2619
|
+
s5 = peg$c9;
|
|
2672
2620
|
peg$currPos += 2;
|
|
2673
2621
|
} else {
|
|
2674
2622
|
s5 = peg$FAILED;
|
|
2675
2623
|
if (peg$silentFails === 0) {
|
|
2676
|
-
peg$fail(peg$
|
|
2624
|
+
peg$fail(peg$e21);
|
|
2677
2625
|
}
|
|
2678
2626
|
}
|
|
2679
2627
|
if (s5 === peg$FAILED) {
|
|
@@ -2683,7 +2631,7 @@ function peg$parse(input, options) {
|
|
|
2683
2631
|
} else {
|
|
2684
2632
|
s5 = peg$FAILED;
|
|
2685
2633
|
if (peg$silentFails === 0) {
|
|
2686
|
-
peg$fail(peg$
|
|
2634
|
+
peg$fail(peg$e22);
|
|
2687
2635
|
}
|
|
2688
2636
|
}
|
|
2689
2637
|
}
|
|
@@ -2710,13 +2658,13 @@ function peg$parse(input, options) {
|
|
|
2710
2658
|
}
|
|
2711
2659
|
if (s2 !== peg$FAILED) {
|
|
2712
2660
|
s3 = [];
|
|
2713
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2714
|
-
s4 = peg$
|
|
2661
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
2662
|
+
s4 = peg$c9;
|
|
2715
2663
|
peg$currPos += 2;
|
|
2716
2664
|
} else {
|
|
2717
2665
|
s4 = peg$FAILED;
|
|
2718
2666
|
if (peg$silentFails === 0) {
|
|
2719
|
-
peg$fail(peg$
|
|
2667
|
+
peg$fail(peg$e21);
|
|
2720
2668
|
}
|
|
2721
2669
|
}
|
|
2722
2670
|
if (s4 === peg$FAILED) {
|
|
@@ -2726,19 +2674,19 @@ function peg$parse(input, options) {
|
|
|
2726
2674
|
} else {
|
|
2727
2675
|
s4 = peg$FAILED;
|
|
2728
2676
|
if (peg$silentFails === 0) {
|
|
2729
|
-
peg$fail(peg$
|
|
2677
|
+
peg$fail(peg$e22);
|
|
2730
2678
|
}
|
|
2731
2679
|
}
|
|
2732
2680
|
}
|
|
2733
2681
|
while (s4 !== peg$FAILED) {
|
|
2734
2682
|
s3.push(s4);
|
|
2735
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2736
|
-
s4 = peg$
|
|
2683
|
+
if (input.substr(peg$currPos, 2) === peg$c9) {
|
|
2684
|
+
s4 = peg$c9;
|
|
2737
2685
|
peg$currPos += 2;
|
|
2738
2686
|
} else {
|
|
2739
2687
|
s4 = peg$FAILED;
|
|
2740
2688
|
if (peg$silentFails === 0) {
|
|
2741
|
-
peg$fail(peg$
|
|
2689
|
+
peg$fail(peg$e21);
|
|
2742
2690
|
}
|
|
2743
2691
|
}
|
|
2744
2692
|
if (s4 === peg$FAILED) {
|
|
@@ -2748,7 +2696,7 @@ function peg$parse(input, options) {
|
|
|
2748
2696
|
} else {
|
|
2749
2697
|
s4 = peg$FAILED;
|
|
2750
2698
|
if (peg$silentFails === 0) {
|
|
2751
|
-
peg$fail(peg$
|
|
2699
|
+
peg$fail(peg$e22);
|
|
2752
2700
|
}
|
|
2753
2701
|
}
|
|
2754
2702
|
}
|
|
@@ -2759,12 +2707,12 @@ function peg$parse(input, options) {
|
|
|
2759
2707
|
} else {
|
|
2760
2708
|
s4 = peg$FAILED;
|
|
2761
2709
|
if (peg$silentFails === 0) {
|
|
2762
|
-
peg$fail(peg$
|
|
2710
|
+
peg$fail(peg$e20);
|
|
2763
2711
|
}
|
|
2764
2712
|
}
|
|
2765
2713
|
if (s4 !== peg$FAILED) {
|
|
2766
2714
|
peg$savedPos = s0;
|
|
2767
|
-
s0 = peg$
|
|
2715
|
+
s0 = peg$f19(s1);
|
|
2768
2716
|
} else {
|
|
2769
2717
|
peg$currPos = s0;
|
|
2770
2718
|
s0 = peg$FAILED;
|
|
@@ -2783,39 +2731,39 @@ function peg$parse(input, options) {
|
|
|
2783
2731
|
function peg$parsetripleDQuotedMultiLineString() {
|
|
2784
2732
|
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
2785
2733
|
s0 = peg$currPos;
|
|
2786
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
2787
|
-
s1 = peg$
|
|
2734
|
+
if (input.substr(peg$currPos, 3) === peg$c12) {
|
|
2735
|
+
s1 = peg$c12;
|
|
2788
2736
|
peg$currPos += 3;
|
|
2789
2737
|
} else {
|
|
2790
2738
|
s1 = peg$FAILED;
|
|
2791
2739
|
if (peg$silentFails === 0) {
|
|
2792
|
-
peg$fail(peg$
|
|
2740
|
+
peg$fail(peg$e29);
|
|
2793
2741
|
}
|
|
2794
2742
|
}
|
|
2795
2743
|
if (s1 !== peg$FAILED) {
|
|
2796
2744
|
s2 = [];
|
|
2797
2745
|
s3 = peg$currPos;
|
|
2798
2746
|
s4 = [];
|
|
2799
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
2800
|
-
s5 = peg$
|
|
2747
|
+
if (input.substr(peg$currPos, 4) === peg$c13) {
|
|
2748
|
+
s5 = peg$c13;
|
|
2801
2749
|
peg$currPos += 4;
|
|
2802
2750
|
} else {
|
|
2803
2751
|
s5 = peg$FAILED;
|
|
2804
2752
|
if (peg$silentFails === 0) {
|
|
2805
|
-
peg$fail(peg$
|
|
2753
|
+
peg$fail(peg$e30);
|
|
2806
2754
|
}
|
|
2807
2755
|
}
|
|
2808
2756
|
if (s5 === peg$FAILED) {
|
|
2809
2757
|
s5 = peg$currPos;
|
|
2810
2758
|
s6 = peg$currPos;
|
|
2811
2759
|
peg$silentFails++;
|
|
2812
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
2813
|
-
s7 = peg$
|
|
2760
|
+
if (input.substr(peg$currPos, 3) === peg$c12) {
|
|
2761
|
+
s7 = peg$c12;
|
|
2814
2762
|
peg$currPos += 3;
|
|
2815
2763
|
} else {
|
|
2816
2764
|
s7 = peg$FAILED;
|
|
2817
2765
|
if (peg$silentFails === 0) {
|
|
2818
|
-
peg$fail(peg$
|
|
2766
|
+
peg$fail(peg$e29);
|
|
2819
2767
|
}
|
|
2820
2768
|
}
|
|
2821
2769
|
peg$silentFails--;
|
|
@@ -2849,26 +2797,26 @@ function peg$parse(input, options) {
|
|
|
2849
2797
|
}
|
|
2850
2798
|
while (s5 !== peg$FAILED) {
|
|
2851
2799
|
s4.push(s5);
|
|
2852
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
2853
|
-
s5 = peg$
|
|
2800
|
+
if (input.substr(peg$currPos, 4) === peg$c13) {
|
|
2801
|
+
s5 = peg$c13;
|
|
2854
2802
|
peg$currPos += 4;
|
|
2855
2803
|
} else {
|
|
2856
2804
|
s5 = peg$FAILED;
|
|
2857
2805
|
if (peg$silentFails === 0) {
|
|
2858
|
-
peg$fail(peg$
|
|
2806
|
+
peg$fail(peg$e30);
|
|
2859
2807
|
}
|
|
2860
2808
|
}
|
|
2861
2809
|
if (s5 === peg$FAILED) {
|
|
2862
2810
|
s5 = peg$currPos;
|
|
2863
2811
|
s6 = peg$currPos;
|
|
2864
2812
|
peg$silentFails++;
|
|
2865
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
2866
|
-
s7 = peg$
|
|
2813
|
+
if (input.substr(peg$currPos, 3) === peg$c12) {
|
|
2814
|
+
s7 = peg$c12;
|
|
2867
2815
|
peg$currPos += 3;
|
|
2868
2816
|
} else {
|
|
2869
2817
|
s7 = peg$FAILED;
|
|
2870
2818
|
if (peg$silentFails === 0) {
|
|
2871
|
-
peg$fail(peg$
|
|
2819
|
+
peg$fail(peg$e29);
|
|
2872
2820
|
}
|
|
2873
2821
|
}
|
|
2874
2822
|
peg$silentFails--;
|
|
@@ -2922,26 +2870,26 @@ function peg$parse(input, options) {
|
|
|
2922
2870
|
s2.push(s3);
|
|
2923
2871
|
s3 = peg$currPos;
|
|
2924
2872
|
s4 = [];
|
|
2925
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
2926
|
-
s5 = peg$
|
|
2873
|
+
if (input.substr(peg$currPos, 4) === peg$c13) {
|
|
2874
|
+
s5 = peg$c13;
|
|
2927
2875
|
peg$currPos += 4;
|
|
2928
2876
|
} else {
|
|
2929
2877
|
s5 = peg$FAILED;
|
|
2930
2878
|
if (peg$silentFails === 0) {
|
|
2931
|
-
peg$fail(peg$
|
|
2879
|
+
peg$fail(peg$e30);
|
|
2932
2880
|
}
|
|
2933
2881
|
}
|
|
2934
2882
|
if (s5 === peg$FAILED) {
|
|
2935
2883
|
s5 = peg$currPos;
|
|
2936
2884
|
s6 = peg$currPos;
|
|
2937
2885
|
peg$silentFails++;
|
|
2938
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
2939
|
-
s7 = peg$
|
|
2886
|
+
if (input.substr(peg$currPos, 3) === peg$c12) {
|
|
2887
|
+
s7 = peg$c12;
|
|
2940
2888
|
peg$currPos += 3;
|
|
2941
2889
|
} else {
|
|
2942
2890
|
s7 = peg$FAILED;
|
|
2943
2891
|
if (peg$silentFails === 0) {
|
|
2944
|
-
peg$fail(peg$
|
|
2892
|
+
peg$fail(peg$e29);
|
|
2945
2893
|
}
|
|
2946
2894
|
}
|
|
2947
2895
|
peg$silentFails--;
|
|
@@ -2975,26 +2923,26 @@ function peg$parse(input, options) {
|
|
|
2975
2923
|
}
|
|
2976
2924
|
while (s5 !== peg$FAILED) {
|
|
2977
2925
|
s4.push(s5);
|
|
2978
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
2979
|
-
s5 = peg$
|
|
2926
|
+
if (input.substr(peg$currPos, 4) === peg$c13) {
|
|
2927
|
+
s5 = peg$c13;
|
|
2980
2928
|
peg$currPos += 4;
|
|
2981
2929
|
} else {
|
|
2982
2930
|
s5 = peg$FAILED;
|
|
2983
2931
|
if (peg$silentFails === 0) {
|
|
2984
|
-
peg$fail(peg$
|
|
2932
|
+
peg$fail(peg$e30);
|
|
2985
2933
|
}
|
|
2986
2934
|
}
|
|
2987
2935
|
if (s5 === peg$FAILED) {
|
|
2988
2936
|
s5 = peg$currPos;
|
|
2989
2937
|
s6 = peg$currPos;
|
|
2990
2938
|
peg$silentFails++;
|
|
2991
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
2992
|
-
s7 = peg$
|
|
2939
|
+
if (input.substr(peg$currPos, 3) === peg$c12) {
|
|
2940
|
+
s7 = peg$c12;
|
|
2993
2941
|
peg$currPos += 3;
|
|
2994
2942
|
} else {
|
|
2995
2943
|
s7 = peg$FAILED;
|
|
2996
2944
|
if (peg$silentFails === 0) {
|
|
2997
|
-
peg$fail(peg$
|
|
2945
|
+
peg$fail(peg$e29);
|
|
2998
2946
|
}
|
|
2999
2947
|
}
|
|
3000
2948
|
peg$silentFails--;
|
|
@@ -3049,26 +2997,26 @@ function peg$parse(input, options) {
|
|
|
3049
2997
|
}
|
|
3050
2998
|
if (s2 !== peg$FAILED) {
|
|
3051
2999
|
s3 = [];
|
|
3052
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3053
|
-
s4 = peg$
|
|
3000
|
+
if (input.substr(peg$currPos, 4) === peg$c13) {
|
|
3001
|
+
s4 = peg$c13;
|
|
3054
3002
|
peg$currPos += 4;
|
|
3055
3003
|
} else {
|
|
3056
3004
|
s4 = peg$FAILED;
|
|
3057
3005
|
if (peg$silentFails === 0) {
|
|
3058
|
-
peg$fail(peg$
|
|
3006
|
+
peg$fail(peg$e30);
|
|
3059
3007
|
}
|
|
3060
3008
|
}
|
|
3061
3009
|
if (s4 === peg$FAILED) {
|
|
3062
3010
|
s4 = peg$currPos;
|
|
3063
3011
|
s5 = peg$currPos;
|
|
3064
3012
|
peg$silentFails++;
|
|
3065
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3066
|
-
s6 = peg$
|
|
3013
|
+
if (input.substr(peg$currPos, 3) === peg$c12) {
|
|
3014
|
+
s6 = peg$c12;
|
|
3067
3015
|
peg$currPos += 3;
|
|
3068
3016
|
} else {
|
|
3069
3017
|
s6 = peg$FAILED;
|
|
3070
3018
|
if (peg$silentFails === 0) {
|
|
3071
|
-
peg$fail(peg$
|
|
3019
|
+
peg$fail(peg$e29);
|
|
3072
3020
|
}
|
|
3073
3021
|
}
|
|
3074
3022
|
peg$silentFails--;
|
|
@@ -3102,26 +3050,26 @@ function peg$parse(input, options) {
|
|
|
3102
3050
|
}
|
|
3103
3051
|
while (s4 !== peg$FAILED) {
|
|
3104
3052
|
s3.push(s4);
|
|
3105
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3106
|
-
s4 = peg$
|
|
3053
|
+
if (input.substr(peg$currPos, 4) === peg$c13) {
|
|
3054
|
+
s4 = peg$c13;
|
|
3107
3055
|
peg$currPos += 4;
|
|
3108
3056
|
} else {
|
|
3109
3057
|
s4 = peg$FAILED;
|
|
3110
3058
|
if (peg$silentFails === 0) {
|
|
3111
|
-
peg$fail(peg$
|
|
3059
|
+
peg$fail(peg$e30);
|
|
3112
3060
|
}
|
|
3113
3061
|
}
|
|
3114
3062
|
if (s4 === peg$FAILED) {
|
|
3115
3063
|
s4 = peg$currPos;
|
|
3116
3064
|
s5 = peg$currPos;
|
|
3117
3065
|
peg$silentFails++;
|
|
3118
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3119
|
-
s6 = peg$
|
|
3066
|
+
if (input.substr(peg$currPos, 3) === peg$c12) {
|
|
3067
|
+
s6 = peg$c12;
|
|
3120
3068
|
peg$currPos += 3;
|
|
3121
3069
|
} else {
|
|
3122
3070
|
s6 = peg$FAILED;
|
|
3123
3071
|
if (peg$silentFails === 0) {
|
|
3124
|
-
peg$fail(peg$
|
|
3072
|
+
peg$fail(peg$e29);
|
|
3125
3073
|
}
|
|
3126
3074
|
}
|
|
3127
3075
|
peg$silentFails--;
|
|
@@ -3154,18 +3102,18 @@ function peg$parse(input, options) {
|
|
|
3154
3102
|
}
|
|
3155
3103
|
}
|
|
3156
3104
|
}
|
|
3157
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3158
|
-
s4 = peg$
|
|
3105
|
+
if (input.substr(peg$currPos, 3) === peg$c12) {
|
|
3106
|
+
s4 = peg$c12;
|
|
3159
3107
|
peg$currPos += 3;
|
|
3160
3108
|
} else {
|
|
3161
3109
|
s4 = peg$FAILED;
|
|
3162
3110
|
if (peg$silentFails === 0) {
|
|
3163
|
-
peg$fail(peg$
|
|
3111
|
+
peg$fail(peg$e29);
|
|
3164
3112
|
}
|
|
3165
3113
|
}
|
|
3166
3114
|
if (s4 !== peg$FAILED) {
|
|
3167
3115
|
peg$savedPos = s0;
|
|
3168
|
-
s0 = peg$
|
|
3116
|
+
s0 = peg$f20(s1);
|
|
3169
3117
|
} else {
|
|
3170
3118
|
peg$currPos = s0;
|
|
3171
3119
|
s0 = peg$FAILED;
|
|
@@ -3184,39 +3132,39 @@ function peg$parse(input, options) {
|
|
|
3184
3132
|
function peg$parsetripleBQuotedMultiLineString() {
|
|
3185
3133
|
let s0, s1, s2, s3, s4, s5, s6, s7;
|
|
3186
3134
|
s0 = peg$currPos;
|
|
3187
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3188
|
-
s1 = peg$
|
|
3135
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3136
|
+
s1 = peg$c14;
|
|
3189
3137
|
peg$currPos += 3;
|
|
3190
3138
|
} else {
|
|
3191
3139
|
s1 = peg$FAILED;
|
|
3192
3140
|
if (peg$silentFails === 0) {
|
|
3193
|
-
peg$fail(peg$
|
|
3141
|
+
peg$fail(peg$e31);
|
|
3194
3142
|
}
|
|
3195
3143
|
}
|
|
3196
3144
|
if (s1 !== peg$FAILED) {
|
|
3197
3145
|
s2 = [];
|
|
3198
3146
|
s3 = peg$currPos;
|
|
3199
3147
|
s4 = [];
|
|
3200
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3201
|
-
s5 = peg$
|
|
3148
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3149
|
+
s5 = peg$c15;
|
|
3202
3150
|
peg$currPos += 4;
|
|
3203
3151
|
} else {
|
|
3204
3152
|
s5 = peg$FAILED;
|
|
3205
3153
|
if (peg$silentFails === 0) {
|
|
3206
|
-
peg$fail(peg$
|
|
3154
|
+
peg$fail(peg$e32);
|
|
3207
3155
|
}
|
|
3208
3156
|
}
|
|
3209
3157
|
if (s5 === peg$FAILED) {
|
|
3210
3158
|
s5 = peg$currPos;
|
|
3211
3159
|
s6 = peg$currPos;
|
|
3212
3160
|
peg$silentFails++;
|
|
3213
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3214
|
-
s7 = peg$
|
|
3161
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3162
|
+
s7 = peg$c14;
|
|
3215
3163
|
peg$currPos += 3;
|
|
3216
3164
|
} else {
|
|
3217
3165
|
s7 = peg$FAILED;
|
|
3218
3166
|
if (peg$silentFails === 0) {
|
|
3219
|
-
peg$fail(peg$
|
|
3167
|
+
peg$fail(peg$e31);
|
|
3220
3168
|
}
|
|
3221
3169
|
}
|
|
3222
3170
|
peg$silentFails--;
|
|
@@ -3250,26 +3198,26 @@ function peg$parse(input, options) {
|
|
|
3250
3198
|
}
|
|
3251
3199
|
while (s5 !== peg$FAILED) {
|
|
3252
3200
|
s4.push(s5);
|
|
3253
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3254
|
-
s5 = peg$
|
|
3201
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3202
|
+
s5 = peg$c15;
|
|
3255
3203
|
peg$currPos += 4;
|
|
3256
3204
|
} else {
|
|
3257
3205
|
s5 = peg$FAILED;
|
|
3258
3206
|
if (peg$silentFails === 0) {
|
|
3259
|
-
peg$fail(peg$
|
|
3207
|
+
peg$fail(peg$e32);
|
|
3260
3208
|
}
|
|
3261
3209
|
}
|
|
3262
3210
|
if (s5 === peg$FAILED) {
|
|
3263
3211
|
s5 = peg$currPos;
|
|
3264
3212
|
s6 = peg$currPos;
|
|
3265
3213
|
peg$silentFails++;
|
|
3266
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3267
|
-
s7 = peg$
|
|
3214
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3215
|
+
s7 = peg$c14;
|
|
3268
3216
|
peg$currPos += 3;
|
|
3269
3217
|
} else {
|
|
3270
3218
|
s7 = peg$FAILED;
|
|
3271
3219
|
if (peg$silentFails === 0) {
|
|
3272
|
-
peg$fail(peg$
|
|
3220
|
+
peg$fail(peg$e31);
|
|
3273
3221
|
}
|
|
3274
3222
|
}
|
|
3275
3223
|
peg$silentFails--;
|
|
@@ -3323,26 +3271,26 @@ function peg$parse(input, options) {
|
|
|
3323
3271
|
s2.push(s3);
|
|
3324
3272
|
s3 = peg$currPos;
|
|
3325
3273
|
s4 = [];
|
|
3326
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3327
|
-
s5 = peg$
|
|
3274
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3275
|
+
s5 = peg$c15;
|
|
3328
3276
|
peg$currPos += 4;
|
|
3329
3277
|
} else {
|
|
3330
3278
|
s5 = peg$FAILED;
|
|
3331
3279
|
if (peg$silentFails === 0) {
|
|
3332
|
-
peg$fail(peg$
|
|
3280
|
+
peg$fail(peg$e32);
|
|
3333
3281
|
}
|
|
3334
3282
|
}
|
|
3335
3283
|
if (s5 === peg$FAILED) {
|
|
3336
3284
|
s5 = peg$currPos;
|
|
3337
3285
|
s6 = peg$currPos;
|
|
3338
3286
|
peg$silentFails++;
|
|
3339
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3340
|
-
s7 = peg$
|
|
3287
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3288
|
+
s7 = peg$c14;
|
|
3341
3289
|
peg$currPos += 3;
|
|
3342
3290
|
} else {
|
|
3343
3291
|
s7 = peg$FAILED;
|
|
3344
3292
|
if (peg$silentFails === 0) {
|
|
3345
|
-
peg$fail(peg$
|
|
3293
|
+
peg$fail(peg$e31);
|
|
3346
3294
|
}
|
|
3347
3295
|
}
|
|
3348
3296
|
peg$silentFails--;
|
|
@@ -3376,26 +3324,26 @@ function peg$parse(input, options) {
|
|
|
3376
3324
|
}
|
|
3377
3325
|
while (s5 !== peg$FAILED) {
|
|
3378
3326
|
s4.push(s5);
|
|
3379
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3380
|
-
s5 = peg$
|
|
3327
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3328
|
+
s5 = peg$c15;
|
|
3381
3329
|
peg$currPos += 4;
|
|
3382
3330
|
} else {
|
|
3383
3331
|
s5 = peg$FAILED;
|
|
3384
3332
|
if (peg$silentFails === 0) {
|
|
3385
|
-
peg$fail(peg$
|
|
3333
|
+
peg$fail(peg$e32);
|
|
3386
3334
|
}
|
|
3387
3335
|
}
|
|
3388
3336
|
if (s5 === peg$FAILED) {
|
|
3389
3337
|
s5 = peg$currPos;
|
|
3390
3338
|
s6 = peg$currPos;
|
|
3391
3339
|
peg$silentFails++;
|
|
3392
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3393
|
-
s7 = peg$
|
|
3340
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3341
|
+
s7 = peg$c14;
|
|
3394
3342
|
peg$currPos += 3;
|
|
3395
3343
|
} else {
|
|
3396
3344
|
s7 = peg$FAILED;
|
|
3397
3345
|
if (peg$silentFails === 0) {
|
|
3398
|
-
peg$fail(peg$
|
|
3346
|
+
peg$fail(peg$e31);
|
|
3399
3347
|
}
|
|
3400
3348
|
}
|
|
3401
3349
|
peg$silentFails--;
|
|
@@ -3450,26 +3398,26 @@ function peg$parse(input, options) {
|
|
|
3450
3398
|
}
|
|
3451
3399
|
if (s2 !== peg$FAILED) {
|
|
3452
3400
|
s3 = [];
|
|
3453
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3454
|
-
s4 = peg$
|
|
3401
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3402
|
+
s4 = peg$c15;
|
|
3455
3403
|
peg$currPos += 4;
|
|
3456
3404
|
} else {
|
|
3457
3405
|
s4 = peg$FAILED;
|
|
3458
3406
|
if (peg$silentFails === 0) {
|
|
3459
|
-
peg$fail(peg$
|
|
3407
|
+
peg$fail(peg$e32);
|
|
3460
3408
|
}
|
|
3461
3409
|
}
|
|
3462
3410
|
if (s4 === peg$FAILED) {
|
|
3463
3411
|
s4 = peg$currPos;
|
|
3464
3412
|
s5 = peg$currPos;
|
|
3465
3413
|
peg$silentFails++;
|
|
3466
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3467
|
-
s6 = peg$
|
|
3414
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3415
|
+
s6 = peg$c14;
|
|
3468
3416
|
peg$currPos += 3;
|
|
3469
3417
|
} else {
|
|
3470
3418
|
s6 = peg$FAILED;
|
|
3471
3419
|
if (peg$silentFails === 0) {
|
|
3472
|
-
peg$fail(peg$
|
|
3420
|
+
peg$fail(peg$e31);
|
|
3473
3421
|
}
|
|
3474
3422
|
}
|
|
3475
3423
|
peg$silentFails--;
|
|
@@ -3503,26 +3451,26 @@ function peg$parse(input, options) {
|
|
|
3503
3451
|
}
|
|
3504
3452
|
while (s4 !== peg$FAILED) {
|
|
3505
3453
|
s3.push(s4);
|
|
3506
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
3507
|
-
s4 = peg$
|
|
3454
|
+
if (input.substr(peg$currPos, 4) === peg$c15) {
|
|
3455
|
+
s4 = peg$c15;
|
|
3508
3456
|
peg$currPos += 4;
|
|
3509
3457
|
} else {
|
|
3510
3458
|
s4 = peg$FAILED;
|
|
3511
3459
|
if (peg$silentFails === 0) {
|
|
3512
|
-
peg$fail(peg$
|
|
3460
|
+
peg$fail(peg$e32);
|
|
3513
3461
|
}
|
|
3514
3462
|
}
|
|
3515
3463
|
if (s4 === peg$FAILED) {
|
|
3516
3464
|
s4 = peg$currPos;
|
|
3517
3465
|
s5 = peg$currPos;
|
|
3518
3466
|
peg$silentFails++;
|
|
3519
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3520
|
-
s6 = peg$
|
|
3467
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3468
|
+
s6 = peg$c14;
|
|
3521
3469
|
peg$currPos += 3;
|
|
3522
3470
|
} else {
|
|
3523
3471
|
s6 = peg$FAILED;
|
|
3524
3472
|
if (peg$silentFails === 0) {
|
|
3525
|
-
peg$fail(peg$
|
|
3473
|
+
peg$fail(peg$e31);
|
|
3526
3474
|
}
|
|
3527
3475
|
}
|
|
3528
3476
|
peg$silentFails--;
|
|
@@ -3555,18 +3503,18 @@ function peg$parse(input, options) {
|
|
|
3555
3503
|
}
|
|
3556
3504
|
}
|
|
3557
3505
|
}
|
|
3558
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3559
|
-
s4 = peg$
|
|
3506
|
+
if (input.substr(peg$currPos, 3) === peg$c14) {
|
|
3507
|
+
s4 = peg$c14;
|
|
3560
3508
|
peg$currPos += 3;
|
|
3561
3509
|
} else {
|
|
3562
3510
|
s4 = peg$FAILED;
|
|
3563
3511
|
if (peg$silentFails === 0) {
|
|
3564
|
-
peg$fail(peg$
|
|
3512
|
+
peg$fail(peg$e31);
|
|
3565
3513
|
}
|
|
3566
3514
|
}
|
|
3567
3515
|
if (s4 !== peg$FAILED) {
|
|
3568
3516
|
peg$savedPos = s0;
|
|
3569
|
-
s0 = peg$
|
|
3517
|
+
s0 = peg$f21(s1);
|
|
3570
3518
|
} else {
|
|
3571
3519
|
peg$currPos = s0;
|
|
3572
3520
|
s0 = peg$FAILED;
|
|
@@ -3602,7 +3550,7 @@ function peg$parse(input, options) {
|
|
|
3602
3550
|
} else {
|
|
3603
3551
|
s1 = peg$FAILED;
|
|
3604
3552
|
if (peg$silentFails === 0) {
|
|
3605
|
-
peg$fail(peg$
|
|
3553
|
+
peg$fail(peg$e33);
|
|
3606
3554
|
}
|
|
3607
3555
|
}
|
|
3608
3556
|
peg$silentFails--;
|
|
@@ -3625,7 +3573,7 @@ function peg$parse(input, options) {
|
|
|
3625
3573
|
} else {
|
|
3626
3574
|
s1 = peg$FAILED;
|
|
3627
3575
|
if (peg$silentFails === 0) {
|
|
3628
|
-
peg$fail(peg$
|
|
3576
|
+
peg$fail(peg$e34);
|
|
3629
3577
|
}
|
|
3630
3578
|
}
|
|
3631
3579
|
while (s1 !== peg$FAILED) {
|
|
@@ -3636,7 +3584,7 @@ function peg$parse(input, options) {
|
|
|
3636
3584
|
} else {
|
|
3637
3585
|
s1 = peg$FAILED;
|
|
3638
3586
|
if (peg$silentFails === 0) {
|
|
3639
|
-
peg$fail(peg$
|
|
3587
|
+
peg$fail(peg$e34);
|
|
3640
3588
|
}
|
|
3641
3589
|
}
|
|
3642
3590
|
}
|
|
@@ -3652,7 +3600,7 @@ function peg$parse(input, options) {
|
|
|
3652
3600
|
} else {
|
|
3653
3601
|
s1 = peg$FAILED;
|
|
3654
3602
|
if (peg$silentFails === 0) {
|
|
3655
|
-
peg$fail(peg$
|
|
3603
|
+
peg$fail(peg$e34);
|
|
3656
3604
|
}
|
|
3657
3605
|
}
|
|
3658
3606
|
if (s1 !== peg$FAILED) {
|
|
@@ -3664,7 +3612,7 @@ function peg$parse(input, options) {
|
|
|
3664
3612
|
} else {
|
|
3665
3613
|
s1 = peg$FAILED;
|
|
3666
3614
|
if (peg$silentFails === 0) {
|
|
3667
|
-
peg$fail(peg$
|
|
3615
|
+
peg$fail(peg$e34);
|
|
3668
3616
|
}
|
|
3669
3617
|
}
|
|
3670
3618
|
}
|
|
@@ -3711,7 +3659,7 @@ __name(peg$parse, "peg$parse");
|
|
|
3711
3659
|
|
|
3712
3660
|
// src/index.ts
|
|
3713
3661
|
function parseEnvSpecDotEnvFile(source) {
|
|
3714
|
-
return peg$parse(source);
|
|
3662
|
+
return peg$parse(source.replaceAll("\r\n", "\n"));
|
|
3715
3663
|
}
|
|
3716
3664
|
__name(parseEnvSpecDotEnvFile, "parseEnvSpecDotEnvFile");
|
|
3717
3665
|
|