@malloydata/malloy-filter 0.0.422 → 0.0.424
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/boolean_filter_expression.js +4 -1
- package/dist/boolean_filter_expression.js.map +1 -1
- package/dist/clause_utils.js +4 -1
- package/dist/clause_utils.js.map +1 -1
- package/dist/filter_interface.d.ts +6 -4
- package/dist/filter_interface.js +4 -1
- package/dist/filter_interface.js.map +1 -1
- package/dist/lib/fexpr_number_parser.js +283 -231
- package/dist/lib/fexpr_number_parser.js.map +1 -1
- package/dist/lib/ftemporal_parser.js +305 -253
- package/dist/lib/ftemporal_parser.js.map +1 -1
- package/dist/number_filter_expression.js +3 -0
- package/dist/number_filter_expression.js.map +1 -1
- package/dist/string_filter_expression.js +2 -0
- package/dist/string_filter_expression.js.map +1 -1
- package/dist/temporal_filter_expression.js +3 -1
- package/dist/temporal_filter_expression.js.map +1 -1
- package/package.json +1 -1
- package/src/boolean_filter_expression.ts +3 -1
- package/src/clause_utils.ts +4 -1
- package/src/filter_interface.ts +16 -20
- package/src/grammars/fexpr_number.peggy +2 -0
- package/src/grammars/ftemporal.peggy +2 -0
- package/src/lib/fexpr_number_parser.js +252 -203
- package/src/lib/ftemporal_parser.js +291 -242
- package/src/number_filter_expression.ts +3 -0
- package/src/string_filter_expression.ts +2 -0
- package/src/temporal_filter_expression.ts +6 -1
|
@@ -195,30 +195,31 @@ function peg$parse(input, options) {
|
|
|
195
195
|
var peg$c12 = ":";
|
|
196
196
|
var peg$c13 = "not";
|
|
197
197
|
var peg$c14 = "null";
|
|
198
|
-
var peg$c15 = "
|
|
199
|
-
var peg$c16 = "
|
|
200
|
-
var peg$c17 = "
|
|
201
|
-
var peg$c18 = "
|
|
202
|
-
var peg$c19 = "
|
|
203
|
-
var peg$c20 = "
|
|
204
|
-
var peg$c21 = "
|
|
205
|
-
var peg$c22 = "
|
|
206
|
-
var peg$c23 = "
|
|
207
|
-
var peg$c24 = "
|
|
208
|
-
var peg$c25 = "
|
|
209
|
-
var peg$c26 = "
|
|
210
|
-
var peg$c27 = "
|
|
211
|
-
var peg$c28 = "
|
|
212
|
-
var peg$c29 = "
|
|
213
|
-
var peg$c30 = "
|
|
214
|
-
var peg$c31 = "
|
|
215
|
-
var peg$c32 = "
|
|
216
|
-
var peg$c33 = "
|
|
217
|
-
var peg$c34 = "
|
|
218
|
-
var peg$c35 = "
|
|
219
|
-
var peg$c36 = "
|
|
220
|
-
var peg$c37 = "
|
|
221
|
-
var peg$c38 = "
|
|
198
|
+
var peg$c15 = "none";
|
|
199
|
+
var peg$c16 = "to";
|
|
200
|
+
var peg$c17 = "now";
|
|
201
|
+
var peg$c18 = "last";
|
|
202
|
+
var peg$c19 = "this";
|
|
203
|
+
var peg$c20 = "next";
|
|
204
|
+
var peg$c21 = "ago";
|
|
205
|
+
var peg$c22 = "from";
|
|
206
|
+
var peg$c23 = "before";
|
|
207
|
+
var peg$c24 = "after";
|
|
208
|
+
var peg$c25 = "through";
|
|
209
|
+
var peg$c26 = "starting";
|
|
210
|
+
var peg$c27 = "for";
|
|
211
|
+
var peg$c28 = "today";
|
|
212
|
+
var peg$c29 = "yesterday";
|
|
213
|
+
var peg$c30 = "tomorrow";
|
|
214
|
+
var peg$c31 = "and";
|
|
215
|
+
var peg$c32 = "or";
|
|
216
|
+
var peg$c33 = "monday";
|
|
217
|
+
var peg$c34 = "tuesday";
|
|
218
|
+
var peg$c35 = "wednesday";
|
|
219
|
+
var peg$c36 = "thursday";
|
|
220
|
+
var peg$c37 = "friday";
|
|
221
|
+
var peg$c38 = "saturday";
|
|
222
|
+
var peg$c39 = "sunday";
|
|
222
223
|
|
|
223
224
|
var peg$r0 = /^[0-9]/;
|
|
224
225
|
var peg$r1 = /^[ Tt]/;
|
|
@@ -252,34 +253,35 @@ function peg$parse(input, options) {
|
|
|
252
253
|
var peg$e19 = peg$classExpectation(["1", "2", "3", "4"], false, false);
|
|
253
254
|
var peg$e20 = peg$literalExpectation("not", true);
|
|
254
255
|
var peg$e21 = peg$literalExpectation("null", true);
|
|
255
|
-
var peg$e22 = peg$literalExpectation("
|
|
256
|
-
var peg$e23 = peg$literalExpectation("
|
|
257
|
-
var peg$e24 = peg$literalExpectation("
|
|
258
|
-
var peg$e25 = peg$literalExpectation("
|
|
259
|
-
var peg$e26 = peg$literalExpectation("
|
|
260
|
-
var peg$e27 = peg$literalExpectation("
|
|
261
|
-
var peg$e28 = peg$literalExpectation("
|
|
262
|
-
var peg$e29 = peg$literalExpectation("
|
|
263
|
-
var peg$e30 = peg$literalExpectation("
|
|
264
|
-
var peg$e31 = peg$literalExpectation("
|
|
265
|
-
var peg$e32 = peg$literalExpectation("
|
|
266
|
-
var peg$e33 = peg$literalExpectation("
|
|
267
|
-
var peg$e34 = peg$literalExpectation("
|
|
268
|
-
var peg$e35 = peg$literalExpectation("
|
|
269
|
-
var peg$e36 = peg$literalExpectation("
|
|
270
|
-
var peg$e37 = peg$literalExpectation("
|
|
271
|
-
var peg$e38 = peg$literalExpectation("
|
|
272
|
-
var peg$e39 = peg$literalExpectation("
|
|
273
|
-
var peg$e40 = peg$literalExpectation("
|
|
274
|
-
var peg$e41 = peg$literalExpectation("
|
|
275
|
-
var peg$e42 = peg$literalExpectation("
|
|
276
|
-
var peg$e43 = peg$literalExpectation("
|
|
277
|
-
var peg$e44 = peg$literalExpectation("
|
|
278
|
-
var peg$e45 = peg$literalExpectation("
|
|
279
|
-
var peg$e46 = peg$
|
|
280
|
-
var peg$e47 = peg$
|
|
281
|
-
var peg$e48 = peg$
|
|
282
|
-
var peg$e49 = peg$
|
|
256
|
+
var peg$e22 = peg$literalExpectation("none", true);
|
|
257
|
+
var peg$e23 = peg$literalExpectation("to", true);
|
|
258
|
+
var peg$e24 = peg$literalExpectation("now", true);
|
|
259
|
+
var peg$e25 = peg$literalExpectation("last", true);
|
|
260
|
+
var peg$e26 = peg$literalExpectation("this", true);
|
|
261
|
+
var peg$e27 = peg$literalExpectation("next", true);
|
|
262
|
+
var peg$e28 = peg$literalExpectation("ago", true);
|
|
263
|
+
var peg$e29 = peg$literalExpectation("from", true);
|
|
264
|
+
var peg$e30 = peg$literalExpectation("before", true);
|
|
265
|
+
var peg$e31 = peg$literalExpectation("after", true);
|
|
266
|
+
var peg$e32 = peg$literalExpectation("through", true);
|
|
267
|
+
var peg$e33 = peg$literalExpectation("starting", true);
|
|
268
|
+
var peg$e34 = peg$literalExpectation("for", true);
|
|
269
|
+
var peg$e35 = peg$literalExpectation("today", true);
|
|
270
|
+
var peg$e36 = peg$literalExpectation("yesterday", true);
|
|
271
|
+
var peg$e37 = peg$literalExpectation("tomorrow", true);
|
|
272
|
+
var peg$e38 = peg$literalExpectation("and", true);
|
|
273
|
+
var peg$e39 = peg$literalExpectation("or", true);
|
|
274
|
+
var peg$e40 = peg$literalExpectation("monday", true);
|
|
275
|
+
var peg$e41 = peg$literalExpectation("tuesday", true);
|
|
276
|
+
var peg$e42 = peg$literalExpectation("wednesday", true);
|
|
277
|
+
var peg$e43 = peg$literalExpectation("thursday", true);
|
|
278
|
+
var peg$e44 = peg$literalExpectation("friday", true);
|
|
279
|
+
var peg$e45 = peg$literalExpectation("saturday", true);
|
|
280
|
+
var peg$e46 = peg$literalExpectation("sunday", true);
|
|
281
|
+
var peg$e47 = peg$classExpectation([["a", "z"], ["A", "Z"]], false, false);
|
|
282
|
+
var peg$e48 = peg$otherExpectation("optional whitespace");
|
|
283
|
+
var peg$e49 = peg$classExpectation([" ", "\t"], false, false);
|
|
284
|
+
var peg$e50 = peg$otherExpectation("whitespace");
|
|
283
285
|
|
|
284
286
|
var peg$f0 = function(head, tail) {
|
|
285
287
|
return tail.reduce((left, [, cop, , right]) => joinTemporal(left, cop, right), head);
|
|
@@ -287,46 +289,47 @@ function peg$parse(input, options) {
|
|
|
287
289
|
var peg$f1 = function(clause) { return temporalNot(clause, true); };
|
|
288
290
|
var peg$f2 = function(clause) { return clause; };
|
|
289
291
|
var peg$f3 = function() { return {operator: 'null'}; };
|
|
290
|
-
var peg$f4 = function(
|
|
291
|
-
var peg$f5 = function(
|
|
292
|
-
var peg$f6 = function(m) { return {operator: 'before', before: m
|
|
293
|
-
var peg$f7 = function(m) { return {operator: '
|
|
294
|
-
var peg$f8 = function(m) { return {operator: 'after', after: m
|
|
295
|
-
var peg$f9 = function(
|
|
296
|
-
var peg$f10 = function(
|
|
297
|
-
var peg$f11 = function(m,
|
|
298
|
-
var peg$f12 = function(m) { return {operator: '
|
|
299
|
-
var peg$f13 = function(
|
|
300
|
-
var peg$f14 = function() { return '
|
|
301
|
-
var peg$f15 = function() { return '
|
|
302
|
-
var peg$f16 = function(
|
|
303
|
-
var peg$f17 = function(n) { return n; };
|
|
304
|
-
var peg$f18 = function(
|
|
305
|
-
var peg$f19 = function() { return
|
|
306
|
-
var peg$f20 = function() { return {moment: '
|
|
307
|
-
var peg$f21 = function() { return {moment: '
|
|
308
|
-
var peg$f22 = function() { return {moment: '
|
|
309
|
-
var peg$f23 = function(
|
|
310
|
-
var peg$f24 = function(d) { return {moment: '
|
|
311
|
-
var peg$f25 = function(
|
|
312
|
-
var peg$f26 = function(dn) { return {moment: dn.toLowerCase(), which: '
|
|
313
|
-
var peg$f27 = function(
|
|
314
|
-
var peg$f28 = function(
|
|
315
|
-
var peg$f29 = function(
|
|
316
|
-
var peg$f30 = function() { return
|
|
317
|
-
var peg$f31 = function() { return '
|
|
318
|
-
var peg$f32 = function() { return '
|
|
319
|
-
var peg$f33 = function(
|
|
320
|
-
var peg$f34 = function(l) { return timeLiteral(l
|
|
321
|
-
var peg$f35 = function(l) { return timeLiteral(l, '
|
|
322
|
-
var peg$f36 = function(l) { return timeLiteral(l, '
|
|
323
|
-
var peg$f37 = function(l) { return timeLiteral(l, '
|
|
324
|
-
var peg$f38 = function(l) { return timeLiteral(l, '
|
|
325
|
-
var peg$f39 = function(l) { return timeLiteral(l, '
|
|
326
|
-
var peg$f40 = function(l) { return timeLiteral(l, '
|
|
327
|
-
var peg$f41 = function(
|
|
328
|
-
var peg$f42 = function() { return
|
|
329
|
-
var peg$f43 = function() { return "
|
|
292
|
+
var peg$f4 = function() { return {operator: 'none'}; };
|
|
293
|
+
var peg$f5 = function(expr) { return {operator: "()", expr}; };
|
|
294
|
+
var peg$f6 = function(m) { return {operator: 'before', before: m}; };
|
|
295
|
+
var peg$f7 = function(m) { return {operator: 'before', before: m, not: true}; };
|
|
296
|
+
var peg$f8 = function(m) { return {operator: 'after', after: m}; };
|
|
297
|
+
var peg$f9 = function(m) { return {operator: 'after', after: m, not: true}; };
|
|
298
|
+
var peg$f10 = function(ln, d) { return {operator: ln, ...d}; };
|
|
299
|
+
var peg$f11 = function(m, m2) { return {operator: 'to', fromMoment: m, toMoment: m2}; };
|
|
300
|
+
var peg$f12 = function(m, d) { return {...d, operator: 'for', begin: m}; };
|
|
301
|
+
var peg$f13 = function(m) { return {operator: 'in', in: m}; };
|
|
302
|
+
var peg$f14 = function(d) { return {operator: 'in_last', ...d}; };
|
|
303
|
+
var peg$f15 = function() { return 'last'; };
|
|
304
|
+
var peg$f16 = function() { return 'next'; };
|
|
305
|
+
var peg$f17 = function(n, u) { return {units: u, n}; };
|
|
306
|
+
var peg$f18 = function(n) { return n; };
|
|
307
|
+
var peg$f19 = function(u) { return mkUnits(u); };
|
|
308
|
+
var peg$f20 = function() { return {moment: 'now'}; };
|
|
309
|
+
var peg$f21 = function() { return {moment: 'today'}; };
|
|
310
|
+
var peg$f22 = function() { return {moment: 'yesterday'}; };
|
|
311
|
+
var peg$f23 = function() { return {moment: 'tomorrow'}; };
|
|
312
|
+
var peg$f24 = function(d) { return {moment: 'ago', ...d}; };
|
|
313
|
+
var peg$f25 = function(d) { return {moment: 'from_now', ...d}; };
|
|
314
|
+
var peg$f26 = function(dn) { return {moment: dn.toLowerCase(), which: 'next'}; };
|
|
315
|
+
var peg$f27 = function(dn) { return {moment: dn.toLowerCase(), which: 'last'}; };
|
|
316
|
+
var peg$f28 = function(lnt, u) { return {moment: lnt, units: u}; };
|
|
317
|
+
var peg$f29 = function(dn) { return {moment: dn.toLowerCase(), which: 'last'}; };
|
|
318
|
+
var peg$f30 = function(tl) { return tl; };
|
|
319
|
+
var peg$f31 = function() { return 'this'; };
|
|
320
|
+
var peg$f32 = function() { return 'next'; };
|
|
321
|
+
var peg$f33 = function() { return 'last'; };
|
|
322
|
+
var peg$f34 = function(l) { return timeLiteral(l); };
|
|
323
|
+
var peg$f35 = function(l) { return timeLiteral(l, 'week'); };
|
|
324
|
+
var peg$f36 = function(l) { return timeLiteral(l, 'quarter'); };
|
|
325
|
+
var peg$f37 = function(l) { return timeLiteral(l, 'minute'); };
|
|
326
|
+
var peg$f38 = function(l) { return timeLiteral(l, 'hour'); };
|
|
327
|
+
var peg$f39 = function(l) { return timeLiteral(l, 'day'); };
|
|
328
|
+
var peg$f40 = function(l) { return timeLiteral(l, 'month'); };
|
|
329
|
+
var peg$f41 = function(l) { return timeLiteral(l, 'year'); };
|
|
330
|
+
var peg$f42 = function(w) { return w; };
|
|
331
|
+
var peg$f43 = function() { return "or"; };
|
|
332
|
+
var peg$f44 = function() { return "and"; };
|
|
330
333
|
var peg$currPos = options.peg$currPos | 0;
|
|
331
334
|
var peg$savedPos = peg$currPos;
|
|
332
335
|
var peg$posDetailsCache = [{ line: 1, column: 1 }];
|
|
@@ -592,48 +595,34 @@ function peg$parse(input, options) {
|
|
|
592
595
|
s0 = s1;
|
|
593
596
|
if (s0 === peg$FAILED) {
|
|
594
597
|
s0 = peg$currPos;
|
|
595
|
-
|
|
596
|
-
s1 = peg$c0;
|
|
597
|
-
peg$currPos++;
|
|
598
|
-
} else {
|
|
599
|
-
s1 = peg$FAILED;
|
|
600
|
-
if (peg$silentFails === 0) { peg$fail(peg$e0); }
|
|
601
|
-
}
|
|
598
|
+
s1 = peg$parseNONE();
|
|
602
599
|
if (s1 !== peg$FAILED) {
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
if (s3 !== peg$FAILED) {
|
|
606
|
-
s4 = peg$parse_();
|
|
607
|
-
if (input.charCodeAt(peg$currPos) === 41) {
|
|
608
|
-
s5 = peg$c1;
|
|
609
|
-
peg$currPos++;
|
|
610
|
-
} else {
|
|
611
|
-
s5 = peg$FAILED;
|
|
612
|
-
if (peg$silentFails === 0) { peg$fail(peg$e1); }
|
|
613
|
-
}
|
|
614
|
-
if (s5 !== peg$FAILED) {
|
|
615
|
-
peg$savedPos = s0;
|
|
616
|
-
s0 = peg$f4(s3);
|
|
617
|
-
} else {
|
|
618
|
-
peg$currPos = s0;
|
|
619
|
-
s0 = peg$FAILED;
|
|
620
|
-
}
|
|
621
|
-
} else {
|
|
622
|
-
peg$currPos = s0;
|
|
623
|
-
s0 = peg$FAILED;
|
|
624
|
-
}
|
|
625
|
-
} else {
|
|
626
|
-
peg$currPos = s0;
|
|
627
|
-
s0 = peg$FAILED;
|
|
600
|
+
peg$savedPos = s0;
|
|
601
|
+
s1 = peg$f4();
|
|
628
602
|
}
|
|
603
|
+
s0 = s1;
|
|
629
604
|
if (s0 === peg$FAILED) {
|
|
630
605
|
s0 = peg$currPos;
|
|
631
|
-
|
|
606
|
+
if (input.charCodeAt(peg$currPos) === 40) {
|
|
607
|
+
s1 = peg$c0;
|
|
608
|
+
peg$currPos++;
|
|
609
|
+
} else {
|
|
610
|
+
s1 = peg$FAILED;
|
|
611
|
+
if (peg$silentFails === 0) { peg$fail(peg$e0); }
|
|
612
|
+
}
|
|
632
613
|
if (s1 !== peg$FAILED) {
|
|
633
|
-
s2 = peg$
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
614
|
+
s2 = peg$parse_();
|
|
615
|
+
s3 = peg$parsetemporalFilter();
|
|
616
|
+
if (s3 !== peg$FAILED) {
|
|
617
|
+
s4 = peg$parse_();
|
|
618
|
+
if (input.charCodeAt(peg$currPos) === 41) {
|
|
619
|
+
s5 = peg$c1;
|
|
620
|
+
peg$currPos++;
|
|
621
|
+
} else {
|
|
622
|
+
s5 = peg$FAILED;
|
|
623
|
+
if (peg$silentFails === 0) { peg$fail(peg$e1); }
|
|
624
|
+
}
|
|
625
|
+
if (s5 !== peg$FAILED) {
|
|
637
626
|
peg$savedPos = s0;
|
|
638
627
|
s0 = peg$f5(s3);
|
|
639
628
|
} else {
|
|
@@ -650,7 +639,7 @@ function peg$parse(input, options) {
|
|
|
650
639
|
}
|
|
651
640
|
if (s0 === peg$FAILED) {
|
|
652
641
|
s0 = peg$currPos;
|
|
653
|
-
s1 = peg$
|
|
642
|
+
s1 = peg$parseBEFORE();
|
|
654
643
|
if (s1 !== peg$FAILED) {
|
|
655
644
|
s2 = peg$parse__();
|
|
656
645
|
if (s2 !== peg$FAILED) {
|
|
@@ -672,7 +661,7 @@ function peg$parse(input, options) {
|
|
|
672
661
|
}
|
|
673
662
|
if (s0 === peg$FAILED) {
|
|
674
663
|
s0 = peg$currPos;
|
|
675
|
-
s1 = peg$
|
|
664
|
+
s1 = peg$parseSTARTING();
|
|
676
665
|
if (s1 !== peg$FAILED) {
|
|
677
666
|
s2 = peg$parse__();
|
|
678
667
|
if (s2 !== peg$FAILED) {
|
|
@@ -694,7 +683,7 @@ function peg$parse(input, options) {
|
|
|
694
683
|
}
|
|
695
684
|
if (s0 === peg$FAILED) {
|
|
696
685
|
s0 = peg$currPos;
|
|
697
|
-
s1 = peg$
|
|
686
|
+
s1 = peg$parseAFTER();
|
|
698
687
|
if (s1 !== peg$FAILED) {
|
|
699
688
|
s2 = peg$parse__();
|
|
700
689
|
if (s2 !== peg$FAILED) {
|
|
@@ -716,14 +705,14 @@ function peg$parse(input, options) {
|
|
|
716
705
|
}
|
|
717
706
|
if (s0 === peg$FAILED) {
|
|
718
707
|
s0 = peg$currPos;
|
|
719
|
-
s1 = peg$
|
|
708
|
+
s1 = peg$parseTHROUGH();
|
|
720
709
|
if (s1 !== peg$FAILED) {
|
|
721
710
|
s2 = peg$parse__();
|
|
722
711
|
if (s2 !== peg$FAILED) {
|
|
723
|
-
s3 = peg$
|
|
712
|
+
s3 = peg$parsemoment();
|
|
724
713
|
if (s3 !== peg$FAILED) {
|
|
725
714
|
peg$savedPos = s0;
|
|
726
|
-
s0 = peg$f9(
|
|
715
|
+
s0 = peg$f9(s3);
|
|
727
716
|
} else {
|
|
728
717
|
peg$currPos = s0;
|
|
729
718
|
s0 = peg$FAILED;
|
|
@@ -738,26 +727,14 @@ function peg$parse(input, options) {
|
|
|
738
727
|
}
|
|
739
728
|
if (s0 === peg$FAILED) {
|
|
740
729
|
s0 = peg$currPos;
|
|
741
|
-
s1 = peg$
|
|
730
|
+
s1 = peg$parselastOrNext();
|
|
742
731
|
if (s1 !== peg$FAILED) {
|
|
743
732
|
s2 = peg$parse__();
|
|
744
733
|
if (s2 !== peg$FAILED) {
|
|
745
|
-
s3 = peg$
|
|
734
|
+
s3 = peg$parseduration();
|
|
746
735
|
if (s3 !== peg$FAILED) {
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
s5 = peg$parsemoment();
|
|
750
|
-
if (s5 !== peg$FAILED) {
|
|
751
|
-
peg$savedPos = s0;
|
|
752
|
-
s0 = peg$f10(s1, s5);
|
|
753
|
-
} else {
|
|
754
|
-
peg$currPos = s0;
|
|
755
|
-
s0 = peg$FAILED;
|
|
756
|
-
}
|
|
757
|
-
} else {
|
|
758
|
-
peg$currPos = s0;
|
|
759
|
-
s0 = peg$FAILED;
|
|
760
|
-
}
|
|
736
|
+
peg$savedPos = s0;
|
|
737
|
+
s0 = peg$f10(s1, s3);
|
|
761
738
|
} else {
|
|
762
739
|
peg$currPos = s0;
|
|
763
740
|
s0 = peg$FAILED;
|
|
@@ -776,11 +753,11 @@ function peg$parse(input, options) {
|
|
|
776
753
|
if (s1 !== peg$FAILED) {
|
|
777
754
|
s2 = peg$parse__();
|
|
778
755
|
if (s2 !== peg$FAILED) {
|
|
779
|
-
s3 = peg$
|
|
756
|
+
s3 = peg$parseTO();
|
|
780
757
|
if (s3 !== peg$FAILED) {
|
|
781
758
|
s4 = peg$parse__();
|
|
782
759
|
if (s4 !== peg$FAILED) {
|
|
783
|
-
s5 = peg$
|
|
760
|
+
s5 = peg$parsemoment();
|
|
784
761
|
if (s5 !== peg$FAILED) {
|
|
785
762
|
peg$savedPos = s0;
|
|
786
763
|
s0 = peg$f11(s1, s5);
|
|
@@ -808,18 +785,53 @@ function peg$parse(input, options) {
|
|
|
808
785
|
s0 = peg$currPos;
|
|
809
786
|
s1 = peg$parsemoment();
|
|
810
787
|
if (s1 !== peg$FAILED) {
|
|
811
|
-
|
|
812
|
-
|
|
788
|
+
s2 = peg$parse__();
|
|
789
|
+
if (s2 !== peg$FAILED) {
|
|
790
|
+
s3 = peg$parseFOR();
|
|
791
|
+
if (s3 !== peg$FAILED) {
|
|
792
|
+
s4 = peg$parse__();
|
|
793
|
+
if (s4 !== peg$FAILED) {
|
|
794
|
+
s5 = peg$parseduration();
|
|
795
|
+
if (s5 !== peg$FAILED) {
|
|
796
|
+
peg$savedPos = s0;
|
|
797
|
+
s0 = peg$f12(s1, s5);
|
|
798
|
+
} else {
|
|
799
|
+
peg$currPos = s0;
|
|
800
|
+
s0 = peg$FAILED;
|
|
801
|
+
}
|
|
802
|
+
} else {
|
|
803
|
+
peg$currPos = s0;
|
|
804
|
+
s0 = peg$FAILED;
|
|
805
|
+
}
|
|
806
|
+
} else {
|
|
807
|
+
peg$currPos = s0;
|
|
808
|
+
s0 = peg$FAILED;
|
|
809
|
+
}
|
|
810
|
+
} else {
|
|
811
|
+
peg$currPos = s0;
|
|
812
|
+
s0 = peg$FAILED;
|
|
813
|
+
}
|
|
814
|
+
} else {
|
|
815
|
+
peg$currPos = s0;
|
|
816
|
+
s0 = peg$FAILED;
|
|
813
817
|
}
|
|
814
|
-
s0 = s1;
|
|
815
818
|
if (s0 === peg$FAILED) {
|
|
816
819
|
s0 = peg$currPos;
|
|
817
|
-
s1 = peg$
|
|
820
|
+
s1 = peg$parsemoment();
|
|
818
821
|
if (s1 !== peg$FAILED) {
|
|
819
822
|
peg$savedPos = s0;
|
|
820
823
|
s1 = peg$f13(s1);
|
|
821
824
|
}
|
|
822
825
|
s0 = s1;
|
|
826
|
+
if (s0 === peg$FAILED) {
|
|
827
|
+
s0 = peg$currPos;
|
|
828
|
+
s1 = peg$parseduration();
|
|
829
|
+
if (s1 !== peg$FAILED) {
|
|
830
|
+
peg$savedPos = s0;
|
|
831
|
+
s1 = peg$f14(s1);
|
|
832
|
+
}
|
|
833
|
+
s0 = s1;
|
|
834
|
+
}
|
|
823
835
|
}
|
|
824
836
|
}
|
|
825
837
|
}
|
|
@@ -841,7 +853,7 @@ function peg$parse(input, options) {
|
|
|
841
853
|
s1 = peg$parseLAST();
|
|
842
854
|
if (s1 !== peg$FAILED) {
|
|
843
855
|
peg$savedPos = s0;
|
|
844
|
-
s1 = peg$
|
|
856
|
+
s1 = peg$f15();
|
|
845
857
|
}
|
|
846
858
|
s0 = s1;
|
|
847
859
|
if (s0 === peg$FAILED) {
|
|
@@ -849,7 +861,7 @@ function peg$parse(input, options) {
|
|
|
849
861
|
s1 = peg$parseNEXT();
|
|
850
862
|
if (s1 !== peg$FAILED) {
|
|
851
863
|
peg$savedPos = s0;
|
|
852
|
-
s1 = peg$
|
|
864
|
+
s1 = peg$f16();
|
|
853
865
|
}
|
|
854
866
|
s0 = s1;
|
|
855
867
|
}
|
|
@@ -868,7 +880,7 @@ function peg$parse(input, options) {
|
|
|
868
880
|
s3 = peg$parseunit();
|
|
869
881
|
if (s3 !== peg$FAILED) {
|
|
870
882
|
peg$savedPos = s0;
|
|
871
|
-
s0 = peg$
|
|
883
|
+
s0 = peg$f17(s1, s3);
|
|
872
884
|
} else {
|
|
873
885
|
peg$currPos = s0;
|
|
874
886
|
s0 = peg$FAILED;
|
|
@@ -919,7 +931,7 @@ function peg$parse(input, options) {
|
|
|
919
931
|
}
|
|
920
932
|
if (s1 !== peg$FAILED) {
|
|
921
933
|
peg$savedPos = s0;
|
|
922
|
-
s1 = peg$
|
|
934
|
+
s1 = peg$f18(s1);
|
|
923
935
|
}
|
|
924
936
|
s0 = s1;
|
|
925
937
|
|
|
@@ -1029,7 +1041,7 @@ function peg$parse(input, options) {
|
|
|
1029
1041
|
}
|
|
1030
1042
|
if (s3 !== peg$FAILED) {
|
|
1031
1043
|
peg$savedPos = s0;
|
|
1032
|
-
s0 = peg$
|
|
1044
|
+
s0 = peg$f19(s1);
|
|
1033
1045
|
} else {
|
|
1034
1046
|
peg$currPos = s0;
|
|
1035
1047
|
s0 = peg$FAILED;
|
|
@@ -1049,7 +1061,7 @@ function peg$parse(input, options) {
|
|
|
1049
1061
|
s1 = peg$parseNOW();
|
|
1050
1062
|
if (s1 !== peg$FAILED) {
|
|
1051
1063
|
peg$savedPos = s0;
|
|
1052
|
-
s1 = peg$
|
|
1064
|
+
s1 = peg$f20();
|
|
1053
1065
|
}
|
|
1054
1066
|
s0 = s1;
|
|
1055
1067
|
if (s0 === peg$FAILED) {
|
|
@@ -1057,7 +1069,7 @@ function peg$parse(input, options) {
|
|
|
1057
1069
|
s1 = peg$parseTODAY();
|
|
1058
1070
|
if (s1 !== peg$FAILED) {
|
|
1059
1071
|
peg$savedPos = s0;
|
|
1060
|
-
s1 = peg$
|
|
1072
|
+
s1 = peg$f21();
|
|
1061
1073
|
}
|
|
1062
1074
|
s0 = s1;
|
|
1063
1075
|
if (s0 === peg$FAILED) {
|
|
@@ -1065,7 +1077,7 @@ function peg$parse(input, options) {
|
|
|
1065
1077
|
s1 = peg$parseYESTERDAY();
|
|
1066
1078
|
if (s1 !== peg$FAILED) {
|
|
1067
1079
|
peg$savedPos = s0;
|
|
1068
|
-
s1 = peg$
|
|
1080
|
+
s1 = peg$f22();
|
|
1069
1081
|
}
|
|
1070
1082
|
s0 = s1;
|
|
1071
1083
|
if (s0 === peg$FAILED) {
|
|
@@ -1073,7 +1085,7 @@ function peg$parse(input, options) {
|
|
|
1073
1085
|
s1 = peg$parseTOMORROW();
|
|
1074
1086
|
if (s1 !== peg$FAILED) {
|
|
1075
1087
|
peg$savedPos = s0;
|
|
1076
|
-
s1 = peg$
|
|
1088
|
+
s1 = peg$f23();
|
|
1077
1089
|
}
|
|
1078
1090
|
s0 = s1;
|
|
1079
1091
|
if (s0 === peg$FAILED) {
|
|
@@ -1085,7 +1097,7 @@ function peg$parse(input, options) {
|
|
|
1085
1097
|
s3 = peg$parseAGO();
|
|
1086
1098
|
if (s3 !== peg$FAILED) {
|
|
1087
1099
|
peg$savedPos = s0;
|
|
1088
|
-
s0 = peg$
|
|
1100
|
+
s0 = peg$f24(s1);
|
|
1089
1101
|
} else {
|
|
1090
1102
|
peg$currPos = s0;
|
|
1091
1103
|
s0 = peg$FAILED;
|
|
@@ -1111,7 +1123,7 @@ function peg$parse(input, options) {
|
|
|
1111
1123
|
s5 = peg$parseNOW();
|
|
1112
1124
|
if (s5 !== peg$FAILED) {
|
|
1113
1125
|
peg$savedPos = s0;
|
|
1114
|
-
s0 = peg$
|
|
1126
|
+
s0 = peg$f25(s1);
|
|
1115
1127
|
} else {
|
|
1116
1128
|
peg$currPos = s0;
|
|
1117
1129
|
s0 = peg$FAILED;
|
|
@@ -1141,7 +1153,7 @@ function peg$parse(input, options) {
|
|
|
1141
1153
|
s3 = peg$parseweekday();
|
|
1142
1154
|
if (s3 !== peg$FAILED) {
|
|
1143
1155
|
peg$savedPos = s0;
|
|
1144
|
-
s0 = peg$
|
|
1156
|
+
s0 = peg$f26(s3);
|
|
1145
1157
|
} else {
|
|
1146
1158
|
peg$currPos = s0;
|
|
1147
1159
|
s0 = peg$FAILED;
|
|
@@ -1163,7 +1175,7 @@ function peg$parse(input, options) {
|
|
|
1163
1175
|
s3 = peg$parseweekday();
|
|
1164
1176
|
if (s3 !== peg$FAILED) {
|
|
1165
1177
|
peg$savedPos = s0;
|
|
1166
|
-
s0 = peg$
|
|
1178
|
+
s0 = peg$f27(s3);
|
|
1167
1179
|
} else {
|
|
1168
1180
|
peg$currPos = s0;
|
|
1169
1181
|
s0 = peg$FAILED;
|
|
@@ -1185,7 +1197,7 @@ function peg$parse(input, options) {
|
|
|
1185
1197
|
s3 = peg$parseunit();
|
|
1186
1198
|
if (s3 !== peg$FAILED) {
|
|
1187
1199
|
peg$savedPos = s0;
|
|
1188
|
-
s0 = peg$
|
|
1200
|
+
s0 = peg$f28(s1, s3);
|
|
1189
1201
|
} else {
|
|
1190
1202
|
peg$currPos = s0;
|
|
1191
1203
|
s0 = peg$FAILED;
|
|
@@ -1203,7 +1215,7 @@ function peg$parse(input, options) {
|
|
|
1203
1215
|
s1 = peg$parseweekday();
|
|
1204
1216
|
if (s1 !== peg$FAILED) {
|
|
1205
1217
|
peg$savedPos = s0;
|
|
1206
|
-
s1 = peg$
|
|
1218
|
+
s1 = peg$f29(s1);
|
|
1207
1219
|
}
|
|
1208
1220
|
s0 = s1;
|
|
1209
1221
|
if (s0 === peg$FAILED) {
|
|
@@ -1211,7 +1223,7 @@ function peg$parse(input, options) {
|
|
|
1211
1223
|
s1 = peg$parsetimeLiteral();
|
|
1212
1224
|
if (s1 !== peg$FAILED) {
|
|
1213
1225
|
peg$savedPos = s0;
|
|
1214
|
-
s1 = peg$
|
|
1226
|
+
s1 = peg$f30(s1);
|
|
1215
1227
|
}
|
|
1216
1228
|
s0 = s1;
|
|
1217
1229
|
}
|
|
@@ -1235,7 +1247,7 @@ function peg$parse(input, options) {
|
|
|
1235
1247
|
s1 = peg$parseTHIS();
|
|
1236
1248
|
if (s1 !== peg$FAILED) {
|
|
1237
1249
|
peg$savedPos = s0;
|
|
1238
|
-
s1 = peg$
|
|
1250
|
+
s1 = peg$f31();
|
|
1239
1251
|
}
|
|
1240
1252
|
s0 = s1;
|
|
1241
1253
|
if (s0 === peg$FAILED) {
|
|
@@ -1243,7 +1255,7 @@ function peg$parse(input, options) {
|
|
|
1243
1255
|
s1 = peg$parseNEXT();
|
|
1244
1256
|
if (s1 !== peg$FAILED) {
|
|
1245
1257
|
peg$savedPos = s0;
|
|
1246
|
-
s1 = peg$
|
|
1258
|
+
s1 = peg$f32();
|
|
1247
1259
|
}
|
|
1248
1260
|
s0 = s1;
|
|
1249
1261
|
if (s0 === peg$FAILED) {
|
|
@@ -1251,7 +1263,7 @@ function peg$parse(input, options) {
|
|
|
1251
1263
|
s1 = peg$parseLAST();
|
|
1252
1264
|
if (s1 !== peg$FAILED) {
|
|
1253
1265
|
peg$savedPos = s0;
|
|
1254
|
-
s1 = peg$
|
|
1266
|
+
s1 = peg$f33();
|
|
1255
1267
|
}
|
|
1256
1268
|
s0 = s1;
|
|
1257
1269
|
}
|
|
@@ -1539,7 +1551,7 @@ function peg$parse(input, options) {
|
|
|
1539
1551
|
}
|
|
1540
1552
|
if (s1 !== peg$FAILED) {
|
|
1541
1553
|
peg$savedPos = s0;
|
|
1542
|
-
s1 = peg$
|
|
1554
|
+
s1 = peg$f34(s1);
|
|
1543
1555
|
}
|
|
1544
1556
|
s0 = s1;
|
|
1545
1557
|
if (s0 === peg$FAILED) {
|
|
@@ -1711,7 +1723,7 @@ function peg$parse(input, options) {
|
|
|
1711
1723
|
}
|
|
1712
1724
|
if (s1 !== peg$FAILED) {
|
|
1713
1725
|
peg$savedPos = s0;
|
|
1714
|
-
s1 = peg$
|
|
1726
|
+
s1 = peg$f35(s1);
|
|
1715
1727
|
}
|
|
1716
1728
|
s0 = s1;
|
|
1717
1729
|
if (s0 === peg$FAILED) {
|
|
@@ -1811,7 +1823,7 @@ function peg$parse(input, options) {
|
|
|
1811
1823
|
}
|
|
1812
1824
|
if (s1 !== peg$FAILED) {
|
|
1813
1825
|
peg$savedPos = s0;
|
|
1814
|
-
s1 = peg$
|
|
1826
|
+
s1 = peg$f36(s1);
|
|
1815
1827
|
}
|
|
1816
1828
|
s0 = s1;
|
|
1817
1829
|
if (s0 === peg$FAILED) {
|
|
@@ -2019,7 +2031,7 @@ function peg$parse(input, options) {
|
|
|
2019
2031
|
}
|
|
2020
2032
|
if (s1 !== peg$FAILED) {
|
|
2021
2033
|
peg$savedPos = s0;
|
|
2022
|
-
s1 = peg$
|
|
2034
|
+
s1 = peg$f37(s1);
|
|
2023
2035
|
}
|
|
2024
2036
|
s0 = s1;
|
|
2025
2037
|
if (s0 === peg$FAILED) {
|
|
@@ -2191,7 +2203,7 @@ function peg$parse(input, options) {
|
|
|
2191
2203
|
}
|
|
2192
2204
|
if (s1 !== peg$FAILED) {
|
|
2193
2205
|
peg$savedPos = s0;
|
|
2194
|
-
s1 = peg$
|
|
2206
|
+
s1 = peg$f38(s1);
|
|
2195
2207
|
}
|
|
2196
2208
|
s0 = s1;
|
|
2197
2209
|
if (s0 === peg$FAILED) {
|
|
@@ -2327,7 +2339,7 @@ function peg$parse(input, options) {
|
|
|
2327
2339
|
}
|
|
2328
2340
|
if (s1 !== peg$FAILED) {
|
|
2329
2341
|
peg$savedPos = s0;
|
|
2330
|
-
s1 = peg$
|
|
2342
|
+
s1 = peg$f39(s1);
|
|
2331
2343
|
}
|
|
2332
2344
|
s0 = s1;
|
|
2333
2345
|
if (s0 === peg$FAILED) {
|
|
@@ -2427,7 +2439,7 @@ function peg$parse(input, options) {
|
|
|
2427
2439
|
}
|
|
2428
2440
|
if (s1 !== peg$FAILED) {
|
|
2429
2441
|
peg$savedPos = s0;
|
|
2430
|
-
s1 = peg$
|
|
2442
|
+
s1 = peg$f40(s1);
|
|
2431
2443
|
}
|
|
2432
2444
|
s0 = s1;
|
|
2433
2445
|
if (s0 === peg$FAILED) {
|
|
@@ -2491,7 +2503,7 @@ function peg$parse(input, options) {
|
|
|
2491
2503
|
}
|
|
2492
2504
|
if (s1 !== peg$FAILED) {
|
|
2493
2505
|
peg$savedPos = s0;
|
|
2494
|
-
s1 = peg$
|
|
2506
|
+
s1 = peg$f41(s1);
|
|
2495
2507
|
}
|
|
2496
2508
|
s0 = s1;
|
|
2497
2509
|
}
|
|
@@ -2536,7 +2548,7 @@ function peg$parse(input, options) {
|
|
|
2536
2548
|
}
|
|
2537
2549
|
if (s1 !== peg$FAILED) {
|
|
2538
2550
|
peg$savedPos = s0;
|
|
2539
|
-
s1 = peg$
|
|
2551
|
+
s1 = peg$f42(s1);
|
|
2540
2552
|
}
|
|
2541
2553
|
s0 = s1;
|
|
2542
2554
|
|
|
@@ -2550,7 +2562,7 @@ function peg$parse(input, options) {
|
|
|
2550
2562
|
s1 = peg$parseOR();
|
|
2551
2563
|
if (s1 !== peg$FAILED) {
|
|
2552
2564
|
peg$savedPos = s0;
|
|
2553
|
-
s1 = peg$
|
|
2565
|
+
s1 = peg$f43();
|
|
2554
2566
|
}
|
|
2555
2567
|
s0 = s1;
|
|
2556
2568
|
if (s0 === peg$FAILED) {
|
|
@@ -2558,7 +2570,7 @@ function peg$parse(input, options) {
|
|
|
2558
2570
|
s1 = peg$parseAND();
|
|
2559
2571
|
if (s1 !== peg$FAILED) {
|
|
2560
2572
|
peg$savedPos = s0;
|
|
2561
|
-
s1 = peg$
|
|
2573
|
+
s1 = peg$f44();
|
|
2562
2574
|
}
|
|
2563
2575
|
s0 = s1;
|
|
2564
2576
|
}
|
|
@@ -2640,16 +2652,53 @@ function peg$parse(input, options) {
|
|
|
2640
2652
|
return s0;
|
|
2641
2653
|
}
|
|
2642
2654
|
|
|
2655
|
+
function peg$parseNONE() {
|
|
2656
|
+
var s0, s1, s2, s3;
|
|
2657
|
+
|
|
2658
|
+
s0 = peg$currPos;
|
|
2659
|
+
s1 = input.substr(peg$currPos, 4);
|
|
2660
|
+
if (s1.toLowerCase() === peg$c15) {
|
|
2661
|
+
peg$currPos += 4;
|
|
2662
|
+
} else {
|
|
2663
|
+
s1 = peg$FAILED;
|
|
2664
|
+
if (peg$silentFails === 0) { peg$fail(peg$e22); }
|
|
2665
|
+
}
|
|
2666
|
+
if (s1 !== peg$FAILED) {
|
|
2667
|
+
s2 = peg$currPos;
|
|
2668
|
+
peg$silentFails++;
|
|
2669
|
+
s3 = peg$parseidChar();
|
|
2670
|
+
peg$silentFails--;
|
|
2671
|
+
if (s3 === peg$FAILED) {
|
|
2672
|
+
s2 = undefined;
|
|
2673
|
+
} else {
|
|
2674
|
+
peg$currPos = s2;
|
|
2675
|
+
s2 = peg$FAILED;
|
|
2676
|
+
}
|
|
2677
|
+
if (s2 !== peg$FAILED) {
|
|
2678
|
+
s1 = [s1, s2];
|
|
2679
|
+
s0 = s1;
|
|
2680
|
+
} else {
|
|
2681
|
+
peg$currPos = s0;
|
|
2682
|
+
s0 = peg$FAILED;
|
|
2683
|
+
}
|
|
2684
|
+
} else {
|
|
2685
|
+
peg$currPos = s0;
|
|
2686
|
+
s0 = peg$FAILED;
|
|
2687
|
+
}
|
|
2688
|
+
|
|
2689
|
+
return s0;
|
|
2690
|
+
}
|
|
2691
|
+
|
|
2643
2692
|
function peg$parseTO() {
|
|
2644
2693
|
var s0, s1, s2, s3;
|
|
2645
2694
|
|
|
2646
2695
|
s0 = peg$currPos;
|
|
2647
2696
|
s1 = input.substr(peg$currPos, 2);
|
|
2648
|
-
if (s1.toLowerCase() === peg$
|
|
2697
|
+
if (s1.toLowerCase() === peg$c16) {
|
|
2649
2698
|
peg$currPos += 2;
|
|
2650
2699
|
} else {
|
|
2651
2700
|
s1 = peg$FAILED;
|
|
2652
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
2701
|
+
if (peg$silentFails === 0) { peg$fail(peg$e23); }
|
|
2653
2702
|
}
|
|
2654
2703
|
if (s1 !== peg$FAILED) {
|
|
2655
2704
|
s2 = peg$currPos;
|
|
@@ -2682,11 +2731,11 @@ function peg$parse(input, options) {
|
|
|
2682
2731
|
|
|
2683
2732
|
s0 = peg$currPos;
|
|
2684
2733
|
s1 = input.substr(peg$currPos, 3);
|
|
2685
|
-
if (s1.toLowerCase() === peg$
|
|
2734
|
+
if (s1.toLowerCase() === peg$c17) {
|
|
2686
2735
|
peg$currPos += 3;
|
|
2687
2736
|
} else {
|
|
2688
2737
|
s1 = peg$FAILED;
|
|
2689
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
2738
|
+
if (peg$silentFails === 0) { peg$fail(peg$e24); }
|
|
2690
2739
|
}
|
|
2691
2740
|
if (s1 !== peg$FAILED) {
|
|
2692
2741
|
s2 = peg$currPos;
|
|
@@ -2719,11 +2768,11 @@ function peg$parse(input, options) {
|
|
|
2719
2768
|
|
|
2720
2769
|
s0 = peg$currPos;
|
|
2721
2770
|
s1 = input.substr(peg$currPos, 4);
|
|
2722
|
-
if (s1.toLowerCase() === peg$
|
|
2771
|
+
if (s1.toLowerCase() === peg$c18) {
|
|
2723
2772
|
peg$currPos += 4;
|
|
2724
2773
|
} else {
|
|
2725
2774
|
s1 = peg$FAILED;
|
|
2726
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
2775
|
+
if (peg$silentFails === 0) { peg$fail(peg$e25); }
|
|
2727
2776
|
}
|
|
2728
2777
|
if (s1 !== peg$FAILED) {
|
|
2729
2778
|
s2 = peg$currPos;
|
|
@@ -2756,11 +2805,11 @@ function peg$parse(input, options) {
|
|
|
2756
2805
|
|
|
2757
2806
|
s0 = peg$currPos;
|
|
2758
2807
|
s1 = input.substr(peg$currPos, 4);
|
|
2759
|
-
if (s1.toLowerCase() === peg$
|
|
2808
|
+
if (s1.toLowerCase() === peg$c19) {
|
|
2760
2809
|
peg$currPos += 4;
|
|
2761
2810
|
} else {
|
|
2762
2811
|
s1 = peg$FAILED;
|
|
2763
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
2812
|
+
if (peg$silentFails === 0) { peg$fail(peg$e26); }
|
|
2764
2813
|
}
|
|
2765
2814
|
if (s1 !== peg$FAILED) {
|
|
2766
2815
|
s2 = peg$currPos;
|
|
@@ -2793,11 +2842,11 @@ function peg$parse(input, options) {
|
|
|
2793
2842
|
|
|
2794
2843
|
s0 = peg$currPos;
|
|
2795
2844
|
s1 = input.substr(peg$currPos, 4);
|
|
2796
|
-
if (s1.toLowerCase() === peg$
|
|
2845
|
+
if (s1.toLowerCase() === peg$c20) {
|
|
2797
2846
|
peg$currPos += 4;
|
|
2798
2847
|
} else {
|
|
2799
2848
|
s1 = peg$FAILED;
|
|
2800
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
2849
|
+
if (peg$silentFails === 0) { peg$fail(peg$e27); }
|
|
2801
2850
|
}
|
|
2802
2851
|
if (s1 !== peg$FAILED) {
|
|
2803
2852
|
s2 = peg$currPos;
|
|
@@ -2830,11 +2879,11 @@ function peg$parse(input, options) {
|
|
|
2830
2879
|
|
|
2831
2880
|
s0 = peg$currPos;
|
|
2832
2881
|
s1 = input.substr(peg$currPos, 3);
|
|
2833
|
-
if (s1.toLowerCase() === peg$
|
|
2882
|
+
if (s1.toLowerCase() === peg$c21) {
|
|
2834
2883
|
peg$currPos += 3;
|
|
2835
2884
|
} else {
|
|
2836
2885
|
s1 = peg$FAILED;
|
|
2837
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
2886
|
+
if (peg$silentFails === 0) { peg$fail(peg$e28); }
|
|
2838
2887
|
}
|
|
2839
2888
|
if (s1 !== peg$FAILED) {
|
|
2840
2889
|
s2 = peg$currPos;
|
|
@@ -2867,11 +2916,11 @@ function peg$parse(input, options) {
|
|
|
2867
2916
|
|
|
2868
2917
|
s0 = peg$currPos;
|
|
2869
2918
|
s1 = input.substr(peg$currPos, 4);
|
|
2870
|
-
if (s1.toLowerCase() === peg$
|
|
2919
|
+
if (s1.toLowerCase() === peg$c22) {
|
|
2871
2920
|
peg$currPos += 4;
|
|
2872
2921
|
} else {
|
|
2873
2922
|
s1 = peg$FAILED;
|
|
2874
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
2923
|
+
if (peg$silentFails === 0) { peg$fail(peg$e29); }
|
|
2875
2924
|
}
|
|
2876
2925
|
if (s1 !== peg$FAILED) {
|
|
2877
2926
|
s2 = peg$currPos;
|
|
@@ -2904,11 +2953,11 @@ function peg$parse(input, options) {
|
|
|
2904
2953
|
|
|
2905
2954
|
s0 = peg$currPos;
|
|
2906
2955
|
s1 = input.substr(peg$currPos, 6);
|
|
2907
|
-
if (s1.toLowerCase() === peg$
|
|
2956
|
+
if (s1.toLowerCase() === peg$c23) {
|
|
2908
2957
|
peg$currPos += 6;
|
|
2909
2958
|
} else {
|
|
2910
2959
|
s1 = peg$FAILED;
|
|
2911
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
2960
|
+
if (peg$silentFails === 0) { peg$fail(peg$e30); }
|
|
2912
2961
|
}
|
|
2913
2962
|
if (s1 !== peg$FAILED) {
|
|
2914
2963
|
s2 = peg$currPos;
|
|
@@ -2941,11 +2990,11 @@ function peg$parse(input, options) {
|
|
|
2941
2990
|
|
|
2942
2991
|
s0 = peg$currPos;
|
|
2943
2992
|
s1 = input.substr(peg$currPos, 5);
|
|
2944
|
-
if (s1.toLowerCase() === peg$
|
|
2993
|
+
if (s1.toLowerCase() === peg$c24) {
|
|
2945
2994
|
peg$currPos += 5;
|
|
2946
2995
|
} else {
|
|
2947
2996
|
s1 = peg$FAILED;
|
|
2948
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
2997
|
+
if (peg$silentFails === 0) { peg$fail(peg$e31); }
|
|
2949
2998
|
}
|
|
2950
2999
|
if (s1 !== peg$FAILED) {
|
|
2951
3000
|
s2 = peg$currPos;
|
|
@@ -2978,11 +3027,11 @@ function peg$parse(input, options) {
|
|
|
2978
3027
|
|
|
2979
3028
|
s0 = peg$currPos;
|
|
2980
3029
|
s1 = input.substr(peg$currPos, 7);
|
|
2981
|
-
if (s1.toLowerCase() === peg$
|
|
3030
|
+
if (s1.toLowerCase() === peg$c25) {
|
|
2982
3031
|
peg$currPos += 7;
|
|
2983
3032
|
} else {
|
|
2984
3033
|
s1 = peg$FAILED;
|
|
2985
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3034
|
+
if (peg$silentFails === 0) { peg$fail(peg$e32); }
|
|
2986
3035
|
}
|
|
2987
3036
|
if (s1 !== peg$FAILED) {
|
|
2988
3037
|
s2 = peg$currPos;
|
|
@@ -3015,11 +3064,11 @@ function peg$parse(input, options) {
|
|
|
3015
3064
|
|
|
3016
3065
|
s0 = peg$currPos;
|
|
3017
3066
|
s1 = input.substr(peg$currPos, 8);
|
|
3018
|
-
if (s1.toLowerCase() === peg$
|
|
3067
|
+
if (s1.toLowerCase() === peg$c26) {
|
|
3019
3068
|
peg$currPos += 8;
|
|
3020
3069
|
} else {
|
|
3021
3070
|
s1 = peg$FAILED;
|
|
3022
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3071
|
+
if (peg$silentFails === 0) { peg$fail(peg$e33); }
|
|
3023
3072
|
}
|
|
3024
3073
|
if (s1 !== peg$FAILED) {
|
|
3025
3074
|
s2 = peg$currPos;
|
|
@@ -3052,11 +3101,11 @@ function peg$parse(input, options) {
|
|
|
3052
3101
|
|
|
3053
3102
|
s0 = peg$currPos;
|
|
3054
3103
|
s1 = input.substr(peg$currPos, 3);
|
|
3055
|
-
if (s1.toLowerCase() === peg$
|
|
3104
|
+
if (s1.toLowerCase() === peg$c27) {
|
|
3056
3105
|
peg$currPos += 3;
|
|
3057
3106
|
} else {
|
|
3058
3107
|
s1 = peg$FAILED;
|
|
3059
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3108
|
+
if (peg$silentFails === 0) { peg$fail(peg$e34); }
|
|
3060
3109
|
}
|
|
3061
3110
|
if (s1 !== peg$FAILED) {
|
|
3062
3111
|
s2 = peg$currPos;
|
|
@@ -3089,11 +3138,11 @@ function peg$parse(input, options) {
|
|
|
3089
3138
|
|
|
3090
3139
|
s0 = peg$currPos;
|
|
3091
3140
|
s1 = input.substr(peg$currPos, 5);
|
|
3092
|
-
if (s1.toLowerCase() === peg$
|
|
3141
|
+
if (s1.toLowerCase() === peg$c28) {
|
|
3093
3142
|
peg$currPos += 5;
|
|
3094
3143
|
} else {
|
|
3095
3144
|
s1 = peg$FAILED;
|
|
3096
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3145
|
+
if (peg$silentFails === 0) { peg$fail(peg$e35); }
|
|
3097
3146
|
}
|
|
3098
3147
|
if (s1 !== peg$FAILED) {
|
|
3099
3148
|
s2 = peg$currPos;
|
|
@@ -3126,11 +3175,11 @@ function peg$parse(input, options) {
|
|
|
3126
3175
|
|
|
3127
3176
|
s0 = peg$currPos;
|
|
3128
3177
|
s1 = input.substr(peg$currPos, 9);
|
|
3129
|
-
if (s1.toLowerCase() === peg$
|
|
3178
|
+
if (s1.toLowerCase() === peg$c29) {
|
|
3130
3179
|
peg$currPos += 9;
|
|
3131
3180
|
} else {
|
|
3132
3181
|
s1 = peg$FAILED;
|
|
3133
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3182
|
+
if (peg$silentFails === 0) { peg$fail(peg$e36); }
|
|
3134
3183
|
}
|
|
3135
3184
|
if (s1 !== peg$FAILED) {
|
|
3136
3185
|
s2 = peg$currPos;
|
|
@@ -3163,11 +3212,11 @@ function peg$parse(input, options) {
|
|
|
3163
3212
|
|
|
3164
3213
|
s0 = peg$currPos;
|
|
3165
3214
|
s1 = input.substr(peg$currPos, 8);
|
|
3166
|
-
if (s1.toLowerCase() === peg$
|
|
3215
|
+
if (s1.toLowerCase() === peg$c30) {
|
|
3167
3216
|
peg$currPos += 8;
|
|
3168
3217
|
} else {
|
|
3169
3218
|
s1 = peg$FAILED;
|
|
3170
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3219
|
+
if (peg$silentFails === 0) { peg$fail(peg$e37); }
|
|
3171
3220
|
}
|
|
3172
3221
|
if (s1 !== peg$FAILED) {
|
|
3173
3222
|
s2 = peg$currPos;
|
|
@@ -3200,11 +3249,11 @@ function peg$parse(input, options) {
|
|
|
3200
3249
|
|
|
3201
3250
|
s0 = peg$currPos;
|
|
3202
3251
|
s1 = input.substr(peg$currPos, 3);
|
|
3203
|
-
if (s1.toLowerCase() === peg$
|
|
3252
|
+
if (s1.toLowerCase() === peg$c31) {
|
|
3204
3253
|
peg$currPos += 3;
|
|
3205
3254
|
} else {
|
|
3206
3255
|
s1 = peg$FAILED;
|
|
3207
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3256
|
+
if (peg$silentFails === 0) { peg$fail(peg$e38); }
|
|
3208
3257
|
}
|
|
3209
3258
|
if (s1 !== peg$FAILED) {
|
|
3210
3259
|
s2 = peg$currPos;
|
|
@@ -3237,11 +3286,11 @@ function peg$parse(input, options) {
|
|
|
3237
3286
|
|
|
3238
3287
|
s0 = peg$currPos;
|
|
3239
3288
|
s1 = input.substr(peg$currPos, 2);
|
|
3240
|
-
if (s1.toLowerCase() === peg$
|
|
3289
|
+
if (s1.toLowerCase() === peg$c32) {
|
|
3241
3290
|
peg$currPos += 2;
|
|
3242
3291
|
} else {
|
|
3243
3292
|
s1 = peg$FAILED;
|
|
3244
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3293
|
+
if (peg$silentFails === 0) { peg$fail(peg$e39); }
|
|
3245
3294
|
}
|
|
3246
3295
|
if (s1 !== peg$FAILED) {
|
|
3247
3296
|
s2 = peg$currPos;
|
|
@@ -3274,11 +3323,11 @@ function peg$parse(input, options) {
|
|
|
3274
3323
|
|
|
3275
3324
|
s0 = peg$currPos;
|
|
3276
3325
|
s1 = input.substr(peg$currPos, 6);
|
|
3277
|
-
if (s1.toLowerCase() === peg$
|
|
3326
|
+
if (s1.toLowerCase() === peg$c33) {
|
|
3278
3327
|
peg$currPos += 6;
|
|
3279
3328
|
} else {
|
|
3280
3329
|
s1 = peg$FAILED;
|
|
3281
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3330
|
+
if (peg$silentFails === 0) { peg$fail(peg$e40); }
|
|
3282
3331
|
}
|
|
3283
3332
|
if (s1 !== peg$FAILED) {
|
|
3284
3333
|
s2 = peg$currPos;
|
|
@@ -3311,11 +3360,11 @@ function peg$parse(input, options) {
|
|
|
3311
3360
|
|
|
3312
3361
|
s0 = peg$currPos;
|
|
3313
3362
|
s1 = input.substr(peg$currPos, 7);
|
|
3314
|
-
if (s1.toLowerCase() === peg$
|
|
3363
|
+
if (s1.toLowerCase() === peg$c34) {
|
|
3315
3364
|
peg$currPos += 7;
|
|
3316
3365
|
} else {
|
|
3317
3366
|
s1 = peg$FAILED;
|
|
3318
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3367
|
+
if (peg$silentFails === 0) { peg$fail(peg$e41); }
|
|
3319
3368
|
}
|
|
3320
3369
|
if (s1 !== peg$FAILED) {
|
|
3321
3370
|
s2 = peg$currPos;
|
|
@@ -3348,11 +3397,11 @@ function peg$parse(input, options) {
|
|
|
3348
3397
|
|
|
3349
3398
|
s0 = peg$currPos;
|
|
3350
3399
|
s1 = input.substr(peg$currPos, 9);
|
|
3351
|
-
if (s1.toLowerCase() === peg$
|
|
3400
|
+
if (s1.toLowerCase() === peg$c35) {
|
|
3352
3401
|
peg$currPos += 9;
|
|
3353
3402
|
} else {
|
|
3354
3403
|
s1 = peg$FAILED;
|
|
3355
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3404
|
+
if (peg$silentFails === 0) { peg$fail(peg$e42); }
|
|
3356
3405
|
}
|
|
3357
3406
|
if (s1 !== peg$FAILED) {
|
|
3358
3407
|
s2 = peg$currPos;
|
|
@@ -3385,11 +3434,11 @@ function peg$parse(input, options) {
|
|
|
3385
3434
|
|
|
3386
3435
|
s0 = peg$currPos;
|
|
3387
3436
|
s1 = input.substr(peg$currPos, 8);
|
|
3388
|
-
if (s1.toLowerCase() === peg$
|
|
3437
|
+
if (s1.toLowerCase() === peg$c36) {
|
|
3389
3438
|
peg$currPos += 8;
|
|
3390
3439
|
} else {
|
|
3391
3440
|
s1 = peg$FAILED;
|
|
3392
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3441
|
+
if (peg$silentFails === 0) { peg$fail(peg$e43); }
|
|
3393
3442
|
}
|
|
3394
3443
|
if (s1 !== peg$FAILED) {
|
|
3395
3444
|
s2 = peg$currPos;
|
|
@@ -3422,11 +3471,11 @@ function peg$parse(input, options) {
|
|
|
3422
3471
|
|
|
3423
3472
|
s0 = peg$currPos;
|
|
3424
3473
|
s1 = input.substr(peg$currPos, 6);
|
|
3425
|
-
if (s1.toLowerCase() === peg$
|
|
3474
|
+
if (s1.toLowerCase() === peg$c37) {
|
|
3426
3475
|
peg$currPos += 6;
|
|
3427
3476
|
} else {
|
|
3428
3477
|
s1 = peg$FAILED;
|
|
3429
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3478
|
+
if (peg$silentFails === 0) { peg$fail(peg$e44); }
|
|
3430
3479
|
}
|
|
3431
3480
|
if (s1 !== peg$FAILED) {
|
|
3432
3481
|
s2 = peg$currPos;
|
|
@@ -3459,11 +3508,11 @@ function peg$parse(input, options) {
|
|
|
3459
3508
|
|
|
3460
3509
|
s0 = peg$currPos;
|
|
3461
3510
|
s1 = input.substr(peg$currPos, 8);
|
|
3462
|
-
if (s1.toLowerCase() === peg$
|
|
3511
|
+
if (s1.toLowerCase() === peg$c38) {
|
|
3463
3512
|
peg$currPos += 8;
|
|
3464
3513
|
} else {
|
|
3465
3514
|
s1 = peg$FAILED;
|
|
3466
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3515
|
+
if (peg$silentFails === 0) { peg$fail(peg$e45); }
|
|
3467
3516
|
}
|
|
3468
3517
|
if (s1 !== peg$FAILED) {
|
|
3469
3518
|
s2 = peg$currPos;
|
|
@@ -3496,11 +3545,11 @@ function peg$parse(input, options) {
|
|
|
3496
3545
|
|
|
3497
3546
|
s0 = peg$currPos;
|
|
3498
3547
|
s1 = input.substr(peg$currPos, 6);
|
|
3499
|
-
if (s1.toLowerCase() === peg$
|
|
3548
|
+
if (s1.toLowerCase() === peg$c39) {
|
|
3500
3549
|
peg$currPos += 6;
|
|
3501
3550
|
} else {
|
|
3502
3551
|
s1 = peg$FAILED;
|
|
3503
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3552
|
+
if (peg$silentFails === 0) { peg$fail(peg$e46); }
|
|
3504
3553
|
}
|
|
3505
3554
|
if (s1 !== peg$FAILED) {
|
|
3506
3555
|
s2 = peg$currPos;
|
|
@@ -3536,7 +3585,7 @@ function peg$parse(input, options) {
|
|
|
3536
3585
|
peg$currPos++;
|
|
3537
3586
|
} else {
|
|
3538
3587
|
s0 = peg$FAILED;
|
|
3539
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3588
|
+
if (peg$silentFails === 0) { peg$fail(peg$e47); }
|
|
3540
3589
|
}
|
|
3541
3590
|
|
|
3542
3591
|
return s0;
|
|
@@ -3552,7 +3601,7 @@ function peg$parse(input, options) {
|
|
|
3552
3601
|
peg$currPos++;
|
|
3553
3602
|
} else {
|
|
3554
3603
|
s1 = peg$FAILED;
|
|
3555
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3604
|
+
if (peg$silentFails === 0) { peg$fail(peg$e49); }
|
|
3556
3605
|
}
|
|
3557
3606
|
while (s1 !== peg$FAILED) {
|
|
3558
3607
|
s0.push(s1);
|
|
@@ -3561,12 +3610,12 @@ function peg$parse(input, options) {
|
|
|
3561
3610
|
peg$currPos++;
|
|
3562
3611
|
} else {
|
|
3563
3612
|
s1 = peg$FAILED;
|
|
3564
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3613
|
+
if (peg$silentFails === 0) { peg$fail(peg$e49); }
|
|
3565
3614
|
}
|
|
3566
3615
|
}
|
|
3567
3616
|
peg$silentFails--;
|
|
3568
3617
|
s1 = peg$FAILED;
|
|
3569
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3618
|
+
if (peg$silentFails === 0) { peg$fail(peg$e48); }
|
|
3570
3619
|
|
|
3571
3620
|
return s0;
|
|
3572
3621
|
}
|
|
@@ -3581,7 +3630,7 @@ function peg$parse(input, options) {
|
|
|
3581
3630
|
peg$currPos++;
|
|
3582
3631
|
} else {
|
|
3583
3632
|
s1 = peg$FAILED;
|
|
3584
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3633
|
+
if (peg$silentFails === 0) { peg$fail(peg$e49); }
|
|
3585
3634
|
}
|
|
3586
3635
|
if (s1 !== peg$FAILED) {
|
|
3587
3636
|
while (s1 !== peg$FAILED) {
|
|
@@ -3591,7 +3640,7 @@ function peg$parse(input, options) {
|
|
|
3591
3640
|
peg$currPos++;
|
|
3592
3641
|
} else {
|
|
3593
3642
|
s1 = peg$FAILED;
|
|
3594
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3643
|
+
if (peg$silentFails === 0) { peg$fail(peg$e49); }
|
|
3595
3644
|
}
|
|
3596
3645
|
}
|
|
3597
3646
|
} else {
|
|
@@ -3600,7 +3649,7 @@ function peg$parse(input, options) {
|
|
|
3600
3649
|
peg$silentFails--;
|
|
3601
3650
|
if (s0 === peg$FAILED) {
|
|
3602
3651
|
s1 = peg$FAILED;
|
|
3603
|
-
if (peg$silentFails === 0) { peg$fail(peg$
|
|
3652
|
+
if (peg$silentFails === 0) { peg$fail(peg$e50); }
|
|
3604
3653
|
}
|
|
3605
3654
|
|
|
3606
3655
|
return s0;
|