@gmod/bed 2.1.7 → 2.1.8

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/esm/autoSql.js DELETED
@@ -1,1564 +0,0 @@
1
- //@ts-nocheck
2
- /*
3
- * Generated by PEG.js 0.10.0.
4
- *
5
- * http://pegjs.org/
6
- */
7
- 'use strict';
8
- function peg$subclass(child, parent) {
9
- function ctor() {
10
- this.constructor = child;
11
- }
12
- ctor.prototype = parent.prototype;
13
- child.prototype = new ctor();
14
- }
15
- function peg$SyntaxError(message, expected, found, location) {
16
- this.message = message;
17
- this.expected = expected;
18
- this.found = found;
19
- this.location = location;
20
- this.name = 'SyntaxError';
21
- if (typeof Error.captureStackTrace === 'function') {
22
- Error.captureStackTrace(this, peg$SyntaxError);
23
- }
24
- }
25
- peg$subclass(peg$SyntaxError, Error);
26
- peg$SyntaxError.buildMessage = function (expected, found) {
27
- var DESCRIBE_EXPECTATION_FNS = {
28
- literal: function (expectation) {
29
- return '"' + literalEscape(expectation.text) + '"';
30
- },
31
- class: function (expectation) {
32
- var escapedParts = '', i;
33
- for (i = 0; i < expectation.parts.length; i++) {
34
- escapedParts +=
35
- expectation.parts[i] instanceof Array
36
- ? classEscape(expectation.parts[i][0]) +
37
- '-' +
38
- classEscape(expectation.parts[i][1])
39
- : classEscape(expectation.parts[i]);
40
- }
41
- return '[' + (expectation.inverted ? '^' : '') + escapedParts + ']';
42
- },
43
- any: function (expectation) {
44
- return 'any character';
45
- },
46
- end: function (expectation) {
47
- return 'end of input';
48
- },
49
- other: function (expectation) {
50
- return expectation.description;
51
- },
52
- };
53
- function hex(ch) {
54
- return ch.charCodeAt(0).toString(16).toUpperCase();
55
- }
56
- function literalEscape(s) {
57
- return s
58
- .replace(/\\/g, '\\\\')
59
- .replace(/"/g, '\\"')
60
- .replace(/\0/g, '\\0')
61
- .replace(/\t/g, '\\t')
62
- .replace(/\n/g, '\\n')
63
- .replace(/\r/g, '\\r')
64
- .replace(/[\x00-\x0F]/g, function (ch) {
65
- return '\\x0' + hex(ch);
66
- })
67
- .replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) {
68
- return '\\x' + hex(ch);
69
- });
70
- }
71
- function classEscape(s) {
72
- return s
73
- .replace(/\\/g, '\\\\')
74
- .replace(/\]/g, '\\]')
75
- .replace(/\^/g, '\\^')
76
- .replace(/-/g, '\\-')
77
- .replace(/\0/g, '\\0')
78
- .replace(/\t/g, '\\t')
79
- .replace(/\n/g, '\\n')
80
- .replace(/\r/g, '\\r')
81
- .replace(/[\x00-\x0F]/g, function (ch) {
82
- return '\\x0' + hex(ch);
83
- })
84
- .replace(/[\x10-\x1F\x7F-\x9F]/g, function (ch) {
85
- return '\\x' + hex(ch);
86
- });
87
- }
88
- function describeExpectation(expectation) {
89
- return DESCRIBE_EXPECTATION_FNS[expectation.type](expectation);
90
- }
91
- function describeExpected(expected) {
92
- var descriptions = new Array(expected.length), i, j;
93
- for (i = 0; i < expected.length; i++) {
94
- descriptions[i] = describeExpectation(expected[i]);
95
- }
96
- descriptions.sort();
97
- if (descriptions.length > 0) {
98
- for (i = 1, j = 1; i < descriptions.length; i++) {
99
- if (descriptions[i - 1] !== descriptions[i]) {
100
- descriptions[j] = descriptions[i];
101
- j++;
102
- }
103
- }
104
- descriptions.length = j;
105
- }
106
- switch (descriptions.length) {
107
- case 1:
108
- return descriptions[0];
109
- case 2:
110
- return descriptions[0] + ' or ' + descriptions[1];
111
- default:
112
- return (descriptions.slice(0, -1).join(', ') +
113
- ', or ' +
114
- descriptions[descriptions.length - 1]);
115
- }
116
- }
117
- function describeFound(found) {
118
- return found ? '"' + literalEscape(found) + '"' : 'end of input';
119
- }
120
- return ('Expected ' +
121
- describeExpected(expected) +
122
- ' but ' +
123
- describeFound(found) +
124
- ' found.');
125
- };
126
- function peg$parse(input, options) {
127
- options = options !== void 0 ? options : {};
128
- var peg$FAILED = {}, peg$startRuleFunctions = { declaration: peg$parsedeclaration }, peg$startRuleFunction = peg$parsedeclaration, peg$c0 = '(', peg$c1 = peg$literalExpectation('(', false), peg$c2 = ')', peg$c3 = peg$literalExpectation(')', false), peg$c4 = function (type, name, comment, fields) {
129
- return { type, name, comment, fields };
130
- }, peg$c5 = 'simple', peg$c6 = peg$literalExpectation('simple', false), peg$c7 = 'object', peg$c8 = peg$literalExpectation('object', false), peg$c9 = 'table', peg$c10 = peg$literalExpectation('table', false), peg$c11 = 'auto', peg$c12 = peg$literalExpectation('auto', false), peg$c13 = 'primary', peg$c14 = peg$literalExpectation('primary', false), peg$c15 = 'index', peg$c16 = peg$literalExpectation('index', false), peg$c17 = 'unique', peg$c18 = peg$literalExpectation('unique', false), peg$c19 = function (f1, w) {
131
- return w;
132
- }, peg$c20 = function (f1, fds) {
133
- if (f1.name) {
134
- fds.unshift(f1);
135
- }
136
- return fds;
137
- }, peg$c21 = '#', peg$c22 = peg$literalExpectation('#', false), peg$c23 = ';', peg$c24 = peg$literalExpectation(';', false), peg$c25 = function (type, name, comment) {
138
- return { type, name, comment };
139
- }, peg$c26 = '[', peg$c27 = peg$literalExpectation('[', false), peg$c28 = ']', peg$c29 = peg$literalExpectation(']', false), peg$c30 = function (type, size, name, comment) {
140
- return { type, size, name, comment };
141
- }, peg$c31 = function (type, vals, name, comment) {
142
- return { type, vals, name, comment };
143
- }, peg$c32 = ',', peg$c33 = peg$literalExpectation(',', false), peg$c34 = function (f1, fds) {
144
- fds.unshift(f1);
145
- return fds;
146
- }, peg$c35 = 'int', peg$c36 = peg$literalExpectation('int', false), peg$c37 = 'uint', peg$c38 = peg$literalExpectation('uint', false), peg$c39 = 'short', peg$c40 = peg$literalExpectation('short', false), peg$c41 = 'ushort', peg$c42 = peg$literalExpectation('ushort', false), peg$c43 = 'byte', peg$c44 = peg$literalExpectation('byte', false), peg$c45 = 'ubyte', peg$c46 = peg$literalExpectation('ubyte', false), peg$c47 = 'float', peg$c48 = peg$literalExpectation('float', false), peg$c49 = 'char', peg$c50 = peg$literalExpectation('char', false), peg$c51 = 'string', peg$c52 = peg$literalExpectation('string', false), peg$c53 = 'lstring', peg$c54 = peg$literalExpectation('lstring', false), peg$c55 = 'enum', peg$c56 = peg$literalExpectation('enum', false), peg$c57 = 'double', peg$c58 = peg$literalExpectation('double', false), peg$c59 = 'bigint', peg$c60 = peg$literalExpectation('bigint', false), peg$c61 = 'set', peg$c62 = peg$literalExpectation('set', false), peg$c63 = function (t, n) {
147
- return t + ' ' + n;
148
- }, peg$c64 = /^[a-zA-Z_]/, peg$c65 = peg$classExpectation([['a', 'z'], ['A', 'Z'], '_'], false, false), peg$c66 = /^[a-zA-Z0-9_]/, peg$c67 = peg$classExpectation([['a', 'z'], ['A', 'Z'], ['0', '9'], '_'], false, false), peg$c68 = function (t) {
149
- return text();
150
- }, peg$c69 = '"', peg$c70 = peg$literalExpectation('"', false), peg$c71 = /^[^"]/, peg$c72 = peg$classExpectation(['"'], true, false), peg$c73 = function (t) {
151
- return t.join('');
152
- }, peg$c74 = /^[^\n\r]/, peg$c75 = peg$classExpectation(['\n', '\r'], true, false), peg$c76 = function (t) {
153
- return t.join('').replace(/^"/, '').replace(/"$/, '');
154
- }, peg$c77 = peg$otherExpectation('integer'), peg$c78 = /^[0-9]/, peg$c79 = peg$classExpectation([['0', '9']], false, false), peg$c80 = function () {
155
- return parseInt(text(), 10);
156
- }, peg$c81 = peg$otherExpectation('whitespace'), peg$c82 = /^[ \t\n\r]/, peg$c83 = peg$classExpectation([' ', '\t', '\n', '\r'], false, false), peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{ line: 1, column: 1 }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$result;
157
- if ('startRule' in options) {
158
- if (!(options.startRule in peg$startRuleFunctions)) {
159
- throw new Error('Can\'t start parsing from rule "' + options.startRule + '".');
160
- }
161
- peg$startRuleFunction = peg$startRuleFunctions[options.startRule];
162
- }
163
- function text() {
164
- return input.substring(peg$savedPos, peg$currPos);
165
- }
166
- function location() {
167
- return peg$computeLocation(peg$savedPos, peg$currPos);
168
- }
169
- function expected(description, location) {
170
- location =
171
- location !== void 0
172
- ? location
173
- : peg$computeLocation(peg$savedPos, peg$currPos);
174
- throw peg$buildStructuredError([peg$otherExpectation(description)], input.substring(peg$savedPos, peg$currPos), location);
175
- }
176
- function error(message, location) {
177
- location =
178
- location !== void 0
179
- ? location
180
- : peg$computeLocation(peg$savedPos, peg$currPos);
181
- throw peg$buildSimpleError(message, location);
182
- }
183
- function peg$literalExpectation(text, ignoreCase) {
184
- return { type: 'literal', text: text, ignoreCase: ignoreCase };
185
- }
186
- function peg$classExpectation(parts, inverted, ignoreCase) {
187
- return {
188
- type: 'class',
189
- parts: parts,
190
- inverted: inverted,
191
- ignoreCase: ignoreCase,
192
- };
193
- }
194
- function peg$anyExpectation() {
195
- return { type: 'any' };
196
- }
197
- function peg$endExpectation() {
198
- return { type: 'end' };
199
- }
200
- function peg$otherExpectation(description) {
201
- return { type: 'other', description: description };
202
- }
203
- function peg$computePosDetails(pos) {
204
- var details = peg$posDetailsCache[pos], p;
205
- if (details) {
206
- return details;
207
- }
208
- else {
209
- p = pos - 1;
210
- while (!peg$posDetailsCache[p]) {
211
- p--;
212
- }
213
- details = peg$posDetailsCache[p];
214
- details = {
215
- line: details.line,
216
- column: details.column,
217
- };
218
- while (p < pos) {
219
- if (input.charCodeAt(p) === 10) {
220
- details.line++;
221
- details.column = 1;
222
- }
223
- else {
224
- details.column++;
225
- }
226
- p++;
227
- }
228
- peg$posDetailsCache[pos] = details;
229
- return details;
230
- }
231
- }
232
- function peg$computeLocation(startPos, endPos) {
233
- var startPosDetails = peg$computePosDetails(startPos), endPosDetails = peg$computePosDetails(endPos);
234
- return {
235
- start: {
236
- offset: startPos,
237
- line: startPosDetails.line,
238
- column: startPosDetails.column,
239
- },
240
- end: {
241
- offset: endPos,
242
- line: endPosDetails.line,
243
- column: endPosDetails.column,
244
- },
245
- };
246
- }
247
- function peg$fail(expected) {
248
- if (peg$currPos < peg$maxFailPos) {
249
- return;
250
- }
251
- if (peg$currPos > peg$maxFailPos) {
252
- peg$maxFailPos = peg$currPos;
253
- peg$maxFailExpected = [];
254
- }
255
- peg$maxFailExpected.push(expected);
256
- }
257
- function peg$buildSimpleError(message, location) {
258
- return new peg$SyntaxError(message, null, null, location);
259
- }
260
- function peg$buildStructuredError(expected, found, location) {
261
- return new peg$SyntaxError(peg$SyntaxError.buildMessage(expected, found), expected, found, location);
262
- }
263
- function peg$parsedeclaration() {
264
- var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13;
265
- s0 = peg$currPos;
266
- s1 = peg$parse_();
267
- if (s1 !== peg$FAILED) {
268
- s2 = peg$parsedeclareType();
269
- if (s2 !== peg$FAILED) {
270
- s3 = peg$parse_();
271
- if (s3 !== peg$FAILED) {
272
- s4 = peg$parsedeclareName();
273
- if (s4 !== peg$FAILED) {
274
- s5 = peg$parse_();
275
- if (s5 !== peg$FAILED) {
276
- s6 = peg$parsecomment();
277
- if (s6 !== peg$FAILED) {
278
- s7 = peg$parse_();
279
- if (s7 !== peg$FAILED) {
280
- if (input.charCodeAt(peg$currPos) === 40) {
281
- s8 = peg$c0;
282
- peg$currPos++;
283
- }
284
- else {
285
- s8 = peg$FAILED;
286
- if (peg$silentFails === 0) {
287
- peg$fail(peg$c1);
288
- }
289
- }
290
- if (s8 !== peg$FAILED) {
291
- s9 = peg$parse_();
292
- if (s9 !== peg$FAILED) {
293
- s10 = peg$parsefieldList();
294
- if (s10 !== peg$FAILED) {
295
- s11 = peg$parse_();
296
- if (s11 !== peg$FAILED) {
297
- if (input.charCodeAt(peg$currPos) === 41) {
298
- s12 = peg$c2;
299
- peg$currPos++;
300
- }
301
- else {
302
- s12 = peg$FAILED;
303
- if (peg$silentFails === 0) {
304
- peg$fail(peg$c3);
305
- }
306
- }
307
- if (s12 !== peg$FAILED) {
308
- s13 = peg$parse_();
309
- if (s13 !== peg$FAILED) {
310
- peg$savedPos = s0;
311
- s1 = peg$c4(s2, s4, s6, s10);
312
- s0 = s1;
313
- }
314
- else {
315
- peg$currPos = s0;
316
- s0 = peg$FAILED;
317
- }
318
- }
319
- else {
320
- peg$currPos = s0;
321
- s0 = peg$FAILED;
322
- }
323
- }
324
- else {
325
- peg$currPos = s0;
326
- s0 = peg$FAILED;
327
- }
328
- }
329
- else {
330
- peg$currPos = s0;
331
- s0 = peg$FAILED;
332
- }
333
- }
334
- else {
335
- peg$currPos = s0;
336
- s0 = peg$FAILED;
337
- }
338
- }
339
- else {
340
- peg$currPos = s0;
341
- s0 = peg$FAILED;
342
- }
343
- }
344
- else {
345
- peg$currPos = s0;
346
- s0 = peg$FAILED;
347
- }
348
- }
349
- else {
350
- peg$currPos = s0;
351
- s0 = peg$FAILED;
352
- }
353
- }
354
- else {
355
- peg$currPos = s0;
356
- s0 = peg$FAILED;
357
- }
358
- }
359
- else {
360
- peg$currPos = s0;
361
- s0 = peg$FAILED;
362
- }
363
- }
364
- else {
365
- peg$currPos = s0;
366
- s0 = peg$FAILED;
367
- }
368
- }
369
- else {
370
- peg$currPos = s0;
371
- s0 = peg$FAILED;
372
- }
373
- }
374
- else {
375
- peg$currPos = s0;
376
- s0 = peg$FAILED;
377
- }
378
- return s0;
379
- }
380
- function peg$parsedeclareType() {
381
- var s0;
382
- if (input.substr(peg$currPos, 6) === peg$c5) {
383
- s0 = peg$c5;
384
- peg$currPos += 6;
385
- }
386
- else {
387
- s0 = peg$FAILED;
388
- if (peg$silentFails === 0) {
389
- peg$fail(peg$c6);
390
- }
391
- }
392
- if (s0 === peg$FAILED) {
393
- if (input.substr(peg$currPos, 6) === peg$c7) {
394
- s0 = peg$c7;
395
- peg$currPos += 6;
396
- }
397
- else {
398
- s0 = peg$FAILED;
399
- if (peg$silentFails === 0) {
400
- peg$fail(peg$c8);
401
- }
402
- }
403
- if (s0 === peg$FAILED) {
404
- if (input.substr(peg$currPos, 5) === peg$c9) {
405
- s0 = peg$c9;
406
- peg$currPos += 5;
407
- }
408
- else {
409
- s0 = peg$FAILED;
410
- if (peg$silentFails === 0) {
411
- peg$fail(peg$c10);
412
- }
413
- }
414
- }
415
- }
416
- return s0;
417
- }
418
- function peg$parsedeclareName() {
419
- var s0, s1, s2, s3;
420
- s0 = peg$parsename();
421
- if (s0 === peg$FAILED) {
422
- s0 = peg$currPos;
423
- s1 = peg$parsename();
424
- if (s1 !== peg$FAILED) {
425
- s2 = peg$parseindexType();
426
- if (s2 !== peg$FAILED) {
427
- s1 = [s1, s2];
428
- s0 = s1;
429
- }
430
- else {
431
- peg$currPos = s0;
432
- s0 = peg$FAILED;
433
- }
434
- }
435
- else {
436
- peg$currPos = s0;
437
- s0 = peg$FAILED;
438
- }
439
- if (s0 === peg$FAILED) {
440
- s0 = peg$currPos;
441
- s1 = peg$parsename();
442
- if (s1 !== peg$FAILED) {
443
- if (input.substr(peg$currPos, 4) === peg$c11) {
444
- s2 = peg$c11;
445
- peg$currPos += 4;
446
- }
447
- else {
448
- s2 = peg$FAILED;
449
- if (peg$silentFails === 0) {
450
- peg$fail(peg$c12);
451
- }
452
- }
453
- if (s2 !== peg$FAILED) {
454
- s1 = [s1, s2];
455
- s0 = s1;
456
- }
457
- else {
458
- peg$currPos = s0;
459
- s0 = peg$FAILED;
460
- }
461
- }
462
- else {
463
- peg$currPos = s0;
464
- s0 = peg$FAILED;
465
- }
466
- if (s0 === peg$FAILED) {
467
- s0 = peg$currPos;
468
- s1 = peg$parsename();
469
- if (s1 !== peg$FAILED) {
470
- s2 = peg$parseindexType();
471
- if (s2 !== peg$FAILED) {
472
- if (input.substr(peg$currPos, 4) === peg$c11) {
473
- s3 = peg$c11;
474
- peg$currPos += 4;
475
- }
476
- else {
477
- s3 = peg$FAILED;
478
- if (peg$silentFails === 0) {
479
- peg$fail(peg$c12);
480
- }
481
- }
482
- if (s3 !== peg$FAILED) {
483
- s1 = [s1, s2, s3];
484
- s0 = s1;
485
- }
486
- else {
487
- peg$currPos = s0;
488
- s0 = peg$FAILED;
489
- }
490
- }
491
- else {
492
- peg$currPos = s0;
493
- s0 = peg$FAILED;
494
- }
495
- }
496
- else {
497
- peg$currPos = s0;
498
- s0 = peg$FAILED;
499
- }
500
- }
501
- }
502
- }
503
- return s0;
504
- }
505
- function peg$parseindexType() {
506
- var s0;
507
- if (input.substr(peg$currPos, 7) === peg$c13) {
508
- s0 = peg$c13;
509
- peg$currPos += 7;
510
- }
511
- else {
512
- s0 = peg$FAILED;
513
- if (peg$silentFails === 0) {
514
- peg$fail(peg$c14);
515
- }
516
- }
517
- if (s0 === peg$FAILED) {
518
- if (input.substr(peg$currPos, 5) === peg$c15) {
519
- s0 = peg$c15;
520
- peg$currPos += 5;
521
- }
522
- else {
523
- s0 = peg$FAILED;
524
- if (peg$silentFails === 0) {
525
- peg$fail(peg$c16);
526
- }
527
- }
528
- if (s0 === peg$FAILED) {
529
- if (input.substr(peg$currPos, 6) === peg$c17) {
530
- s0 = peg$c17;
531
- peg$currPos += 6;
532
- }
533
- else {
534
- s0 = peg$FAILED;
535
- if (peg$silentFails === 0) {
536
- peg$fail(peg$c18);
537
- }
538
- }
539
- }
540
- }
541
- return s0;
542
- }
543
- function peg$parsecomment() {
544
- var s0;
545
- s0 = peg$parsenonQuotedString();
546
- if (s0 === peg$FAILED) {
547
- s0 = peg$parse_();
548
- }
549
- return s0;
550
- }
551
- function peg$parsefieldList() {
552
- var s0, s1, s2, s3, s4, s5, s6;
553
- s0 = peg$currPos;
554
- s1 = peg$parsefield();
555
- if (s1 !== peg$FAILED) {
556
- s2 = peg$parse_();
557
- if (s2 !== peg$FAILED) {
558
- s3 = [];
559
- s4 = peg$currPos;
560
- s5 = peg$parse_();
561
- if (s5 !== peg$FAILED) {
562
- s6 = peg$parsefield();
563
- if (s6 !== peg$FAILED) {
564
- peg$savedPos = s4;
565
- s5 = peg$c19(s1, s6);
566
- s4 = s5;
567
- }
568
- else {
569
- peg$currPos = s4;
570
- s4 = peg$FAILED;
571
- }
572
- }
573
- else {
574
- peg$currPos = s4;
575
- s4 = peg$FAILED;
576
- }
577
- while (s4 !== peg$FAILED) {
578
- s3.push(s4);
579
- s4 = peg$currPos;
580
- s5 = peg$parse_();
581
- if (s5 !== peg$FAILED) {
582
- s6 = peg$parsefield();
583
- if (s6 !== peg$FAILED) {
584
- peg$savedPos = s4;
585
- s5 = peg$c19(s1, s6);
586
- s4 = s5;
587
- }
588
- else {
589
- peg$currPos = s4;
590
- s4 = peg$FAILED;
591
- }
592
- }
593
- else {
594
- peg$currPos = s4;
595
- s4 = peg$FAILED;
596
- }
597
- }
598
- if (s3 !== peg$FAILED) {
599
- s4 = peg$parse_();
600
- if (s4 !== peg$FAILED) {
601
- peg$savedPos = s0;
602
- s1 = peg$c20(s1, s3);
603
- s0 = s1;
604
- }
605
- else {
606
- peg$currPos = s0;
607
- s0 = peg$FAILED;
608
- }
609
- }
610
- else {
611
- peg$currPos = s0;
612
- s0 = peg$FAILED;
613
- }
614
- }
615
- else {
616
- peg$currPos = s0;
617
- s0 = peg$FAILED;
618
- }
619
- }
620
- else {
621
- peg$currPos = s0;
622
- s0 = peg$FAILED;
623
- }
624
- return s0;
625
- }
626
- function peg$parsecommentStart() {
627
- var s0;
628
- if (input.charCodeAt(peg$currPos) === 35) {
629
- s0 = peg$c21;
630
- peg$currPos++;
631
- }
632
- else {
633
- s0 = peg$FAILED;
634
- if (peg$silentFails === 0) {
635
- peg$fail(peg$c22);
636
- }
637
- }
638
- return s0;
639
- }
640
- function peg$parseinternalComment() {
641
- var s0, s1, s2, s3, s4;
642
- s0 = peg$currPos;
643
- s1 = peg$parse_();
644
- if (s1 !== peg$FAILED) {
645
- s2 = peg$parsecommentStart();
646
- if (s2 !== peg$FAILED) {
647
- s3 = peg$parsenonQuotedString();
648
- if (s3 !== peg$FAILED) {
649
- s4 = peg$parse_();
650
- if (s4 !== peg$FAILED) {
651
- s1 = [s1, s2, s3, s4];
652
- s0 = s1;
653
- }
654
- else {
655
- peg$currPos = s0;
656
- s0 = peg$FAILED;
657
- }
658
- }
659
- else {
660
- peg$currPos = s0;
661
- s0 = peg$FAILED;
662
- }
663
- }
664
- else {
665
- peg$currPos = s0;
666
- s0 = peg$FAILED;
667
- }
668
- }
669
- else {
670
- peg$currPos = s0;
671
- s0 = peg$FAILED;
672
- }
673
- return s0;
674
- }
675
- function peg$parsefield() {
676
- var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13;
677
- s0 = peg$currPos;
678
- s1 = peg$parsefieldType();
679
- if (s1 !== peg$FAILED) {
680
- s2 = peg$parse_();
681
- if (s2 !== peg$FAILED) {
682
- s3 = peg$parsename();
683
- if (s3 !== peg$FAILED) {
684
- s4 = peg$parse_();
685
- if (s4 !== peg$FAILED) {
686
- if (input.charCodeAt(peg$currPos) === 59) {
687
- s5 = peg$c23;
688
- peg$currPos++;
689
- }
690
- else {
691
- s5 = peg$FAILED;
692
- if (peg$silentFails === 0) {
693
- peg$fail(peg$c24);
694
- }
695
- }
696
- if (s5 !== peg$FAILED) {
697
- s6 = peg$parse_();
698
- if (s6 !== peg$FAILED) {
699
- s7 = peg$parsecomment();
700
- if (s7 !== peg$FAILED) {
701
- peg$savedPos = s0;
702
- s1 = peg$c25(s1, s3, s7);
703
- s0 = s1;
704
- }
705
- else {
706
- peg$currPos = s0;
707
- s0 = peg$FAILED;
708
- }
709
- }
710
- else {
711
- peg$currPos = s0;
712
- s0 = peg$FAILED;
713
- }
714
- }
715
- else {
716
- peg$currPos = s0;
717
- s0 = peg$FAILED;
718
- }
719
- }
720
- else {
721
- peg$currPos = s0;
722
- s0 = peg$FAILED;
723
- }
724
- }
725
- else {
726
- peg$currPos = s0;
727
- s0 = peg$FAILED;
728
- }
729
- }
730
- else {
731
- peg$currPos = s0;
732
- s0 = peg$FAILED;
733
- }
734
- }
735
- else {
736
- peg$currPos = s0;
737
- s0 = peg$FAILED;
738
- }
739
- if (s0 === peg$FAILED) {
740
- s0 = peg$currPos;
741
- s1 = peg$parsefieldType();
742
- if (s1 !== peg$FAILED) {
743
- s2 = peg$parse_();
744
- if (s2 !== peg$FAILED) {
745
- if (input.charCodeAt(peg$currPos) === 91) {
746
- s3 = peg$c26;
747
- peg$currPos++;
748
- }
749
- else {
750
- s3 = peg$FAILED;
751
- if (peg$silentFails === 0) {
752
- peg$fail(peg$c27);
753
- }
754
- }
755
- if (s3 !== peg$FAILED) {
756
- s4 = peg$parse_();
757
- if (s4 !== peg$FAILED) {
758
- s5 = peg$parsefieldSize();
759
- if (s5 !== peg$FAILED) {
760
- s6 = peg$parse_();
761
- if (s6 !== peg$FAILED) {
762
- if (input.charCodeAt(peg$currPos) === 93) {
763
- s7 = peg$c28;
764
- peg$currPos++;
765
- }
766
- else {
767
- s7 = peg$FAILED;
768
- if (peg$silentFails === 0) {
769
- peg$fail(peg$c29);
770
- }
771
- }
772
- if (s7 !== peg$FAILED) {
773
- s8 = peg$parse_();
774
- if (s8 !== peg$FAILED) {
775
- s9 = peg$parsename();
776
- if (s9 !== peg$FAILED) {
777
- s10 = peg$parse_();
778
- if (s10 !== peg$FAILED) {
779
- if (input.charCodeAt(peg$currPos) === 59) {
780
- s11 = peg$c23;
781
- peg$currPos++;
782
- }
783
- else {
784
- s11 = peg$FAILED;
785
- if (peg$silentFails === 0) {
786
- peg$fail(peg$c24);
787
- }
788
- }
789
- if (s11 !== peg$FAILED) {
790
- s12 = peg$parse_();
791
- if (s12 !== peg$FAILED) {
792
- s13 = peg$parsecomment();
793
- if (s13 !== peg$FAILED) {
794
- peg$savedPos = s0;
795
- s1 = peg$c30(s1, s5, s9, s13);
796
- s0 = s1;
797
- }
798
- else {
799
- peg$currPos = s0;
800
- s0 = peg$FAILED;
801
- }
802
- }
803
- else {
804
- peg$currPos = s0;
805
- s0 = peg$FAILED;
806
- }
807
- }
808
- else {
809
- peg$currPos = s0;
810
- s0 = peg$FAILED;
811
- }
812
- }
813
- else {
814
- peg$currPos = s0;
815
- s0 = peg$FAILED;
816
- }
817
- }
818
- else {
819
- peg$currPos = s0;
820
- s0 = peg$FAILED;
821
- }
822
- }
823
- else {
824
- peg$currPos = s0;
825
- s0 = peg$FAILED;
826
- }
827
- }
828
- else {
829
- peg$currPos = s0;
830
- s0 = peg$FAILED;
831
- }
832
- }
833
- else {
834
- peg$currPos = s0;
835
- s0 = peg$FAILED;
836
- }
837
- }
838
- else {
839
- peg$currPos = s0;
840
- s0 = peg$FAILED;
841
- }
842
- }
843
- else {
844
- peg$currPos = s0;
845
- s0 = peg$FAILED;
846
- }
847
- }
848
- else {
849
- peg$currPos = s0;
850
- s0 = peg$FAILED;
851
- }
852
- }
853
- else {
854
- peg$currPos = s0;
855
- s0 = peg$FAILED;
856
- }
857
- }
858
- else {
859
- peg$currPos = s0;
860
- s0 = peg$FAILED;
861
- }
862
- if (s0 === peg$FAILED) {
863
- s0 = peg$currPos;
864
- s1 = peg$parsefieldType();
865
- if (s1 !== peg$FAILED) {
866
- s2 = peg$parse_();
867
- if (s2 !== peg$FAILED) {
868
- if (input.charCodeAt(peg$currPos) === 40) {
869
- s3 = peg$c0;
870
- peg$currPos++;
871
- }
872
- else {
873
- s3 = peg$FAILED;
874
- if (peg$silentFails === 0) {
875
- peg$fail(peg$c1);
876
- }
877
- }
878
- if (s3 !== peg$FAILED) {
879
- s4 = peg$parse_();
880
- if (s4 !== peg$FAILED) {
881
- s5 = peg$parsefieldValues();
882
- if (s5 !== peg$FAILED) {
883
- s6 = peg$parse_();
884
- if (s6 !== peg$FAILED) {
885
- if (input.charCodeAt(peg$currPos) === 41) {
886
- s7 = peg$c2;
887
- peg$currPos++;
888
- }
889
- else {
890
- s7 = peg$FAILED;
891
- if (peg$silentFails === 0) {
892
- peg$fail(peg$c3);
893
- }
894
- }
895
- if (s7 !== peg$FAILED) {
896
- s8 = peg$parse_();
897
- if (s8 !== peg$FAILED) {
898
- s9 = peg$parsename();
899
- if (s9 !== peg$FAILED) {
900
- s10 = peg$parse_();
901
- if (s10 !== peg$FAILED) {
902
- if (input.charCodeAt(peg$currPos) === 59) {
903
- s11 = peg$c23;
904
- peg$currPos++;
905
- }
906
- else {
907
- s11 = peg$FAILED;
908
- if (peg$silentFails === 0) {
909
- peg$fail(peg$c24);
910
- }
911
- }
912
- if (s11 !== peg$FAILED) {
913
- s12 = peg$parse_();
914
- if (s12 !== peg$FAILED) {
915
- s13 = peg$parsecomment();
916
- if (s13 !== peg$FAILED) {
917
- peg$savedPos = s0;
918
- s1 = peg$c31(s1, s5, s9, s13);
919
- s0 = s1;
920
- }
921
- else {
922
- peg$currPos = s0;
923
- s0 = peg$FAILED;
924
- }
925
- }
926
- else {
927
- peg$currPos = s0;
928
- s0 = peg$FAILED;
929
- }
930
- }
931
- else {
932
- peg$currPos = s0;
933
- s0 = peg$FAILED;
934
- }
935
- }
936
- else {
937
- peg$currPos = s0;
938
- s0 = peg$FAILED;
939
- }
940
- }
941
- else {
942
- peg$currPos = s0;
943
- s0 = peg$FAILED;
944
- }
945
- }
946
- else {
947
- peg$currPos = s0;
948
- s0 = peg$FAILED;
949
- }
950
- }
951
- else {
952
- peg$currPos = s0;
953
- s0 = peg$FAILED;
954
- }
955
- }
956
- else {
957
- peg$currPos = s0;
958
- s0 = peg$FAILED;
959
- }
960
- }
961
- else {
962
- peg$currPos = s0;
963
- s0 = peg$FAILED;
964
- }
965
- }
966
- else {
967
- peg$currPos = s0;
968
- s0 = peg$FAILED;
969
- }
970
- }
971
- else {
972
- peg$currPos = s0;
973
- s0 = peg$FAILED;
974
- }
975
- }
976
- else {
977
- peg$currPos = s0;
978
- s0 = peg$FAILED;
979
- }
980
- }
981
- else {
982
- peg$currPos = s0;
983
- s0 = peg$FAILED;
984
- }
985
- if (s0 === peg$FAILED) {
986
- s0 = peg$parseinternalComment();
987
- }
988
- }
989
- }
990
- return s0;
991
- }
992
- function peg$parsefieldValues() {
993
- var s0, s1, s2, s3, s4, s5, s6;
994
- s0 = peg$currPos;
995
- s1 = peg$parsename();
996
- if (s1 !== peg$FAILED) {
997
- s2 = [];
998
- s3 = peg$currPos;
999
- if (input.charCodeAt(peg$currPos) === 44) {
1000
- s4 = peg$c32;
1001
- peg$currPos++;
1002
- }
1003
- else {
1004
- s4 = peg$FAILED;
1005
- if (peg$silentFails === 0) {
1006
- peg$fail(peg$c33);
1007
- }
1008
- }
1009
- if (s4 !== peg$FAILED) {
1010
- s5 = peg$parse_();
1011
- if (s5 !== peg$FAILED) {
1012
- s6 = peg$parsename();
1013
- if (s6 !== peg$FAILED) {
1014
- peg$savedPos = s3;
1015
- s4 = peg$c19(s1, s6);
1016
- s3 = s4;
1017
- }
1018
- else {
1019
- peg$currPos = s3;
1020
- s3 = peg$FAILED;
1021
- }
1022
- }
1023
- else {
1024
- peg$currPos = s3;
1025
- s3 = peg$FAILED;
1026
- }
1027
- }
1028
- else {
1029
- peg$currPos = s3;
1030
- s3 = peg$FAILED;
1031
- }
1032
- while (s3 !== peg$FAILED) {
1033
- s2.push(s3);
1034
- s3 = peg$currPos;
1035
- if (input.charCodeAt(peg$currPos) === 44) {
1036
- s4 = peg$c32;
1037
- peg$currPos++;
1038
- }
1039
- else {
1040
- s4 = peg$FAILED;
1041
- if (peg$silentFails === 0) {
1042
- peg$fail(peg$c33);
1043
- }
1044
- }
1045
- if (s4 !== peg$FAILED) {
1046
- s5 = peg$parse_();
1047
- if (s5 !== peg$FAILED) {
1048
- s6 = peg$parsename();
1049
- if (s6 !== peg$FAILED) {
1050
- peg$savedPos = s3;
1051
- s4 = peg$c19(s1, s6);
1052
- s3 = s4;
1053
- }
1054
- else {
1055
- peg$currPos = s3;
1056
- s3 = peg$FAILED;
1057
- }
1058
- }
1059
- else {
1060
- peg$currPos = s3;
1061
- s3 = peg$FAILED;
1062
- }
1063
- }
1064
- else {
1065
- peg$currPos = s3;
1066
- s3 = peg$FAILED;
1067
- }
1068
- }
1069
- if (s2 !== peg$FAILED) {
1070
- peg$savedPos = s0;
1071
- s1 = peg$c34(s1, s2);
1072
- s0 = s1;
1073
- }
1074
- else {
1075
- peg$currPos = s0;
1076
- s0 = peg$FAILED;
1077
- }
1078
- }
1079
- else {
1080
- peg$currPos = s0;
1081
- s0 = peg$FAILED;
1082
- }
1083
- return s0;
1084
- }
1085
- function peg$parsefieldType() {
1086
- var s0, s1, s2, s3;
1087
- if (input.substr(peg$currPos, 3) === peg$c35) {
1088
- s0 = peg$c35;
1089
- peg$currPos += 3;
1090
- }
1091
- else {
1092
- s0 = peg$FAILED;
1093
- if (peg$silentFails === 0) {
1094
- peg$fail(peg$c36);
1095
- }
1096
- }
1097
- if (s0 === peg$FAILED) {
1098
- if (input.substr(peg$currPos, 4) === peg$c37) {
1099
- s0 = peg$c37;
1100
- peg$currPos += 4;
1101
- }
1102
- else {
1103
- s0 = peg$FAILED;
1104
- if (peg$silentFails === 0) {
1105
- peg$fail(peg$c38);
1106
- }
1107
- }
1108
- if (s0 === peg$FAILED) {
1109
- if (input.substr(peg$currPos, 5) === peg$c39) {
1110
- s0 = peg$c39;
1111
- peg$currPos += 5;
1112
- }
1113
- else {
1114
- s0 = peg$FAILED;
1115
- if (peg$silentFails === 0) {
1116
- peg$fail(peg$c40);
1117
- }
1118
- }
1119
- if (s0 === peg$FAILED) {
1120
- if (input.substr(peg$currPos, 6) === peg$c41) {
1121
- s0 = peg$c41;
1122
- peg$currPos += 6;
1123
- }
1124
- else {
1125
- s0 = peg$FAILED;
1126
- if (peg$silentFails === 0) {
1127
- peg$fail(peg$c42);
1128
- }
1129
- }
1130
- if (s0 === peg$FAILED) {
1131
- if (input.substr(peg$currPos, 4) === peg$c43) {
1132
- s0 = peg$c43;
1133
- peg$currPos += 4;
1134
- }
1135
- else {
1136
- s0 = peg$FAILED;
1137
- if (peg$silentFails === 0) {
1138
- peg$fail(peg$c44);
1139
- }
1140
- }
1141
- if (s0 === peg$FAILED) {
1142
- if (input.substr(peg$currPos, 5) === peg$c45) {
1143
- s0 = peg$c45;
1144
- peg$currPos += 5;
1145
- }
1146
- else {
1147
- s0 = peg$FAILED;
1148
- if (peg$silentFails === 0) {
1149
- peg$fail(peg$c46);
1150
- }
1151
- }
1152
- if (s0 === peg$FAILED) {
1153
- if (input.substr(peg$currPos, 5) === peg$c47) {
1154
- s0 = peg$c47;
1155
- peg$currPos += 5;
1156
- }
1157
- else {
1158
- s0 = peg$FAILED;
1159
- if (peg$silentFails === 0) {
1160
- peg$fail(peg$c48);
1161
- }
1162
- }
1163
- if (s0 === peg$FAILED) {
1164
- if (input.substr(peg$currPos, 4) === peg$c49) {
1165
- s0 = peg$c49;
1166
- peg$currPos += 4;
1167
- }
1168
- else {
1169
- s0 = peg$FAILED;
1170
- if (peg$silentFails === 0) {
1171
- peg$fail(peg$c50);
1172
- }
1173
- }
1174
- if (s0 === peg$FAILED) {
1175
- if (input.substr(peg$currPos, 6) === peg$c51) {
1176
- s0 = peg$c51;
1177
- peg$currPos += 6;
1178
- }
1179
- else {
1180
- s0 = peg$FAILED;
1181
- if (peg$silentFails === 0) {
1182
- peg$fail(peg$c52);
1183
- }
1184
- }
1185
- if (s0 === peg$FAILED) {
1186
- if (input.substr(peg$currPos, 7) === peg$c53) {
1187
- s0 = peg$c53;
1188
- peg$currPos += 7;
1189
- }
1190
- else {
1191
- s0 = peg$FAILED;
1192
- if (peg$silentFails === 0) {
1193
- peg$fail(peg$c54);
1194
- }
1195
- }
1196
- if (s0 === peg$FAILED) {
1197
- if (input.substr(peg$currPos, 4) === peg$c55) {
1198
- s0 = peg$c55;
1199
- peg$currPos += 4;
1200
- }
1201
- else {
1202
- s0 = peg$FAILED;
1203
- if (peg$silentFails === 0) {
1204
- peg$fail(peg$c56);
1205
- }
1206
- }
1207
- if (s0 === peg$FAILED) {
1208
- if (input.substr(peg$currPos, 6) === peg$c57) {
1209
- s0 = peg$c57;
1210
- peg$currPos += 6;
1211
- }
1212
- else {
1213
- s0 = peg$FAILED;
1214
- if (peg$silentFails === 0) {
1215
- peg$fail(peg$c58);
1216
- }
1217
- }
1218
- if (s0 === peg$FAILED) {
1219
- if (input.substr(peg$currPos, 6) === peg$c59) {
1220
- s0 = peg$c59;
1221
- peg$currPos += 6;
1222
- }
1223
- else {
1224
- s0 = peg$FAILED;
1225
- if (peg$silentFails === 0) {
1226
- peg$fail(peg$c60);
1227
- }
1228
- }
1229
- if (s0 === peg$FAILED) {
1230
- if (input.substr(peg$currPos, 3) === peg$c61) {
1231
- s0 = peg$c61;
1232
- peg$currPos += 3;
1233
- }
1234
- else {
1235
- s0 = peg$FAILED;
1236
- if (peg$silentFails === 0) {
1237
- peg$fail(peg$c62);
1238
- }
1239
- }
1240
- if (s0 === peg$FAILED) {
1241
- s0 = peg$currPos;
1242
- s1 = peg$parsedeclareType();
1243
- if (s1 !== peg$FAILED) {
1244
- s2 = peg$parse_();
1245
- if (s2 !== peg$FAILED) {
1246
- s3 = peg$parsedeclareName();
1247
- if (s3 !== peg$FAILED) {
1248
- peg$savedPos = s0;
1249
- s1 = peg$c63(s1, s3);
1250
- s0 = s1;
1251
- }
1252
- else {
1253
- peg$currPos = s0;
1254
- s0 = peg$FAILED;
1255
- }
1256
- }
1257
- else {
1258
- peg$currPos = s0;
1259
- s0 = peg$FAILED;
1260
- }
1261
- }
1262
- else {
1263
- peg$currPos = s0;
1264
- s0 = peg$FAILED;
1265
- }
1266
- }
1267
- }
1268
- }
1269
- }
1270
- }
1271
- }
1272
- }
1273
- }
1274
- }
1275
- }
1276
- }
1277
- }
1278
- }
1279
- }
1280
- return s0;
1281
- }
1282
- function peg$parsefieldSize() {
1283
- var s0;
1284
- s0 = peg$parsenumber();
1285
- if (s0 === peg$FAILED) {
1286
- s0 = peg$parsename();
1287
- }
1288
- return s0;
1289
- }
1290
- function peg$parsename() {
1291
- var s0, s1, s2, s3, s4;
1292
- s0 = peg$currPos;
1293
- s1 = peg$currPos;
1294
- if (peg$c64.test(input.charAt(peg$currPos))) {
1295
- s2 = input.charAt(peg$currPos);
1296
- peg$currPos++;
1297
- }
1298
- else {
1299
- s2 = peg$FAILED;
1300
- if (peg$silentFails === 0) {
1301
- peg$fail(peg$c65);
1302
- }
1303
- }
1304
- if (s2 !== peg$FAILED) {
1305
- s3 = [];
1306
- if (peg$c66.test(input.charAt(peg$currPos))) {
1307
- s4 = input.charAt(peg$currPos);
1308
- peg$currPos++;
1309
- }
1310
- else {
1311
- s4 = peg$FAILED;
1312
- if (peg$silentFails === 0) {
1313
- peg$fail(peg$c67);
1314
- }
1315
- }
1316
- while (s4 !== peg$FAILED) {
1317
- s3.push(s4);
1318
- if (peg$c66.test(input.charAt(peg$currPos))) {
1319
- s4 = input.charAt(peg$currPos);
1320
- peg$currPos++;
1321
- }
1322
- else {
1323
- s4 = peg$FAILED;
1324
- if (peg$silentFails === 0) {
1325
- peg$fail(peg$c67);
1326
- }
1327
- }
1328
- }
1329
- if (s3 !== peg$FAILED) {
1330
- s2 = [s2, s3];
1331
- s1 = s2;
1332
- }
1333
- else {
1334
- peg$currPos = s1;
1335
- s1 = peg$FAILED;
1336
- }
1337
- }
1338
- else {
1339
- peg$currPos = s1;
1340
- s1 = peg$FAILED;
1341
- }
1342
- if (s1 !== peg$FAILED) {
1343
- peg$savedPos = s0;
1344
- s1 = peg$c68(s1);
1345
- }
1346
- s0 = s1;
1347
- return s0;
1348
- }
1349
- function peg$parsequotedString() {
1350
- var s0, s1, s2, s3;
1351
- s0 = peg$currPos;
1352
- if (input.charCodeAt(peg$currPos) === 34) {
1353
- s1 = peg$c69;
1354
- peg$currPos++;
1355
- }
1356
- else {
1357
- s1 = peg$FAILED;
1358
- if (peg$silentFails === 0) {
1359
- peg$fail(peg$c70);
1360
- }
1361
- }
1362
- if (s1 !== peg$FAILED) {
1363
- s2 = [];
1364
- if (peg$c71.test(input.charAt(peg$currPos))) {
1365
- s3 = input.charAt(peg$currPos);
1366
- peg$currPos++;
1367
- }
1368
- else {
1369
- s3 = peg$FAILED;
1370
- if (peg$silentFails === 0) {
1371
- peg$fail(peg$c72);
1372
- }
1373
- }
1374
- while (s3 !== peg$FAILED) {
1375
- s2.push(s3);
1376
- if (peg$c71.test(input.charAt(peg$currPos))) {
1377
- s3 = input.charAt(peg$currPos);
1378
- peg$currPos++;
1379
- }
1380
- else {
1381
- s3 = peg$FAILED;
1382
- if (peg$silentFails === 0) {
1383
- peg$fail(peg$c72);
1384
- }
1385
- }
1386
- }
1387
- if (s2 !== peg$FAILED) {
1388
- if (input.charCodeAt(peg$currPos) === 34) {
1389
- s3 = peg$c69;
1390
- peg$currPos++;
1391
- }
1392
- else {
1393
- s3 = peg$FAILED;
1394
- if (peg$silentFails === 0) {
1395
- peg$fail(peg$c70);
1396
- }
1397
- }
1398
- if (s3 !== peg$FAILED) {
1399
- peg$savedPos = s0;
1400
- s1 = peg$c73(s2);
1401
- s0 = s1;
1402
- }
1403
- else {
1404
- peg$currPos = s0;
1405
- s0 = peg$FAILED;
1406
- }
1407
- }
1408
- else {
1409
- peg$currPos = s0;
1410
- s0 = peg$FAILED;
1411
- }
1412
- }
1413
- else {
1414
- peg$currPos = s0;
1415
- s0 = peg$FAILED;
1416
- }
1417
- return s0;
1418
- }
1419
- function peg$parsenonQuotedString() {
1420
- var s0, s1, s2;
1421
- s0 = peg$currPos;
1422
- s1 = [];
1423
- if (peg$c74.test(input.charAt(peg$currPos))) {
1424
- s2 = input.charAt(peg$currPos);
1425
- peg$currPos++;
1426
- }
1427
- else {
1428
- s2 = peg$FAILED;
1429
- if (peg$silentFails === 0) {
1430
- peg$fail(peg$c75);
1431
- }
1432
- }
1433
- while (s2 !== peg$FAILED) {
1434
- s1.push(s2);
1435
- if (peg$c74.test(input.charAt(peg$currPos))) {
1436
- s2 = input.charAt(peg$currPos);
1437
- peg$currPos++;
1438
- }
1439
- else {
1440
- s2 = peg$FAILED;
1441
- if (peg$silentFails === 0) {
1442
- peg$fail(peg$c75);
1443
- }
1444
- }
1445
- }
1446
- if (s1 !== peg$FAILED) {
1447
- peg$savedPos = s0;
1448
- s1 = peg$c76(s1);
1449
- }
1450
- s0 = s1;
1451
- return s0;
1452
- }
1453
- function peg$parsenumber() {
1454
- var s0, s1, s2, s3;
1455
- peg$silentFails++;
1456
- s0 = peg$currPos;
1457
- s1 = peg$parse_();
1458
- if (s1 !== peg$FAILED) {
1459
- s2 = [];
1460
- if (peg$c78.test(input.charAt(peg$currPos))) {
1461
- s3 = input.charAt(peg$currPos);
1462
- peg$currPos++;
1463
- }
1464
- else {
1465
- s3 = peg$FAILED;
1466
- if (peg$silentFails === 0) {
1467
- peg$fail(peg$c79);
1468
- }
1469
- }
1470
- if (s3 !== peg$FAILED) {
1471
- while (s3 !== peg$FAILED) {
1472
- s2.push(s3);
1473
- if (peg$c78.test(input.charAt(peg$currPos))) {
1474
- s3 = input.charAt(peg$currPos);
1475
- peg$currPos++;
1476
- }
1477
- else {
1478
- s3 = peg$FAILED;
1479
- if (peg$silentFails === 0) {
1480
- peg$fail(peg$c79);
1481
- }
1482
- }
1483
- }
1484
- }
1485
- else {
1486
- s2 = peg$FAILED;
1487
- }
1488
- if (s2 !== peg$FAILED) {
1489
- peg$savedPos = s0;
1490
- s1 = peg$c80();
1491
- s0 = s1;
1492
- }
1493
- else {
1494
- peg$currPos = s0;
1495
- s0 = peg$FAILED;
1496
- }
1497
- }
1498
- else {
1499
- peg$currPos = s0;
1500
- s0 = peg$FAILED;
1501
- }
1502
- peg$silentFails--;
1503
- if (s0 === peg$FAILED) {
1504
- s1 = peg$FAILED;
1505
- if (peg$silentFails === 0) {
1506
- peg$fail(peg$c77);
1507
- }
1508
- }
1509
- return s0;
1510
- }
1511
- function peg$parse_() {
1512
- var s0, s1;
1513
- peg$silentFails++;
1514
- s0 = [];
1515
- if (peg$c82.test(input.charAt(peg$currPos))) {
1516
- s1 = input.charAt(peg$currPos);
1517
- peg$currPos++;
1518
- }
1519
- else {
1520
- s1 = peg$FAILED;
1521
- if (peg$silentFails === 0) {
1522
- peg$fail(peg$c83);
1523
- }
1524
- }
1525
- while (s1 !== peg$FAILED) {
1526
- s0.push(s1);
1527
- if (peg$c82.test(input.charAt(peg$currPos))) {
1528
- s1 = input.charAt(peg$currPos);
1529
- peg$currPos++;
1530
- }
1531
- else {
1532
- s1 = peg$FAILED;
1533
- if (peg$silentFails === 0) {
1534
- peg$fail(peg$c83);
1535
- }
1536
- }
1537
- }
1538
- peg$silentFails--;
1539
- if (s0 === peg$FAILED) {
1540
- s1 = peg$FAILED;
1541
- if (peg$silentFails === 0) {
1542
- peg$fail(peg$c81);
1543
- }
1544
- }
1545
- return s0;
1546
- }
1547
- peg$result = peg$startRuleFunction();
1548
- if (peg$result !== peg$FAILED && peg$currPos === input.length) {
1549
- return peg$result;
1550
- }
1551
- else {
1552
- if (peg$result !== peg$FAILED && peg$currPos < input.length) {
1553
- peg$fail(peg$endExpectation());
1554
- }
1555
- throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length
1556
- ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1)
1557
- : peg$computeLocation(peg$maxFailPos, peg$maxFailPos));
1558
- }
1559
- }
1560
- export default {
1561
- SyntaxError: peg$SyntaxError,
1562
- parse: peg$parse,
1563
- };
1564
- //# sourceMappingURL=autoSql.js.map