state-machine-cat 10.1.8 → 10.1.10

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.
@@ -1,2736 +0,0 @@
1
- // Generated by Peggy 2.0.1.
2
- //
3
- // https://peggyjs.org/
4
-
5
- import parserHelpers from "../parser-helpers.mjs";
6
-
7
- function peg$subclass(child, parent) {
8
- function C() { this.constructor = child; }
9
- C.prototype = parent.prototype;
10
- child.prototype = new C();
11
- }
12
-
13
- function peg$SyntaxError(message, expected, found, location) {
14
- var self = Error.call(this, message);
15
- // istanbul ignore next Check is a necessary evil to support older environments
16
- if (Object.setPrototypeOf) {
17
- Object.setPrototypeOf(self, peg$SyntaxError.prototype);
18
- }
19
- self.expected = expected;
20
- self.found = found;
21
- self.location = location;
22
- self.name = "SyntaxError";
23
- return self;
24
- }
25
-
26
- peg$subclass(peg$SyntaxError, Error);
27
-
28
- function peg$padEnd(str, targetLength, padString) {
29
- padString = padString || " ";
30
- if (str.length > targetLength) { return str; }
31
- targetLength -= str.length;
32
- padString += padString.repeat(targetLength);
33
- return str + padString.slice(0, targetLength);
34
- }
35
-
36
- peg$SyntaxError.prototype.format = function(sources) {
37
- var str = "Error: " + this.message;
38
- if (this.location) {
39
- var src = null;
40
- var k;
41
- for (k = 0; k < sources.length; k++) {
42
- if (sources[k].source === this.location.source) {
43
- src = sources[k].text.split(/\r\n|\n|\r/g);
44
- break;
45
- }
46
- }
47
- var s = this.location.start;
48
- var loc = this.location.source + ":" + s.line + ":" + s.column;
49
- if (src) {
50
- var e = this.location.end;
51
- var filler = peg$padEnd("", s.line.toString().length, ' ');
52
- var line = src[s.line - 1];
53
- var last = s.line === e.line ? e.column : line.length + 1;
54
- var hatLen = (last - s.column) || 1;
55
- str += "\n --> " + loc + "\n"
56
- + filler + " |\n"
57
- + s.line + " | " + line + "\n"
58
- + filler + " | " + peg$padEnd("", s.column - 1, ' ')
59
- + peg$padEnd("", hatLen, "^");
60
- } else {
61
- str += "\n at " + loc;
62
- }
63
- }
64
- return str;
65
- };
66
-
67
- peg$SyntaxError.buildMessage = function(expected, found) {
68
- var DESCRIBE_EXPECTATION_FNS = {
69
- literal: function(expectation) {
70
- return "\"" + literalEscape(expectation.text) + "\"";
71
- },
72
-
73
- class: function(expectation) {
74
- var escapedParts = expectation.parts.map(function(part) {
75
- return Array.isArray(part)
76
- ? classEscape(part[0]) + "-" + classEscape(part[1])
77
- : classEscape(part);
78
- });
79
-
80
- return "[" + (expectation.inverted ? "^" : "") + escapedParts.join("") + "]";
81
- },
82
-
83
- any: function() {
84
- return "any character";
85
- },
86
-
87
- end: function() {
88
- return "end of input";
89
- },
90
-
91
- other: function(expectation) {
92
- return expectation.description;
93
- }
94
- };
95
-
96
- function hex(ch) {
97
- return ch.charCodeAt(0).toString(16).toUpperCase();
98
- }
99
-
100
- function literalEscape(s) {
101
- return s
102
- .replace(/\\/g, "\\\\")
103
- .replace(/"/g, "\\\"")
104
- .replace(/\0/g, "\\0")
105
- .replace(/\t/g, "\\t")
106
- .replace(/\n/g, "\\n")
107
- .replace(/\r/g, "\\r")
108
- .replace(/[\x00-\x0F]/g, function(ch) { return "\\x0" + hex(ch); })
109
- .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return "\\x" + hex(ch); });
110
- }
111
-
112
- function classEscape(s) {
113
- return s
114
- .replace(/\\/g, "\\\\")
115
- .replace(/\]/g, "\\]")
116
- .replace(/\^/g, "\\^")
117
- .replace(/-/g, "\\-")
118
- .replace(/\0/g, "\\0")
119
- .replace(/\t/g, "\\t")
120
- .replace(/\n/g, "\\n")
121
- .replace(/\r/g, "\\r")
122
- .replace(/[\x00-\x0F]/g, function(ch) { return "\\x0" + hex(ch); })
123
- .replace(/[\x10-\x1F\x7F-\x9F]/g, function(ch) { return "\\x" + hex(ch); });
124
- }
125
-
126
- function describeExpectation(expectation) {
127
- return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
128
- }
129
-
130
- function describeExpected(expected) {
131
- var descriptions = expected.map(describeExpectation);
132
- var i, j;
133
-
134
- descriptions.sort();
135
-
136
- if (descriptions.length > 0) {
137
- for (i = 1, j = 1; i < descriptions.length; i++) {
138
- if (descriptions[i - 1] !== descriptions[i]) {
139
- descriptions[j] = descriptions[i];
140
- j++;
141
- }
142
- }
143
- descriptions.length = j;
144
- }
145
-
146
- switch (descriptions.length) {
147
- case 1:
148
- return descriptions[0];
149
-
150
- case 2:
151
- return descriptions[0] + " or " + descriptions[1];
152
-
153
- default:
154
- return descriptions.slice(0, -1).join(", ")
155
- + ", or "
156
- + descriptions[descriptions.length - 1];
157
- }
158
- }
159
-
160
- function describeFound(found) {
161
- return found ? "\"" + literalEscape(found) + "\"" : "end of input";
162
- }
163
-
164
- return "Expected " + describeExpected(expected) + " but " + describeFound(found) + " found.";
165
- };
166
-
167
- function peg$parse(input, options) {
168
- options = options !== undefined ? options : {};
169
-
170
- var peg$FAILED = {};
171
- var peg$source = options.grammarSource;
172
-
173
- var peg$startRuleFunctions = { program: peg$parseprogram };
174
- var peg$startRuleFunction = peg$parseprogram;
175
-
176
- var peg$c0 = ",";
177
- var peg$c1 = ";";
178
- var peg$c2 = "[";
179
- var peg$c3 = "]";
180
- var peg$c4 = ":";
181
- var peg$c5 = "{";
182
- var peg$c6 = "}";
183
- var peg$c7 = "=";
184
- var peg$c8 = "label";
185
- var peg$c9 = "color";
186
- var peg$c10 = "class";
187
- var peg$c11 = "active";
188
- var peg$c12 = "type";
189
- var peg$c13 = "regular";
190
- var peg$c14 = "initial";
191
- var peg$c15 = "terminate";
192
- var peg$c16 = "final";
193
- var peg$c17 = "parallel";
194
- var peg$c18 = "history";
195
- var peg$c19 = "deephistory";
196
- var peg$c20 = "choice";
197
- var peg$c21 = "forkjoin";
198
- var peg$c22 = "fork";
199
- var peg$c23 = "join";
200
- var peg$c24 = "junction";
201
- var peg$c25 = "width";
202
- var peg$c26 = "external";
203
- var peg$c27 = "internal";
204
- var peg$c28 = "->";
205
- var peg$c29 = "=>>";
206
- var peg$c30 = "=>";
207
- var peg$c31 = ">>";
208
- var peg$c32 = ":>";
209
- var peg$c33 = "--";
210
- var peg$c34 = "==";
211
- var peg$c35 = "<-";
212
- var peg$c36 = "<<=";
213
- var peg$c37 = "<=";
214
- var peg$c38 = "<<";
215
- var peg$c39 = "<:";
216
- var peg$c40 = "#";
217
- var peg$c41 = ".";
218
- var peg$c42 = "\"";
219
- var peg$c43 = "\\\"";
220
- var peg$c44 = "/*";
221
- var peg$c45 = "*/";
222
- var peg$c46 = "//";
223
-
224
- var peg$r0 = /^[0-9]/;
225
- var peg$r1 = /^[a-zA-Z0-9_\- ]/;
226
- var peg$r2 = /^[^;, "\t\n\r=\-><:{[]/;
227
- var peg$r3 = /^[ \t]/;
228
- var peg$r4 = /^[\r\n]/;
229
- var peg$r5 = /^[^\r\n]/;
230
-
231
- var peg$e0 = peg$otherExpectation("statemachine");
232
- var peg$e1 = peg$literalExpectation(",", false);
233
- var peg$e2 = peg$literalExpectation(";", false);
234
- var peg$e3 = peg$otherExpectation("state");
235
- var peg$e4 = peg$literalExpectation("[", false);
236
- var peg$e5 = peg$literalExpectation("]", false);
237
- var peg$e6 = peg$literalExpectation(":", false);
238
- var peg$e7 = peg$literalExpectation("{", false);
239
- var peg$e8 = peg$literalExpectation("}", false);
240
- var peg$e9 = peg$otherExpectation("extended state attributes");
241
- var peg$e10 = peg$otherExpectation("extended state attribute");
242
- var peg$e11 = peg$literalExpectation("=", false);
243
- var peg$e12 = peg$otherExpectation("state attribute name");
244
- var peg$e13 = peg$literalExpectation("label", true);
245
- var peg$e14 = peg$literalExpectation("color", true);
246
- var peg$e15 = peg$otherExpectation("class attribute");
247
- var peg$e16 = peg$literalExpectation("class", true);
248
- var peg$e17 = peg$otherExpectation("state flag");
249
- var peg$e18 = peg$literalExpectation("active", true);
250
- var peg$e19 = peg$otherExpectation("state type");
251
- var peg$e20 = peg$literalExpectation("type", true);
252
- var peg$e21 = peg$otherExpectation("state type type");
253
- var peg$e22 = peg$literalExpectation("regular", false);
254
- var peg$e23 = peg$literalExpectation("initial", false);
255
- var peg$e24 = peg$literalExpectation("terminate", false);
256
- var peg$e25 = peg$literalExpectation("final", false);
257
- var peg$e26 = peg$literalExpectation("parallel", false);
258
- var peg$e27 = peg$literalExpectation("history", false);
259
- var peg$e28 = peg$literalExpectation("deephistory", false);
260
- var peg$e29 = peg$literalExpectation("choice", false);
261
- var peg$e30 = peg$literalExpectation("forkjoin", false);
262
- var peg$e31 = peg$literalExpectation("fork", false);
263
- var peg$e32 = peg$literalExpectation("join", false);
264
- var peg$e33 = peg$literalExpectation("junction", false);
265
- var peg$e34 = peg$otherExpectation("transition");
266
- var peg$e35 = peg$otherExpectation("extended transition attributes");
267
- var peg$e36 = peg$otherExpectation("extended transition attribute");
268
- var peg$e37 = peg$otherExpectation("transition attribute name");
269
- var peg$e38 = peg$otherExpectation("transition type name");
270
- var peg$e39 = peg$otherExpectation("numeric transition attribute name");
271
- var peg$e40 = peg$literalExpectation("width", true);
272
- var peg$e41 = peg$otherExpectation("transition type value");
273
- var peg$e42 = peg$literalExpectation("external", false);
274
- var peg$e43 = peg$literalExpectation("internal", false);
275
- var peg$e44 = peg$otherExpectation("left to right arrow");
276
- var peg$e45 = peg$literalExpectation("->", false);
277
- var peg$e46 = peg$literalExpectation("=>>", false);
278
- var peg$e47 = peg$literalExpectation("=>", false);
279
- var peg$e48 = peg$literalExpectation(">>", false);
280
- var peg$e49 = peg$literalExpectation(":>", false);
281
- var peg$e50 = peg$literalExpectation("--", false);
282
- var peg$e51 = peg$literalExpectation("==", false);
283
- var peg$e52 = peg$otherExpectation("right to left arrow");
284
- var peg$e53 = peg$literalExpectation("<-", false);
285
- var peg$e54 = peg$literalExpectation("<<=", false);
286
- var peg$e55 = peg$literalExpectation("<=", false);
287
- var peg$e56 = peg$literalExpectation("<<", false);
288
- var peg$e57 = peg$literalExpectation("<:", false);
289
- var peg$e58 = peg$literalExpectation("#", false);
290
- var peg$e59 = peg$literalExpectation(".", false);
291
- var peg$e60 = peg$classExpectation([["0", "9"]], false, false);
292
- var peg$e61 = peg$otherExpectation("double quoted string");
293
- var peg$e62 = peg$literalExpectation("\"", false);
294
- var peg$e63 = peg$literalExpectation("\\\"", false);
295
- var peg$e64 = peg$anyExpectation();
296
- var peg$e65 = peg$otherExpectation("valid class string");
297
- var peg$e66 = peg$classExpectation([["a", "z"], ["A", "Z"], ["0", "9"], "_", "-", " "], false, false);
298
- var peg$e67 = peg$otherExpectation("identifier");
299
- var peg$e68 = peg$classExpectation([";", ",", " ", "\"", "\t", "\n", "\r", "=", "-", ">", "<", ":", "{", "["], true, false);
300
- var peg$e69 = peg$otherExpectation("whitespace");
301
- var peg$e70 = peg$classExpectation([" ", "\t"], false, false);
302
- var peg$e71 = peg$otherExpectation("line end");
303
- var peg$e72 = peg$classExpectation(["\r", "\n"], false, false);
304
- var peg$e73 = peg$literalExpectation("/*", false);
305
- var peg$e74 = peg$literalExpectation("*/", false);
306
- var peg$e75 = peg$literalExpectation("//", false);
307
- var peg$e76 = peg$classExpectation(["\r", "\n"], true, false);
308
- var peg$e77 = peg$otherExpectation("comment");
309
-
310
- var peg$f0 = function(statemachine) {
311
- statemachine.states = parserHelpers.extractUndeclaredStates(statemachine);
312
- return parserHelpers.classifyForkJoins(statemachine);
313
- };
314
- var peg$f1 = function(states, transitions) {
315
- let lStateMachine = {};
316
- parserHelpers.setIf(lStateMachine, 'states', states);
317
- parserHelpers.setIfNotEmpty(lStateMachine, 'transitions', transitions);
318
-
319
- return lStateMachine;
320
- };
321
- var peg$f2 = function(state) {return state};
322
- var peg$f3 = function(state) {return state};
323
- var peg$f4 = function(states) {
324
- return parserHelpers.uniq(states[0].concat(states[1]), parserHelpers.stateEqual);
325
- };
326
- var peg$f5 = function(notes, id, attrs) {return attrs};
327
- var peg$f6 = function(notes, id, extended_state_attributes, act) {return act};
328
- var peg$f7 = function(notes, id, extended_state_attributes, actions, sm) {return sm;};
329
- var peg$f8 = function(notes, id, extended_state_attributes, actions, statemachine) {
330
- let lState = parserHelpers.initState(id);
331
- (extended_state_attributes || []).forEach(
332
- pExtendedAttribute => parserHelpers.setIf(lState, pExtendedAttribute.name, pExtendedAttribute.value)
333
- );
334
- parserHelpers.setIf(lState, 'typeExplicitlySet', (extended_state_attributes || []).some(pExtendedAttribute => pExtendedAttribute.typeExplicitlySet));
335
- parserHelpers.setIf(lState, 'statemachine', statemachine);
336
- parserHelpers.setIfNotEmpty(lState, 'note', notes);
337
-
338
- if (Boolean(actions)) {
339
- parserHelpers.setIfNotEmpty(
340
- lState,
341
- 'actions',
342
- parserHelpers.extractActions(actions)
343
- );
344
- }
345
-
346
- return lState;
347
- };
348
- var peg$f9 = function(name, value) {
349
- return {name, value};
350
- };
351
- var peg$f10 = function(name, value) {
352
- return {name, value}
353
- };
354
- var peg$f11 = function(name) {
355
- return {name, value:true}
356
- };
357
- var peg$f12 = function(name, value) {
358
- return {name, value, typeExplicitlySet:true}
359
- };
360
- var peg$f13 = function(name) {
361
- return name.toLowerCase();
362
- };
363
- var peg$f14 = function(name) {
364
- return name.toLowerCase();
365
- };
366
- var peg$f15 = function(name) {
367
- return name.toLowerCase();
368
- };
369
- var peg$f16 = function(name) {
370
- return name.toLowerCase();
371
- };
372
- var peg$f17 = function(notes, trans, attrs) {return attrs};
373
- var peg$f18 = function(notes, trans, extended_attributes, lbl) {return lbl};
374
- var peg$f19 = function(notes, trans, extended_attributes, label) {
375
- if (label) {
376
- trans.label = label;
377
- trans = Object.assign(
378
- trans,
379
- parserHelpers.parseTransitionExpression(label)
380
- );
381
- }
382
- (extended_attributes || []).forEach(
383
- pExtendedAttribute => parserHelpers.setIf(trans, pExtendedAttribute.name, pExtendedAttribute.value)
384
- );
385
- parserHelpers.setIfNotEmpty(trans, 'note', notes);
386
-
387
- return trans;
388
- };
389
- var peg$f20 = function(from, to) {
390
- return {
391
- from: from,
392
- to: to
393
- }
394
- };
395
- var peg$f21 = function(to, from) {
396
- return {
397
- from: from,
398
- to: to
399
- }
400
- };
401
- var peg$f22 = function(name, value) {
402
- return {name, value};
403
- };
404
- var peg$f23 = function(name, value) {
405
- return {name, value};
406
- };
407
- var peg$f24 = function(name, value) {
408
- return {name, value};
409
- };
410
- var peg$f25 = function(name, value) {
411
- return {name, value};
412
- };
413
- var peg$f26 = function(name) {
414
- return name.toLowerCase();
415
- };
416
- var peg$f27 = function(name) {
417
- return name.toLowerCase();
418
- };
419
- var peg$f28 = function(name) {
420
- return name
421
- };
422
- var peg$f29 = function(com) {
423
- return com.join("").trim()
424
- };
425
- var peg$f30 = function(digits) { return parseFloat(digits.join("")); };
426
- var peg$f31 = function(digits) { return parseInt(digits.join(""), 10); };
427
- var peg$f32 = function(s) {return s.join("").replace(/\\\"/g, "\"")};
428
- var peg$f33 = function(c) {return c};
429
- var peg$f34 = function(s) {return s.join("")};
430
- var peg$f35 = function(c) {return c};
431
- var peg$f36 = function(s) {return s.join("").trim()};
432
- var peg$f37 = function(s) {return s.join("").trim()};
433
- var peg$f38 = function(c) {return c};
434
- var peg$f39 = function(c) {return c};
435
- var peg$f40 = function(chars) {return chars.join("")};
436
- var peg$f41 = function(c) {return c};
437
- var peg$f42 = function(c) {return c};
438
- var peg$f43 = function(c) {return c};
439
- var peg$f44 = function(start, com, end) {
440
- return start + com.join("") + end
441
- };
442
- var peg$f45 = function(start, com) {
443
- return start + com.join("")
444
- };
445
- var peg$currPos = 0;
446
- var peg$savedPos = 0;
447
- var peg$posDetailsCache = [{ line: 1, column: 1 }];
448
- var peg$maxFailPos = 0;
449
- var peg$maxFailExpected = [];
450
- var peg$silentFails = 0;
451
-
452
- var peg$result;
453
-
454
- if ("startRule" in options) {
455
- if (!(options.startRule in peg$startRuleFunctions)) {
456
- throw new Error("Can't start parsing from rule \"" + options.startRule + "\".");
457
- }
458
-
459
- peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
460
- }
461
-
462
- function text() {
463
- return input.substring(peg$savedPos, peg$currPos);
464
- }
465
-
466
- function offset() {
467
- return peg$savedPos;
468
- }
469
-
470
- function range() {
471
- return {
472
- source: peg$source,
473
- start: peg$savedPos,
474
- end: peg$currPos
475
- };
476
- }
477
-
478
- function location() {
479
- return peg$computeLocation(peg$savedPos, peg$currPos);
480
- }
481
-
482
- function expected(description, location) {
483
- location = location !== undefined
484
- ? location
485
- : peg$computeLocation(peg$savedPos, peg$currPos);
486
-
487
- throw peg$buildStructuredError(
488
- [peg$otherExpectation(description)],
489
- input.substring(peg$savedPos, peg$currPos),
490
- location
491
- );
492
- }
493
-
494
- function error(message, location) {
495
- location = location !== undefined
496
- ? location
497
- : peg$computeLocation(peg$savedPos, peg$currPos);
498
-
499
- throw peg$buildSimpleError(message, location);
500
- }
501
-
502
- function peg$literalExpectation(text, ignoreCase) {
503
- return { type: "literal", text: text, ignoreCase: ignoreCase };
504
- }
505
-
506
- function peg$classExpectation(parts, inverted, ignoreCase) {
507
- return { type: "class", parts: parts, inverted: inverted, ignoreCase: ignoreCase };
508
- }
509
-
510
- function peg$anyExpectation() {
511
- return { type: "any" };
512
- }
513
-
514
- function peg$endExpectation() {
515
- return { type: "end" };
516
- }
517
-
518
- function peg$otherExpectation(description) {
519
- return { type: "other", description: description };
520
- }
521
-
522
- function peg$computePosDetails(pos) {
523
- var details = peg$posDetailsCache[pos];
524
- var p;
525
-
526
- if (details) {
527
- return details;
528
- } else {
529
- p = pos - 1;
530
- while (!peg$posDetailsCache[p]) {
531
- p--;
532
- }
533
-
534
- details = peg$posDetailsCache[p];
535
- details = {
536
- line: details.line,
537
- column: details.column
538
- };
539
-
540
- while (p < pos) {
541
- if (input.charCodeAt(p) === 10) {
542
- details.line++;
543
- details.column = 1;
544
- } else {
545
- details.column++;
546
- }
547
-
548
- p++;
549
- }
550
-
551
- peg$posDetailsCache[pos] = details;
552
-
553
- return details;
554
- }
555
- }
556
-
557
- function peg$computeLocation(startPos, endPos) {
558
- var startPosDetails = peg$computePosDetails(startPos);
559
- var endPosDetails = peg$computePosDetails(endPos);
560
-
561
- return {
562
- source: peg$source,
563
- start: {
564
- offset: startPos,
565
- line: startPosDetails.line,
566
- column: startPosDetails.column
567
- },
568
- end: {
569
- offset: endPos,
570
- line: endPosDetails.line,
571
- column: endPosDetails.column
572
- }
573
- };
574
- }
575
-
576
- function peg$fail(expected) {
577
- if (peg$currPos < peg$maxFailPos) { return; }
578
-
579
- if (peg$currPos > peg$maxFailPos) {
580
- peg$maxFailPos = peg$currPos;
581
- peg$maxFailExpected = [];
582
- }
583
-
584
- peg$maxFailExpected.push(expected);
585
- }
586
-
587
- function peg$buildSimpleError(message, location) {
588
- return new peg$SyntaxError(message, null, null, location);
589
- }
590
-
591
- function peg$buildStructuredError(expected, found, location) {
592
- return new peg$SyntaxError(
593
- peg$SyntaxError.buildMessage(expected, found),
594
- expected,
595
- found,
596
- location
597
- );
598
- }
599
-
600
- function peg$parseprogram() {
601
- var s0, s1, s2, s3;
602
-
603
- s0 = peg$currPos;
604
- s1 = peg$parse_();
605
- s2 = peg$parsestatemachine();
606
- s3 = peg$parse_();
607
- peg$savedPos = s0;
608
- s0 = peg$f0(s2);
609
-
610
- return s0;
611
- }
612
-
613
- function peg$parsestatemachine() {
614
- var s0, s1, s2, s3;
615
-
616
- peg$silentFails++;
617
- s0 = peg$currPos;
618
- s1 = peg$parsestates();
619
- if (s1 === peg$FAILED) {
620
- s1 = null;
621
- }
622
- s2 = [];
623
- s3 = peg$parsetransition();
624
- while (s3 !== peg$FAILED) {
625
- s2.push(s3);
626
- s3 = peg$parsetransition();
627
- }
628
- peg$savedPos = s0;
629
- s0 = peg$f1(s1, s2);
630
- peg$silentFails--;
631
- s1 = peg$FAILED;
632
- if (peg$silentFails === 0) { peg$fail(peg$e0); }
633
-
634
- return s0;
635
- }
636
-
637
- function peg$parsestates() {
638
- var s0, s1, s2, s3, s4, s5;
639
-
640
- s0 = peg$currPos;
641
- s1 = peg$currPos;
642
- s2 = [];
643
- s3 = peg$currPos;
644
- s4 = peg$parsestate();
645
- if (s4 !== peg$FAILED) {
646
- if (input.charCodeAt(peg$currPos) === 44) {
647
- s5 = peg$c0;
648
- peg$currPos++;
649
- } else {
650
- s5 = peg$FAILED;
651
- if (peg$silentFails === 0) { peg$fail(peg$e1); }
652
- }
653
- if (s5 !== peg$FAILED) {
654
- peg$savedPos = s3;
655
- s3 = peg$f2(s4);
656
- } else {
657
- peg$currPos = s3;
658
- s3 = peg$FAILED;
659
- }
660
- } else {
661
- peg$currPos = s3;
662
- s3 = peg$FAILED;
663
- }
664
- while (s3 !== peg$FAILED) {
665
- s2.push(s3);
666
- s3 = peg$currPos;
667
- s4 = peg$parsestate();
668
- if (s4 !== peg$FAILED) {
669
- if (input.charCodeAt(peg$currPos) === 44) {
670
- s5 = peg$c0;
671
- peg$currPos++;
672
- } else {
673
- s5 = peg$FAILED;
674
- if (peg$silentFails === 0) { peg$fail(peg$e1); }
675
- }
676
- if (s5 !== peg$FAILED) {
677
- peg$savedPos = s3;
678
- s3 = peg$f2(s4);
679
- } else {
680
- peg$currPos = s3;
681
- s3 = peg$FAILED;
682
- }
683
- } else {
684
- peg$currPos = s3;
685
- s3 = peg$FAILED;
686
- }
687
- }
688
- s3 = peg$currPos;
689
- s4 = peg$parsestate();
690
- if (s4 !== peg$FAILED) {
691
- if (input.charCodeAt(peg$currPos) === 59) {
692
- s5 = peg$c1;
693
- peg$currPos++;
694
- } else {
695
- s5 = peg$FAILED;
696
- if (peg$silentFails === 0) { peg$fail(peg$e2); }
697
- }
698
- if (s5 !== peg$FAILED) {
699
- peg$savedPos = s3;
700
- s3 = peg$f3(s4);
701
- } else {
702
- peg$currPos = s3;
703
- s3 = peg$FAILED;
704
- }
705
- } else {
706
- peg$currPos = s3;
707
- s3 = peg$FAILED;
708
- }
709
- if (s3 !== peg$FAILED) {
710
- s2 = [s2, s3];
711
- s1 = s2;
712
- } else {
713
- peg$currPos = s1;
714
- s1 = peg$FAILED;
715
- }
716
- if (s1 !== peg$FAILED) {
717
- peg$savedPos = s0;
718
- s1 = peg$f4(s1);
719
- }
720
- s0 = s1;
721
-
722
- return s0;
723
- }
724
-
725
- function peg$parsestate() {
726
- var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13, s14;
727
-
728
- peg$silentFails++;
729
- s0 = peg$currPos;
730
- s1 = [];
731
- s2 = peg$parsenote();
732
- while (s2 !== peg$FAILED) {
733
- s1.push(s2);
734
- s2 = peg$parsenote();
735
- }
736
- s2 = peg$parse_();
737
- s3 = peg$parseidentifier();
738
- if (s3 !== peg$FAILED) {
739
- s4 = peg$parse_();
740
- s5 = peg$currPos;
741
- if (input.charCodeAt(peg$currPos) === 91) {
742
- s6 = peg$c2;
743
- peg$currPos++;
744
- } else {
745
- s6 = peg$FAILED;
746
- if (peg$silentFails === 0) { peg$fail(peg$e4); }
747
- }
748
- if (s6 !== peg$FAILED) {
749
- s7 = peg$parseextended_state_attributes();
750
- if (input.charCodeAt(peg$currPos) === 93) {
751
- s8 = peg$c3;
752
- peg$currPos++;
753
- } else {
754
- s8 = peg$FAILED;
755
- if (peg$silentFails === 0) { peg$fail(peg$e5); }
756
- }
757
- if (s8 !== peg$FAILED) {
758
- peg$savedPos = s5;
759
- s5 = peg$f5(s1, s3, s7);
760
- } else {
761
- peg$currPos = s5;
762
- s5 = peg$FAILED;
763
- }
764
- } else {
765
- peg$currPos = s5;
766
- s5 = peg$FAILED;
767
- }
768
- if (s5 === peg$FAILED) {
769
- s5 = null;
770
- }
771
- s6 = peg$parse_();
772
- s7 = peg$currPos;
773
- if (input.charCodeAt(peg$currPos) === 58) {
774
- s8 = peg$c4;
775
- peg$currPos++;
776
- } else {
777
- s8 = peg$FAILED;
778
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
779
- }
780
- if (s8 !== peg$FAILED) {
781
- s9 = peg$parse_();
782
- s10 = peg$parsestring();
783
- if (s10 !== peg$FAILED) {
784
- s11 = peg$parse_();
785
- peg$savedPos = s7;
786
- s7 = peg$f6(s1, s3, s5, s10);
787
- } else {
788
- peg$currPos = s7;
789
- s7 = peg$FAILED;
790
- }
791
- } else {
792
- peg$currPos = s7;
793
- s7 = peg$FAILED;
794
- }
795
- if (s7 === peg$FAILED) {
796
- s7 = null;
797
- }
798
- s8 = peg$parse_();
799
- s9 = peg$currPos;
800
- if (input.charCodeAt(peg$currPos) === 123) {
801
- s10 = peg$c5;
802
- peg$currPos++;
803
- } else {
804
- s10 = peg$FAILED;
805
- if (peg$silentFails === 0) { peg$fail(peg$e7); }
806
- }
807
- if (s10 !== peg$FAILED) {
808
- s11 = peg$parse_();
809
- s12 = peg$parsestatemachine();
810
- if (s12 !== peg$FAILED) {
811
- s13 = peg$parse_();
812
- if (input.charCodeAt(peg$currPos) === 125) {
813
- s14 = peg$c6;
814
- peg$currPos++;
815
- } else {
816
- s14 = peg$FAILED;
817
- if (peg$silentFails === 0) { peg$fail(peg$e8); }
818
- }
819
- if (s14 !== peg$FAILED) {
820
- peg$savedPos = s9;
821
- s9 = peg$f7(s1, s3, s5, s7, s12);
822
- } else {
823
- peg$currPos = s9;
824
- s9 = peg$FAILED;
825
- }
826
- } else {
827
- peg$currPos = s9;
828
- s9 = peg$FAILED;
829
- }
830
- } else {
831
- peg$currPos = s9;
832
- s9 = peg$FAILED;
833
- }
834
- if (s9 === peg$FAILED) {
835
- s9 = null;
836
- }
837
- s10 = peg$parse_();
838
- peg$savedPos = s0;
839
- s0 = peg$f8(s1, s3, s5, s7, s9);
840
- } else {
841
- peg$currPos = s0;
842
- s0 = peg$FAILED;
843
- }
844
- peg$silentFails--;
845
- if (s0 === peg$FAILED) {
846
- s1 = peg$FAILED;
847
- if (peg$silentFails === 0) { peg$fail(peg$e3); }
848
- }
849
-
850
- return s0;
851
- }
852
-
853
- function peg$parseextended_state_attributes() {
854
- var s0, s1;
855
-
856
- peg$silentFails++;
857
- s0 = [];
858
- s1 = peg$parseextended_state_attribute();
859
- while (s1 !== peg$FAILED) {
860
- s0.push(s1);
861
- s1 = peg$parseextended_state_attribute();
862
- }
863
- peg$silentFails--;
864
- s1 = peg$FAILED;
865
- if (peg$silentFails === 0) { peg$fail(peg$e9); }
866
-
867
- return s0;
868
- }
869
-
870
- function peg$parseextended_state_attribute() {
871
- var s0, s1, s2, s3, s4, s5, s6, s7;
872
-
873
- peg$silentFails++;
874
- s0 = peg$currPos;
875
- s1 = peg$parse_();
876
- s2 = peg$parseextended_state_string_attribute_name();
877
- if (s2 !== peg$FAILED) {
878
- s3 = peg$parse_();
879
- if (input.charCodeAt(peg$currPos) === 61) {
880
- s4 = peg$c7;
881
- peg$currPos++;
882
- } else {
883
- s4 = peg$FAILED;
884
- if (peg$silentFails === 0) { peg$fail(peg$e11); }
885
- }
886
- if (s4 !== peg$FAILED) {
887
- s5 = peg$parse_();
888
- s6 = peg$parsequotedstring();
889
- if (s6 !== peg$FAILED) {
890
- s7 = peg$parse_();
891
- peg$savedPos = s0;
892
- s0 = peg$f9(s2, s6);
893
- } else {
894
- peg$currPos = s0;
895
- s0 = peg$FAILED;
896
- }
897
- } else {
898
- peg$currPos = s0;
899
- s0 = peg$FAILED;
900
- }
901
- } else {
902
- peg$currPos = s0;
903
- s0 = peg$FAILED;
904
- }
905
- if (s0 === peg$FAILED) {
906
- s0 = peg$currPos;
907
- s1 = peg$parse_();
908
- s2 = peg$parseclass_attribute_name();
909
- if (s2 !== peg$FAILED) {
910
- s3 = peg$parse_();
911
- if (input.charCodeAt(peg$currPos) === 61) {
912
- s4 = peg$c7;
913
- peg$currPos++;
914
- } else {
915
- s4 = peg$FAILED;
916
- if (peg$silentFails === 0) { peg$fail(peg$e11); }
917
- }
918
- if (s4 !== peg$FAILED) {
919
- s5 = peg$parse_();
920
- s6 = peg$parseclass_string();
921
- if (s6 !== peg$FAILED) {
922
- s7 = peg$parse_();
923
- peg$savedPos = s0;
924
- s0 = peg$f10(s2, s6);
925
- } else {
926
- peg$currPos = s0;
927
- s0 = peg$FAILED;
928
- }
929
- } else {
930
- peg$currPos = s0;
931
- s0 = peg$FAILED;
932
- }
933
- } else {
934
- peg$currPos = s0;
935
- s0 = peg$FAILED;
936
- }
937
- if (s0 === peg$FAILED) {
938
- s0 = peg$currPos;
939
- s1 = peg$parse_();
940
- s2 = peg$parseextended_state_boolean_attribute_name();
941
- if (s2 !== peg$FAILED) {
942
- s3 = peg$parse_();
943
- peg$savedPos = s0;
944
- s0 = peg$f11(s2);
945
- } else {
946
- peg$currPos = s0;
947
- s0 = peg$FAILED;
948
- }
949
- if (s0 === peg$FAILED) {
950
- s0 = peg$currPos;
951
- s1 = peg$parse_();
952
- s2 = peg$parseextended_state_type_attribute_name();
953
- if (s2 !== peg$FAILED) {
954
- s3 = peg$parse_();
955
- if (input.charCodeAt(peg$currPos) === 61) {
956
- s4 = peg$c7;
957
- peg$currPos++;
958
- } else {
959
- s4 = peg$FAILED;
960
- if (peg$silentFails === 0) { peg$fail(peg$e11); }
961
- }
962
- if (s4 !== peg$FAILED) {
963
- s5 = peg$parse_();
964
- s6 = peg$parseextended_state_type_attribute_type();
965
- if (s6 !== peg$FAILED) {
966
- s7 = peg$parse_();
967
- peg$savedPos = s0;
968
- s0 = peg$f12(s2, s6);
969
- } else {
970
- peg$currPos = s0;
971
- s0 = peg$FAILED;
972
- }
973
- } else {
974
- peg$currPos = s0;
975
- s0 = peg$FAILED;
976
- }
977
- } else {
978
- peg$currPos = s0;
979
- s0 = peg$FAILED;
980
- }
981
- }
982
- }
983
- }
984
- peg$silentFails--;
985
- if (s0 === peg$FAILED) {
986
- s1 = peg$FAILED;
987
- if (peg$silentFails === 0) { peg$fail(peg$e10); }
988
- }
989
-
990
- return s0;
991
- }
992
-
993
- function peg$parseextended_state_string_attribute_name() {
994
- var s0, s1;
995
-
996
- peg$silentFails++;
997
- s0 = peg$currPos;
998
- if (input.substr(peg$currPos, 5).toLowerCase() === peg$c8) {
999
- s1 = input.substr(peg$currPos, 5);
1000
- peg$currPos += 5;
1001
- } else {
1002
- s1 = peg$FAILED;
1003
- if (peg$silentFails === 0) { peg$fail(peg$e13); }
1004
- }
1005
- if (s1 === peg$FAILED) {
1006
- if (input.substr(peg$currPos, 5).toLowerCase() === peg$c9) {
1007
- s1 = input.substr(peg$currPos, 5);
1008
- peg$currPos += 5;
1009
- } else {
1010
- s1 = peg$FAILED;
1011
- if (peg$silentFails === 0) { peg$fail(peg$e14); }
1012
- }
1013
- }
1014
- if (s1 !== peg$FAILED) {
1015
- peg$savedPos = s0;
1016
- s1 = peg$f13(s1);
1017
- }
1018
- s0 = s1;
1019
- peg$silentFails--;
1020
- if (s0 === peg$FAILED) {
1021
- s1 = peg$FAILED;
1022
- if (peg$silentFails === 0) { peg$fail(peg$e12); }
1023
- }
1024
-
1025
- return s0;
1026
- }
1027
-
1028
- function peg$parseclass_attribute_name() {
1029
- var s0, s1;
1030
-
1031
- peg$silentFails++;
1032
- s0 = peg$currPos;
1033
- if (input.substr(peg$currPos, 5).toLowerCase() === peg$c10) {
1034
- s1 = input.substr(peg$currPos, 5);
1035
- peg$currPos += 5;
1036
- } else {
1037
- s1 = peg$FAILED;
1038
- if (peg$silentFails === 0) { peg$fail(peg$e16); }
1039
- }
1040
- if (s1 !== peg$FAILED) {
1041
- peg$savedPos = s0;
1042
- s1 = peg$f14(s1);
1043
- }
1044
- s0 = s1;
1045
- peg$silentFails--;
1046
- if (s0 === peg$FAILED) {
1047
- s1 = peg$FAILED;
1048
- if (peg$silentFails === 0) { peg$fail(peg$e15); }
1049
- }
1050
-
1051
- return s0;
1052
- }
1053
-
1054
- function peg$parseextended_state_boolean_attribute_name() {
1055
- var s0, s1;
1056
-
1057
- peg$silentFails++;
1058
- s0 = peg$currPos;
1059
- if (input.substr(peg$currPos, 6).toLowerCase() === peg$c11) {
1060
- s1 = input.substr(peg$currPos, 6);
1061
- peg$currPos += 6;
1062
- } else {
1063
- s1 = peg$FAILED;
1064
- if (peg$silentFails === 0) { peg$fail(peg$e18); }
1065
- }
1066
- if (s1 !== peg$FAILED) {
1067
- peg$savedPos = s0;
1068
- s1 = peg$f15(s1);
1069
- }
1070
- s0 = s1;
1071
- peg$silentFails--;
1072
- if (s0 === peg$FAILED) {
1073
- s1 = peg$FAILED;
1074
- if (peg$silentFails === 0) { peg$fail(peg$e17); }
1075
- }
1076
-
1077
- return s0;
1078
- }
1079
-
1080
- function peg$parseextended_state_type_attribute_name() {
1081
- var s0, s1;
1082
-
1083
- peg$silentFails++;
1084
- s0 = peg$currPos;
1085
- if (input.substr(peg$currPos, 4).toLowerCase() === peg$c12) {
1086
- s1 = input.substr(peg$currPos, 4);
1087
- peg$currPos += 4;
1088
- } else {
1089
- s1 = peg$FAILED;
1090
- if (peg$silentFails === 0) { peg$fail(peg$e20); }
1091
- }
1092
- if (s1 !== peg$FAILED) {
1093
- peg$savedPos = s0;
1094
- s1 = peg$f16(s1);
1095
- }
1096
- s0 = s1;
1097
- peg$silentFails--;
1098
- if (s0 === peg$FAILED) {
1099
- s1 = peg$FAILED;
1100
- if (peg$silentFails === 0) { peg$fail(peg$e19); }
1101
- }
1102
-
1103
- return s0;
1104
- }
1105
-
1106
- function peg$parseextended_state_type_attribute_type() {
1107
- var s0, s1;
1108
-
1109
- peg$silentFails++;
1110
- if (input.substr(peg$currPos, 7) === peg$c13) {
1111
- s0 = peg$c13;
1112
- peg$currPos += 7;
1113
- } else {
1114
- s0 = peg$FAILED;
1115
- if (peg$silentFails === 0) { peg$fail(peg$e22); }
1116
- }
1117
- if (s0 === peg$FAILED) {
1118
- if (input.substr(peg$currPos, 7) === peg$c14) {
1119
- s0 = peg$c14;
1120
- peg$currPos += 7;
1121
- } else {
1122
- s0 = peg$FAILED;
1123
- if (peg$silentFails === 0) { peg$fail(peg$e23); }
1124
- }
1125
- if (s0 === peg$FAILED) {
1126
- if (input.substr(peg$currPos, 9) === peg$c15) {
1127
- s0 = peg$c15;
1128
- peg$currPos += 9;
1129
- } else {
1130
- s0 = peg$FAILED;
1131
- if (peg$silentFails === 0) { peg$fail(peg$e24); }
1132
- }
1133
- if (s0 === peg$FAILED) {
1134
- if (input.substr(peg$currPos, 5) === peg$c16) {
1135
- s0 = peg$c16;
1136
- peg$currPos += 5;
1137
- } else {
1138
- s0 = peg$FAILED;
1139
- if (peg$silentFails === 0) { peg$fail(peg$e25); }
1140
- }
1141
- if (s0 === peg$FAILED) {
1142
- if (input.substr(peg$currPos, 8) === peg$c17) {
1143
- s0 = peg$c17;
1144
- peg$currPos += 8;
1145
- } else {
1146
- s0 = peg$FAILED;
1147
- if (peg$silentFails === 0) { peg$fail(peg$e26); }
1148
- }
1149
- if (s0 === peg$FAILED) {
1150
- if (input.substr(peg$currPos, 7) === peg$c18) {
1151
- s0 = peg$c18;
1152
- peg$currPos += 7;
1153
- } else {
1154
- s0 = peg$FAILED;
1155
- if (peg$silentFails === 0) { peg$fail(peg$e27); }
1156
- }
1157
- if (s0 === peg$FAILED) {
1158
- if (input.substr(peg$currPos, 11) === peg$c19) {
1159
- s0 = peg$c19;
1160
- peg$currPos += 11;
1161
- } else {
1162
- s0 = peg$FAILED;
1163
- if (peg$silentFails === 0) { peg$fail(peg$e28); }
1164
- }
1165
- if (s0 === peg$FAILED) {
1166
- if (input.substr(peg$currPos, 6) === peg$c20) {
1167
- s0 = peg$c20;
1168
- peg$currPos += 6;
1169
- } else {
1170
- s0 = peg$FAILED;
1171
- if (peg$silentFails === 0) { peg$fail(peg$e29); }
1172
- }
1173
- if (s0 === peg$FAILED) {
1174
- if (input.substr(peg$currPos, 8) === peg$c21) {
1175
- s0 = peg$c21;
1176
- peg$currPos += 8;
1177
- } else {
1178
- s0 = peg$FAILED;
1179
- if (peg$silentFails === 0) { peg$fail(peg$e30); }
1180
- }
1181
- if (s0 === peg$FAILED) {
1182
- if (input.substr(peg$currPos, 4) === peg$c22) {
1183
- s0 = peg$c22;
1184
- peg$currPos += 4;
1185
- } else {
1186
- s0 = peg$FAILED;
1187
- if (peg$silentFails === 0) { peg$fail(peg$e31); }
1188
- }
1189
- if (s0 === peg$FAILED) {
1190
- if (input.substr(peg$currPos, 4) === peg$c23) {
1191
- s0 = peg$c23;
1192
- peg$currPos += 4;
1193
- } else {
1194
- s0 = peg$FAILED;
1195
- if (peg$silentFails === 0) { peg$fail(peg$e32); }
1196
- }
1197
- if (s0 === peg$FAILED) {
1198
- if (input.substr(peg$currPos, 8) === peg$c24) {
1199
- s0 = peg$c24;
1200
- peg$currPos += 8;
1201
- } else {
1202
- s0 = peg$FAILED;
1203
- if (peg$silentFails === 0) { peg$fail(peg$e33); }
1204
- }
1205
- }
1206
- }
1207
- }
1208
- }
1209
- }
1210
- }
1211
- }
1212
- }
1213
- }
1214
- }
1215
- }
1216
- peg$silentFails--;
1217
- if (s0 === peg$FAILED) {
1218
- s1 = peg$FAILED;
1219
- if (peg$silentFails === 0) { peg$fail(peg$e21); }
1220
- }
1221
-
1222
- return s0;
1223
- }
1224
-
1225
- function peg$parsetransition() {
1226
- var s0, s1, s2, s3, s4, s5, s6, s7, s8;
1227
-
1228
- peg$silentFails++;
1229
- s0 = peg$currPos;
1230
- s1 = [];
1231
- s2 = peg$parsenote();
1232
- while (s2 !== peg$FAILED) {
1233
- s1.push(s2);
1234
- s2 = peg$parsenote();
1235
- }
1236
- s2 = peg$parsetransitionbase();
1237
- if (s2 !== peg$FAILED) {
1238
- s3 = peg$currPos;
1239
- if (input.charCodeAt(peg$currPos) === 91) {
1240
- s4 = peg$c2;
1241
- peg$currPos++;
1242
- } else {
1243
- s4 = peg$FAILED;
1244
- if (peg$silentFails === 0) { peg$fail(peg$e4); }
1245
- }
1246
- if (s4 !== peg$FAILED) {
1247
- s5 = peg$parseextended_transition_attributes();
1248
- if (input.charCodeAt(peg$currPos) === 93) {
1249
- s6 = peg$c3;
1250
- peg$currPos++;
1251
- } else {
1252
- s6 = peg$FAILED;
1253
- if (peg$silentFails === 0) { peg$fail(peg$e5); }
1254
- }
1255
- if (s6 !== peg$FAILED) {
1256
- s7 = peg$parse_();
1257
- peg$savedPos = s3;
1258
- s3 = peg$f17(s1, s2, s5);
1259
- } else {
1260
- peg$currPos = s3;
1261
- s3 = peg$FAILED;
1262
- }
1263
- } else {
1264
- peg$currPos = s3;
1265
- s3 = peg$FAILED;
1266
- }
1267
- if (s3 === peg$FAILED) {
1268
- s3 = null;
1269
- }
1270
- s4 = peg$currPos;
1271
- if (input.charCodeAt(peg$currPos) === 58) {
1272
- s5 = peg$c4;
1273
- peg$currPos++;
1274
- } else {
1275
- s5 = peg$FAILED;
1276
- if (peg$silentFails === 0) { peg$fail(peg$e6); }
1277
- }
1278
- if (s5 !== peg$FAILED) {
1279
- s6 = peg$parse_();
1280
- s7 = peg$parsetransitionstring();
1281
- if (s7 !== peg$FAILED) {
1282
- s8 = peg$parse_();
1283
- peg$savedPos = s4;
1284
- s4 = peg$f18(s1, s2, s3, s7);
1285
- } else {
1286
- peg$currPos = s4;
1287
- s4 = peg$FAILED;
1288
- }
1289
- } else {
1290
- peg$currPos = s4;
1291
- s4 = peg$FAILED;
1292
- }
1293
- if (s4 === peg$FAILED) {
1294
- s4 = null;
1295
- }
1296
- if (input.charCodeAt(peg$currPos) === 59) {
1297
- s5 = peg$c1;
1298
- peg$currPos++;
1299
- } else {
1300
- s5 = peg$FAILED;
1301
- if (peg$silentFails === 0) { peg$fail(peg$e2); }
1302
- }
1303
- if (s5 !== peg$FAILED) {
1304
- peg$savedPos = s0;
1305
- s0 = peg$f19(s1, s2, s3, s4);
1306
- } else {
1307
- peg$currPos = s0;
1308
- s0 = peg$FAILED;
1309
- }
1310
- } else {
1311
- peg$currPos = s0;
1312
- s0 = peg$FAILED;
1313
- }
1314
- peg$silentFails--;
1315
- if (s0 === peg$FAILED) {
1316
- s1 = peg$FAILED;
1317
- if (peg$silentFails === 0) { peg$fail(peg$e34); }
1318
- }
1319
-
1320
- return s0;
1321
- }
1322
-
1323
- function peg$parsetransitionbase() {
1324
- var s0, s1, s2, s3, s4, s5, s6, s7;
1325
-
1326
- s0 = peg$currPos;
1327
- s1 = peg$parse_();
1328
- s2 = peg$parseidentifier();
1329
- if (s2 !== peg$FAILED) {
1330
- s3 = peg$parse_();
1331
- s4 = peg$parsefwdarrowtoken();
1332
- if (s4 !== peg$FAILED) {
1333
- s5 = peg$parse_();
1334
- s6 = peg$parseidentifier();
1335
- if (s6 !== peg$FAILED) {
1336
- s7 = peg$parse_();
1337
- peg$savedPos = s0;
1338
- s0 = peg$f20(s2, s6);
1339
- } else {
1340
- peg$currPos = s0;
1341
- s0 = peg$FAILED;
1342
- }
1343
- } else {
1344
- peg$currPos = s0;
1345
- s0 = peg$FAILED;
1346
- }
1347
- } else {
1348
- peg$currPos = s0;
1349
- s0 = peg$FAILED;
1350
- }
1351
- if (s0 === peg$FAILED) {
1352
- s0 = peg$currPos;
1353
- s1 = peg$parse_();
1354
- s2 = peg$parseidentifier();
1355
- if (s2 !== peg$FAILED) {
1356
- s3 = peg$parse_();
1357
- s4 = peg$parsebckarrowtoken();
1358
- if (s4 !== peg$FAILED) {
1359
- s5 = peg$parse_();
1360
- s6 = peg$parseidentifier();
1361
- if (s6 !== peg$FAILED) {
1362
- s7 = peg$parse_();
1363
- peg$savedPos = s0;
1364
- s0 = peg$f21(s2, s6);
1365
- } else {
1366
- peg$currPos = s0;
1367
- s0 = peg$FAILED;
1368
- }
1369
- } else {
1370
- peg$currPos = s0;
1371
- s0 = peg$FAILED;
1372
- }
1373
- } else {
1374
- peg$currPos = s0;
1375
- s0 = peg$FAILED;
1376
- }
1377
- }
1378
-
1379
- return s0;
1380
- }
1381
-
1382
- function peg$parseextended_transition_attributes() {
1383
- var s0, s1;
1384
-
1385
- peg$silentFails++;
1386
- s0 = [];
1387
- s1 = peg$parseextended_transition_attribute();
1388
- while (s1 !== peg$FAILED) {
1389
- s0.push(s1);
1390
- s1 = peg$parseextended_transition_attribute();
1391
- }
1392
- peg$silentFails--;
1393
- s1 = peg$FAILED;
1394
- if (peg$silentFails === 0) { peg$fail(peg$e35); }
1395
-
1396
- return s0;
1397
- }
1398
-
1399
- function peg$parseextended_transition_attribute() {
1400
- var s0, s1, s2, s3, s4, s5, s6, s7;
1401
-
1402
- peg$silentFails++;
1403
- s0 = peg$currPos;
1404
- s1 = peg$parse_();
1405
- s2 = peg$parseextended_transition_string_attribute_name();
1406
- if (s2 !== peg$FAILED) {
1407
- s3 = peg$parse_();
1408
- if (input.charCodeAt(peg$currPos) === 61) {
1409
- s4 = peg$c7;
1410
- peg$currPos++;
1411
- } else {
1412
- s4 = peg$FAILED;
1413
- if (peg$silentFails === 0) { peg$fail(peg$e11); }
1414
- }
1415
- if (s4 !== peg$FAILED) {
1416
- s5 = peg$parse_();
1417
- s6 = peg$parsequotedstring();
1418
- if (s6 !== peg$FAILED) {
1419
- s7 = peg$parse_();
1420
- peg$savedPos = s0;
1421
- s0 = peg$f22(s2, s6);
1422
- } else {
1423
- peg$currPos = s0;
1424
- s0 = peg$FAILED;
1425
- }
1426
- } else {
1427
- peg$currPos = s0;
1428
- s0 = peg$FAILED;
1429
- }
1430
- } else {
1431
- peg$currPos = s0;
1432
- s0 = peg$FAILED;
1433
- }
1434
- if (s0 === peg$FAILED) {
1435
- s0 = peg$currPos;
1436
- s1 = peg$parse_();
1437
- s2 = peg$parseclass_attribute_name();
1438
- if (s2 !== peg$FAILED) {
1439
- s3 = peg$parse_();
1440
- if (input.charCodeAt(peg$currPos) === 61) {
1441
- s4 = peg$c7;
1442
- peg$currPos++;
1443
- } else {
1444
- s4 = peg$FAILED;
1445
- if (peg$silentFails === 0) { peg$fail(peg$e11); }
1446
- }
1447
- if (s4 !== peg$FAILED) {
1448
- s5 = peg$parse_();
1449
- s6 = peg$parseclass_string();
1450
- if (s6 !== peg$FAILED) {
1451
- s7 = peg$parse_();
1452
- peg$savedPos = s0;
1453
- s0 = peg$f23(s2, s6);
1454
- } else {
1455
- peg$currPos = s0;
1456
- s0 = peg$FAILED;
1457
- }
1458
- } else {
1459
- peg$currPos = s0;
1460
- s0 = peg$FAILED;
1461
- }
1462
- } else {
1463
- peg$currPos = s0;
1464
- s0 = peg$FAILED;
1465
- }
1466
- if (s0 === peg$FAILED) {
1467
- s0 = peg$currPos;
1468
- s1 = peg$parse_();
1469
- s2 = peg$parseextended_transition_type_name();
1470
- if (s2 !== peg$FAILED) {
1471
- s3 = peg$parse_();
1472
- if (input.charCodeAt(peg$currPos) === 61) {
1473
- s4 = peg$c7;
1474
- peg$currPos++;
1475
- } else {
1476
- s4 = peg$FAILED;
1477
- if (peg$silentFails === 0) { peg$fail(peg$e11); }
1478
- }
1479
- if (s4 !== peg$FAILED) {
1480
- s5 = peg$parse_();
1481
- s6 = peg$parseextended_transition_type_value();
1482
- if (s6 !== peg$FAILED) {
1483
- s7 = peg$parse_();
1484
- peg$savedPos = s0;
1485
- s0 = peg$f24(s2, s6);
1486
- } else {
1487
- peg$currPos = s0;
1488
- s0 = peg$FAILED;
1489
- }
1490
- } else {
1491
- peg$currPos = s0;
1492
- s0 = peg$FAILED;
1493
- }
1494
- } else {
1495
- peg$currPos = s0;
1496
- s0 = peg$FAILED;
1497
- }
1498
- if (s0 === peg$FAILED) {
1499
- s0 = peg$currPos;
1500
- s1 = peg$parse_();
1501
- s2 = peg$parseextended_transition_numeric_attribute_name();
1502
- if (s2 !== peg$FAILED) {
1503
- s3 = peg$parse_();
1504
- if (input.charCodeAt(peg$currPos) === 61) {
1505
- s4 = peg$c7;
1506
- peg$currPos++;
1507
- } else {
1508
- s4 = peg$FAILED;
1509
- if (peg$silentFails === 0) { peg$fail(peg$e11); }
1510
- }
1511
- if (s4 !== peg$FAILED) {
1512
- s5 = peg$parse_();
1513
- s6 = peg$parsepositive_number();
1514
- if (s6 !== peg$FAILED) {
1515
- s7 = peg$parse_();
1516
- peg$savedPos = s0;
1517
- s0 = peg$f25(s2, s6);
1518
- } else {
1519
- peg$currPos = s0;
1520
- s0 = peg$FAILED;
1521
- }
1522
- } else {
1523
- peg$currPos = s0;
1524
- s0 = peg$FAILED;
1525
- }
1526
- } else {
1527
- peg$currPos = s0;
1528
- s0 = peg$FAILED;
1529
- }
1530
- }
1531
- }
1532
- }
1533
- peg$silentFails--;
1534
- if (s0 === peg$FAILED) {
1535
- s1 = peg$FAILED;
1536
- if (peg$silentFails === 0) { peg$fail(peg$e36); }
1537
- }
1538
-
1539
- return s0;
1540
- }
1541
-
1542
- function peg$parseextended_transition_string_attribute_name() {
1543
- var s0, s1;
1544
-
1545
- peg$silentFails++;
1546
- s0 = peg$currPos;
1547
- if (input.substr(peg$currPos, 5).toLowerCase() === peg$c9) {
1548
- s1 = input.substr(peg$currPos, 5);
1549
- peg$currPos += 5;
1550
- } else {
1551
- s1 = peg$FAILED;
1552
- if (peg$silentFails === 0) { peg$fail(peg$e14); }
1553
- }
1554
- if (s1 !== peg$FAILED) {
1555
- peg$savedPos = s0;
1556
- s1 = peg$f26(s1);
1557
- }
1558
- s0 = s1;
1559
- peg$silentFails--;
1560
- if (s0 === peg$FAILED) {
1561
- s1 = peg$FAILED;
1562
- if (peg$silentFails === 0) { peg$fail(peg$e37); }
1563
- }
1564
-
1565
- return s0;
1566
- }
1567
-
1568
- function peg$parseextended_transition_type_name() {
1569
- var s0, s1;
1570
-
1571
- peg$silentFails++;
1572
- s0 = peg$currPos;
1573
- if (input.substr(peg$currPos, 4).toLowerCase() === peg$c12) {
1574
- s1 = input.substr(peg$currPos, 4);
1575
- peg$currPos += 4;
1576
- } else {
1577
- s1 = peg$FAILED;
1578
- if (peg$silentFails === 0) { peg$fail(peg$e20); }
1579
- }
1580
- if (s1 !== peg$FAILED) {
1581
- peg$savedPos = s0;
1582
- s1 = peg$f27(s1);
1583
- }
1584
- s0 = s1;
1585
- peg$silentFails--;
1586
- if (s0 === peg$FAILED) {
1587
- s1 = peg$FAILED;
1588
- if (peg$silentFails === 0) { peg$fail(peg$e38); }
1589
- }
1590
-
1591
- return s0;
1592
- }
1593
-
1594
- function peg$parseextended_transition_numeric_attribute_name() {
1595
- var s0, s1;
1596
-
1597
- peg$silentFails++;
1598
- s0 = peg$currPos;
1599
- if (input.substr(peg$currPos, 5).toLowerCase() === peg$c25) {
1600
- s1 = input.substr(peg$currPos, 5);
1601
- peg$currPos += 5;
1602
- } else {
1603
- s1 = peg$FAILED;
1604
- if (peg$silentFails === 0) { peg$fail(peg$e40); }
1605
- }
1606
- if (s1 !== peg$FAILED) {
1607
- peg$savedPos = s0;
1608
- s1 = peg$f28(s1);
1609
- }
1610
- s0 = s1;
1611
- peg$silentFails--;
1612
- if (s0 === peg$FAILED) {
1613
- s1 = peg$FAILED;
1614
- if (peg$silentFails === 0) { peg$fail(peg$e39); }
1615
- }
1616
-
1617
- return s0;
1618
- }
1619
-
1620
- function peg$parseextended_transition_type_value() {
1621
- var s0, s1;
1622
-
1623
- peg$silentFails++;
1624
- if (input.substr(peg$currPos, 8) === peg$c26) {
1625
- s0 = peg$c26;
1626
- peg$currPos += 8;
1627
- } else {
1628
- s0 = peg$FAILED;
1629
- if (peg$silentFails === 0) { peg$fail(peg$e42); }
1630
- }
1631
- if (s0 === peg$FAILED) {
1632
- if (input.substr(peg$currPos, 8) === peg$c27) {
1633
- s0 = peg$c27;
1634
- peg$currPos += 8;
1635
- } else {
1636
- s0 = peg$FAILED;
1637
- if (peg$silentFails === 0) { peg$fail(peg$e43); }
1638
- }
1639
- }
1640
- peg$silentFails--;
1641
- if (s0 === peg$FAILED) {
1642
- s1 = peg$FAILED;
1643
- if (peg$silentFails === 0) { peg$fail(peg$e41); }
1644
- }
1645
-
1646
- return s0;
1647
- }
1648
-
1649
- function peg$parsefwdarrowtoken() {
1650
- var s0, s1;
1651
-
1652
- peg$silentFails++;
1653
- if (input.substr(peg$currPos, 2) === peg$c28) {
1654
- s0 = peg$c28;
1655
- peg$currPos += 2;
1656
- } else {
1657
- s0 = peg$FAILED;
1658
- if (peg$silentFails === 0) { peg$fail(peg$e45); }
1659
- }
1660
- if (s0 === peg$FAILED) {
1661
- if (input.substr(peg$currPos, 3) === peg$c29) {
1662
- s0 = peg$c29;
1663
- peg$currPos += 3;
1664
- } else {
1665
- s0 = peg$FAILED;
1666
- if (peg$silentFails === 0) { peg$fail(peg$e46); }
1667
- }
1668
- if (s0 === peg$FAILED) {
1669
- if (input.substr(peg$currPos, 2) === peg$c30) {
1670
- s0 = peg$c30;
1671
- peg$currPos += 2;
1672
- } else {
1673
- s0 = peg$FAILED;
1674
- if (peg$silentFails === 0) { peg$fail(peg$e47); }
1675
- }
1676
- if (s0 === peg$FAILED) {
1677
- if (input.substr(peg$currPos, 2) === peg$c31) {
1678
- s0 = peg$c31;
1679
- peg$currPos += 2;
1680
- } else {
1681
- s0 = peg$FAILED;
1682
- if (peg$silentFails === 0) { peg$fail(peg$e48); }
1683
- }
1684
- if (s0 === peg$FAILED) {
1685
- if (input.substr(peg$currPos, 2) === peg$c32) {
1686
- s0 = peg$c32;
1687
- peg$currPos += 2;
1688
- } else {
1689
- s0 = peg$FAILED;
1690
- if (peg$silentFails === 0) { peg$fail(peg$e49); }
1691
- }
1692
- if (s0 === peg$FAILED) {
1693
- if (input.substr(peg$currPos, 2) === peg$c33) {
1694
- s0 = peg$c33;
1695
- peg$currPos += 2;
1696
- } else {
1697
- s0 = peg$FAILED;
1698
- if (peg$silentFails === 0) { peg$fail(peg$e50); }
1699
- }
1700
- if (s0 === peg$FAILED) {
1701
- if (input.substr(peg$currPos, 2) === peg$c34) {
1702
- s0 = peg$c34;
1703
- peg$currPos += 2;
1704
- } else {
1705
- s0 = peg$FAILED;
1706
- if (peg$silentFails === 0) { peg$fail(peg$e51); }
1707
- }
1708
- }
1709
- }
1710
- }
1711
- }
1712
- }
1713
- }
1714
- peg$silentFails--;
1715
- if (s0 === peg$FAILED) {
1716
- s1 = peg$FAILED;
1717
- if (peg$silentFails === 0) { peg$fail(peg$e44); }
1718
- }
1719
-
1720
- return s0;
1721
- }
1722
-
1723
- function peg$parsebckarrowtoken() {
1724
- var s0, s1;
1725
-
1726
- peg$silentFails++;
1727
- if (input.substr(peg$currPos, 2) === peg$c35) {
1728
- s0 = peg$c35;
1729
- peg$currPos += 2;
1730
- } else {
1731
- s0 = peg$FAILED;
1732
- if (peg$silentFails === 0) { peg$fail(peg$e53); }
1733
- }
1734
- if (s0 === peg$FAILED) {
1735
- if (input.substr(peg$currPos, 3) === peg$c36) {
1736
- s0 = peg$c36;
1737
- peg$currPos += 3;
1738
- } else {
1739
- s0 = peg$FAILED;
1740
- if (peg$silentFails === 0) { peg$fail(peg$e54); }
1741
- }
1742
- if (s0 === peg$FAILED) {
1743
- if (input.substr(peg$currPos, 2) === peg$c37) {
1744
- s0 = peg$c37;
1745
- peg$currPos += 2;
1746
- } else {
1747
- s0 = peg$FAILED;
1748
- if (peg$silentFails === 0) { peg$fail(peg$e55); }
1749
- }
1750
- if (s0 === peg$FAILED) {
1751
- if (input.substr(peg$currPos, 2) === peg$c38) {
1752
- s0 = peg$c38;
1753
- peg$currPos += 2;
1754
- } else {
1755
- s0 = peg$FAILED;
1756
- if (peg$silentFails === 0) { peg$fail(peg$e56); }
1757
- }
1758
- if (s0 === peg$FAILED) {
1759
- if (input.substr(peg$currPos, 2) === peg$c39) {
1760
- s0 = peg$c39;
1761
- peg$currPos += 2;
1762
- } else {
1763
- s0 = peg$FAILED;
1764
- if (peg$silentFails === 0) { peg$fail(peg$e57); }
1765
- }
1766
- }
1767
- }
1768
- }
1769
- }
1770
- peg$silentFails--;
1771
- if (s0 === peg$FAILED) {
1772
- s1 = peg$FAILED;
1773
- if (peg$silentFails === 0) { peg$fail(peg$e52); }
1774
- }
1775
-
1776
- return s0;
1777
- }
1778
-
1779
- function peg$parsenote() {
1780
- var s0, s1, s2, s3, s4;
1781
-
1782
- s0 = peg$currPos;
1783
- s1 = peg$parse_();
1784
- if (input.charCodeAt(peg$currPos) === 35) {
1785
- s2 = peg$c40;
1786
- peg$currPos++;
1787
- } else {
1788
- s2 = peg$FAILED;
1789
- if (peg$silentFails === 0) { peg$fail(peg$e58); }
1790
- }
1791
- if (s2 !== peg$FAILED) {
1792
- s3 = [];
1793
- s4 = peg$parseslcomtok();
1794
- while (s4 !== peg$FAILED) {
1795
- s3.push(s4);
1796
- s4 = peg$parseslcomtok();
1797
- }
1798
- peg$savedPos = s0;
1799
- s0 = peg$f29(s3);
1800
- } else {
1801
- peg$currPos = s0;
1802
- s0 = peg$FAILED;
1803
- }
1804
-
1805
- return s0;
1806
- }
1807
-
1808
- function peg$parsepositive_number() {
1809
- var s0;
1810
-
1811
- s0 = peg$parsepositive_real();
1812
- if (s0 === peg$FAILED) {
1813
- s0 = peg$parsecardinal();
1814
- }
1815
-
1816
- return s0;
1817
- }
1818
-
1819
- function peg$parsepositive_real() {
1820
- var s0, s1, s2, s3, s4;
1821
-
1822
- s0 = peg$currPos;
1823
- s1 = peg$currPos;
1824
- s2 = peg$parsecardinal();
1825
- if (s2 !== peg$FAILED) {
1826
- if (input.charCodeAt(peg$currPos) === 46) {
1827
- s3 = peg$c41;
1828
- peg$currPos++;
1829
- } else {
1830
- s3 = peg$FAILED;
1831
- if (peg$silentFails === 0) { peg$fail(peg$e59); }
1832
- }
1833
- if (s3 !== peg$FAILED) {
1834
- s4 = peg$parsecardinal();
1835
- if (s4 !== peg$FAILED) {
1836
- s2 = [s2, s3, s4];
1837
- s1 = s2;
1838
- } else {
1839
- peg$currPos = s1;
1840
- s1 = peg$FAILED;
1841
- }
1842
- } else {
1843
- peg$currPos = s1;
1844
- s1 = peg$FAILED;
1845
- }
1846
- } else {
1847
- peg$currPos = s1;
1848
- s1 = peg$FAILED;
1849
- }
1850
- if (s1 !== peg$FAILED) {
1851
- peg$savedPos = s0;
1852
- s1 = peg$f30(s1);
1853
- }
1854
- s0 = s1;
1855
-
1856
- return s0;
1857
- }
1858
-
1859
- function peg$parsecardinal() {
1860
- var s0, s1, s2;
1861
-
1862
- s0 = peg$currPos;
1863
- s1 = [];
1864
- if (peg$r0.test(input.charAt(peg$currPos))) {
1865
- s2 = input.charAt(peg$currPos);
1866
- peg$currPos++;
1867
- } else {
1868
- s2 = peg$FAILED;
1869
- if (peg$silentFails === 0) { peg$fail(peg$e60); }
1870
- }
1871
- if (s2 !== peg$FAILED) {
1872
- while (s2 !== peg$FAILED) {
1873
- s1.push(s2);
1874
- if (peg$r0.test(input.charAt(peg$currPos))) {
1875
- s2 = input.charAt(peg$currPos);
1876
- peg$currPos++;
1877
- } else {
1878
- s2 = peg$FAILED;
1879
- if (peg$silentFails === 0) { peg$fail(peg$e60); }
1880
- }
1881
- }
1882
- } else {
1883
- s1 = peg$FAILED;
1884
- }
1885
- if (s1 !== peg$FAILED) {
1886
- peg$savedPos = s0;
1887
- s1 = peg$f31(s1);
1888
- }
1889
- s0 = s1;
1890
-
1891
- return s0;
1892
- }
1893
-
1894
- function peg$parsetransitionstring() {
1895
- var s0;
1896
-
1897
- s0 = peg$parsequotedstring();
1898
- if (s0 === peg$FAILED) {
1899
- s0 = peg$parseunquotedtransitionstring();
1900
- }
1901
-
1902
- return s0;
1903
- }
1904
-
1905
- function peg$parsestring() {
1906
- var s0;
1907
-
1908
- s0 = peg$parsequotedstring();
1909
- if (s0 === peg$FAILED) {
1910
- s0 = peg$parseunquotedstring();
1911
- }
1912
-
1913
- return s0;
1914
- }
1915
-
1916
- function peg$parsequotedstring() {
1917
- var s0, s1, s2, s3;
1918
-
1919
- peg$silentFails++;
1920
- s0 = peg$currPos;
1921
- if (input.charCodeAt(peg$currPos) === 34) {
1922
- s1 = peg$c42;
1923
- peg$currPos++;
1924
- } else {
1925
- s1 = peg$FAILED;
1926
- if (peg$silentFails === 0) { peg$fail(peg$e62); }
1927
- }
1928
- if (s1 !== peg$FAILED) {
1929
- s2 = peg$parsestringcontent();
1930
- if (input.charCodeAt(peg$currPos) === 34) {
1931
- s3 = peg$c42;
1932
- peg$currPos++;
1933
- } else {
1934
- s3 = peg$FAILED;
1935
- if (peg$silentFails === 0) { peg$fail(peg$e62); }
1936
- }
1937
- if (s3 !== peg$FAILED) {
1938
- peg$savedPos = s0;
1939
- s0 = peg$f32(s2);
1940
- } else {
1941
- peg$currPos = s0;
1942
- s0 = peg$FAILED;
1943
- }
1944
- } else {
1945
- peg$currPos = s0;
1946
- s0 = peg$FAILED;
1947
- }
1948
- peg$silentFails--;
1949
- if (s0 === peg$FAILED) {
1950
- s1 = peg$FAILED;
1951
- if (peg$silentFails === 0) { peg$fail(peg$e61); }
1952
- }
1953
-
1954
- return s0;
1955
- }
1956
-
1957
- function peg$parsestringcontent() {
1958
- var s0, s1, s2, s3;
1959
-
1960
- s0 = [];
1961
- s1 = peg$currPos;
1962
- s2 = peg$currPos;
1963
- peg$silentFails++;
1964
- if (input.charCodeAt(peg$currPos) === 34) {
1965
- s3 = peg$c42;
1966
- peg$currPos++;
1967
- } else {
1968
- s3 = peg$FAILED;
1969
- if (peg$silentFails === 0) { peg$fail(peg$e62); }
1970
- }
1971
- peg$silentFails--;
1972
- if (s3 === peg$FAILED) {
1973
- s2 = undefined;
1974
- } else {
1975
- peg$currPos = s2;
1976
- s2 = peg$FAILED;
1977
- }
1978
- if (s2 !== peg$FAILED) {
1979
- if (input.substr(peg$currPos, 2) === peg$c43) {
1980
- s3 = peg$c43;
1981
- peg$currPos += 2;
1982
- } else {
1983
- s3 = peg$FAILED;
1984
- if (peg$silentFails === 0) { peg$fail(peg$e63); }
1985
- }
1986
- if (s3 === peg$FAILED) {
1987
- if (input.length > peg$currPos) {
1988
- s3 = input.charAt(peg$currPos);
1989
- peg$currPos++;
1990
- } else {
1991
- s3 = peg$FAILED;
1992
- if (peg$silentFails === 0) { peg$fail(peg$e64); }
1993
- }
1994
- }
1995
- if (s3 !== peg$FAILED) {
1996
- peg$savedPos = s1;
1997
- s1 = peg$f33(s3);
1998
- } else {
1999
- peg$currPos = s1;
2000
- s1 = peg$FAILED;
2001
- }
2002
- } else {
2003
- peg$currPos = s1;
2004
- s1 = peg$FAILED;
2005
- }
2006
- while (s1 !== peg$FAILED) {
2007
- s0.push(s1);
2008
- s1 = peg$currPos;
2009
- s2 = peg$currPos;
2010
- peg$silentFails++;
2011
- if (input.charCodeAt(peg$currPos) === 34) {
2012
- s3 = peg$c42;
2013
- peg$currPos++;
2014
- } else {
2015
- s3 = peg$FAILED;
2016
- if (peg$silentFails === 0) { peg$fail(peg$e62); }
2017
- }
2018
- peg$silentFails--;
2019
- if (s3 === peg$FAILED) {
2020
- s2 = undefined;
2021
- } else {
2022
- peg$currPos = s2;
2023
- s2 = peg$FAILED;
2024
- }
2025
- if (s2 !== peg$FAILED) {
2026
- if (input.substr(peg$currPos, 2) === peg$c43) {
2027
- s3 = peg$c43;
2028
- peg$currPos += 2;
2029
- } else {
2030
- s3 = peg$FAILED;
2031
- if (peg$silentFails === 0) { peg$fail(peg$e63); }
2032
- }
2033
- if (s3 === peg$FAILED) {
2034
- if (input.length > peg$currPos) {
2035
- s3 = input.charAt(peg$currPos);
2036
- peg$currPos++;
2037
- } else {
2038
- s3 = peg$FAILED;
2039
- if (peg$silentFails === 0) { peg$fail(peg$e64); }
2040
- }
2041
- }
2042
- if (s3 !== peg$FAILED) {
2043
- peg$savedPos = s1;
2044
- s1 = peg$f33(s3);
2045
- } else {
2046
- peg$currPos = s1;
2047
- s1 = peg$FAILED;
2048
- }
2049
- } else {
2050
- peg$currPos = s1;
2051
- s1 = peg$FAILED;
2052
- }
2053
- }
2054
-
2055
- return s0;
2056
- }
2057
-
2058
- function peg$parseclass_string() {
2059
- var s0, s1, s2, s3;
2060
-
2061
- peg$silentFails++;
2062
- s0 = peg$currPos;
2063
- if (input.charCodeAt(peg$currPos) === 34) {
2064
- s1 = peg$c42;
2065
- peg$currPos++;
2066
- } else {
2067
- s1 = peg$FAILED;
2068
- if (peg$silentFails === 0) { peg$fail(peg$e62); }
2069
- }
2070
- if (s1 !== peg$FAILED) {
2071
- s2 = peg$parseclass_stringcontent();
2072
- if (input.charCodeAt(peg$currPos) === 34) {
2073
- s3 = peg$c42;
2074
- peg$currPos++;
2075
- } else {
2076
- s3 = peg$FAILED;
2077
- if (peg$silentFails === 0) { peg$fail(peg$e62); }
2078
- }
2079
- if (s3 !== peg$FAILED) {
2080
- peg$savedPos = s0;
2081
- s0 = peg$f34(s2);
2082
- } else {
2083
- peg$currPos = s0;
2084
- s0 = peg$FAILED;
2085
- }
2086
- } else {
2087
- peg$currPos = s0;
2088
- s0 = peg$FAILED;
2089
- }
2090
- peg$silentFails--;
2091
- if (s0 === peg$FAILED) {
2092
- s1 = peg$FAILED;
2093
- if (peg$silentFails === 0) { peg$fail(peg$e65); }
2094
- }
2095
-
2096
- return s0;
2097
- }
2098
-
2099
- function peg$parseclass_stringcontent() {
2100
- var s0, s1, s2, s3;
2101
-
2102
- s0 = [];
2103
- s1 = peg$currPos;
2104
- s2 = peg$currPos;
2105
- peg$silentFails++;
2106
- if (input.charCodeAt(peg$currPos) === 34) {
2107
- s3 = peg$c42;
2108
- peg$currPos++;
2109
- } else {
2110
- s3 = peg$FAILED;
2111
- if (peg$silentFails === 0) { peg$fail(peg$e62); }
2112
- }
2113
- peg$silentFails--;
2114
- if (s3 === peg$FAILED) {
2115
- s2 = undefined;
2116
- } else {
2117
- peg$currPos = s2;
2118
- s2 = peg$FAILED;
2119
- }
2120
- if (s2 !== peg$FAILED) {
2121
- if (peg$r1.test(input.charAt(peg$currPos))) {
2122
- s3 = input.charAt(peg$currPos);
2123
- peg$currPos++;
2124
- } else {
2125
- s3 = peg$FAILED;
2126
- if (peg$silentFails === 0) { peg$fail(peg$e66); }
2127
- }
2128
- if (s3 !== peg$FAILED) {
2129
- peg$savedPos = s1;
2130
- s1 = peg$f35(s3);
2131
- } else {
2132
- peg$currPos = s1;
2133
- s1 = peg$FAILED;
2134
- }
2135
- } else {
2136
- peg$currPos = s1;
2137
- s1 = peg$FAILED;
2138
- }
2139
- while (s1 !== peg$FAILED) {
2140
- s0.push(s1);
2141
- s1 = peg$currPos;
2142
- s2 = peg$currPos;
2143
- peg$silentFails++;
2144
- if (input.charCodeAt(peg$currPos) === 34) {
2145
- s3 = peg$c42;
2146
- peg$currPos++;
2147
- } else {
2148
- s3 = peg$FAILED;
2149
- if (peg$silentFails === 0) { peg$fail(peg$e62); }
2150
- }
2151
- peg$silentFails--;
2152
- if (s3 === peg$FAILED) {
2153
- s2 = undefined;
2154
- } else {
2155
- peg$currPos = s2;
2156
- s2 = peg$FAILED;
2157
- }
2158
- if (s2 !== peg$FAILED) {
2159
- if (peg$r1.test(input.charAt(peg$currPos))) {
2160
- s3 = input.charAt(peg$currPos);
2161
- peg$currPos++;
2162
- } else {
2163
- s3 = peg$FAILED;
2164
- if (peg$silentFails === 0) { peg$fail(peg$e66); }
2165
- }
2166
- if (s3 !== peg$FAILED) {
2167
- peg$savedPos = s1;
2168
- s1 = peg$f35(s3);
2169
- } else {
2170
- peg$currPos = s1;
2171
- s1 = peg$FAILED;
2172
- }
2173
- } else {
2174
- peg$currPos = s1;
2175
- s1 = peg$FAILED;
2176
- }
2177
- }
2178
-
2179
- return s0;
2180
- }
2181
-
2182
- function peg$parseunquotedtransitionstring() {
2183
- var s0, s1;
2184
-
2185
- s0 = peg$currPos;
2186
- s1 = peg$parsetransitionnonsep();
2187
- peg$savedPos = s0;
2188
- s1 = peg$f36(s1);
2189
- s0 = s1;
2190
-
2191
- return s0;
2192
- }
2193
-
2194
- function peg$parseunquotedstring() {
2195
- var s0, s1;
2196
-
2197
- s0 = peg$currPos;
2198
- s1 = peg$parsenonsep();
2199
- peg$savedPos = s0;
2200
- s1 = peg$f37(s1);
2201
- s0 = s1;
2202
-
2203
- return s0;
2204
- }
2205
-
2206
- function peg$parsenonsep() {
2207
- var s0, s1, s2, s3;
2208
-
2209
- s0 = [];
2210
- s1 = peg$currPos;
2211
- s2 = peg$currPos;
2212
- peg$silentFails++;
2213
- if (input.charCodeAt(peg$currPos) === 44) {
2214
- s3 = peg$c0;
2215
- peg$currPos++;
2216
- } else {
2217
- s3 = peg$FAILED;
2218
- if (peg$silentFails === 0) { peg$fail(peg$e1); }
2219
- }
2220
- if (s3 === peg$FAILED) {
2221
- if (input.charCodeAt(peg$currPos) === 59) {
2222
- s3 = peg$c1;
2223
- peg$currPos++;
2224
- } else {
2225
- s3 = peg$FAILED;
2226
- if (peg$silentFails === 0) { peg$fail(peg$e2); }
2227
- }
2228
- if (s3 === peg$FAILED) {
2229
- if (input.charCodeAt(peg$currPos) === 123) {
2230
- s3 = peg$c5;
2231
- peg$currPos++;
2232
- } else {
2233
- s3 = peg$FAILED;
2234
- if (peg$silentFails === 0) { peg$fail(peg$e7); }
2235
- }
2236
- }
2237
- }
2238
- peg$silentFails--;
2239
- if (s3 === peg$FAILED) {
2240
- s2 = undefined;
2241
- } else {
2242
- peg$currPos = s2;
2243
- s2 = peg$FAILED;
2244
- }
2245
- if (s2 !== peg$FAILED) {
2246
- if (input.length > peg$currPos) {
2247
- s3 = input.charAt(peg$currPos);
2248
- peg$currPos++;
2249
- } else {
2250
- s3 = peg$FAILED;
2251
- if (peg$silentFails === 0) { peg$fail(peg$e64); }
2252
- }
2253
- if (s3 !== peg$FAILED) {
2254
- peg$savedPos = s1;
2255
- s1 = peg$f38(s3);
2256
- } else {
2257
- peg$currPos = s1;
2258
- s1 = peg$FAILED;
2259
- }
2260
- } else {
2261
- peg$currPos = s1;
2262
- s1 = peg$FAILED;
2263
- }
2264
- while (s1 !== peg$FAILED) {
2265
- s0.push(s1);
2266
- s1 = peg$currPos;
2267
- s2 = peg$currPos;
2268
- peg$silentFails++;
2269
- if (input.charCodeAt(peg$currPos) === 44) {
2270
- s3 = peg$c0;
2271
- peg$currPos++;
2272
- } else {
2273
- s3 = peg$FAILED;
2274
- if (peg$silentFails === 0) { peg$fail(peg$e1); }
2275
- }
2276
- if (s3 === peg$FAILED) {
2277
- if (input.charCodeAt(peg$currPos) === 59) {
2278
- s3 = peg$c1;
2279
- peg$currPos++;
2280
- } else {
2281
- s3 = peg$FAILED;
2282
- if (peg$silentFails === 0) { peg$fail(peg$e2); }
2283
- }
2284
- if (s3 === peg$FAILED) {
2285
- if (input.charCodeAt(peg$currPos) === 123) {
2286
- s3 = peg$c5;
2287
- peg$currPos++;
2288
- } else {
2289
- s3 = peg$FAILED;
2290
- if (peg$silentFails === 0) { peg$fail(peg$e7); }
2291
- }
2292
- }
2293
- }
2294
- peg$silentFails--;
2295
- if (s3 === peg$FAILED) {
2296
- s2 = undefined;
2297
- } else {
2298
- peg$currPos = s2;
2299
- s2 = peg$FAILED;
2300
- }
2301
- if (s2 !== peg$FAILED) {
2302
- if (input.length > peg$currPos) {
2303
- s3 = input.charAt(peg$currPos);
2304
- peg$currPos++;
2305
- } else {
2306
- s3 = peg$FAILED;
2307
- if (peg$silentFails === 0) { peg$fail(peg$e64); }
2308
- }
2309
- if (s3 !== peg$FAILED) {
2310
- peg$savedPos = s1;
2311
- s1 = peg$f38(s3);
2312
- } else {
2313
- peg$currPos = s1;
2314
- s1 = peg$FAILED;
2315
- }
2316
- } else {
2317
- peg$currPos = s1;
2318
- s1 = peg$FAILED;
2319
- }
2320
- }
2321
-
2322
- return s0;
2323
- }
2324
-
2325
- function peg$parsetransitionnonsep() {
2326
- var s0, s1, s2, s3;
2327
-
2328
- s0 = [];
2329
- s1 = peg$currPos;
2330
- s2 = peg$currPos;
2331
- peg$silentFails++;
2332
- if (input.charCodeAt(peg$currPos) === 59) {
2333
- s3 = peg$c1;
2334
- peg$currPos++;
2335
- } else {
2336
- s3 = peg$FAILED;
2337
- if (peg$silentFails === 0) { peg$fail(peg$e2); }
2338
- }
2339
- if (s3 === peg$FAILED) {
2340
- if (input.charCodeAt(peg$currPos) === 123) {
2341
- s3 = peg$c5;
2342
- peg$currPos++;
2343
- } else {
2344
- s3 = peg$FAILED;
2345
- if (peg$silentFails === 0) { peg$fail(peg$e7); }
2346
- }
2347
- }
2348
- peg$silentFails--;
2349
- if (s3 === peg$FAILED) {
2350
- s2 = undefined;
2351
- } else {
2352
- peg$currPos = s2;
2353
- s2 = peg$FAILED;
2354
- }
2355
- if (s2 !== peg$FAILED) {
2356
- if (input.length > peg$currPos) {
2357
- s3 = input.charAt(peg$currPos);
2358
- peg$currPos++;
2359
- } else {
2360
- s3 = peg$FAILED;
2361
- if (peg$silentFails === 0) { peg$fail(peg$e64); }
2362
- }
2363
- if (s3 !== peg$FAILED) {
2364
- peg$savedPos = s1;
2365
- s1 = peg$f39(s3);
2366
- } else {
2367
- peg$currPos = s1;
2368
- s1 = peg$FAILED;
2369
- }
2370
- } else {
2371
- peg$currPos = s1;
2372
- s1 = peg$FAILED;
2373
- }
2374
- while (s1 !== peg$FAILED) {
2375
- s0.push(s1);
2376
- s1 = peg$currPos;
2377
- s2 = peg$currPos;
2378
- peg$silentFails++;
2379
- if (input.charCodeAt(peg$currPos) === 59) {
2380
- s3 = peg$c1;
2381
- peg$currPos++;
2382
- } else {
2383
- s3 = peg$FAILED;
2384
- if (peg$silentFails === 0) { peg$fail(peg$e2); }
2385
- }
2386
- if (s3 === peg$FAILED) {
2387
- if (input.charCodeAt(peg$currPos) === 123) {
2388
- s3 = peg$c5;
2389
- peg$currPos++;
2390
- } else {
2391
- s3 = peg$FAILED;
2392
- if (peg$silentFails === 0) { peg$fail(peg$e7); }
2393
- }
2394
- }
2395
- peg$silentFails--;
2396
- if (s3 === peg$FAILED) {
2397
- s2 = undefined;
2398
- } else {
2399
- peg$currPos = s2;
2400
- s2 = peg$FAILED;
2401
- }
2402
- if (s2 !== peg$FAILED) {
2403
- if (input.length > peg$currPos) {
2404
- s3 = input.charAt(peg$currPos);
2405
- peg$currPos++;
2406
- } else {
2407
- s3 = peg$FAILED;
2408
- if (peg$silentFails === 0) { peg$fail(peg$e64); }
2409
- }
2410
- if (s3 !== peg$FAILED) {
2411
- peg$savedPos = s1;
2412
- s1 = peg$f39(s3);
2413
- } else {
2414
- peg$currPos = s1;
2415
- s1 = peg$FAILED;
2416
- }
2417
- } else {
2418
- peg$currPos = s1;
2419
- s1 = peg$FAILED;
2420
- }
2421
- }
2422
-
2423
- return s0;
2424
- }
2425
-
2426
- function peg$parseidentifier() {
2427
- var s0, s1, s2;
2428
-
2429
- peg$silentFails++;
2430
- s0 = peg$currPos;
2431
- s1 = [];
2432
- if (peg$r2.test(input.charAt(peg$currPos))) {
2433
- s2 = input.charAt(peg$currPos);
2434
- peg$currPos++;
2435
- } else {
2436
- s2 = peg$FAILED;
2437
- if (peg$silentFails === 0) { peg$fail(peg$e68); }
2438
- }
2439
- if (s2 !== peg$FAILED) {
2440
- while (s2 !== peg$FAILED) {
2441
- s1.push(s2);
2442
- if (peg$r2.test(input.charAt(peg$currPos))) {
2443
- s2 = input.charAt(peg$currPos);
2444
- peg$currPos++;
2445
- } else {
2446
- s2 = peg$FAILED;
2447
- if (peg$silentFails === 0) { peg$fail(peg$e68); }
2448
- }
2449
- }
2450
- } else {
2451
- s1 = peg$FAILED;
2452
- }
2453
- if (s1 !== peg$FAILED) {
2454
- peg$savedPos = s0;
2455
- s1 = peg$f40(s1);
2456
- }
2457
- s0 = s1;
2458
- if (s0 === peg$FAILED) {
2459
- s0 = peg$parsequotedstring();
2460
- }
2461
- peg$silentFails--;
2462
- if (s0 === peg$FAILED) {
2463
- s1 = peg$FAILED;
2464
- if (peg$silentFails === 0) { peg$fail(peg$e67); }
2465
- }
2466
-
2467
- return s0;
2468
- }
2469
-
2470
- function peg$parsewhitespace() {
2471
- var s0, s1;
2472
-
2473
- peg$silentFails++;
2474
- s0 = peg$currPos;
2475
- if (peg$r3.test(input.charAt(peg$currPos))) {
2476
- s1 = input.charAt(peg$currPos);
2477
- peg$currPos++;
2478
- } else {
2479
- s1 = peg$FAILED;
2480
- if (peg$silentFails === 0) { peg$fail(peg$e70); }
2481
- }
2482
- if (s1 !== peg$FAILED) {
2483
- peg$savedPos = s0;
2484
- s1 = peg$f41(s1);
2485
- }
2486
- s0 = s1;
2487
- peg$silentFails--;
2488
- if (s0 === peg$FAILED) {
2489
- s1 = peg$FAILED;
2490
- if (peg$silentFails === 0) { peg$fail(peg$e69); }
2491
- }
2492
-
2493
- return s0;
2494
- }
2495
-
2496
- function peg$parselineend() {
2497
- var s0, s1;
2498
-
2499
- peg$silentFails++;
2500
- s0 = peg$currPos;
2501
- if (peg$r4.test(input.charAt(peg$currPos))) {
2502
- s1 = input.charAt(peg$currPos);
2503
- peg$currPos++;
2504
- } else {
2505
- s1 = peg$FAILED;
2506
- if (peg$silentFails === 0) { peg$fail(peg$e72); }
2507
- }
2508
- if (s1 !== peg$FAILED) {
2509
- peg$savedPos = s0;
2510
- s1 = peg$f42(s1);
2511
- }
2512
- s0 = s1;
2513
- peg$silentFails--;
2514
- if (s0 === peg$FAILED) {
2515
- s1 = peg$FAILED;
2516
- if (peg$silentFails === 0) { peg$fail(peg$e71); }
2517
- }
2518
-
2519
- return s0;
2520
- }
2521
-
2522
- function peg$parsemlcomstart() {
2523
- var s0;
2524
-
2525
- if (input.substr(peg$currPos, 2) === peg$c44) {
2526
- s0 = peg$c44;
2527
- peg$currPos += 2;
2528
- } else {
2529
- s0 = peg$FAILED;
2530
- if (peg$silentFails === 0) { peg$fail(peg$e73); }
2531
- }
2532
-
2533
- return s0;
2534
- }
2535
-
2536
- function peg$parsemlcomend() {
2537
- var s0;
2538
-
2539
- if (input.substr(peg$currPos, 2) === peg$c45) {
2540
- s0 = peg$c45;
2541
- peg$currPos += 2;
2542
- } else {
2543
- s0 = peg$FAILED;
2544
- if (peg$silentFails === 0) { peg$fail(peg$e74); }
2545
- }
2546
-
2547
- return s0;
2548
- }
2549
-
2550
- function peg$parsemlcomtok() {
2551
- var s0, s1, s2;
2552
-
2553
- s0 = peg$currPos;
2554
- s1 = peg$currPos;
2555
- peg$silentFails++;
2556
- if (input.substr(peg$currPos, 2) === peg$c45) {
2557
- s2 = peg$c45;
2558
- peg$currPos += 2;
2559
- } else {
2560
- s2 = peg$FAILED;
2561
- if (peg$silentFails === 0) { peg$fail(peg$e74); }
2562
- }
2563
- peg$silentFails--;
2564
- if (s2 === peg$FAILED) {
2565
- s1 = undefined;
2566
- } else {
2567
- peg$currPos = s1;
2568
- s1 = peg$FAILED;
2569
- }
2570
- if (s1 !== peg$FAILED) {
2571
- if (input.length > peg$currPos) {
2572
- s2 = input.charAt(peg$currPos);
2573
- peg$currPos++;
2574
- } else {
2575
- s2 = peg$FAILED;
2576
- if (peg$silentFails === 0) { peg$fail(peg$e64); }
2577
- }
2578
- if (s2 !== peg$FAILED) {
2579
- peg$savedPos = s0;
2580
- s0 = peg$f43(s2);
2581
- } else {
2582
- peg$currPos = s0;
2583
- s0 = peg$FAILED;
2584
- }
2585
- } else {
2586
- peg$currPos = s0;
2587
- s0 = peg$FAILED;
2588
- }
2589
-
2590
- return s0;
2591
- }
2592
-
2593
- function peg$parsemlcomment() {
2594
- var s0, s1, s2, s3;
2595
-
2596
- s0 = peg$currPos;
2597
- s1 = peg$parsemlcomstart();
2598
- if (s1 !== peg$FAILED) {
2599
- s2 = [];
2600
- s3 = peg$parsemlcomtok();
2601
- while (s3 !== peg$FAILED) {
2602
- s2.push(s3);
2603
- s3 = peg$parsemlcomtok();
2604
- }
2605
- s3 = peg$parsemlcomend();
2606
- if (s3 !== peg$FAILED) {
2607
- peg$savedPos = s0;
2608
- s0 = peg$f44(s1, s2, s3);
2609
- } else {
2610
- peg$currPos = s0;
2611
- s0 = peg$FAILED;
2612
- }
2613
- } else {
2614
- peg$currPos = s0;
2615
- s0 = peg$FAILED;
2616
- }
2617
-
2618
- return s0;
2619
- }
2620
-
2621
- function peg$parseslcomstart() {
2622
- var s0;
2623
-
2624
- if (input.substr(peg$currPos, 2) === peg$c46) {
2625
- s0 = peg$c46;
2626
- peg$currPos += 2;
2627
- } else {
2628
- s0 = peg$FAILED;
2629
- if (peg$silentFails === 0) { peg$fail(peg$e75); }
2630
- }
2631
-
2632
- return s0;
2633
- }
2634
-
2635
- function peg$parseslcomtok() {
2636
- var s0;
2637
-
2638
- if (peg$r5.test(input.charAt(peg$currPos))) {
2639
- s0 = input.charAt(peg$currPos);
2640
- peg$currPos++;
2641
- } else {
2642
- s0 = peg$FAILED;
2643
- if (peg$silentFails === 0) { peg$fail(peg$e76); }
2644
- }
2645
-
2646
- return s0;
2647
- }
2648
-
2649
- function peg$parseslcomment() {
2650
- var s0, s1, s2, s3;
2651
-
2652
- s0 = peg$currPos;
2653
- s1 = peg$parseslcomstart();
2654
- if (s1 !== peg$FAILED) {
2655
- s2 = [];
2656
- s3 = peg$parseslcomtok();
2657
- while (s3 !== peg$FAILED) {
2658
- s2.push(s3);
2659
- s3 = peg$parseslcomtok();
2660
- }
2661
- peg$savedPos = s0;
2662
- s0 = peg$f45(s1, s2);
2663
- } else {
2664
- peg$currPos = s0;
2665
- s0 = peg$FAILED;
2666
- }
2667
-
2668
- return s0;
2669
- }
2670
-
2671
- function peg$parsecomment() {
2672
- var s0, s1;
2673
-
2674
- peg$silentFails++;
2675
- s0 = peg$parseslcomment();
2676
- if (s0 === peg$FAILED) {
2677
- s0 = peg$parsemlcomment();
2678
- }
2679
- peg$silentFails--;
2680
- if (s0 === peg$FAILED) {
2681
- s1 = peg$FAILED;
2682
- if (peg$silentFails === 0) { peg$fail(peg$e77); }
2683
- }
2684
-
2685
- return s0;
2686
- }
2687
-
2688
- function peg$parse_() {
2689
- var s0, s1;
2690
-
2691
- s0 = [];
2692
- s1 = peg$parsewhitespace();
2693
- if (s1 === peg$FAILED) {
2694
- s1 = peg$parselineend();
2695
- if (s1 === peg$FAILED) {
2696
- s1 = peg$parsecomment();
2697
- }
2698
- }
2699
- while (s1 !== peg$FAILED) {
2700
- s0.push(s1);
2701
- s1 = peg$parsewhitespace();
2702
- if (s1 === peg$FAILED) {
2703
- s1 = peg$parselineend();
2704
- if (s1 === peg$FAILED) {
2705
- s1 = peg$parsecomment();
2706
- }
2707
- }
2708
- }
2709
-
2710
- return s0;
2711
- }
2712
-
2713
- peg$result = peg$startRuleFunction();
2714
-
2715
- if (peg$result !== peg$FAILED && peg$currPos === input.length) {
2716
- return peg$result;
2717
- } else {
2718
- if (peg$result !== peg$FAILED && peg$currPos < input.length) {
2719
- peg$fail(peg$endExpectation());
2720
- }
2721
-
2722
- throw peg$buildStructuredError(
2723
- peg$maxFailExpected,
2724
- peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null,
2725
- peg$maxFailPos < input.length
2726
- ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)
2727
- : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)
2728
- );
2729
- }
2730
- }
2731
-
2732
- export {
2733
- peg$SyntaxError as SyntaxError,
2734
-
2735
- peg$parse as parse
2736
- };