@echecs/pgn 3.6.1 → 3.7.0
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/CHANGELOG.md +30 -0
- package/README.md +25 -0
- package/dist/grammar.cjs +366 -256
- package/dist/grammar.cjs.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.js +55 -10
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/grammar.cjs
CHANGED
|
@@ -27,19 +27,45 @@ function pairMoves(moves, start) {
|
|
|
27
27
|
if (acc[pairIdx] === undefined) {
|
|
28
28
|
acc[pairIdx] = [moveNum, undefined];
|
|
29
29
|
}
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
delete
|
|
34
|
-
|
|
30
|
+
// Read internal bookkeeping fields off the raw grammar object.
|
|
31
|
+
// We never put them on the output — building an explicit clean object
|
|
32
|
+
// keeps V8 hidden classes consistent across all moves in the array,
|
|
33
|
+
// avoiding megamorphic deoptimisation from `delete`.
|
|
34
|
+
const raw = moves[i];
|
|
35
|
+
const number = raw.number;
|
|
36
|
+
const long = raw.long;
|
|
35
37
|
if (number !== undefined && number !== moveNum) {
|
|
36
38
|
console.warn(`Warning: Move number mismatch - ${number}`);
|
|
37
39
|
}
|
|
38
|
-
|
|
40
|
+
// Build the clean output object — only public Move fields.
|
|
41
|
+
const move = { piece: raw.piece, to: raw.to };
|
|
42
|
+
if (raw.from !== undefined) {
|
|
43
|
+
move.from = raw.from;
|
|
44
|
+
}
|
|
45
|
+
if (raw.capture !== undefined) {
|
|
46
|
+
move.capture = raw.capture;
|
|
47
|
+
}
|
|
48
|
+
if (raw.castling !== undefined) {
|
|
49
|
+
move.castling = raw.castling;
|
|
39
50
|
move.to = isWhite ? (long ? 'c1' : 'g1') : (long ? 'c8' : 'g8');
|
|
40
51
|
}
|
|
41
|
-
if (
|
|
42
|
-
move.
|
|
52
|
+
if (raw.check !== undefined) {
|
|
53
|
+
move.check = raw.check;
|
|
54
|
+
}
|
|
55
|
+
if (raw.checkmate !== undefined) {
|
|
56
|
+
move.checkmate = raw.checkmate;
|
|
57
|
+
}
|
|
58
|
+
if (raw.promotion !== undefined) {
|
|
59
|
+
move.promotion = raw.promotion;
|
|
60
|
+
}
|
|
61
|
+
if (raw.annotations !== undefined) {
|
|
62
|
+
move.annotations = raw.annotations;
|
|
63
|
+
}
|
|
64
|
+
if (raw.comment !== undefined) {
|
|
65
|
+
move.comment = raw.comment;
|
|
66
|
+
}
|
|
67
|
+
if (raw.variants !== undefined) {
|
|
68
|
+
move.variants = raw.variants.map((variant) => pairMoves(variant, si));
|
|
43
69
|
}
|
|
44
70
|
acc[pairIdx][isWhite ? 1 : 2] = move;
|
|
45
71
|
}
|
|
@@ -193,30 +219,31 @@ function peg$parse(input, options) {
|
|
|
193
219
|
const peg$c0 = "[";
|
|
194
220
|
const peg$c1 = "]";
|
|
195
221
|
const peg$c2 = "\"";
|
|
196
|
-
const peg$c3 = "
|
|
197
|
-
const peg$c4 = "1-
|
|
198
|
-
const peg$c5 = "0
|
|
199
|
-
const peg$c6 = "
|
|
200
|
-
const peg$c7 = "
|
|
201
|
-
const peg$c8 = "
|
|
202
|
-
const peg$c9 = "O-O";
|
|
203
|
-
const peg$c10 = "
|
|
204
|
-
const peg$c11 = "
|
|
205
|
-
const peg$c12 = "
|
|
206
|
-
const peg$c13 = "
|
|
207
|
-
const peg$c14 = "
|
|
208
|
-
const peg$c15 = "
|
|
209
|
-
const peg$c16 = "
|
|
210
|
-
const peg$c17 = "
|
|
211
|
-
const peg$c18 = "
|
|
212
|
-
const peg$c19 = "
|
|
213
|
-
const peg$c20 = "\u2212
|
|
214
|
-
const peg$c21 = "
|
|
215
|
-
const peg$c22 = "
|
|
216
|
-
const peg$c23 = "
|
|
217
|
-
const peg$c24 = "
|
|
222
|
+
const peg$c3 = "\\";
|
|
223
|
+
const peg$c4 = "1/2-1/2";
|
|
224
|
+
const peg$c5 = "1-0";
|
|
225
|
+
const peg$c6 = "0-1";
|
|
226
|
+
const peg$c7 = "*";
|
|
227
|
+
const peg$c8 = ".";
|
|
228
|
+
const peg$c9 = "O-O-O";
|
|
229
|
+
const peg$c10 = "O-O";
|
|
230
|
+
const peg$c11 = "x";
|
|
231
|
+
const peg$c12 = "=";
|
|
232
|
+
const peg$c13 = "(";
|
|
233
|
+
const peg$c14 = ")";
|
|
234
|
+
const peg$c15 = "$";
|
|
235
|
+
const peg$c16 = "!!";
|
|
236
|
+
const peg$c17 = "??";
|
|
237
|
+
const peg$c18 = "!?";
|
|
238
|
+
const peg$c19 = "?!";
|
|
239
|
+
const peg$c20 = "+ \u2212";
|
|
240
|
+
const peg$c21 = "\u2212 +";
|
|
241
|
+
const peg$c22 = "{";
|
|
242
|
+
const peg$c23 = "}";
|
|
243
|
+
const peg$c24 = ";";
|
|
244
|
+
const peg$c25 = "%";
|
|
218
245
|
const peg$r0 = /^[a-zA-Z0-9_]/;
|
|
219
|
-
const peg$r1 = /^[^"]/;
|
|
246
|
+
const peg$r1 = /^[^"\\]/;
|
|
220
247
|
const peg$r2 = /^[0-9]/;
|
|
221
248
|
const peg$r3 = /^[+#]/;
|
|
222
249
|
const peg$r4 = /^[KQBNPR]/;
|
|
@@ -232,59 +259,61 @@ function peg$parse(input, options) {
|
|
|
232
259
|
const peg$e1 = peg$literalExpectation("]", false);
|
|
233
260
|
const peg$e2 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_"], false, false, false);
|
|
234
261
|
const peg$e3 = peg$literalExpectation("\"", false);
|
|
235
|
-
const peg$e4 = peg$classExpectation(["\""], true, false, false);
|
|
236
|
-
const peg$e5 = peg$literalExpectation("
|
|
237
|
-
const peg$e6 = peg$
|
|
238
|
-
const peg$e7 = peg$literalExpectation("
|
|
239
|
-
const peg$e8 = peg$literalExpectation("
|
|
240
|
-
const peg$e9 = peg$
|
|
241
|
-
const peg$e10 = peg$literalExpectation("
|
|
242
|
-
const peg$e11 = peg$
|
|
243
|
-
const peg$e12 = peg$
|
|
244
|
-
const peg$e13 = peg$literalExpectation("O-O", false);
|
|
245
|
-
const peg$e14 = peg$classExpectation(["
|
|
246
|
-
const peg$e15 = peg$
|
|
247
|
-
const peg$e16 = peg$classExpectation([
|
|
248
|
-
const peg$e17 = peg$
|
|
249
|
-
const peg$e18 = peg$
|
|
250
|
-
const peg$e19 = peg$
|
|
251
|
-
const peg$e20 = peg$literalExpectation("
|
|
252
|
-
const peg$e21 = peg$
|
|
253
|
-
const peg$e22 = peg$literalExpectation("
|
|
254
|
-
const peg$e23 = peg$literalExpectation("
|
|
255
|
-
const peg$e24 = peg$literalExpectation("
|
|
256
|
-
const peg$e25 = peg$literalExpectation("
|
|
257
|
-
const peg$e26 = peg$literalExpectation("
|
|
258
|
-
const peg$e27 = peg$
|
|
259
|
-
const peg$e28 = peg$literalExpectation("
|
|
260
|
-
const peg$e29 = peg$
|
|
261
|
-
const peg$e30 = peg$
|
|
262
|
-
const peg$e31 = peg$literalExpectation("
|
|
263
|
-
const peg$e32 = peg$classExpectation(["
|
|
264
|
-
const peg$e33 = peg$literalExpectation("
|
|
265
|
-
const peg$e34 = peg$
|
|
266
|
-
const peg$e35 = peg$
|
|
267
|
-
const peg$e36 = peg$
|
|
268
|
-
const peg$e37 = peg$classExpectation(["
|
|
269
|
-
const peg$e38 = peg$
|
|
262
|
+
const peg$e4 = peg$classExpectation(["\"", "\\"], true, false, false);
|
|
263
|
+
const peg$e5 = peg$literalExpectation("\\", false);
|
|
264
|
+
const peg$e6 = peg$anyExpectation();
|
|
265
|
+
const peg$e7 = peg$literalExpectation("1/2-1/2", false);
|
|
266
|
+
const peg$e8 = peg$literalExpectation("1-0", false);
|
|
267
|
+
const peg$e9 = peg$literalExpectation("0-1", false);
|
|
268
|
+
const peg$e10 = peg$literalExpectation("*", false);
|
|
269
|
+
const peg$e11 = peg$classExpectation([["0", "9"]], false, false, false);
|
|
270
|
+
const peg$e12 = peg$literalExpectation(".", false);
|
|
271
|
+
const peg$e13 = peg$literalExpectation("O-O-O", false);
|
|
272
|
+
const peg$e14 = peg$classExpectation(["+", "#"], false, false, false);
|
|
273
|
+
const peg$e15 = peg$literalExpectation("O-O", false);
|
|
274
|
+
const peg$e16 = peg$classExpectation(["K", "Q", "B", "N", "P", "R"], false, false, false);
|
|
275
|
+
const peg$e17 = peg$classExpectation([["a", "h"]], false, false, false);
|
|
276
|
+
const peg$e18 = peg$classExpectation([["1", "8"]], false, false, false);
|
|
277
|
+
const peg$e19 = peg$literalExpectation("x", false);
|
|
278
|
+
const peg$e20 = peg$literalExpectation("=", false);
|
|
279
|
+
const peg$e21 = peg$classExpectation(["N", "B", "R", "Q"], false, false, false);
|
|
280
|
+
const peg$e22 = peg$literalExpectation("(", false);
|
|
281
|
+
const peg$e23 = peg$literalExpectation(")", false);
|
|
282
|
+
const peg$e24 = peg$literalExpectation("$", false);
|
|
283
|
+
const peg$e25 = peg$literalExpectation("!!", false);
|
|
284
|
+
const peg$e26 = peg$literalExpectation("??", false);
|
|
285
|
+
const peg$e27 = peg$literalExpectation("!?", false);
|
|
286
|
+
const peg$e28 = peg$literalExpectation("?!", false);
|
|
287
|
+
const peg$e29 = peg$classExpectation(["!", "?", "\xB1", "\u2213", "\u221E", "\u25A1", ["\u2A71", "\u2A72"]], false, false, false);
|
|
288
|
+
const peg$e30 = peg$literalExpectation("+ \u2212", false);
|
|
289
|
+
const peg$e31 = peg$literalExpectation("\u2212 +", false);
|
|
290
|
+
const peg$e32 = peg$classExpectation(["=", ["\u2191", "\u2192"], "\u21C6", "\u25CB", "\u27F3", "\u2981", "\u2A00", "\u2BF9"], false, false, false);
|
|
291
|
+
const peg$e33 = peg$literalExpectation("{", false);
|
|
292
|
+
const peg$e34 = peg$classExpectation(["}"], true, false, false);
|
|
293
|
+
const peg$e35 = peg$literalExpectation("}", false);
|
|
294
|
+
const peg$e36 = peg$literalExpectation(";", false);
|
|
295
|
+
const peg$e37 = peg$classExpectation(["\n"], false, false, false);
|
|
296
|
+
const peg$e38 = peg$classExpectation([" ", "\t", "\n", "\r"], false, false, false);
|
|
297
|
+
const peg$e39 = peg$literalExpectation("%", false);
|
|
270
298
|
function peg$f0(first, g) { return g; }
|
|
271
299
|
function peg$f1(first, rest) { return [first, ...rest]; }
|
|
272
300
|
function peg$f2(tags, moves, result) { return { meta: tags, moves: pairMoves(moves), result: mapResult(result) }; }
|
|
273
301
|
function peg$f3(head, t) { return t; }
|
|
274
302
|
function peg$f4(head, tail) { return Object.assign({}, head, ...tail); }
|
|
275
|
-
function peg$f5(
|
|
276
|
-
function peg$f6(val) { return val
|
|
277
|
-
function peg$f7(
|
|
278
|
-
function peg$f8(head,
|
|
279
|
-
function peg$f9(head, variants,
|
|
303
|
+
function peg$f5() { return {}; }
|
|
304
|
+
function peg$f6(id, val) { return { [id]: val }; }
|
|
305
|
+
function peg$f7(val) { return val.replace(/\\"/g, '"').replace(/\\\\/g, '\\').trim(); }
|
|
306
|
+
function peg$f8(head, r) { return r; }
|
|
307
|
+
function peg$f9(head, variants, m) { return m; }
|
|
308
|
+
function peg$f10(head, variants, tail) {
|
|
280
309
|
if (variants.length > 0) {
|
|
281
310
|
head.variants = variants;
|
|
282
311
|
}
|
|
283
312
|
return tail ? [head, ...tail] : [head];
|
|
284
313
|
}
|
|
285
|
-
function peg$
|
|
286
|
-
function peg$
|
|
287
|
-
function peg$
|
|
314
|
+
function peg$f11(num, san, n) { return n; }
|
|
315
|
+
function peg$f12(num, san, nags, c) { return c; }
|
|
316
|
+
function peg$f13(num, san, nags, comments) {
|
|
288
317
|
if (num !== null)
|
|
289
318
|
san.number = num;
|
|
290
319
|
if (nags.length > 0) {
|
|
@@ -308,24 +337,24 @@ function peg$parse(input, options) {
|
|
|
308
337
|
}
|
|
309
338
|
return san;
|
|
310
339
|
}
|
|
311
|
-
function peg$
|
|
312
|
-
function peg$
|
|
313
|
-
function peg$
|
|
314
|
-
function peg$
|
|
315
|
-
function peg$
|
|
316
|
-
function peg$
|
|
317
|
-
function peg$
|
|
318
|
-
function peg$
|
|
319
|
-
function peg$
|
|
320
|
-
function peg$
|
|
321
|
-
function peg$
|
|
322
|
-
function peg$
|
|
323
|
-
function peg$
|
|
324
|
-
function peg$
|
|
325
|
-
function peg$
|
|
326
|
-
function peg$
|
|
327
|
-
function peg$
|
|
328
|
-
function peg$
|
|
340
|
+
function peg$f14(n) { return parseInt(n.replace(/\./g, ''), 10); }
|
|
341
|
+
function peg$f15(ind) { return applyIndicators({ castling: true, long: true, piece: 'K', to: 'O-O-O' }, undefined, ind); }
|
|
342
|
+
function peg$f16(ind) { return applyIndicators({ castling: true, long: false, piece: 'K', to: 'O-O' }, undefined, ind); }
|
|
343
|
+
function peg$f17(piece, df, dr, file, rank, promo, ind) { return applyIndicators({ capture: true, from: df + dr, piece, to: file + rank }, promo, ind); }
|
|
344
|
+
function peg$f18(piece, df, dr, file, rank, promo, ind) { return applyIndicators({ from: df + dr, piece, to: file + rank }, promo, ind); }
|
|
345
|
+
function peg$f19(piece, df, file, rank, promo, ind) { return applyIndicators({ capture: true, from: df, piece, to: file + rank }, promo, ind); }
|
|
346
|
+
function peg$f20(piece, dr, file, rank, promo, ind) { return applyIndicators({ capture: true, from: dr, piece, to: file + rank }, promo, ind); }
|
|
347
|
+
function peg$f21(piece, df, file, rank, promo, ind) { return applyIndicators({ from: df, piece, to: file + rank }, promo, ind); }
|
|
348
|
+
function peg$f22(piece, dr, file, rank, promo, ind) { return applyIndicators({ from: dr, piece, to: file + rank }, promo, ind); }
|
|
349
|
+
function peg$f23(piece, file, rank, promo, ind) { return applyIndicators({ capture: true, piece, to: file + rank }, promo, ind); }
|
|
350
|
+
function peg$f24(piece, file, rank, promo, ind) { return applyIndicators({ piece, to: file + rank }, promo, ind); }
|
|
351
|
+
function peg$f25(from, file, rank, promo, ind) { return applyIndicators({ capture: true, from, piece: 'P', to: file + rank }, promo, ind); }
|
|
352
|
+
function peg$f26(file, rank, promo, ind) { return applyIndicators({ piece: 'P', to: file + rank }, promo, ind); }
|
|
353
|
+
function peg$f27(p) { return p; }
|
|
354
|
+
function peg$f28(moves) { return moves; }
|
|
355
|
+
function peg$f29(n) { return n; }
|
|
356
|
+
function peg$f30(text) { return text.replace(/[\n\t]/g, ' ').trim(); }
|
|
357
|
+
function peg$f31(text) { return text.trim(); }
|
|
329
358
|
let peg$currPos = options.peg$currPos | 0;
|
|
330
359
|
let peg$savedPos = peg$currPos;
|
|
331
360
|
const peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
@@ -570,6 +599,13 @@ function peg$parse(input, options) {
|
|
|
570
599
|
peg$currPos = s0;
|
|
571
600
|
s0 = peg$FAILED;
|
|
572
601
|
}
|
|
602
|
+
if (s0 === peg$FAILED) {
|
|
603
|
+
s0 = peg$currPos;
|
|
604
|
+
s1 = '';
|
|
605
|
+
peg$savedPos = s0;
|
|
606
|
+
s1 = peg$f5();
|
|
607
|
+
s0 = s1;
|
|
608
|
+
}
|
|
573
609
|
return s0;
|
|
574
610
|
}
|
|
575
611
|
function peg$parseTAG() {
|
|
@@ -605,7 +641,7 @@ function peg$parse(input, options) {
|
|
|
605
641
|
}
|
|
606
642
|
if (s7 !== peg$FAILED) {
|
|
607
643
|
peg$savedPos = s0;
|
|
608
|
-
s0 = peg$
|
|
644
|
+
s0 = peg$f6(s3, s5);
|
|
609
645
|
}
|
|
610
646
|
else {
|
|
611
647
|
peg$currPos = s0;
|
|
@@ -669,7 +705,7 @@ function peg$parse(input, options) {
|
|
|
669
705
|
return s0;
|
|
670
706
|
}
|
|
671
707
|
function peg$parseSTRING() {
|
|
672
|
-
let s0, s1, s2, s3, s4;
|
|
708
|
+
let s0, s1, s2, s3, s4, s5, s6;
|
|
673
709
|
s0 = peg$currPos;
|
|
674
710
|
if (input.charCodeAt(peg$currPos) === 34) {
|
|
675
711
|
s1 = peg$c2;
|
|
@@ -694,6 +730,43 @@ function peg$parse(input, options) {
|
|
|
694
730
|
peg$fail(peg$e4);
|
|
695
731
|
}
|
|
696
732
|
}
|
|
733
|
+
if (s4 === peg$FAILED) {
|
|
734
|
+
s4 = peg$currPos;
|
|
735
|
+
if (input.charCodeAt(peg$currPos) === 92) {
|
|
736
|
+
s5 = peg$c3;
|
|
737
|
+
peg$currPos++;
|
|
738
|
+
}
|
|
739
|
+
else {
|
|
740
|
+
s5 = peg$FAILED;
|
|
741
|
+
if (peg$silentFails === 0) {
|
|
742
|
+
peg$fail(peg$e5);
|
|
743
|
+
}
|
|
744
|
+
}
|
|
745
|
+
if (s5 !== peg$FAILED) {
|
|
746
|
+
if (input.length > peg$currPos) {
|
|
747
|
+
s6 = input.charAt(peg$currPos);
|
|
748
|
+
peg$currPos++;
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
s6 = peg$FAILED;
|
|
752
|
+
if (peg$silentFails === 0) {
|
|
753
|
+
peg$fail(peg$e6);
|
|
754
|
+
}
|
|
755
|
+
}
|
|
756
|
+
if (s6 !== peg$FAILED) {
|
|
757
|
+
s5 = [s5, s6];
|
|
758
|
+
s4 = s5;
|
|
759
|
+
}
|
|
760
|
+
else {
|
|
761
|
+
peg$currPos = s4;
|
|
762
|
+
s4 = peg$FAILED;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
else {
|
|
766
|
+
peg$currPos = s4;
|
|
767
|
+
s4 = peg$FAILED;
|
|
768
|
+
}
|
|
769
|
+
}
|
|
697
770
|
while (s4 !== peg$FAILED) {
|
|
698
771
|
s3.push(s4);
|
|
699
772
|
s4 = input.charAt(peg$currPos);
|
|
@@ -706,6 +779,43 @@ function peg$parse(input, options) {
|
|
|
706
779
|
peg$fail(peg$e4);
|
|
707
780
|
}
|
|
708
781
|
}
|
|
782
|
+
if (s4 === peg$FAILED) {
|
|
783
|
+
s4 = peg$currPos;
|
|
784
|
+
if (input.charCodeAt(peg$currPos) === 92) {
|
|
785
|
+
s5 = peg$c3;
|
|
786
|
+
peg$currPos++;
|
|
787
|
+
}
|
|
788
|
+
else {
|
|
789
|
+
s5 = peg$FAILED;
|
|
790
|
+
if (peg$silentFails === 0) {
|
|
791
|
+
peg$fail(peg$e5);
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
if (s5 !== peg$FAILED) {
|
|
795
|
+
if (input.length > peg$currPos) {
|
|
796
|
+
s6 = input.charAt(peg$currPos);
|
|
797
|
+
peg$currPos++;
|
|
798
|
+
}
|
|
799
|
+
else {
|
|
800
|
+
s6 = peg$FAILED;
|
|
801
|
+
if (peg$silentFails === 0) {
|
|
802
|
+
peg$fail(peg$e6);
|
|
803
|
+
}
|
|
804
|
+
}
|
|
805
|
+
if (s6 !== peg$FAILED) {
|
|
806
|
+
s5 = [s5, s6];
|
|
807
|
+
s4 = s5;
|
|
808
|
+
}
|
|
809
|
+
else {
|
|
810
|
+
peg$currPos = s4;
|
|
811
|
+
s4 = peg$FAILED;
|
|
812
|
+
}
|
|
813
|
+
}
|
|
814
|
+
else {
|
|
815
|
+
peg$currPos = s4;
|
|
816
|
+
s4 = peg$FAILED;
|
|
817
|
+
}
|
|
818
|
+
}
|
|
709
819
|
}
|
|
710
820
|
s2 = input.substring(s2, peg$currPos);
|
|
711
821
|
if (input.charCodeAt(peg$currPos) === 34) {
|
|
@@ -720,7 +830,7 @@ function peg$parse(input, options) {
|
|
|
720
830
|
}
|
|
721
831
|
if (s3 !== peg$FAILED) {
|
|
722
832
|
peg$savedPos = s0;
|
|
723
|
-
s0 = peg$
|
|
833
|
+
s0 = peg$f7(s2);
|
|
724
834
|
}
|
|
725
835
|
else {
|
|
726
836
|
peg$currPos = s0;
|
|
@@ -735,47 +845,47 @@ function peg$parse(input, options) {
|
|
|
735
845
|
}
|
|
736
846
|
function peg$parseRESULT() {
|
|
737
847
|
let s0;
|
|
738
|
-
if (input.substr(peg$currPos, 7) === peg$
|
|
739
|
-
s0 = peg$
|
|
848
|
+
if (input.substr(peg$currPos, 7) === peg$c4) {
|
|
849
|
+
s0 = peg$c4;
|
|
740
850
|
peg$currPos += 7;
|
|
741
851
|
}
|
|
742
852
|
else {
|
|
743
853
|
s0 = peg$FAILED;
|
|
744
854
|
if (peg$silentFails === 0) {
|
|
745
|
-
peg$fail(peg$
|
|
855
|
+
peg$fail(peg$e7);
|
|
746
856
|
}
|
|
747
857
|
}
|
|
748
858
|
if (s0 === peg$FAILED) {
|
|
749
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
750
|
-
s0 = peg$
|
|
859
|
+
if (input.substr(peg$currPos, 3) === peg$c5) {
|
|
860
|
+
s0 = peg$c5;
|
|
751
861
|
peg$currPos += 3;
|
|
752
862
|
}
|
|
753
863
|
else {
|
|
754
864
|
s0 = peg$FAILED;
|
|
755
865
|
if (peg$silentFails === 0) {
|
|
756
|
-
peg$fail(peg$
|
|
866
|
+
peg$fail(peg$e8);
|
|
757
867
|
}
|
|
758
868
|
}
|
|
759
869
|
if (s0 === peg$FAILED) {
|
|
760
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
761
|
-
s0 = peg$
|
|
870
|
+
if (input.substr(peg$currPos, 3) === peg$c6) {
|
|
871
|
+
s0 = peg$c6;
|
|
762
872
|
peg$currPos += 3;
|
|
763
873
|
}
|
|
764
874
|
else {
|
|
765
875
|
s0 = peg$FAILED;
|
|
766
876
|
if (peg$silentFails === 0) {
|
|
767
|
-
peg$fail(peg$
|
|
877
|
+
peg$fail(peg$e9);
|
|
768
878
|
}
|
|
769
879
|
}
|
|
770
880
|
if (s0 === peg$FAILED) {
|
|
771
881
|
if (input.charCodeAt(peg$currPos) === 42) {
|
|
772
|
-
s0 = peg$
|
|
882
|
+
s0 = peg$c7;
|
|
773
883
|
peg$currPos++;
|
|
774
884
|
}
|
|
775
885
|
else {
|
|
776
886
|
s0 = peg$FAILED;
|
|
777
887
|
if (peg$silentFails === 0) {
|
|
778
|
-
peg$fail(peg$
|
|
888
|
+
peg$fail(peg$e10);
|
|
779
889
|
}
|
|
780
890
|
}
|
|
781
891
|
}
|
|
@@ -794,7 +904,7 @@ function peg$parse(input, options) {
|
|
|
794
904
|
s5 = peg$parseRAV();
|
|
795
905
|
if (s5 !== peg$FAILED) {
|
|
796
906
|
peg$savedPos = s3;
|
|
797
|
-
s3 = peg$
|
|
907
|
+
s3 = peg$f8(s1, s5);
|
|
798
908
|
}
|
|
799
909
|
else {
|
|
800
910
|
peg$currPos = s3;
|
|
@@ -807,7 +917,7 @@ function peg$parse(input, options) {
|
|
|
807
917
|
s5 = peg$parseRAV();
|
|
808
918
|
if (s5 !== peg$FAILED) {
|
|
809
919
|
peg$savedPos = s3;
|
|
810
|
-
s3 = peg$
|
|
920
|
+
s3 = peg$f8(s1, s5);
|
|
811
921
|
}
|
|
812
922
|
else {
|
|
813
923
|
peg$currPos = s3;
|
|
@@ -819,7 +929,7 @@ function peg$parse(input, options) {
|
|
|
819
929
|
s5 = peg$parseMOVES();
|
|
820
930
|
if (s5 !== peg$FAILED) {
|
|
821
931
|
peg$savedPos = s3;
|
|
822
|
-
s3 = peg$
|
|
932
|
+
s3 = peg$f9(s1, s2, s5);
|
|
823
933
|
}
|
|
824
934
|
else {
|
|
825
935
|
peg$currPos = s3;
|
|
@@ -829,7 +939,7 @@ function peg$parse(input, options) {
|
|
|
829
939
|
s3 = null;
|
|
830
940
|
}
|
|
831
941
|
peg$savedPos = s0;
|
|
832
|
-
s0 = peg$
|
|
942
|
+
s0 = peg$f10(s1, s2, s3);
|
|
833
943
|
}
|
|
834
944
|
else {
|
|
835
945
|
peg$currPos = s0;
|
|
@@ -853,7 +963,7 @@ function peg$parse(input, options) {
|
|
|
853
963
|
s7 = peg$parseNAG();
|
|
854
964
|
if (s7 !== peg$FAILED) {
|
|
855
965
|
peg$savedPos = s5;
|
|
856
|
-
s5 = peg$
|
|
966
|
+
s5 = peg$f11(s1, s3, s7);
|
|
857
967
|
}
|
|
858
968
|
else {
|
|
859
969
|
peg$currPos = s5;
|
|
@@ -866,7 +976,7 @@ function peg$parse(input, options) {
|
|
|
866
976
|
s7 = peg$parseNAG();
|
|
867
977
|
if (s7 !== peg$FAILED) {
|
|
868
978
|
peg$savedPos = s5;
|
|
869
|
-
s5 = peg$
|
|
979
|
+
s5 = peg$f11(s1, s3, s7);
|
|
870
980
|
}
|
|
871
981
|
else {
|
|
872
982
|
peg$currPos = s5;
|
|
@@ -879,7 +989,7 @@ function peg$parse(input, options) {
|
|
|
879
989
|
s8 = peg$parseCOMMENT();
|
|
880
990
|
if (s8 !== peg$FAILED) {
|
|
881
991
|
peg$savedPos = s6;
|
|
882
|
-
s6 = peg$
|
|
992
|
+
s6 = peg$f12(s1, s3, s4, s8);
|
|
883
993
|
}
|
|
884
994
|
else {
|
|
885
995
|
peg$currPos = s6;
|
|
@@ -892,7 +1002,7 @@ function peg$parse(input, options) {
|
|
|
892
1002
|
s8 = peg$parseCOMMENT();
|
|
893
1003
|
if (s8 !== peg$FAILED) {
|
|
894
1004
|
peg$savedPos = s6;
|
|
895
|
-
s6 = peg$
|
|
1005
|
+
s6 = peg$f12(s1, s3, s4, s8);
|
|
896
1006
|
}
|
|
897
1007
|
else {
|
|
898
1008
|
peg$currPos = s6;
|
|
@@ -900,7 +1010,7 @@ function peg$parse(input, options) {
|
|
|
900
1010
|
}
|
|
901
1011
|
}
|
|
902
1012
|
peg$savedPos = s0;
|
|
903
|
-
s0 = peg$
|
|
1013
|
+
s0 = peg$f13(s1, s3, s4, s5);
|
|
904
1014
|
}
|
|
905
1015
|
else {
|
|
906
1016
|
peg$currPos = s0;
|
|
@@ -921,7 +1031,7 @@ function peg$parse(input, options) {
|
|
|
921
1031
|
else {
|
|
922
1032
|
s4 = peg$FAILED;
|
|
923
1033
|
if (peg$silentFails === 0) {
|
|
924
|
-
peg$fail(peg$
|
|
1034
|
+
peg$fail(peg$e11);
|
|
925
1035
|
}
|
|
926
1036
|
}
|
|
927
1037
|
if (s4 !== peg$FAILED) {
|
|
@@ -934,7 +1044,7 @@ function peg$parse(input, options) {
|
|
|
934
1044
|
else {
|
|
935
1045
|
s4 = peg$FAILED;
|
|
936
1046
|
if (peg$silentFails === 0) {
|
|
937
|
-
peg$fail(peg$
|
|
1047
|
+
peg$fail(peg$e11);
|
|
938
1048
|
}
|
|
939
1049
|
}
|
|
940
1050
|
}
|
|
@@ -945,25 +1055,25 @@ function peg$parse(input, options) {
|
|
|
945
1055
|
if (s3 !== peg$FAILED) {
|
|
946
1056
|
s4 = [];
|
|
947
1057
|
if (input.charCodeAt(peg$currPos) === 46) {
|
|
948
|
-
s5 = peg$
|
|
1058
|
+
s5 = peg$c8;
|
|
949
1059
|
peg$currPos++;
|
|
950
1060
|
}
|
|
951
1061
|
else {
|
|
952
1062
|
s5 = peg$FAILED;
|
|
953
1063
|
if (peg$silentFails === 0) {
|
|
954
|
-
peg$fail(peg$
|
|
1064
|
+
peg$fail(peg$e12);
|
|
955
1065
|
}
|
|
956
1066
|
}
|
|
957
1067
|
while (s5 !== peg$FAILED) {
|
|
958
1068
|
s4.push(s5);
|
|
959
1069
|
if (input.charCodeAt(peg$currPos) === 46) {
|
|
960
|
-
s5 = peg$
|
|
1070
|
+
s5 = peg$c8;
|
|
961
1071
|
peg$currPos++;
|
|
962
1072
|
}
|
|
963
1073
|
else {
|
|
964
1074
|
s5 = peg$FAILED;
|
|
965
1075
|
if (peg$silentFails === 0) {
|
|
966
|
-
peg$fail(peg$
|
|
1076
|
+
peg$fail(peg$e12);
|
|
967
1077
|
}
|
|
968
1078
|
}
|
|
969
1079
|
}
|
|
@@ -982,7 +1092,7 @@ function peg$parse(input, options) {
|
|
|
982
1092
|
}
|
|
983
1093
|
if (s1 !== peg$FAILED) {
|
|
984
1094
|
peg$savedPos = s0;
|
|
985
|
-
s1 = peg$
|
|
1095
|
+
s1 = peg$f14(s1);
|
|
986
1096
|
}
|
|
987
1097
|
s0 = s1;
|
|
988
1098
|
return s0;
|
|
@@ -1004,14 +1114,14 @@ function peg$parse(input, options) {
|
|
|
1004
1114
|
function peg$parseCASTLING() {
|
|
1005
1115
|
let s0, s1, s2, s3;
|
|
1006
1116
|
s0 = peg$currPos;
|
|
1007
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
1008
|
-
s1 = peg$
|
|
1117
|
+
if (input.substr(peg$currPos, 5) === peg$c9) {
|
|
1118
|
+
s1 = peg$c9;
|
|
1009
1119
|
peg$currPos += 5;
|
|
1010
1120
|
}
|
|
1011
1121
|
else {
|
|
1012
1122
|
s1 = peg$FAILED;
|
|
1013
1123
|
if (peg$silentFails === 0) {
|
|
1014
|
-
peg$fail(peg$
|
|
1124
|
+
peg$fail(peg$e13);
|
|
1015
1125
|
}
|
|
1016
1126
|
}
|
|
1017
1127
|
if (s1 !== peg$FAILED) {
|
|
@@ -1023,7 +1133,7 @@ function peg$parse(input, options) {
|
|
|
1023
1133
|
else {
|
|
1024
1134
|
s3 = peg$FAILED;
|
|
1025
1135
|
if (peg$silentFails === 0) {
|
|
1026
|
-
peg$fail(peg$
|
|
1136
|
+
peg$fail(peg$e14);
|
|
1027
1137
|
}
|
|
1028
1138
|
}
|
|
1029
1139
|
if (s3 === peg$FAILED) {
|
|
@@ -1031,7 +1141,7 @@ function peg$parse(input, options) {
|
|
|
1031
1141
|
}
|
|
1032
1142
|
s2 = input.substring(s2, peg$currPos);
|
|
1033
1143
|
peg$savedPos = s0;
|
|
1034
|
-
s0 = peg$
|
|
1144
|
+
s0 = peg$f15(s2);
|
|
1035
1145
|
}
|
|
1036
1146
|
else {
|
|
1037
1147
|
peg$currPos = s0;
|
|
@@ -1039,14 +1149,14 @@ function peg$parse(input, options) {
|
|
|
1039
1149
|
}
|
|
1040
1150
|
if (s0 === peg$FAILED) {
|
|
1041
1151
|
s0 = peg$currPos;
|
|
1042
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
1043
|
-
s1 = peg$
|
|
1152
|
+
if (input.substr(peg$currPos, 3) === peg$c10) {
|
|
1153
|
+
s1 = peg$c10;
|
|
1044
1154
|
peg$currPos += 3;
|
|
1045
1155
|
}
|
|
1046
1156
|
else {
|
|
1047
1157
|
s1 = peg$FAILED;
|
|
1048
1158
|
if (peg$silentFails === 0) {
|
|
1049
|
-
peg$fail(peg$
|
|
1159
|
+
peg$fail(peg$e15);
|
|
1050
1160
|
}
|
|
1051
1161
|
}
|
|
1052
1162
|
if (s1 !== peg$FAILED) {
|
|
@@ -1058,7 +1168,7 @@ function peg$parse(input, options) {
|
|
|
1058
1168
|
else {
|
|
1059
1169
|
s3 = peg$FAILED;
|
|
1060
1170
|
if (peg$silentFails === 0) {
|
|
1061
|
-
peg$fail(peg$
|
|
1171
|
+
peg$fail(peg$e14);
|
|
1062
1172
|
}
|
|
1063
1173
|
}
|
|
1064
1174
|
if (s3 === peg$FAILED) {
|
|
@@ -1066,7 +1176,7 @@ function peg$parse(input, options) {
|
|
|
1066
1176
|
}
|
|
1067
1177
|
s2 = input.substring(s2, peg$currPos);
|
|
1068
1178
|
peg$savedPos = s0;
|
|
1069
|
-
s0 = peg$
|
|
1179
|
+
s0 = peg$f16(s2);
|
|
1070
1180
|
}
|
|
1071
1181
|
else {
|
|
1072
1182
|
peg$currPos = s0;
|
|
@@ -1085,7 +1195,7 @@ function peg$parse(input, options) {
|
|
|
1085
1195
|
else {
|
|
1086
1196
|
s1 = peg$FAILED;
|
|
1087
1197
|
if (peg$silentFails === 0) {
|
|
1088
|
-
peg$fail(peg$
|
|
1198
|
+
peg$fail(peg$e16);
|
|
1089
1199
|
}
|
|
1090
1200
|
}
|
|
1091
1201
|
if (s1 !== peg$FAILED) {
|
|
@@ -1096,7 +1206,7 @@ function peg$parse(input, options) {
|
|
|
1096
1206
|
else {
|
|
1097
1207
|
s2 = peg$FAILED;
|
|
1098
1208
|
if (peg$silentFails === 0) {
|
|
1099
|
-
peg$fail(peg$
|
|
1209
|
+
peg$fail(peg$e17);
|
|
1100
1210
|
}
|
|
1101
1211
|
}
|
|
1102
1212
|
if (s2 !== peg$FAILED) {
|
|
@@ -1107,18 +1217,18 @@ function peg$parse(input, options) {
|
|
|
1107
1217
|
else {
|
|
1108
1218
|
s3 = peg$FAILED;
|
|
1109
1219
|
if (peg$silentFails === 0) {
|
|
1110
|
-
peg$fail(peg$
|
|
1220
|
+
peg$fail(peg$e18);
|
|
1111
1221
|
}
|
|
1112
1222
|
}
|
|
1113
1223
|
if (s3 !== peg$FAILED) {
|
|
1114
1224
|
if (input.charCodeAt(peg$currPos) === 120) {
|
|
1115
|
-
s4 = peg$
|
|
1225
|
+
s4 = peg$c11;
|
|
1116
1226
|
peg$currPos++;
|
|
1117
1227
|
}
|
|
1118
1228
|
else {
|
|
1119
1229
|
s4 = peg$FAILED;
|
|
1120
1230
|
if (peg$silentFails === 0) {
|
|
1121
|
-
peg$fail(peg$
|
|
1231
|
+
peg$fail(peg$e19);
|
|
1122
1232
|
}
|
|
1123
1233
|
}
|
|
1124
1234
|
if (s4 !== peg$FAILED) {
|
|
@@ -1129,7 +1239,7 @@ function peg$parse(input, options) {
|
|
|
1129
1239
|
else {
|
|
1130
1240
|
s5 = peg$FAILED;
|
|
1131
1241
|
if (peg$silentFails === 0) {
|
|
1132
|
-
peg$fail(peg$
|
|
1242
|
+
peg$fail(peg$e17);
|
|
1133
1243
|
}
|
|
1134
1244
|
}
|
|
1135
1245
|
if (s5 !== peg$FAILED) {
|
|
@@ -1140,7 +1250,7 @@ function peg$parse(input, options) {
|
|
|
1140
1250
|
else {
|
|
1141
1251
|
s6 = peg$FAILED;
|
|
1142
1252
|
if (peg$silentFails === 0) {
|
|
1143
|
-
peg$fail(peg$
|
|
1253
|
+
peg$fail(peg$e18);
|
|
1144
1254
|
}
|
|
1145
1255
|
}
|
|
1146
1256
|
if (s6 !== peg$FAILED) {
|
|
@@ -1156,7 +1266,7 @@ function peg$parse(input, options) {
|
|
|
1156
1266
|
else {
|
|
1157
1267
|
s9 = peg$FAILED;
|
|
1158
1268
|
if (peg$silentFails === 0) {
|
|
1159
|
-
peg$fail(peg$
|
|
1269
|
+
peg$fail(peg$e14);
|
|
1160
1270
|
}
|
|
1161
1271
|
}
|
|
1162
1272
|
if (s9 === peg$FAILED) {
|
|
@@ -1164,7 +1274,7 @@ function peg$parse(input, options) {
|
|
|
1164
1274
|
}
|
|
1165
1275
|
s8 = input.substring(s8, peg$currPos);
|
|
1166
1276
|
peg$savedPos = s0;
|
|
1167
|
-
s0 = peg$
|
|
1277
|
+
s0 = peg$f17(s1, s2, s3, s5, s6, s7, s8);
|
|
1168
1278
|
}
|
|
1169
1279
|
else {
|
|
1170
1280
|
peg$currPos = s0;
|
|
@@ -1204,7 +1314,7 @@ function peg$parse(input, options) {
|
|
|
1204
1314
|
else {
|
|
1205
1315
|
s1 = peg$FAILED;
|
|
1206
1316
|
if (peg$silentFails === 0) {
|
|
1207
|
-
peg$fail(peg$
|
|
1317
|
+
peg$fail(peg$e16);
|
|
1208
1318
|
}
|
|
1209
1319
|
}
|
|
1210
1320
|
if (s1 !== peg$FAILED) {
|
|
@@ -1215,7 +1325,7 @@ function peg$parse(input, options) {
|
|
|
1215
1325
|
else {
|
|
1216
1326
|
s2 = peg$FAILED;
|
|
1217
1327
|
if (peg$silentFails === 0) {
|
|
1218
|
-
peg$fail(peg$
|
|
1328
|
+
peg$fail(peg$e17);
|
|
1219
1329
|
}
|
|
1220
1330
|
}
|
|
1221
1331
|
if (s2 !== peg$FAILED) {
|
|
@@ -1226,7 +1336,7 @@ function peg$parse(input, options) {
|
|
|
1226
1336
|
else {
|
|
1227
1337
|
s3 = peg$FAILED;
|
|
1228
1338
|
if (peg$silentFails === 0) {
|
|
1229
|
-
peg$fail(peg$
|
|
1339
|
+
peg$fail(peg$e18);
|
|
1230
1340
|
}
|
|
1231
1341
|
}
|
|
1232
1342
|
if (s3 !== peg$FAILED) {
|
|
@@ -1237,7 +1347,7 @@ function peg$parse(input, options) {
|
|
|
1237
1347
|
else {
|
|
1238
1348
|
s4 = peg$FAILED;
|
|
1239
1349
|
if (peg$silentFails === 0) {
|
|
1240
|
-
peg$fail(peg$
|
|
1350
|
+
peg$fail(peg$e17);
|
|
1241
1351
|
}
|
|
1242
1352
|
}
|
|
1243
1353
|
if (s4 !== peg$FAILED) {
|
|
@@ -1248,7 +1358,7 @@ function peg$parse(input, options) {
|
|
|
1248
1358
|
else {
|
|
1249
1359
|
s5 = peg$FAILED;
|
|
1250
1360
|
if (peg$silentFails === 0) {
|
|
1251
|
-
peg$fail(peg$
|
|
1361
|
+
peg$fail(peg$e18);
|
|
1252
1362
|
}
|
|
1253
1363
|
}
|
|
1254
1364
|
if (s5 !== peg$FAILED) {
|
|
@@ -1264,7 +1374,7 @@ function peg$parse(input, options) {
|
|
|
1264
1374
|
else {
|
|
1265
1375
|
s8 = peg$FAILED;
|
|
1266
1376
|
if (peg$silentFails === 0) {
|
|
1267
|
-
peg$fail(peg$
|
|
1377
|
+
peg$fail(peg$e14);
|
|
1268
1378
|
}
|
|
1269
1379
|
}
|
|
1270
1380
|
if (s8 === peg$FAILED) {
|
|
@@ -1272,7 +1382,7 @@ function peg$parse(input, options) {
|
|
|
1272
1382
|
}
|
|
1273
1383
|
s7 = input.substring(s7, peg$currPos);
|
|
1274
1384
|
peg$savedPos = s0;
|
|
1275
|
-
s0 = peg$
|
|
1385
|
+
s0 = peg$f18(s1, s2, s3, s4, s5, s6, s7);
|
|
1276
1386
|
}
|
|
1277
1387
|
else {
|
|
1278
1388
|
peg$currPos = s0;
|
|
@@ -1307,7 +1417,7 @@ function peg$parse(input, options) {
|
|
|
1307
1417
|
else {
|
|
1308
1418
|
s1 = peg$FAILED;
|
|
1309
1419
|
if (peg$silentFails === 0) {
|
|
1310
|
-
peg$fail(peg$
|
|
1420
|
+
peg$fail(peg$e16);
|
|
1311
1421
|
}
|
|
1312
1422
|
}
|
|
1313
1423
|
if (s1 !== peg$FAILED) {
|
|
@@ -1318,18 +1428,18 @@ function peg$parse(input, options) {
|
|
|
1318
1428
|
else {
|
|
1319
1429
|
s2 = peg$FAILED;
|
|
1320
1430
|
if (peg$silentFails === 0) {
|
|
1321
|
-
peg$fail(peg$
|
|
1431
|
+
peg$fail(peg$e17);
|
|
1322
1432
|
}
|
|
1323
1433
|
}
|
|
1324
1434
|
if (s2 !== peg$FAILED) {
|
|
1325
1435
|
if (input.charCodeAt(peg$currPos) === 120) {
|
|
1326
|
-
s3 = peg$
|
|
1436
|
+
s3 = peg$c11;
|
|
1327
1437
|
peg$currPos++;
|
|
1328
1438
|
}
|
|
1329
1439
|
else {
|
|
1330
1440
|
s3 = peg$FAILED;
|
|
1331
1441
|
if (peg$silentFails === 0) {
|
|
1332
|
-
peg$fail(peg$
|
|
1442
|
+
peg$fail(peg$e19);
|
|
1333
1443
|
}
|
|
1334
1444
|
}
|
|
1335
1445
|
if (s3 !== peg$FAILED) {
|
|
@@ -1340,7 +1450,7 @@ function peg$parse(input, options) {
|
|
|
1340
1450
|
else {
|
|
1341
1451
|
s4 = peg$FAILED;
|
|
1342
1452
|
if (peg$silentFails === 0) {
|
|
1343
|
-
peg$fail(peg$
|
|
1453
|
+
peg$fail(peg$e17);
|
|
1344
1454
|
}
|
|
1345
1455
|
}
|
|
1346
1456
|
if (s4 !== peg$FAILED) {
|
|
@@ -1351,7 +1461,7 @@ function peg$parse(input, options) {
|
|
|
1351
1461
|
else {
|
|
1352
1462
|
s5 = peg$FAILED;
|
|
1353
1463
|
if (peg$silentFails === 0) {
|
|
1354
|
-
peg$fail(peg$
|
|
1464
|
+
peg$fail(peg$e18);
|
|
1355
1465
|
}
|
|
1356
1466
|
}
|
|
1357
1467
|
if (s5 !== peg$FAILED) {
|
|
@@ -1367,7 +1477,7 @@ function peg$parse(input, options) {
|
|
|
1367
1477
|
else {
|
|
1368
1478
|
s8 = peg$FAILED;
|
|
1369
1479
|
if (peg$silentFails === 0) {
|
|
1370
|
-
peg$fail(peg$
|
|
1480
|
+
peg$fail(peg$e14);
|
|
1371
1481
|
}
|
|
1372
1482
|
}
|
|
1373
1483
|
if (s8 === peg$FAILED) {
|
|
@@ -1375,7 +1485,7 @@ function peg$parse(input, options) {
|
|
|
1375
1485
|
}
|
|
1376
1486
|
s7 = input.substring(s7, peg$currPos);
|
|
1377
1487
|
peg$savedPos = s0;
|
|
1378
|
-
s0 = peg$
|
|
1488
|
+
s0 = peg$f19(s1, s2, s4, s5, s6, s7);
|
|
1379
1489
|
}
|
|
1380
1490
|
else {
|
|
1381
1491
|
peg$currPos = s0;
|
|
@@ -1410,7 +1520,7 @@ function peg$parse(input, options) {
|
|
|
1410
1520
|
else {
|
|
1411
1521
|
s1 = peg$FAILED;
|
|
1412
1522
|
if (peg$silentFails === 0) {
|
|
1413
|
-
peg$fail(peg$
|
|
1523
|
+
peg$fail(peg$e16);
|
|
1414
1524
|
}
|
|
1415
1525
|
}
|
|
1416
1526
|
if (s1 !== peg$FAILED) {
|
|
@@ -1421,18 +1531,18 @@ function peg$parse(input, options) {
|
|
|
1421
1531
|
else {
|
|
1422
1532
|
s2 = peg$FAILED;
|
|
1423
1533
|
if (peg$silentFails === 0) {
|
|
1424
|
-
peg$fail(peg$
|
|
1534
|
+
peg$fail(peg$e18);
|
|
1425
1535
|
}
|
|
1426
1536
|
}
|
|
1427
1537
|
if (s2 !== peg$FAILED) {
|
|
1428
1538
|
if (input.charCodeAt(peg$currPos) === 120) {
|
|
1429
|
-
s3 = peg$
|
|
1539
|
+
s3 = peg$c11;
|
|
1430
1540
|
peg$currPos++;
|
|
1431
1541
|
}
|
|
1432
1542
|
else {
|
|
1433
1543
|
s3 = peg$FAILED;
|
|
1434
1544
|
if (peg$silentFails === 0) {
|
|
1435
|
-
peg$fail(peg$
|
|
1545
|
+
peg$fail(peg$e19);
|
|
1436
1546
|
}
|
|
1437
1547
|
}
|
|
1438
1548
|
if (s3 !== peg$FAILED) {
|
|
@@ -1443,7 +1553,7 @@ function peg$parse(input, options) {
|
|
|
1443
1553
|
else {
|
|
1444
1554
|
s4 = peg$FAILED;
|
|
1445
1555
|
if (peg$silentFails === 0) {
|
|
1446
|
-
peg$fail(peg$
|
|
1556
|
+
peg$fail(peg$e17);
|
|
1447
1557
|
}
|
|
1448
1558
|
}
|
|
1449
1559
|
if (s4 !== peg$FAILED) {
|
|
@@ -1454,7 +1564,7 @@ function peg$parse(input, options) {
|
|
|
1454
1564
|
else {
|
|
1455
1565
|
s5 = peg$FAILED;
|
|
1456
1566
|
if (peg$silentFails === 0) {
|
|
1457
|
-
peg$fail(peg$
|
|
1567
|
+
peg$fail(peg$e18);
|
|
1458
1568
|
}
|
|
1459
1569
|
}
|
|
1460
1570
|
if (s5 !== peg$FAILED) {
|
|
@@ -1470,7 +1580,7 @@ function peg$parse(input, options) {
|
|
|
1470
1580
|
else {
|
|
1471
1581
|
s8 = peg$FAILED;
|
|
1472
1582
|
if (peg$silentFails === 0) {
|
|
1473
|
-
peg$fail(peg$
|
|
1583
|
+
peg$fail(peg$e14);
|
|
1474
1584
|
}
|
|
1475
1585
|
}
|
|
1476
1586
|
if (s8 === peg$FAILED) {
|
|
@@ -1478,7 +1588,7 @@ function peg$parse(input, options) {
|
|
|
1478
1588
|
}
|
|
1479
1589
|
s7 = input.substring(s7, peg$currPos);
|
|
1480
1590
|
peg$savedPos = s0;
|
|
1481
|
-
s0 = peg$
|
|
1591
|
+
s0 = peg$f20(s1, s2, s4, s5, s6, s7);
|
|
1482
1592
|
}
|
|
1483
1593
|
else {
|
|
1484
1594
|
peg$currPos = s0;
|
|
@@ -1513,7 +1623,7 @@ function peg$parse(input, options) {
|
|
|
1513
1623
|
else {
|
|
1514
1624
|
s1 = peg$FAILED;
|
|
1515
1625
|
if (peg$silentFails === 0) {
|
|
1516
|
-
peg$fail(peg$
|
|
1626
|
+
peg$fail(peg$e16);
|
|
1517
1627
|
}
|
|
1518
1628
|
}
|
|
1519
1629
|
if (s1 !== peg$FAILED) {
|
|
@@ -1524,7 +1634,7 @@ function peg$parse(input, options) {
|
|
|
1524
1634
|
else {
|
|
1525
1635
|
s2 = peg$FAILED;
|
|
1526
1636
|
if (peg$silentFails === 0) {
|
|
1527
|
-
peg$fail(peg$
|
|
1637
|
+
peg$fail(peg$e17);
|
|
1528
1638
|
}
|
|
1529
1639
|
}
|
|
1530
1640
|
if (s2 !== peg$FAILED) {
|
|
@@ -1535,7 +1645,7 @@ function peg$parse(input, options) {
|
|
|
1535
1645
|
else {
|
|
1536
1646
|
s3 = peg$FAILED;
|
|
1537
1647
|
if (peg$silentFails === 0) {
|
|
1538
|
-
peg$fail(peg$
|
|
1648
|
+
peg$fail(peg$e17);
|
|
1539
1649
|
}
|
|
1540
1650
|
}
|
|
1541
1651
|
if (s3 !== peg$FAILED) {
|
|
@@ -1546,7 +1656,7 @@ function peg$parse(input, options) {
|
|
|
1546
1656
|
else {
|
|
1547
1657
|
s4 = peg$FAILED;
|
|
1548
1658
|
if (peg$silentFails === 0) {
|
|
1549
|
-
peg$fail(peg$
|
|
1659
|
+
peg$fail(peg$e18);
|
|
1550
1660
|
}
|
|
1551
1661
|
}
|
|
1552
1662
|
if (s4 !== peg$FAILED) {
|
|
@@ -1562,7 +1672,7 @@ function peg$parse(input, options) {
|
|
|
1562
1672
|
else {
|
|
1563
1673
|
s7 = peg$FAILED;
|
|
1564
1674
|
if (peg$silentFails === 0) {
|
|
1565
|
-
peg$fail(peg$
|
|
1675
|
+
peg$fail(peg$e14);
|
|
1566
1676
|
}
|
|
1567
1677
|
}
|
|
1568
1678
|
if (s7 === peg$FAILED) {
|
|
@@ -1570,7 +1680,7 @@ function peg$parse(input, options) {
|
|
|
1570
1680
|
}
|
|
1571
1681
|
s6 = input.substring(s6, peg$currPos);
|
|
1572
1682
|
peg$savedPos = s0;
|
|
1573
|
-
s0 = peg$
|
|
1683
|
+
s0 = peg$f21(s1, s2, s3, s4, s5, s6);
|
|
1574
1684
|
}
|
|
1575
1685
|
else {
|
|
1576
1686
|
peg$currPos = s0;
|
|
@@ -1600,7 +1710,7 @@ function peg$parse(input, options) {
|
|
|
1600
1710
|
else {
|
|
1601
1711
|
s1 = peg$FAILED;
|
|
1602
1712
|
if (peg$silentFails === 0) {
|
|
1603
|
-
peg$fail(peg$
|
|
1713
|
+
peg$fail(peg$e16);
|
|
1604
1714
|
}
|
|
1605
1715
|
}
|
|
1606
1716
|
if (s1 !== peg$FAILED) {
|
|
@@ -1611,7 +1721,7 @@ function peg$parse(input, options) {
|
|
|
1611
1721
|
else {
|
|
1612
1722
|
s2 = peg$FAILED;
|
|
1613
1723
|
if (peg$silentFails === 0) {
|
|
1614
|
-
peg$fail(peg$
|
|
1724
|
+
peg$fail(peg$e18);
|
|
1615
1725
|
}
|
|
1616
1726
|
}
|
|
1617
1727
|
if (s2 !== peg$FAILED) {
|
|
@@ -1622,7 +1732,7 @@ function peg$parse(input, options) {
|
|
|
1622
1732
|
else {
|
|
1623
1733
|
s3 = peg$FAILED;
|
|
1624
1734
|
if (peg$silentFails === 0) {
|
|
1625
|
-
peg$fail(peg$
|
|
1735
|
+
peg$fail(peg$e17);
|
|
1626
1736
|
}
|
|
1627
1737
|
}
|
|
1628
1738
|
if (s3 !== peg$FAILED) {
|
|
@@ -1633,7 +1743,7 @@ function peg$parse(input, options) {
|
|
|
1633
1743
|
else {
|
|
1634
1744
|
s4 = peg$FAILED;
|
|
1635
1745
|
if (peg$silentFails === 0) {
|
|
1636
|
-
peg$fail(peg$
|
|
1746
|
+
peg$fail(peg$e18);
|
|
1637
1747
|
}
|
|
1638
1748
|
}
|
|
1639
1749
|
if (s4 !== peg$FAILED) {
|
|
@@ -1649,7 +1759,7 @@ function peg$parse(input, options) {
|
|
|
1649
1759
|
else {
|
|
1650
1760
|
s7 = peg$FAILED;
|
|
1651
1761
|
if (peg$silentFails === 0) {
|
|
1652
|
-
peg$fail(peg$
|
|
1762
|
+
peg$fail(peg$e14);
|
|
1653
1763
|
}
|
|
1654
1764
|
}
|
|
1655
1765
|
if (s7 === peg$FAILED) {
|
|
@@ -1657,7 +1767,7 @@ function peg$parse(input, options) {
|
|
|
1657
1767
|
}
|
|
1658
1768
|
s6 = input.substring(s6, peg$currPos);
|
|
1659
1769
|
peg$savedPos = s0;
|
|
1660
|
-
s0 = peg$
|
|
1770
|
+
s0 = peg$f22(s1, s2, s3, s4, s5, s6);
|
|
1661
1771
|
}
|
|
1662
1772
|
else {
|
|
1663
1773
|
peg$currPos = s0;
|
|
@@ -1687,18 +1797,18 @@ function peg$parse(input, options) {
|
|
|
1687
1797
|
else {
|
|
1688
1798
|
s1 = peg$FAILED;
|
|
1689
1799
|
if (peg$silentFails === 0) {
|
|
1690
|
-
peg$fail(peg$
|
|
1800
|
+
peg$fail(peg$e16);
|
|
1691
1801
|
}
|
|
1692
1802
|
}
|
|
1693
1803
|
if (s1 !== peg$FAILED) {
|
|
1694
1804
|
if (input.charCodeAt(peg$currPos) === 120) {
|
|
1695
|
-
s2 = peg$
|
|
1805
|
+
s2 = peg$c11;
|
|
1696
1806
|
peg$currPos++;
|
|
1697
1807
|
}
|
|
1698
1808
|
else {
|
|
1699
1809
|
s2 = peg$FAILED;
|
|
1700
1810
|
if (peg$silentFails === 0) {
|
|
1701
|
-
peg$fail(peg$
|
|
1811
|
+
peg$fail(peg$e19);
|
|
1702
1812
|
}
|
|
1703
1813
|
}
|
|
1704
1814
|
if (s2 !== peg$FAILED) {
|
|
@@ -1709,7 +1819,7 @@ function peg$parse(input, options) {
|
|
|
1709
1819
|
else {
|
|
1710
1820
|
s3 = peg$FAILED;
|
|
1711
1821
|
if (peg$silentFails === 0) {
|
|
1712
|
-
peg$fail(peg$
|
|
1822
|
+
peg$fail(peg$e17);
|
|
1713
1823
|
}
|
|
1714
1824
|
}
|
|
1715
1825
|
if (s3 !== peg$FAILED) {
|
|
@@ -1720,7 +1830,7 @@ function peg$parse(input, options) {
|
|
|
1720
1830
|
else {
|
|
1721
1831
|
s4 = peg$FAILED;
|
|
1722
1832
|
if (peg$silentFails === 0) {
|
|
1723
|
-
peg$fail(peg$
|
|
1833
|
+
peg$fail(peg$e18);
|
|
1724
1834
|
}
|
|
1725
1835
|
}
|
|
1726
1836
|
if (s4 !== peg$FAILED) {
|
|
@@ -1736,7 +1846,7 @@ function peg$parse(input, options) {
|
|
|
1736
1846
|
else {
|
|
1737
1847
|
s7 = peg$FAILED;
|
|
1738
1848
|
if (peg$silentFails === 0) {
|
|
1739
|
-
peg$fail(peg$
|
|
1849
|
+
peg$fail(peg$e14);
|
|
1740
1850
|
}
|
|
1741
1851
|
}
|
|
1742
1852
|
if (s7 === peg$FAILED) {
|
|
@@ -1744,7 +1854,7 @@ function peg$parse(input, options) {
|
|
|
1744
1854
|
}
|
|
1745
1855
|
s6 = input.substring(s6, peg$currPos);
|
|
1746
1856
|
peg$savedPos = s0;
|
|
1747
|
-
s0 = peg$
|
|
1857
|
+
s0 = peg$f23(s1, s3, s4, s5, s6);
|
|
1748
1858
|
}
|
|
1749
1859
|
else {
|
|
1750
1860
|
peg$currPos = s0;
|
|
@@ -1774,7 +1884,7 @@ function peg$parse(input, options) {
|
|
|
1774
1884
|
else {
|
|
1775
1885
|
s1 = peg$FAILED;
|
|
1776
1886
|
if (peg$silentFails === 0) {
|
|
1777
|
-
peg$fail(peg$
|
|
1887
|
+
peg$fail(peg$e16);
|
|
1778
1888
|
}
|
|
1779
1889
|
}
|
|
1780
1890
|
if (s1 !== peg$FAILED) {
|
|
@@ -1785,7 +1895,7 @@ function peg$parse(input, options) {
|
|
|
1785
1895
|
else {
|
|
1786
1896
|
s2 = peg$FAILED;
|
|
1787
1897
|
if (peg$silentFails === 0) {
|
|
1788
|
-
peg$fail(peg$
|
|
1898
|
+
peg$fail(peg$e17);
|
|
1789
1899
|
}
|
|
1790
1900
|
}
|
|
1791
1901
|
if (s2 !== peg$FAILED) {
|
|
@@ -1796,7 +1906,7 @@ function peg$parse(input, options) {
|
|
|
1796
1906
|
else {
|
|
1797
1907
|
s3 = peg$FAILED;
|
|
1798
1908
|
if (peg$silentFails === 0) {
|
|
1799
|
-
peg$fail(peg$
|
|
1909
|
+
peg$fail(peg$e18);
|
|
1800
1910
|
}
|
|
1801
1911
|
}
|
|
1802
1912
|
if (s3 !== peg$FAILED) {
|
|
@@ -1812,7 +1922,7 @@ function peg$parse(input, options) {
|
|
|
1812
1922
|
else {
|
|
1813
1923
|
s6 = peg$FAILED;
|
|
1814
1924
|
if (peg$silentFails === 0) {
|
|
1815
|
-
peg$fail(peg$
|
|
1925
|
+
peg$fail(peg$e14);
|
|
1816
1926
|
}
|
|
1817
1927
|
}
|
|
1818
1928
|
if (s6 === peg$FAILED) {
|
|
@@ -1820,7 +1930,7 @@ function peg$parse(input, options) {
|
|
|
1820
1930
|
}
|
|
1821
1931
|
s5 = input.substring(s5, peg$currPos);
|
|
1822
1932
|
peg$savedPos = s0;
|
|
1823
|
-
s0 = peg$
|
|
1933
|
+
s0 = peg$f24(s1, s2, s3, s4, s5);
|
|
1824
1934
|
}
|
|
1825
1935
|
else {
|
|
1826
1936
|
peg$currPos = s0;
|
|
@@ -1855,18 +1965,18 @@ function peg$parse(input, options) {
|
|
|
1855
1965
|
else {
|
|
1856
1966
|
s1 = peg$FAILED;
|
|
1857
1967
|
if (peg$silentFails === 0) {
|
|
1858
|
-
peg$fail(peg$
|
|
1968
|
+
peg$fail(peg$e17);
|
|
1859
1969
|
}
|
|
1860
1970
|
}
|
|
1861
1971
|
if (s1 !== peg$FAILED) {
|
|
1862
1972
|
if (input.charCodeAt(peg$currPos) === 120) {
|
|
1863
|
-
s2 = peg$
|
|
1973
|
+
s2 = peg$c11;
|
|
1864
1974
|
peg$currPos++;
|
|
1865
1975
|
}
|
|
1866
1976
|
else {
|
|
1867
1977
|
s2 = peg$FAILED;
|
|
1868
1978
|
if (peg$silentFails === 0) {
|
|
1869
|
-
peg$fail(peg$
|
|
1979
|
+
peg$fail(peg$e19);
|
|
1870
1980
|
}
|
|
1871
1981
|
}
|
|
1872
1982
|
if (s2 !== peg$FAILED) {
|
|
@@ -1877,7 +1987,7 @@ function peg$parse(input, options) {
|
|
|
1877
1987
|
else {
|
|
1878
1988
|
s3 = peg$FAILED;
|
|
1879
1989
|
if (peg$silentFails === 0) {
|
|
1880
|
-
peg$fail(peg$
|
|
1990
|
+
peg$fail(peg$e17);
|
|
1881
1991
|
}
|
|
1882
1992
|
}
|
|
1883
1993
|
if (s3 !== peg$FAILED) {
|
|
@@ -1888,7 +1998,7 @@ function peg$parse(input, options) {
|
|
|
1888
1998
|
else {
|
|
1889
1999
|
s4 = peg$FAILED;
|
|
1890
2000
|
if (peg$silentFails === 0) {
|
|
1891
|
-
peg$fail(peg$
|
|
2001
|
+
peg$fail(peg$e18);
|
|
1892
2002
|
}
|
|
1893
2003
|
}
|
|
1894
2004
|
if (s4 !== peg$FAILED) {
|
|
@@ -1904,7 +2014,7 @@ function peg$parse(input, options) {
|
|
|
1904
2014
|
else {
|
|
1905
2015
|
s7 = peg$FAILED;
|
|
1906
2016
|
if (peg$silentFails === 0) {
|
|
1907
|
-
peg$fail(peg$
|
|
2017
|
+
peg$fail(peg$e14);
|
|
1908
2018
|
}
|
|
1909
2019
|
}
|
|
1910
2020
|
if (s7 === peg$FAILED) {
|
|
@@ -1912,7 +2022,7 @@ function peg$parse(input, options) {
|
|
|
1912
2022
|
}
|
|
1913
2023
|
s6 = input.substring(s6, peg$currPos);
|
|
1914
2024
|
peg$savedPos = s0;
|
|
1915
|
-
s0 = peg$
|
|
2025
|
+
s0 = peg$f25(s1, s3, s4, s5, s6);
|
|
1916
2026
|
}
|
|
1917
2027
|
else {
|
|
1918
2028
|
peg$currPos = s0;
|
|
@@ -1945,7 +2055,7 @@ function peg$parse(input, options) {
|
|
|
1945
2055
|
else {
|
|
1946
2056
|
s1 = peg$FAILED;
|
|
1947
2057
|
if (peg$silentFails === 0) {
|
|
1948
|
-
peg$fail(peg$
|
|
2058
|
+
peg$fail(peg$e17);
|
|
1949
2059
|
}
|
|
1950
2060
|
}
|
|
1951
2061
|
if (s1 !== peg$FAILED) {
|
|
@@ -1956,7 +2066,7 @@ function peg$parse(input, options) {
|
|
|
1956
2066
|
else {
|
|
1957
2067
|
s2 = peg$FAILED;
|
|
1958
2068
|
if (peg$silentFails === 0) {
|
|
1959
|
-
peg$fail(peg$
|
|
2069
|
+
peg$fail(peg$e18);
|
|
1960
2070
|
}
|
|
1961
2071
|
}
|
|
1962
2072
|
if (s2 !== peg$FAILED) {
|
|
@@ -1972,7 +2082,7 @@ function peg$parse(input, options) {
|
|
|
1972
2082
|
else {
|
|
1973
2083
|
s5 = peg$FAILED;
|
|
1974
2084
|
if (peg$silentFails === 0) {
|
|
1975
|
-
peg$fail(peg$
|
|
2085
|
+
peg$fail(peg$e14);
|
|
1976
2086
|
}
|
|
1977
2087
|
}
|
|
1978
2088
|
if (s5 === peg$FAILED) {
|
|
@@ -1980,7 +2090,7 @@ function peg$parse(input, options) {
|
|
|
1980
2090
|
}
|
|
1981
2091
|
s4 = input.substring(s4, peg$currPos);
|
|
1982
2092
|
peg$savedPos = s0;
|
|
1983
|
-
s0 = peg$
|
|
2093
|
+
s0 = peg$f26(s1, s2, s3, s4);
|
|
1984
2094
|
}
|
|
1985
2095
|
else {
|
|
1986
2096
|
peg$currPos = s0;
|
|
@@ -1997,13 +2107,13 @@ function peg$parse(input, options) {
|
|
|
1997
2107
|
let s0, s1, s2;
|
|
1998
2108
|
s0 = peg$currPos;
|
|
1999
2109
|
if (input.charCodeAt(peg$currPos) === 61) {
|
|
2000
|
-
s1 = peg$
|
|
2110
|
+
s1 = peg$c12;
|
|
2001
2111
|
peg$currPos++;
|
|
2002
2112
|
}
|
|
2003
2113
|
else {
|
|
2004
2114
|
s1 = peg$FAILED;
|
|
2005
2115
|
if (peg$silentFails === 0) {
|
|
2006
|
-
peg$fail(peg$
|
|
2116
|
+
peg$fail(peg$e20);
|
|
2007
2117
|
}
|
|
2008
2118
|
}
|
|
2009
2119
|
if (s1 !== peg$FAILED) {
|
|
@@ -2014,12 +2124,12 @@ function peg$parse(input, options) {
|
|
|
2014
2124
|
else {
|
|
2015
2125
|
s2 = peg$FAILED;
|
|
2016
2126
|
if (peg$silentFails === 0) {
|
|
2017
|
-
peg$fail(peg$
|
|
2127
|
+
peg$fail(peg$e21);
|
|
2018
2128
|
}
|
|
2019
2129
|
}
|
|
2020
2130
|
if (s2 !== peg$FAILED) {
|
|
2021
2131
|
peg$savedPos = s0;
|
|
2022
|
-
s0 = peg$
|
|
2132
|
+
s0 = peg$f27(s2);
|
|
2023
2133
|
}
|
|
2024
2134
|
else {
|
|
2025
2135
|
peg$currPos = s0;
|
|
@@ -2036,13 +2146,13 @@ function peg$parse(input, options) {
|
|
|
2036
2146
|
let s0, s1, s2, s3, s4, s5;
|
|
2037
2147
|
s0 = peg$currPos;
|
|
2038
2148
|
if (input.charCodeAt(peg$currPos) === 40) {
|
|
2039
|
-
s1 = peg$
|
|
2149
|
+
s1 = peg$c13;
|
|
2040
2150
|
peg$currPos++;
|
|
2041
2151
|
}
|
|
2042
2152
|
else {
|
|
2043
2153
|
s1 = peg$FAILED;
|
|
2044
2154
|
if (peg$silentFails === 0) {
|
|
2045
|
-
peg$fail(peg$
|
|
2155
|
+
peg$fail(peg$e22);
|
|
2046
2156
|
}
|
|
2047
2157
|
}
|
|
2048
2158
|
if (s1 !== peg$FAILED) {
|
|
@@ -2051,18 +2161,18 @@ function peg$parse(input, options) {
|
|
|
2051
2161
|
if (s3 !== peg$FAILED) {
|
|
2052
2162
|
s4 = peg$parse_();
|
|
2053
2163
|
if (input.charCodeAt(peg$currPos) === 41) {
|
|
2054
|
-
s5 = peg$
|
|
2164
|
+
s5 = peg$c14;
|
|
2055
2165
|
peg$currPos++;
|
|
2056
2166
|
}
|
|
2057
2167
|
else {
|
|
2058
2168
|
s5 = peg$FAILED;
|
|
2059
2169
|
if (peg$silentFails === 0) {
|
|
2060
|
-
peg$fail(peg$
|
|
2170
|
+
peg$fail(peg$e23);
|
|
2061
2171
|
}
|
|
2062
2172
|
}
|
|
2063
2173
|
if (s5 !== peg$FAILED) {
|
|
2064
2174
|
peg$savedPos = s0;
|
|
2065
|
-
s0 = peg$
|
|
2175
|
+
s0 = peg$f28(s3);
|
|
2066
2176
|
}
|
|
2067
2177
|
else {
|
|
2068
2178
|
peg$currPos = s0;
|
|
@@ -2092,13 +2202,13 @@ function peg$parse(input, options) {
|
|
|
2092
2202
|
let s0, s1, s2, s3, s4;
|
|
2093
2203
|
s0 = peg$currPos;
|
|
2094
2204
|
if (input.charCodeAt(peg$currPos) === 36) {
|
|
2095
|
-
s1 = peg$
|
|
2205
|
+
s1 = peg$c15;
|
|
2096
2206
|
peg$currPos++;
|
|
2097
2207
|
}
|
|
2098
2208
|
else {
|
|
2099
2209
|
s1 = peg$FAILED;
|
|
2100
2210
|
if (peg$silentFails === 0) {
|
|
2101
|
-
peg$fail(peg$
|
|
2211
|
+
peg$fail(peg$e24);
|
|
2102
2212
|
}
|
|
2103
2213
|
}
|
|
2104
2214
|
if (s1 !== peg$FAILED) {
|
|
@@ -2111,7 +2221,7 @@ function peg$parse(input, options) {
|
|
|
2111
2221
|
else {
|
|
2112
2222
|
s4 = peg$FAILED;
|
|
2113
2223
|
if (peg$silentFails === 0) {
|
|
2114
|
-
peg$fail(peg$
|
|
2224
|
+
peg$fail(peg$e11);
|
|
2115
2225
|
}
|
|
2116
2226
|
}
|
|
2117
2227
|
if (s4 !== peg$FAILED) {
|
|
@@ -2124,7 +2234,7 @@ function peg$parse(input, options) {
|
|
|
2124
2234
|
else {
|
|
2125
2235
|
s4 = peg$FAILED;
|
|
2126
2236
|
if (peg$silentFails === 0) {
|
|
2127
|
-
peg$fail(peg$
|
|
2237
|
+
peg$fail(peg$e11);
|
|
2128
2238
|
}
|
|
2129
2239
|
}
|
|
2130
2240
|
}
|
|
@@ -2140,7 +2250,7 @@ function peg$parse(input, options) {
|
|
|
2140
2250
|
}
|
|
2141
2251
|
if (s2 !== peg$FAILED) {
|
|
2142
2252
|
peg$savedPos = s0;
|
|
2143
|
-
s0 = peg$
|
|
2253
|
+
s0 = peg$f29(s2);
|
|
2144
2254
|
}
|
|
2145
2255
|
else {
|
|
2146
2256
|
peg$currPos = s0;
|
|
@@ -2155,47 +2265,47 @@ function peg$parse(input, options) {
|
|
|
2155
2265
|
}
|
|
2156
2266
|
function peg$parsenag_import() {
|
|
2157
2267
|
let s0;
|
|
2158
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2159
|
-
s0 = peg$
|
|
2268
|
+
if (input.substr(peg$currPos, 2) === peg$c16) {
|
|
2269
|
+
s0 = peg$c16;
|
|
2160
2270
|
peg$currPos += 2;
|
|
2161
2271
|
}
|
|
2162
2272
|
else {
|
|
2163
2273
|
s0 = peg$FAILED;
|
|
2164
2274
|
if (peg$silentFails === 0) {
|
|
2165
|
-
peg$fail(peg$
|
|
2275
|
+
peg$fail(peg$e25);
|
|
2166
2276
|
}
|
|
2167
2277
|
}
|
|
2168
2278
|
if (s0 === peg$FAILED) {
|
|
2169
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2170
|
-
s0 = peg$
|
|
2279
|
+
if (input.substr(peg$currPos, 2) === peg$c17) {
|
|
2280
|
+
s0 = peg$c17;
|
|
2171
2281
|
peg$currPos += 2;
|
|
2172
2282
|
}
|
|
2173
2283
|
else {
|
|
2174
2284
|
s0 = peg$FAILED;
|
|
2175
2285
|
if (peg$silentFails === 0) {
|
|
2176
|
-
peg$fail(peg$
|
|
2286
|
+
peg$fail(peg$e26);
|
|
2177
2287
|
}
|
|
2178
2288
|
}
|
|
2179
2289
|
if (s0 === peg$FAILED) {
|
|
2180
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2181
|
-
s0 = peg$
|
|
2290
|
+
if (input.substr(peg$currPos, 2) === peg$c18) {
|
|
2291
|
+
s0 = peg$c18;
|
|
2182
2292
|
peg$currPos += 2;
|
|
2183
2293
|
}
|
|
2184
2294
|
else {
|
|
2185
2295
|
s0 = peg$FAILED;
|
|
2186
2296
|
if (peg$silentFails === 0) {
|
|
2187
|
-
peg$fail(peg$
|
|
2297
|
+
peg$fail(peg$e27);
|
|
2188
2298
|
}
|
|
2189
2299
|
}
|
|
2190
2300
|
if (s0 === peg$FAILED) {
|
|
2191
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
2192
|
-
s0 = peg$
|
|
2301
|
+
if (input.substr(peg$currPos, 2) === peg$c19) {
|
|
2302
|
+
s0 = peg$c19;
|
|
2193
2303
|
peg$currPos += 2;
|
|
2194
2304
|
}
|
|
2195
2305
|
else {
|
|
2196
2306
|
s0 = peg$FAILED;
|
|
2197
2307
|
if (peg$silentFails === 0) {
|
|
2198
|
-
peg$fail(peg$
|
|
2308
|
+
peg$fail(peg$e28);
|
|
2199
2309
|
}
|
|
2200
2310
|
}
|
|
2201
2311
|
if (s0 === peg$FAILED) {
|
|
@@ -2206,29 +2316,29 @@ function peg$parse(input, options) {
|
|
|
2206
2316
|
else {
|
|
2207
2317
|
s0 = peg$FAILED;
|
|
2208
2318
|
if (peg$silentFails === 0) {
|
|
2209
|
-
peg$fail(peg$
|
|
2319
|
+
peg$fail(peg$e29);
|
|
2210
2320
|
}
|
|
2211
2321
|
}
|
|
2212
2322
|
if (s0 === peg$FAILED) {
|
|
2213
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
2214
|
-
s0 = peg$
|
|
2323
|
+
if (input.substr(peg$currPos, 3) === peg$c20) {
|
|
2324
|
+
s0 = peg$c20;
|
|
2215
2325
|
peg$currPos += 3;
|
|
2216
2326
|
}
|
|
2217
2327
|
else {
|
|
2218
2328
|
s0 = peg$FAILED;
|
|
2219
2329
|
if (peg$silentFails === 0) {
|
|
2220
|
-
peg$fail(peg$
|
|
2330
|
+
peg$fail(peg$e30);
|
|
2221
2331
|
}
|
|
2222
2332
|
}
|
|
2223
2333
|
if (s0 === peg$FAILED) {
|
|
2224
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
2225
|
-
s0 = peg$
|
|
2334
|
+
if (input.substr(peg$currPos, 3) === peg$c21) {
|
|
2335
|
+
s0 = peg$c21;
|
|
2226
2336
|
peg$currPos += 3;
|
|
2227
2337
|
}
|
|
2228
2338
|
else {
|
|
2229
2339
|
s0 = peg$FAILED;
|
|
2230
2340
|
if (peg$silentFails === 0) {
|
|
2231
|
-
peg$fail(peg$
|
|
2341
|
+
peg$fail(peg$e31);
|
|
2232
2342
|
}
|
|
2233
2343
|
}
|
|
2234
2344
|
if (s0 === peg$FAILED) {
|
|
@@ -2239,7 +2349,7 @@ function peg$parse(input, options) {
|
|
|
2239
2349
|
else {
|
|
2240
2350
|
s0 = peg$FAILED;
|
|
2241
2351
|
if (peg$silentFails === 0) {
|
|
2242
|
-
peg$fail(peg$
|
|
2352
|
+
peg$fail(peg$e32);
|
|
2243
2353
|
}
|
|
2244
2354
|
}
|
|
2245
2355
|
}
|
|
@@ -2263,13 +2373,13 @@ function peg$parse(input, options) {
|
|
|
2263
2373
|
let s0, s1, s2, s3, s4;
|
|
2264
2374
|
s0 = peg$currPos;
|
|
2265
2375
|
if (input.charCodeAt(peg$currPos) === 123) {
|
|
2266
|
-
s1 = peg$
|
|
2376
|
+
s1 = peg$c22;
|
|
2267
2377
|
peg$currPos++;
|
|
2268
2378
|
}
|
|
2269
2379
|
else {
|
|
2270
2380
|
s1 = peg$FAILED;
|
|
2271
2381
|
if (peg$silentFails === 0) {
|
|
2272
|
-
peg$fail(peg$
|
|
2382
|
+
peg$fail(peg$e33);
|
|
2273
2383
|
}
|
|
2274
2384
|
}
|
|
2275
2385
|
if (s1 !== peg$FAILED) {
|
|
@@ -2282,7 +2392,7 @@ function peg$parse(input, options) {
|
|
|
2282
2392
|
else {
|
|
2283
2393
|
s4 = peg$FAILED;
|
|
2284
2394
|
if (peg$silentFails === 0) {
|
|
2285
|
-
peg$fail(peg$
|
|
2395
|
+
peg$fail(peg$e34);
|
|
2286
2396
|
}
|
|
2287
2397
|
}
|
|
2288
2398
|
while (s4 !== peg$FAILED) {
|
|
@@ -2294,24 +2404,24 @@ function peg$parse(input, options) {
|
|
|
2294
2404
|
else {
|
|
2295
2405
|
s4 = peg$FAILED;
|
|
2296
2406
|
if (peg$silentFails === 0) {
|
|
2297
|
-
peg$fail(peg$
|
|
2407
|
+
peg$fail(peg$e34);
|
|
2298
2408
|
}
|
|
2299
2409
|
}
|
|
2300
2410
|
}
|
|
2301
2411
|
s2 = input.substring(s2, peg$currPos);
|
|
2302
2412
|
if (input.charCodeAt(peg$currPos) === 125) {
|
|
2303
|
-
s3 = peg$
|
|
2413
|
+
s3 = peg$c23;
|
|
2304
2414
|
peg$currPos++;
|
|
2305
2415
|
}
|
|
2306
2416
|
else {
|
|
2307
2417
|
s3 = peg$FAILED;
|
|
2308
2418
|
if (peg$silentFails === 0) {
|
|
2309
|
-
peg$fail(peg$
|
|
2419
|
+
peg$fail(peg$e35);
|
|
2310
2420
|
}
|
|
2311
2421
|
}
|
|
2312
2422
|
if (s3 !== peg$FAILED) {
|
|
2313
2423
|
peg$savedPos = s0;
|
|
2314
|
-
s0 = peg$
|
|
2424
|
+
s0 = peg$f30(s2);
|
|
2315
2425
|
}
|
|
2316
2426
|
else {
|
|
2317
2427
|
peg$currPos = s0;
|
|
@@ -2328,13 +2438,13 @@ function peg$parse(input, options) {
|
|
|
2328
2438
|
let s0, s1, s2, s3, s4, s5, s6;
|
|
2329
2439
|
s0 = peg$currPos;
|
|
2330
2440
|
if (input.charCodeAt(peg$currPos) === 59) {
|
|
2331
|
-
s1 = peg$
|
|
2441
|
+
s1 = peg$c24;
|
|
2332
2442
|
peg$currPos++;
|
|
2333
2443
|
}
|
|
2334
2444
|
else {
|
|
2335
2445
|
s1 = peg$FAILED;
|
|
2336
2446
|
if (peg$silentFails === 0) {
|
|
2337
|
-
peg$fail(peg$
|
|
2447
|
+
peg$fail(peg$e36);
|
|
2338
2448
|
}
|
|
2339
2449
|
}
|
|
2340
2450
|
if (s1 !== peg$FAILED) {
|
|
@@ -2350,7 +2460,7 @@ function peg$parse(input, options) {
|
|
|
2350
2460
|
else {
|
|
2351
2461
|
s6 = peg$FAILED;
|
|
2352
2462
|
if (peg$silentFails === 0) {
|
|
2353
|
-
peg$fail(peg$
|
|
2463
|
+
peg$fail(peg$e37);
|
|
2354
2464
|
}
|
|
2355
2465
|
}
|
|
2356
2466
|
peg$silentFails--;
|
|
@@ -2369,7 +2479,7 @@ function peg$parse(input, options) {
|
|
|
2369
2479
|
else {
|
|
2370
2480
|
s6 = peg$FAILED;
|
|
2371
2481
|
if (peg$silentFails === 0) {
|
|
2372
|
-
peg$fail(peg$
|
|
2482
|
+
peg$fail(peg$e6);
|
|
2373
2483
|
}
|
|
2374
2484
|
}
|
|
2375
2485
|
if (s6 !== peg$FAILED) {
|
|
@@ -2397,7 +2507,7 @@ function peg$parse(input, options) {
|
|
|
2397
2507
|
else {
|
|
2398
2508
|
s6 = peg$FAILED;
|
|
2399
2509
|
if (peg$silentFails === 0) {
|
|
2400
|
-
peg$fail(peg$
|
|
2510
|
+
peg$fail(peg$e37);
|
|
2401
2511
|
}
|
|
2402
2512
|
}
|
|
2403
2513
|
peg$silentFails--;
|
|
@@ -2416,7 +2526,7 @@ function peg$parse(input, options) {
|
|
|
2416
2526
|
else {
|
|
2417
2527
|
s6 = peg$FAILED;
|
|
2418
2528
|
if (peg$silentFails === 0) {
|
|
2419
|
-
peg$fail(peg$
|
|
2529
|
+
peg$fail(peg$e6);
|
|
2420
2530
|
}
|
|
2421
2531
|
}
|
|
2422
2532
|
if (s6 !== peg$FAILED) {
|
|
@@ -2435,7 +2545,7 @@ function peg$parse(input, options) {
|
|
|
2435
2545
|
}
|
|
2436
2546
|
s2 = input.substring(s2, peg$currPos);
|
|
2437
2547
|
peg$savedPos = s0;
|
|
2438
|
-
s0 = peg$
|
|
2548
|
+
s0 = peg$f31(s2);
|
|
2439
2549
|
}
|
|
2440
2550
|
else {
|
|
2441
2551
|
peg$currPos = s0;
|
|
@@ -2453,7 +2563,7 @@ function peg$parse(input, options) {
|
|
|
2453
2563
|
else {
|
|
2454
2564
|
s1 = peg$FAILED;
|
|
2455
2565
|
if (peg$silentFails === 0) {
|
|
2456
|
-
peg$fail(peg$
|
|
2566
|
+
peg$fail(peg$e38);
|
|
2457
2567
|
}
|
|
2458
2568
|
}
|
|
2459
2569
|
if (s1 === peg$FAILED) {
|
|
@@ -2468,7 +2578,7 @@ function peg$parse(input, options) {
|
|
|
2468
2578
|
else {
|
|
2469
2579
|
s1 = peg$FAILED;
|
|
2470
2580
|
if (peg$silentFails === 0) {
|
|
2471
|
-
peg$fail(peg$
|
|
2581
|
+
peg$fail(peg$e38);
|
|
2472
2582
|
}
|
|
2473
2583
|
}
|
|
2474
2584
|
if (s1 === peg$FAILED) {
|
|
@@ -2481,13 +2591,13 @@ function peg$parse(input, options) {
|
|
|
2481
2591
|
let s0, s1, s2, s3, s4, s5;
|
|
2482
2592
|
s0 = peg$currPos;
|
|
2483
2593
|
if (input.charCodeAt(peg$currPos) === 37) {
|
|
2484
|
-
s1 = peg$
|
|
2594
|
+
s1 = peg$c25;
|
|
2485
2595
|
peg$currPos++;
|
|
2486
2596
|
}
|
|
2487
2597
|
else {
|
|
2488
2598
|
s1 = peg$FAILED;
|
|
2489
2599
|
if (peg$silentFails === 0) {
|
|
2490
|
-
peg$fail(peg$
|
|
2600
|
+
peg$fail(peg$e39);
|
|
2491
2601
|
}
|
|
2492
2602
|
}
|
|
2493
2603
|
if (s1 !== peg$FAILED) {
|
|
@@ -2502,7 +2612,7 @@ function peg$parse(input, options) {
|
|
|
2502
2612
|
else {
|
|
2503
2613
|
s5 = peg$FAILED;
|
|
2504
2614
|
if (peg$silentFails === 0) {
|
|
2505
|
-
peg$fail(peg$
|
|
2615
|
+
peg$fail(peg$e37);
|
|
2506
2616
|
}
|
|
2507
2617
|
}
|
|
2508
2618
|
peg$silentFails--;
|
|
@@ -2521,7 +2631,7 @@ function peg$parse(input, options) {
|
|
|
2521
2631
|
else {
|
|
2522
2632
|
s5 = peg$FAILED;
|
|
2523
2633
|
if (peg$silentFails === 0) {
|
|
2524
|
-
peg$fail(peg$
|
|
2634
|
+
peg$fail(peg$e6);
|
|
2525
2635
|
}
|
|
2526
2636
|
}
|
|
2527
2637
|
if (s5 !== peg$FAILED) {
|
|
@@ -2549,7 +2659,7 @@ function peg$parse(input, options) {
|
|
|
2549
2659
|
else {
|
|
2550
2660
|
s5 = peg$FAILED;
|
|
2551
2661
|
if (peg$silentFails === 0) {
|
|
2552
|
-
peg$fail(peg$
|
|
2662
|
+
peg$fail(peg$e37);
|
|
2553
2663
|
}
|
|
2554
2664
|
}
|
|
2555
2665
|
peg$silentFails--;
|
|
@@ -2568,7 +2678,7 @@ function peg$parse(input, options) {
|
|
|
2568
2678
|
else {
|
|
2569
2679
|
s5 = peg$FAILED;
|
|
2570
2680
|
if (peg$silentFails === 0) {
|
|
2571
|
-
peg$fail(peg$
|
|
2681
|
+
peg$fail(peg$e6);
|
|
2572
2682
|
}
|
|
2573
2683
|
}
|
|
2574
2684
|
if (s5 !== peg$FAILED) {
|
|
@@ -2592,7 +2702,7 @@ function peg$parse(input, options) {
|
|
|
2592
2702
|
else {
|
|
2593
2703
|
s3 = peg$FAILED;
|
|
2594
2704
|
if (peg$silentFails === 0) {
|
|
2595
|
-
peg$fail(peg$
|
|
2705
|
+
peg$fail(peg$e37);
|
|
2596
2706
|
}
|
|
2597
2707
|
}
|
|
2598
2708
|
if (s3 === peg$FAILED) {
|