@lightdash/common 2.477.1 → 2.478.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/types/filterGrammar.d.ts +2 -0
- package/dist/cjs/types/filterGrammar.d.ts.map +1 -1
- package/dist/cjs/types/filterGrammar.grammar.d.ts +1 -1
- package/dist/cjs/types/filterGrammar.grammar.d.ts.map +1 -1
- package/dist/cjs/types/filterGrammar.grammar.js +14 -1
- package/dist/cjs/types/filterGrammar.grammar.js.map +1 -1
- package/dist/cjs/types/filterGrammar.js +11 -14
- package/dist/cjs/types/filterGrammar.js.map +1 -1
- package/dist/cjs/types/filterGrammar.parser.d.ts.map +1 -1
- package/dist/cjs/types/filterGrammar.parser.js +493 -164
- package/dist/cjs/types/filterGrammar.parser.js.map +1 -1
- package/dist/cjs/types/filterGrammarConversion.d.ts.map +1 -1
- package/dist/cjs/types/filterGrammarConversion.js +8 -2
- package/dist/cjs/types/filterGrammarConversion.js.map +1 -1
- package/dist/cjs/utils/filters.d.ts.map +1 -1
- package/dist/cjs/utils/filters.js +6 -0
- package/dist/cjs/utils/filters.js.map +1 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/types/filterGrammar.d.ts +2 -0
- package/dist/esm/types/filterGrammar.d.ts.map +1 -1
- package/dist/esm/types/filterGrammar.grammar.d.ts +1 -1
- package/dist/esm/types/filterGrammar.grammar.d.ts.map +1 -1
- package/dist/esm/types/filterGrammar.grammar.js +14 -1
- package/dist/esm/types/filterGrammar.grammar.js.map +1 -1
- package/dist/esm/types/filterGrammar.js +11 -14
- package/dist/esm/types/filterGrammar.js.map +1 -1
- package/dist/esm/types/filterGrammar.parser.d.ts.map +1 -1
- package/dist/esm/types/filterGrammar.parser.js +493 -164
- package/dist/esm/types/filterGrammar.parser.js.map +1 -1
- package/dist/esm/types/filterGrammarConversion.d.ts.map +1 -1
- package/dist/esm/types/filterGrammarConversion.js +8 -2
- package/dist/esm/types/filterGrammarConversion.js.map +1 -1
- package/dist/esm/utils/filters.d.ts.map +1 -1
- package/dist/esm/utils/filters.js +6 -0
- package/dist/esm/utils/filters.js.map +1 -1
- package/dist/types/.tsbuildinfo +1 -1
- package/dist/types/types/filterGrammar.d.ts +2 -0
- package/dist/types/types/filterGrammar.d.ts.map +1 -1
- package/dist/types/types/filterGrammar.grammar.d.ts +1 -1
- package/dist/types/types/filterGrammar.grammar.d.ts.map +1 -1
- package/dist/types/types/filterGrammar.grammar.js +14 -1
- package/dist/types/types/filterGrammar.grammar.js.map +1 -1
- package/dist/types/types/filterGrammar.js +11 -14
- package/dist/types/types/filterGrammar.js.map +1 -1
- package/dist/types/types/filterGrammar.parser.d.ts.map +1 -1
- package/dist/types/types/filterGrammar.parser.js +493 -164
- package/dist/types/types/filterGrammar.parser.js.map +1 -1
- package/dist/types/types/filterGrammarConversion.d.ts.map +1 -1
- package/dist/types/types/filterGrammarConversion.js +8 -2
- package/dist/types/types/filterGrammarConversion.js.map +1 -1
- package/dist/types/utils/filters.d.ts.map +1 -1
- package/dist/types/utils/filters.js +6 -0
- package/dist/types/utils/filters.js.map +1 -1
- package/package.json +1 -1
|
@@ -160,89 +160,97 @@ export const filterGrammarParser /*
|
|
|
160
160
|
values: [value],
|
|
161
161
|
date_interval: interval,
|
|
162
162
|
};
|
|
163
|
-
}, peg$c49 = 'inThePast', peg$c50 = peg$literalExpectation('inThePast', false), peg$c51 = 'inTheNext', peg$c52 = peg$literalExpectation('inTheNext', false), peg$c53 = 'milliseconds', peg$c54 = peg$literalExpectation('milliseconds', false), peg$c55 = 'seconds', peg$c56 = peg$literalExpectation('seconds', false), peg$c57 = 'minutes', peg$c58 = peg$literalExpectation('minutes', false), peg$c59 = 'hours', peg$c60 = peg$literalExpectation('hours', false), peg$c61 = 'days', peg$c62 = peg$literalExpectation('days', false), peg$c63 = 'weeks', peg$c64 = peg$literalExpectation('weeks', false), peg$c65 = 'months', peg$c66 = peg$literalExpectation('months', false), peg$c67 = 'years', peg$c68 = peg$literalExpectation('years', false), peg$c69 = function (operator, interval) {
|
|
163
|
+
}, peg$c49 = 'inThePast', peg$c50 = peg$literalExpectation('inThePast', false), peg$c51 = 'inTheNext', peg$c52 = peg$literalExpectation('inTheNext', false), peg$c53 = 'milliseconds', peg$c54 = peg$literalExpectation('milliseconds', false), peg$c55 = 'seconds', peg$c56 = peg$literalExpectation('seconds', false), peg$c57 = 'minutes', peg$c58 = peg$literalExpectation('minutes', false), peg$c59 = 'hours', peg$c60 = peg$literalExpectation('hours', false), peg$c61 = 'days', peg$c62 = peg$literalExpectation('days', false), peg$c63 = 'weeks', peg$c64 = peg$literalExpectation('weeks', false), peg$c65 = 'months', peg$c66 = peg$literalExpectation('months', false), peg$c67 = 'years', peg$c68 = peg$literalExpectation('years', false), peg$c69 = 'to', peg$c70 = peg$literalExpectation('to', false), peg$c71 = 'date', peg$c72 = peg$literalExpectation('date', false), peg$c73 = 'excluding', peg$c74 = peg$literalExpectation('excluding', false), peg$c75 = 'today', peg$c76 = peg$literalExpectation('today', false), peg$c77 = function (operator, interval, excludeToday) {
|
|
164
164
|
return {
|
|
165
165
|
type: operator,
|
|
166
166
|
values: [1],
|
|
167
167
|
date_interval: interval,
|
|
168
|
+
to_date: true,
|
|
169
|
+
...(excludeToday ? { exclude_today: true } : {}),
|
|
168
170
|
};
|
|
169
|
-
}, peg$
|
|
171
|
+
}, peg$c78 = function (operator, interval) {
|
|
172
|
+
return {
|
|
173
|
+
type: operator,
|
|
174
|
+
values: [1],
|
|
175
|
+
date_interval: interval,
|
|
176
|
+
};
|
|
177
|
+
}, peg$c79 = 'notInTheCurrent', peg$c80 = peg$literalExpectation('notInTheCurrent', false), peg$c81 = 'inTheCurrent', peg$c82 = peg$literalExpectation('inTheCurrent', false), peg$c83 = 'quarters', peg$c84 = peg$literalExpectation('quarters', false), peg$c85 = 'millisecond', peg$c86 = peg$literalExpectation('millisecond', false), peg$c87 = 'second', peg$c88 = peg$literalExpectation('second', false), peg$c89 = 'minute', peg$c90 = peg$literalExpectation('minute', false), peg$c91 = 'hour', peg$c92 = peg$literalExpectation('hour', false), peg$c93 = 'day', peg$c94 = peg$literalExpectation('day', false), peg$c95 = 'week', peg$c96 = peg$literalExpectation('week', false), peg$c97 = 'month', peg$c98 = peg$literalExpectation('month', false), peg$c99 = 'quarter', peg$c100 = peg$literalExpectation('quarter', false), peg$c101 = 'year', peg$c102 = peg$literalExpectation('year', false), peg$c103 = function (singular) {
|
|
170
178
|
return singular + 's';
|
|
171
|
-
}, peg$
|
|
179
|
+
}, peg$c104 = /^[Ee]/, peg$c105 = peg$classExpectation(['E', 'e'], false, false), peg$c106 = /^[+\-]/, peg$c107 = peg$classExpectation(['+', '-'], false, false), peg$c108 = function () {
|
|
172
180
|
return Number(text());
|
|
173
|
-
}, peg$
|
|
181
|
+
}, peg$c109 = function (left, right) {
|
|
174
182
|
return {
|
|
175
183
|
type: ',',
|
|
176
184
|
left: left,
|
|
177
185
|
right: right,
|
|
178
186
|
};
|
|
179
|
-
}, peg$
|
|
187
|
+
}, peg$c110 = function (not, term) {
|
|
180
188
|
term.is = not ? false : true;
|
|
181
189
|
return term;
|
|
182
|
-
}, peg$
|
|
190
|
+
}, peg$c111 = 'EMPTY', peg$c112 = peg$literalExpectation('EMPTY', false), peg$c113 = 'empty', peg$c114 = peg$literalExpectation('empty', false), peg$c115 = function () {
|
|
183
191
|
return {
|
|
184
192
|
type: 'blank',
|
|
185
193
|
};
|
|
186
|
-
}, peg$
|
|
194
|
+
}, peg$c116 = 'NULL', peg$c117 = peg$literalExpectation('NULL', false), peg$c118 = 'null', peg$c119 = peg$literalExpectation('null', false), peg$c120 = function () {
|
|
187
195
|
return {
|
|
188
196
|
type: 'null',
|
|
189
197
|
};
|
|
190
|
-
}, peg$
|
|
198
|
+
}, peg$c121 = function (sequence) {
|
|
191
199
|
return {
|
|
192
200
|
type: 'equals',
|
|
193
201
|
values: [sequence.join('')],
|
|
194
202
|
};
|
|
195
|
-
}, peg$
|
|
203
|
+
}, peg$c122 = function (sequence) {
|
|
196
204
|
return {
|
|
197
205
|
type: 'equals',
|
|
198
206
|
values: [sequence.join('')],
|
|
199
207
|
};
|
|
200
|
-
}, peg$
|
|
208
|
+
}, peg$c123 = function (value) {
|
|
201
209
|
return {
|
|
202
210
|
type: 'include',
|
|
203
211
|
values: [value.join('')],
|
|
204
212
|
};
|
|
205
|
-
}, peg$
|
|
213
|
+
}, peg$c124 = function (value) {
|
|
206
214
|
return {
|
|
207
215
|
type: 'startsWith',
|
|
208
216
|
values: [value.join('')],
|
|
209
217
|
};
|
|
210
|
-
}, peg$
|
|
218
|
+
}, peg$c125 = function (value) {
|
|
211
219
|
return {
|
|
212
220
|
type: 'endsWith',
|
|
213
221
|
values: [value.join('')],
|
|
214
222
|
};
|
|
215
|
-
}, peg$
|
|
223
|
+
}, peg$c126 = '!', peg$c127 = peg$literalExpectation('!', false), peg$c128 = peg$otherExpectation('string'), peg$c129 = function (str) {
|
|
216
224
|
return str;
|
|
217
|
-
}, peg$
|
|
225
|
+
}, peg$c130 = function (str) {
|
|
218
226
|
return str ? str.trim() : str;
|
|
219
|
-
}, peg$
|
|
227
|
+
}, peg$c131 = function (chars) {
|
|
220
228
|
return '"' + chars.join('') + '"';
|
|
221
|
-
}, peg$
|
|
229
|
+
}, peg$c132 = function (chars) {
|
|
222
230
|
return chars.join('');
|
|
223
|
-
}, peg$
|
|
231
|
+
}, peg$c133 = peg$otherExpectation('character'), peg$c134 = function (symbol) {
|
|
224
232
|
return symbol;
|
|
225
|
-
}, peg$
|
|
233
|
+
}, peg$c135 = '"', peg$c136 = peg$literalExpectation('"', false), peg$c137 = '\\', peg$c138 = peg$literalExpectation('\\', false), peg$c139 = '/', peg$c140 = peg$literalExpectation('/', false), peg$c141 = 'b', peg$c142 = peg$literalExpectation('b', false), peg$c143 = function () {
|
|
226
234
|
return '\b';
|
|
227
|
-
}, peg$
|
|
235
|
+
}, peg$c144 = 'f', peg$c145 = peg$literalExpectation('f', false), peg$c146 = function () {
|
|
228
236
|
return '\f';
|
|
229
|
-
}, peg$
|
|
237
|
+
}, peg$c147 = 'n', peg$c148 = peg$literalExpectation('n', false), peg$c149 = function () {
|
|
230
238
|
return '\n';
|
|
231
|
-
}, peg$
|
|
239
|
+
}, peg$c150 = 'r', peg$c151 = peg$literalExpectation('r', false), peg$c152 = function () {
|
|
232
240
|
return '\r';
|
|
233
|
-
}, peg$
|
|
241
|
+
}, peg$c153 = 't', peg$c154 = peg$literalExpectation('t', false), peg$c155 = function () {
|
|
234
242
|
return '\t';
|
|
235
|
-
}, peg$
|
|
243
|
+
}, peg$c156 = 'u', peg$c157 = peg$literalExpectation('u', false), peg$c158 = function (digits) {
|
|
236
244
|
return String.fromCharCode(parseInt(digits, 16));
|
|
237
|
-
}, peg$
|
|
245
|
+
}, peg$c159 = function (sequence) {
|
|
238
246
|
return sequence;
|
|
239
|
-
}, peg$
|
|
247
|
+
}, peg$c160 = function () {
|
|
240
248
|
return ' ';
|
|
241
|
-
}, peg$
|
|
249
|
+
}, peg$c161 = function (symbol) {
|
|
242
250
|
return symbol;
|
|
243
|
-
}, peg$
|
|
251
|
+
}, peg$c162 = '%', peg$c163 = peg$literalExpectation('%', false), peg$c164 = '_', peg$c165 = peg$literalExpectation('_', false), peg$c166 = ',', peg$c167 = peg$literalExpectation(',', false), peg$c168 = ' ', peg$c169 = peg$literalExpectation(' ', false), peg$c170 = '^ ', peg$c171 = peg$literalExpectation('^ ', false), peg$c172 = peg$anyExpectation(), peg$c173 = ' ^ ', peg$c174 = peg$literalExpectation(' ^ ', false), peg$c175 = '^', peg$c176 = peg$literalExpectation('^', false), peg$c177 = '\\"', peg$c178 = peg$literalExpectation('\\"', false), peg$c179 = function (char) {
|
|
244
252
|
return char;
|
|
245
|
-
}, peg$
|
|
253
|
+
}, peg$c180 = /^[^\0-\x1F"\\]/, peg$c181 = peg$classExpectation([['\0', '\x1F'], '"', '\\'], true, false), peg$c182 = /^[0-9a-f]/i, peg$c183 = peg$classExpectation([
|
|
246
254
|
['0', '9'],
|
|
247
255
|
['a', 'f'],
|
|
248
256
|
], false, true), peg$currPos = 0, peg$savedPos = 0, peg$posDetailsCache = [{ line: 1, column: 1 }], peg$maxFailPos = 0, peg$maxFailExpected = [], peg$silentFails = 0, peg$result;
|
|
@@ -1587,7 +1595,7 @@ export const filterGrammarParser /*
|
|
|
1587
1595
|
return s0;
|
|
1588
1596
|
}
|
|
1589
1597
|
function peg$parseCURRENT_DATE_RESTRICTION() {
|
|
1590
|
-
var s0, s1, s2, s3, s4;
|
|
1598
|
+
var s0, s1, s2, s3, s4, s5, s6, s7, s8, s9, s10, s11, s12, s13;
|
|
1591
1599
|
s0 = peg$currPos;
|
|
1592
1600
|
s1 = [];
|
|
1593
1601
|
s2 = peg$parseSPACE_SYMBOL();
|
|
@@ -1610,11 +1618,178 @@ export const filterGrammarParser /*
|
|
|
1610
1618
|
s3 = peg$FAILED;
|
|
1611
1619
|
}
|
|
1612
1620
|
if (s3 !== peg$FAILED) {
|
|
1613
|
-
s4 = peg$
|
|
1621
|
+
s4 = peg$parseCURRENT_PERIOD_INTERVAL();
|
|
1614
1622
|
if (s4 !== peg$FAILED) {
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1623
|
+
s5 = [];
|
|
1624
|
+
s6 = peg$parseSPACE_SYMBOL();
|
|
1625
|
+
if (s6 !== peg$FAILED) {
|
|
1626
|
+
while (s6 !== peg$FAILED) {
|
|
1627
|
+
s5.push(s6);
|
|
1628
|
+
s6 = peg$parseSPACE_SYMBOL();
|
|
1629
|
+
}
|
|
1630
|
+
}
|
|
1631
|
+
else {
|
|
1632
|
+
s5 = peg$FAILED;
|
|
1633
|
+
}
|
|
1634
|
+
if (s5 !== peg$FAILED) {
|
|
1635
|
+
if (input.substr(peg$currPos, 2) === peg$c69) {
|
|
1636
|
+
s6 = peg$c69;
|
|
1637
|
+
peg$currPos += 2;
|
|
1638
|
+
}
|
|
1639
|
+
else {
|
|
1640
|
+
s6 = peg$FAILED;
|
|
1641
|
+
if (peg$silentFails === 0) {
|
|
1642
|
+
peg$fail(peg$c70);
|
|
1643
|
+
}
|
|
1644
|
+
}
|
|
1645
|
+
if (s6 !== peg$FAILED) {
|
|
1646
|
+
s7 = [];
|
|
1647
|
+
s8 = peg$parseSPACE_SYMBOL();
|
|
1648
|
+
if (s8 !== peg$FAILED) {
|
|
1649
|
+
while (s8 !== peg$FAILED) {
|
|
1650
|
+
s7.push(s8);
|
|
1651
|
+
s8 = peg$parseSPACE_SYMBOL();
|
|
1652
|
+
}
|
|
1653
|
+
}
|
|
1654
|
+
else {
|
|
1655
|
+
s7 = peg$FAILED;
|
|
1656
|
+
}
|
|
1657
|
+
if (s7 !== peg$FAILED) {
|
|
1658
|
+
if (input.substr(peg$currPos, 4) ===
|
|
1659
|
+
peg$c71) {
|
|
1660
|
+
s8 = peg$c71;
|
|
1661
|
+
peg$currPos += 4;
|
|
1662
|
+
}
|
|
1663
|
+
else {
|
|
1664
|
+
s8 = peg$FAILED;
|
|
1665
|
+
if (peg$silentFails === 0) {
|
|
1666
|
+
peg$fail(peg$c72);
|
|
1667
|
+
}
|
|
1668
|
+
}
|
|
1669
|
+
if (s8 !== peg$FAILED) {
|
|
1670
|
+
s9 = peg$currPos;
|
|
1671
|
+
s10 = [];
|
|
1672
|
+
s11 = peg$parseSPACE_SYMBOL();
|
|
1673
|
+
if (s11 !== peg$FAILED) {
|
|
1674
|
+
while (s11 !== peg$FAILED) {
|
|
1675
|
+
s10.push(s11);
|
|
1676
|
+
s11 =
|
|
1677
|
+
peg$parseSPACE_SYMBOL();
|
|
1678
|
+
}
|
|
1679
|
+
}
|
|
1680
|
+
else {
|
|
1681
|
+
s10 = peg$FAILED;
|
|
1682
|
+
}
|
|
1683
|
+
if (s10 !== peg$FAILED) {
|
|
1684
|
+
if (input.substr(peg$currPos, 9) === peg$c73) {
|
|
1685
|
+
s11 = peg$c73;
|
|
1686
|
+
peg$currPos += 9;
|
|
1687
|
+
}
|
|
1688
|
+
else {
|
|
1689
|
+
s11 = peg$FAILED;
|
|
1690
|
+
if (peg$silentFails === 0) {
|
|
1691
|
+
peg$fail(peg$c74);
|
|
1692
|
+
}
|
|
1693
|
+
}
|
|
1694
|
+
if (s11 !== peg$FAILED) {
|
|
1695
|
+
s12 = [];
|
|
1696
|
+
s13 =
|
|
1697
|
+
peg$parseSPACE_SYMBOL();
|
|
1698
|
+
if (s13 !== peg$FAILED) {
|
|
1699
|
+
while (s13 !== peg$FAILED) {
|
|
1700
|
+
s12.push(s13);
|
|
1701
|
+
s13 =
|
|
1702
|
+
peg$parseSPACE_SYMBOL();
|
|
1703
|
+
}
|
|
1704
|
+
}
|
|
1705
|
+
else {
|
|
1706
|
+
s12 = peg$FAILED;
|
|
1707
|
+
}
|
|
1708
|
+
if (s12 !== peg$FAILED) {
|
|
1709
|
+
if (input.substr(peg$currPos, 5) === peg$c75) {
|
|
1710
|
+
s13 = peg$c75;
|
|
1711
|
+
peg$currPos += 5;
|
|
1712
|
+
}
|
|
1713
|
+
else {
|
|
1714
|
+
s13 = peg$FAILED;
|
|
1715
|
+
if (peg$silentFails ===
|
|
1716
|
+
0) {
|
|
1717
|
+
peg$fail(peg$c76);
|
|
1718
|
+
}
|
|
1719
|
+
}
|
|
1720
|
+
if (s13 !== peg$FAILED) {
|
|
1721
|
+
s10 = [
|
|
1722
|
+
s10,
|
|
1723
|
+
s11,
|
|
1724
|
+
s12,
|
|
1725
|
+
s13,
|
|
1726
|
+
];
|
|
1727
|
+
s9 = s10;
|
|
1728
|
+
}
|
|
1729
|
+
else {
|
|
1730
|
+
peg$currPos = s9;
|
|
1731
|
+
s9 = peg$FAILED;
|
|
1732
|
+
}
|
|
1733
|
+
}
|
|
1734
|
+
else {
|
|
1735
|
+
peg$currPos = s9;
|
|
1736
|
+
s9 = peg$FAILED;
|
|
1737
|
+
}
|
|
1738
|
+
}
|
|
1739
|
+
else {
|
|
1740
|
+
peg$currPos = s9;
|
|
1741
|
+
s9 = peg$FAILED;
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
else {
|
|
1745
|
+
peg$currPos = s9;
|
|
1746
|
+
s9 = peg$FAILED;
|
|
1747
|
+
}
|
|
1748
|
+
if (s9 === peg$FAILED) {
|
|
1749
|
+
s9 = null;
|
|
1750
|
+
}
|
|
1751
|
+
if (s9 !== peg$FAILED) {
|
|
1752
|
+
s10 = [];
|
|
1753
|
+
s11 = peg$parseSPACE_SYMBOL();
|
|
1754
|
+
while (s11 !== peg$FAILED) {
|
|
1755
|
+
s10.push(s11);
|
|
1756
|
+
s11 =
|
|
1757
|
+
peg$parseSPACE_SYMBOL();
|
|
1758
|
+
}
|
|
1759
|
+
if (s10 !== peg$FAILED) {
|
|
1760
|
+
peg$savedPos = s0;
|
|
1761
|
+
s1 = peg$c77(s2, s4, s9);
|
|
1762
|
+
s0 = s1;
|
|
1763
|
+
}
|
|
1764
|
+
else {
|
|
1765
|
+
peg$currPos = s0;
|
|
1766
|
+
s0 = peg$FAILED;
|
|
1767
|
+
}
|
|
1768
|
+
}
|
|
1769
|
+
else {
|
|
1770
|
+
peg$currPos = s0;
|
|
1771
|
+
s0 = peg$FAILED;
|
|
1772
|
+
}
|
|
1773
|
+
}
|
|
1774
|
+
else {
|
|
1775
|
+
peg$currPos = s0;
|
|
1776
|
+
s0 = peg$FAILED;
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1779
|
+
else {
|
|
1780
|
+
peg$currPos = s0;
|
|
1781
|
+
s0 = peg$FAILED;
|
|
1782
|
+
}
|
|
1783
|
+
}
|
|
1784
|
+
else {
|
|
1785
|
+
peg$currPos = s0;
|
|
1786
|
+
s0 = peg$FAILED;
|
|
1787
|
+
}
|
|
1788
|
+
}
|
|
1789
|
+
else {
|
|
1790
|
+
peg$currPos = s0;
|
|
1791
|
+
s0 = peg$FAILED;
|
|
1792
|
+
}
|
|
1618
1793
|
}
|
|
1619
1794
|
else {
|
|
1620
1795
|
peg$currPos = s0;
|
|
@@ -1635,29 +1810,78 @@ export const filterGrammarParser /*
|
|
|
1635
1810
|
peg$currPos = s0;
|
|
1636
1811
|
s0 = peg$FAILED;
|
|
1637
1812
|
}
|
|
1813
|
+
if (s0 === peg$FAILED) {
|
|
1814
|
+
s0 = peg$currPos;
|
|
1815
|
+
s1 = [];
|
|
1816
|
+
s2 = peg$parseSPACE_SYMBOL();
|
|
1817
|
+
while (s2 !== peg$FAILED) {
|
|
1818
|
+
s1.push(s2);
|
|
1819
|
+
s2 = peg$parseSPACE_SYMBOL();
|
|
1820
|
+
}
|
|
1821
|
+
if (s1 !== peg$FAILED) {
|
|
1822
|
+
s2 = peg$parseCURRENT_DATE_OPERATOR();
|
|
1823
|
+
if (s2 !== peg$FAILED) {
|
|
1824
|
+
s3 = [];
|
|
1825
|
+
s4 = peg$parseSPACE_SYMBOL();
|
|
1826
|
+
if (s4 !== peg$FAILED) {
|
|
1827
|
+
while (s4 !== peg$FAILED) {
|
|
1828
|
+
s3.push(s4);
|
|
1829
|
+
s4 = peg$parseSPACE_SYMBOL();
|
|
1830
|
+
}
|
|
1831
|
+
}
|
|
1832
|
+
else {
|
|
1833
|
+
s3 = peg$FAILED;
|
|
1834
|
+
}
|
|
1835
|
+
if (s3 !== peg$FAILED) {
|
|
1836
|
+
s4 = peg$parseCURRENT_DATE_INTERVAL();
|
|
1837
|
+
if (s4 !== peg$FAILED) {
|
|
1838
|
+
peg$savedPos = s0;
|
|
1839
|
+
s1 = peg$c78(s2, s4);
|
|
1840
|
+
s0 = s1;
|
|
1841
|
+
}
|
|
1842
|
+
else {
|
|
1843
|
+
peg$currPos = s0;
|
|
1844
|
+
s0 = peg$FAILED;
|
|
1845
|
+
}
|
|
1846
|
+
}
|
|
1847
|
+
else {
|
|
1848
|
+
peg$currPos = s0;
|
|
1849
|
+
s0 = peg$FAILED;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1852
|
+
else {
|
|
1853
|
+
peg$currPos = s0;
|
|
1854
|
+
s0 = peg$FAILED;
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
else {
|
|
1858
|
+
peg$currPos = s0;
|
|
1859
|
+
s0 = peg$FAILED;
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1638
1862
|
return s0;
|
|
1639
1863
|
}
|
|
1640
1864
|
function peg$parseCURRENT_DATE_OPERATOR() {
|
|
1641
1865
|
var s0;
|
|
1642
|
-
if (input.substr(peg$currPos, 15) === peg$
|
|
1643
|
-
s0 = peg$
|
|
1866
|
+
if (input.substr(peg$currPos, 15) === peg$c79) {
|
|
1867
|
+
s0 = peg$c79;
|
|
1644
1868
|
peg$currPos += 15;
|
|
1645
1869
|
}
|
|
1646
1870
|
else {
|
|
1647
1871
|
s0 = peg$FAILED;
|
|
1648
1872
|
if (peg$silentFails === 0) {
|
|
1649
|
-
peg$fail(peg$
|
|
1873
|
+
peg$fail(peg$c80);
|
|
1650
1874
|
}
|
|
1651
1875
|
}
|
|
1652
1876
|
if (s0 === peg$FAILED) {
|
|
1653
|
-
if (input.substr(peg$currPos, 12) === peg$
|
|
1654
|
-
s0 = peg$
|
|
1877
|
+
if (input.substr(peg$currPos, 12) === peg$c81) {
|
|
1878
|
+
s0 = peg$c81;
|
|
1655
1879
|
peg$currPos += 12;
|
|
1656
1880
|
}
|
|
1657
1881
|
else {
|
|
1658
1882
|
s0 = peg$FAILED;
|
|
1659
1883
|
if (peg$silentFails === 0) {
|
|
1660
|
-
peg$fail(peg$
|
|
1884
|
+
peg$fail(peg$c82);
|
|
1661
1885
|
}
|
|
1662
1886
|
}
|
|
1663
1887
|
}
|
|
@@ -1743,14 +1967,14 @@ export const filterGrammarParser /*
|
|
|
1743
1967
|
}
|
|
1744
1968
|
if (s0 === peg$FAILED) {
|
|
1745
1969
|
if (input.substr(peg$currPos, 8) ===
|
|
1746
|
-
peg$
|
|
1747
|
-
s0 = peg$
|
|
1970
|
+
peg$c83) {
|
|
1971
|
+
s0 = peg$c83;
|
|
1748
1972
|
peg$currPos += 8;
|
|
1749
1973
|
}
|
|
1750
1974
|
else {
|
|
1751
1975
|
s0 = peg$FAILED;
|
|
1752
1976
|
if (peg$silentFails === 0) {
|
|
1753
|
-
peg$fail(peg$
|
|
1977
|
+
peg$fail(peg$c84);
|
|
1754
1978
|
}
|
|
1755
1979
|
}
|
|
1756
1980
|
if (s0 === peg$FAILED) {
|
|
@@ -1767,58 +1991,58 @@ export const filterGrammarParser /*
|
|
|
1767
1991
|
}
|
|
1768
1992
|
if (s0 === peg$FAILED) {
|
|
1769
1993
|
s0 = peg$currPos;
|
|
1770
|
-
if (input.substr(peg$currPos, 11) === peg$
|
|
1771
|
-
s1 = peg$
|
|
1994
|
+
if (input.substr(peg$currPos, 11) === peg$c85) {
|
|
1995
|
+
s1 = peg$c85;
|
|
1772
1996
|
peg$currPos += 11;
|
|
1773
1997
|
}
|
|
1774
1998
|
else {
|
|
1775
1999
|
s1 = peg$FAILED;
|
|
1776
2000
|
if (peg$silentFails === 0) {
|
|
1777
|
-
peg$fail(peg$
|
|
2001
|
+
peg$fail(peg$c86);
|
|
1778
2002
|
}
|
|
1779
2003
|
}
|
|
1780
2004
|
if (s1 === peg$FAILED) {
|
|
1781
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
1782
|
-
s1 = peg$
|
|
2005
|
+
if (input.substr(peg$currPos, 6) === peg$c87) {
|
|
2006
|
+
s1 = peg$c87;
|
|
1783
2007
|
peg$currPos += 6;
|
|
1784
2008
|
}
|
|
1785
2009
|
else {
|
|
1786
2010
|
s1 = peg$FAILED;
|
|
1787
2011
|
if (peg$silentFails ===
|
|
1788
2012
|
0) {
|
|
1789
|
-
peg$fail(peg$
|
|
2013
|
+
peg$fail(peg$c88);
|
|
1790
2014
|
}
|
|
1791
2015
|
}
|
|
1792
2016
|
if (s1 === peg$FAILED) {
|
|
1793
|
-
if (input.substr(peg$currPos, 6) === peg$
|
|
1794
|
-
s1 = peg$
|
|
2017
|
+
if (input.substr(peg$currPos, 6) === peg$c89) {
|
|
2018
|
+
s1 = peg$c89;
|
|
1795
2019
|
peg$currPos += 6;
|
|
1796
2020
|
}
|
|
1797
2021
|
else {
|
|
1798
2022
|
s1 = peg$FAILED;
|
|
1799
2023
|
if (peg$silentFails ===
|
|
1800
2024
|
0) {
|
|
1801
|
-
peg$fail(peg$
|
|
2025
|
+
peg$fail(peg$c90);
|
|
1802
2026
|
}
|
|
1803
2027
|
}
|
|
1804
2028
|
if (s1 === peg$FAILED) {
|
|
1805
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
1806
|
-
s1 = peg$
|
|
2029
|
+
if (input.substr(peg$currPos, 4) === peg$c91) {
|
|
2030
|
+
s1 = peg$c91;
|
|
1807
2031
|
peg$currPos += 4;
|
|
1808
2032
|
}
|
|
1809
2033
|
else {
|
|
1810
2034
|
s1 = peg$FAILED;
|
|
1811
2035
|
if (peg$silentFails ===
|
|
1812
2036
|
0) {
|
|
1813
|
-
peg$fail(peg$
|
|
2037
|
+
peg$fail(peg$c92);
|
|
1814
2038
|
}
|
|
1815
2039
|
}
|
|
1816
2040
|
if (s1 ===
|
|
1817
2041
|
peg$FAILED) {
|
|
1818
2042
|
if (input.substr(peg$currPos, 3) ===
|
|
1819
|
-
peg$
|
|
2043
|
+
peg$c93) {
|
|
1820
2044
|
s1 =
|
|
1821
|
-
peg$
|
|
2045
|
+
peg$c93;
|
|
1822
2046
|
peg$currPos += 3;
|
|
1823
2047
|
}
|
|
1824
2048
|
else {
|
|
@@ -1826,15 +2050,15 @@ export const filterGrammarParser /*
|
|
|
1826
2050
|
peg$FAILED;
|
|
1827
2051
|
if (peg$silentFails ===
|
|
1828
2052
|
0) {
|
|
1829
|
-
peg$fail(peg$
|
|
2053
|
+
peg$fail(peg$c94);
|
|
1830
2054
|
}
|
|
1831
2055
|
}
|
|
1832
2056
|
if (s1 ===
|
|
1833
2057
|
peg$FAILED) {
|
|
1834
2058
|
if (input.substr(peg$currPos, 4) ===
|
|
1835
|
-
peg$
|
|
2059
|
+
peg$c95) {
|
|
1836
2060
|
s1 =
|
|
1837
|
-
peg$
|
|
2061
|
+
peg$c95;
|
|
1838
2062
|
peg$currPos += 4;
|
|
1839
2063
|
}
|
|
1840
2064
|
else {
|
|
@@ -1842,15 +2066,15 @@ export const filterGrammarParser /*
|
|
|
1842
2066
|
peg$FAILED;
|
|
1843
2067
|
if (peg$silentFails ===
|
|
1844
2068
|
0) {
|
|
1845
|
-
peg$fail(peg$
|
|
2069
|
+
peg$fail(peg$c96);
|
|
1846
2070
|
}
|
|
1847
2071
|
}
|
|
1848
2072
|
if (s1 ===
|
|
1849
2073
|
peg$FAILED) {
|
|
1850
2074
|
if (input.substr(peg$currPos, 5) ===
|
|
1851
|
-
peg$
|
|
2075
|
+
peg$c97) {
|
|
1852
2076
|
s1 =
|
|
1853
|
-
peg$
|
|
2077
|
+
peg$c97;
|
|
1854
2078
|
peg$currPos += 5;
|
|
1855
2079
|
}
|
|
1856
2080
|
else {
|
|
@@ -1858,15 +2082,15 @@ export const filterGrammarParser /*
|
|
|
1858
2082
|
peg$FAILED;
|
|
1859
2083
|
if (peg$silentFails ===
|
|
1860
2084
|
0) {
|
|
1861
|
-
peg$fail(peg$
|
|
2085
|
+
peg$fail(peg$c98);
|
|
1862
2086
|
}
|
|
1863
2087
|
}
|
|
1864
2088
|
if (s1 ===
|
|
1865
2089
|
peg$FAILED) {
|
|
1866
2090
|
if (input.substr(peg$currPos, 7) ===
|
|
1867
|
-
peg$
|
|
2091
|
+
peg$c99) {
|
|
1868
2092
|
s1 =
|
|
1869
|
-
peg$
|
|
2093
|
+
peg$c99;
|
|
1870
2094
|
peg$currPos += 7;
|
|
1871
2095
|
}
|
|
1872
2096
|
else {
|
|
@@ -1874,15 +2098,15 @@ export const filterGrammarParser /*
|
|
|
1874
2098
|
peg$FAILED;
|
|
1875
2099
|
if (peg$silentFails ===
|
|
1876
2100
|
0) {
|
|
1877
|
-
peg$fail(peg$
|
|
2101
|
+
peg$fail(peg$c100);
|
|
1878
2102
|
}
|
|
1879
2103
|
}
|
|
1880
2104
|
if (s1 ===
|
|
1881
2105
|
peg$FAILED) {
|
|
1882
2106
|
if (input.substr(peg$currPos, 4) ===
|
|
1883
|
-
peg$
|
|
2107
|
+
peg$c101) {
|
|
1884
2108
|
s1 =
|
|
1885
|
-
peg$
|
|
2109
|
+
peg$c101;
|
|
1886
2110
|
peg$currPos += 4;
|
|
1887
2111
|
}
|
|
1888
2112
|
else {
|
|
@@ -1890,7 +2114,7 @@ export const filterGrammarParser /*
|
|
|
1890
2114
|
peg$FAILED;
|
|
1891
2115
|
if (peg$silentFails ===
|
|
1892
2116
|
0) {
|
|
1893
|
-
peg$fail(peg$
|
|
2117
|
+
peg$fail(peg$c102);
|
|
1894
2118
|
}
|
|
1895
2119
|
}
|
|
1896
2120
|
}
|
|
@@ -1903,7 +2127,7 @@ export const filterGrammarParser /*
|
|
|
1903
2127
|
}
|
|
1904
2128
|
if (s1 !== peg$FAILED) {
|
|
1905
2129
|
peg$savedPos = s0;
|
|
1906
|
-
s1 = peg$
|
|
2130
|
+
s1 = peg$c103(s1);
|
|
1907
2131
|
}
|
|
1908
2132
|
s0 = s1;
|
|
1909
2133
|
}
|
|
@@ -1917,6 +2141,111 @@ export const filterGrammarParser /*
|
|
|
1917
2141
|
}
|
|
1918
2142
|
return s0;
|
|
1919
2143
|
}
|
|
2144
|
+
function peg$parseCURRENT_PERIOD_INTERVAL() {
|
|
2145
|
+
var s0, s1;
|
|
2146
|
+
if (input.substr(peg$currPos, 5) === peg$c63) {
|
|
2147
|
+
s0 = peg$c63;
|
|
2148
|
+
peg$currPos += 5;
|
|
2149
|
+
}
|
|
2150
|
+
else {
|
|
2151
|
+
s0 = peg$FAILED;
|
|
2152
|
+
if (peg$silentFails === 0) {
|
|
2153
|
+
peg$fail(peg$c64);
|
|
2154
|
+
}
|
|
2155
|
+
}
|
|
2156
|
+
if (s0 === peg$FAILED) {
|
|
2157
|
+
if (input.substr(peg$currPos, 6) === peg$c65) {
|
|
2158
|
+
s0 = peg$c65;
|
|
2159
|
+
peg$currPos += 6;
|
|
2160
|
+
}
|
|
2161
|
+
else {
|
|
2162
|
+
s0 = peg$FAILED;
|
|
2163
|
+
if (peg$silentFails === 0) {
|
|
2164
|
+
peg$fail(peg$c66);
|
|
2165
|
+
}
|
|
2166
|
+
}
|
|
2167
|
+
if (s0 === peg$FAILED) {
|
|
2168
|
+
if (input.substr(peg$currPos, 8) === peg$c83) {
|
|
2169
|
+
s0 = peg$c83;
|
|
2170
|
+
peg$currPos += 8;
|
|
2171
|
+
}
|
|
2172
|
+
else {
|
|
2173
|
+
s0 = peg$FAILED;
|
|
2174
|
+
if (peg$silentFails === 0) {
|
|
2175
|
+
peg$fail(peg$c84);
|
|
2176
|
+
}
|
|
2177
|
+
}
|
|
2178
|
+
if (s0 === peg$FAILED) {
|
|
2179
|
+
if (input.substr(peg$currPos, 5) === peg$c67) {
|
|
2180
|
+
s0 = peg$c67;
|
|
2181
|
+
peg$currPos += 5;
|
|
2182
|
+
}
|
|
2183
|
+
else {
|
|
2184
|
+
s0 = peg$FAILED;
|
|
2185
|
+
if (peg$silentFails === 0) {
|
|
2186
|
+
peg$fail(peg$c68);
|
|
2187
|
+
}
|
|
2188
|
+
}
|
|
2189
|
+
if (s0 === peg$FAILED) {
|
|
2190
|
+
s0 = peg$currPos;
|
|
2191
|
+
if (input.substr(peg$currPos, 4) === peg$c95) {
|
|
2192
|
+
s1 = peg$c95;
|
|
2193
|
+
peg$currPos += 4;
|
|
2194
|
+
}
|
|
2195
|
+
else {
|
|
2196
|
+
s1 = peg$FAILED;
|
|
2197
|
+
if (peg$silentFails === 0) {
|
|
2198
|
+
peg$fail(peg$c96);
|
|
2199
|
+
}
|
|
2200
|
+
}
|
|
2201
|
+
if (s1 === peg$FAILED) {
|
|
2202
|
+
if (input.substr(peg$currPos, 5) === peg$c97) {
|
|
2203
|
+
s1 = peg$c97;
|
|
2204
|
+
peg$currPos += 5;
|
|
2205
|
+
}
|
|
2206
|
+
else {
|
|
2207
|
+
s1 = peg$FAILED;
|
|
2208
|
+
if (peg$silentFails === 0) {
|
|
2209
|
+
peg$fail(peg$c98);
|
|
2210
|
+
}
|
|
2211
|
+
}
|
|
2212
|
+
if (s1 === peg$FAILED) {
|
|
2213
|
+
if (input.substr(peg$currPos, 7) === peg$c99) {
|
|
2214
|
+
s1 = peg$c99;
|
|
2215
|
+
peg$currPos += 7;
|
|
2216
|
+
}
|
|
2217
|
+
else {
|
|
2218
|
+
s1 = peg$FAILED;
|
|
2219
|
+
if (peg$silentFails === 0) {
|
|
2220
|
+
peg$fail(peg$c100);
|
|
2221
|
+
}
|
|
2222
|
+
}
|
|
2223
|
+
if (s1 === peg$FAILED) {
|
|
2224
|
+
if (input.substr(peg$currPos, 4) ===
|
|
2225
|
+
peg$c101) {
|
|
2226
|
+
s1 = peg$c101;
|
|
2227
|
+
peg$currPos += 4;
|
|
2228
|
+
}
|
|
2229
|
+
else {
|
|
2230
|
+
s1 = peg$FAILED;
|
|
2231
|
+
if (peg$silentFails === 0) {
|
|
2232
|
+
peg$fail(peg$c102);
|
|
2233
|
+
}
|
|
2234
|
+
}
|
|
2235
|
+
}
|
|
2236
|
+
}
|
|
2237
|
+
}
|
|
2238
|
+
if (s1 !== peg$FAILED) {
|
|
2239
|
+
peg$savedPos = s0;
|
|
2240
|
+
s1 = peg$c103(s1);
|
|
2241
|
+
}
|
|
2242
|
+
s0 = s1;
|
|
2243
|
+
}
|
|
2244
|
+
}
|
|
2245
|
+
}
|
|
2246
|
+
}
|
|
2247
|
+
return s0;
|
|
2248
|
+
}
|
|
1920
2249
|
function peg$parseNUMBER() {
|
|
1921
2250
|
var s0, s1, s2, s3, s4, s5, s6;
|
|
1922
2251
|
s0 = peg$currPos;
|
|
@@ -1937,25 +2266,25 @@ export const filterGrammarParser /*
|
|
|
1937
2266
|
s2 = peg$parseFLOAT();
|
|
1938
2267
|
if (s2 !== peg$FAILED) {
|
|
1939
2268
|
s3 = peg$currPos;
|
|
1940
|
-
if (peg$
|
|
2269
|
+
if (peg$c104.test(input.charAt(peg$currPos))) {
|
|
1941
2270
|
s4 = input.charAt(peg$currPos);
|
|
1942
2271
|
peg$currPos++;
|
|
1943
2272
|
}
|
|
1944
2273
|
else {
|
|
1945
2274
|
s4 = peg$FAILED;
|
|
1946
2275
|
if (peg$silentFails === 0) {
|
|
1947
|
-
peg$fail(peg$
|
|
2276
|
+
peg$fail(peg$c105);
|
|
1948
2277
|
}
|
|
1949
2278
|
}
|
|
1950
2279
|
if (s4 !== peg$FAILED) {
|
|
1951
|
-
if (peg$
|
|
2280
|
+
if (peg$c106.test(input.charAt(peg$currPos))) {
|
|
1952
2281
|
s5 = input.charAt(peg$currPos);
|
|
1953
2282
|
peg$currPos++;
|
|
1954
2283
|
}
|
|
1955
2284
|
else {
|
|
1956
2285
|
s5 = peg$FAILED;
|
|
1957
2286
|
if (peg$silentFails === 0) {
|
|
1958
|
-
peg$fail(peg$
|
|
2287
|
+
peg$fail(peg$c107);
|
|
1959
2288
|
}
|
|
1960
2289
|
}
|
|
1961
2290
|
if (s5 === peg$FAILED) {
|
|
@@ -1986,7 +2315,7 @@ export const filterGrammarParser /*
|
|
|
1986
2315
|
}
|
|
1987
2316
|
if (s3 !== peg$FAILED) {
|
|
1988
2317
|
peg$savedPos = s0;
|
|
1989
|
-
s1 = peg$
|
|
2318
|
+
s1 = peg$c108();
|
|
1990
2319
|
s0 = s1;
|
|
1991
2320
|
}
|
|
1992
2321
|
else {
|
|
@@ -2091,7 +2420,7 @@ export const filterGrammarParser /*
|
|
|
2091
2420
|
s3 = peg$parseEXPRESSION();
|
|
2092
2421
|
if (s3 !== peg$FAILED) {
|
|
2093
2422
|
peg$savedPos = s0;
|
|
2094
|
-
s1 = peg$
|
|
2423
|
+
s1 = peg$c109(s1, s3);
|
|
2095
2424
|
s0 = s1;
|
|
2096
2425
|
}
|
|
2097
2426
|
else {
|
|
@@ -2127,7 +2456,7 @@ export const filterGrammarParser /*
|
|
|
2127
2456
|
}
|
|
2128
2457
|
if (s2 !== peg$FAILED) {
|
|
2129
2458
|
peg$savedPos = s0;
|
|
2130
|
-
s1 = peg$
|
|
2459
|
+
s1 = peg$c110(s1, s2);
|
|
2131
2460
|
s0 = s1;
|
|
2132
2461
|
}
|
|
2133
2462
|
else {
|
|
@@ -2144,60 +2473,60 @@ export const filterGrammarParser /*
|
|
|
2144
2473
|
function peg$parseKEYWORDS() {
|
|
2145
2474
|
var s0, s1;
|
|
2146
2475
|
s0 = peg$currPos;
|
|
2147
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
2148
|
-
s1 = peg$
|
|
2476
|
+
if (input.substr(peg$currPos, 5) === peg$c111) {
|
|
2477
|
+
s1 = peg$c111;
|
|
2149
2478
|
peg$currPos += 5;
|
|
2150
2479
|
}
|
|
2151
2480
|
else {
|
|
2152
2481
|
s1 = peg$FAILED;
|
|
2153
2482
|
if (peg$silentFails === 0) {
|
|
2154
|
-
peg$fail(peg$
|
|
2483
|
+
peg$fail(peg$c112);
|
|
2155
2484
|
}
|
|
2156
2485
|
}
|
|
2157
2486
|
if (s1 === peg$FAILED) {
|
|
2158
|
-
if (input.substr(peg$currPos, 5) === peg$
|
|
2159
|
-
s1 = peg$
|
|
2487
|
+
if (input.substr(peg$currPos, 5) === peg$c113) {
|
|
2488
|
+
s1 = peg$c113;
|
|
2160
2489
|
peg$currPos += 5;
|
|
2161
2490
|
}
|
|
2162
2491
|
else {
|
|
2163
2492
|
s1 = peg$FAILED;
|
|
2164
2493
|
if (peg$silentFails === 0) {
|
|
2165
|
-
peg$fail(peg$
|
|
2494
|
+
peg$fail(peg$c114);
|
|
2166
2495
|
}
|
|
2167
2496
|
}
|
|
2168
2497
|
}
|
|
2169
2498
|
if (s1 !== peg$FAILED) {
|
|
2170
2499
|
peg$savedPos = s0;
|
|
2171
|
-
s1 = peg$
|
|
2500
|
+
s1 = peg$c115();
|
|
2172
2501
|
}
|
|
2173
2502
|
s0 = s1;
|
|
2174
2503
|
if (s0 === peg$FAILED) {
|
|
2175
2504
|
s0 = peg$currPos;
|
|
2176
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
2177
|
-
s1 = peg$
|
|
2505
|
+
if (input.substr(peg$currPos, 4) === peg$c116) {
|
|
2506
|
+
s1 = peg$c116;
|
|
2178
2507
|
peg$currPos += 4;
|
|
2179
2508
|
}
|
|
2180
2509
|
else {
|
|
2181
2510
|
s1 = peg$FAILED;
|
|
2182
2511
|
if (peg$silentFails === 0) {
|
|
2183
|
-
peg$fail(peg$
|
|
2512
|
+
peg$fail(peg$c117);
|
|
2184
2513
|
}
|
|
2185
2514
|
}
|
|
2186
2515
|
if (s1 === peg$FAILED) {
|
|
2187
|
-
if (input.substr(peg$currPos, 4) === peg$
|
|
2188
|
-
s1 = peg$
|
|
2516
|
+
if (input.substr(peg$currPos, 4) === peg$c118) {
|
|
2517
|
+
s1 = peg$c118;
|
|
2189
2518
|
peg$currPos += 4;
|
|
2190
2519
|
}
|
|
2191
2520
|
else {
|
|
2192
2521
|
s1 = peg$FAILED;
|
|
2193
2522
|
if (peg$silentFails === 0) {
|
|
2194
|
-
peg$fail(peg$
|
|
2523
|
+
peg$fail(peg$c119);
|
|
2195
2524
|
}
|
|
2196
2525
|
}
|
|
2197
2526
|
}
|
|
2198
2527
|
if (s1 !== peg$FAILED) {
|
|
2199
2528
|
peg$savedPos = s0;
|
|
2200
|
-
s1 = peg$
|
|
2529
|
+
s1 = peg$c120();
|
|
2201
2530
|
}
|
|
2202
2531
|
s0 = s1;
|
|
2203
2532
|
}
|
|
@@ -2241,7 +2570,7 @@ export const filterGrammarParser /*
|
|
|
2241
2570
|
s3 = peg$parsequotation_mark();
|
|
2242
2571
|
if (s3 !== peg$FAILED) {
|
|
2243
2572
|
peg$savedPos = s0;
|
|
2244
|
-
s1 = peg$
|
|
2573
|
+
s1 = peg$c121(s2);
|
|
2245
2574
|
s0 = s1;
|
|
2246
2575
|
}
|
|
2247
2576
|
else {
|
|
@@ -2291,7 +2620,7 @@ export const filterGrammarParser /*
|
|
|
2291
2620
|
}
|
|
2292
2621
|
if (s1 !== peg$FAILED) {
|
|
2293
2622
|
peg$savedPos = s0;
|
|
2294
|
-
s1 = peg$
|
|
2623
|
+
s1 = peg$c122(s1);
|
|
2295
2624
|
}
|
|
2296
2625
|
s0 = s1;
|
|
2297
2626
|
}
|
|
@@ -2352,7 +2681,7 @@ export const filterGrammarParser /*
|
|
|
2352
2681
|
}
|
|
2353
2682
|
if (s4 !== peg$FAILED) {
|
|
2354
2683
|
peg$savedPos = s0;
|
|
2355
|
-
s1 = peg$
|
|
2684
|
+
s1 = peg$c123(s2);
|
|
2356
2685
|
s0 = s1;
|
|
2357
2686
|
}
|
|
2358
2687
|
else {
|
|
@@ -2418,7 +2747,7 @@ export const filterGrammarParser /*
|
|
|
2418
2747
|
}
|
|
2419
2748
|
if (s3 !== peg$FAILED) {
|
|
2420
2749
|
peg$savedPos = s0;
|
|
2421
|
-
s1 = peg$
|
|
2750
|
+
s1 = peg$c124(s1);
|
|
2422
2751
|
s0 = s1;
|
|
2423
2752
|
}
|
|
2424
2753
|
else {
|
|
@@ -2473,7 +2802,7 @@ export const filterGrammarParser /*
|
|
|
2473
2802
|
}
|
|
2474
2803
|
if (s3 !== peg$FAILED) {
|
|
2475
2804
|
peg$savedPos = s0;
|
|
2476
|
-
s1 = peg$
|
|
2805
|
+
s1 = peg$c125(s2);
|
|
2477
2806
|
s0 = s1;
|
|
2478
2807
|
}
|
|
2479
2808
|
else {
|
|
@@ -2495,13 +2824,13 @@ export const filterGrammarParser /*
|
|
|
2495
2824
|
function peg$parseNOT() {
|
|
2496
2825
|
var s0;
|
|
2497
2826
|
if (input.charCodeAt(peg$currPos) === 33) {
|
|
2498
|
-
s0 = peg$
|
|
2827
|
+
s0 = peg$c126;
|
|
2499
2828
|
peg$currPos++;
|
|
2500
2829
|
}
|
|
2501
2830
|
else {
|
|
2502
2831
|
s0 = peg$FAILED;
|
|
2503
2832
|
if (peg$silentFails === 0) {
|
|
2504
|
-
peg$fail(peg$
|
|
2833
|
+
peg$fail(peg$c127);
|
|
2505
2834
|
}
|
|
2506
2835
|
}
|
|
2507
2836
|
return s0;
|
|
@@ -2513,14 +2842,14 @@ export const filterGrammarParser /*
|
|
|
2513
2842
|
s1 = peg$parsechar_sequence();
|
|
2514
2843
|
if (s1 !== peg$FAILED) {
|
|
2515
2844
|
peg$savedPos = s0;
|
|
2516
|
-
s1 = peg$
|
|
2845
|
+
s1 = peg$c129(s1);
|
|
2517
2846
|
}
|
|
2518
2847
|
s0 = s1;
|
|
2519
2848
|
peg$silentFails--;
|
|
2520
2849
|
if (s0 === peg$FAILED) {
|
|
2521
2850
|
s1 = peg$FAILED;
|
|
2522
2851
|
if (peg$silentFails === 0) {
|
|
2523
|
-
peg$fail(peg$
|
|
2852
|
+
peg$fail(peg$c128);
|
|
2524
2853
|
}
|
|
2525
2854
|
}
|
|
2526
2855
|
return s0;
|
|
@@ -2532,14 +2861,14 @@ export const filterGrammarParser /*
|
|
|
2532
2861
|
s1 = peg$parsechar_sequence();
|
|
2533
2862
|
if (s1 !== peg$FAILED) {
|
|
2534
2863
|
peg$savedPos = s0;
|
|
2535
|
-
s1 = peg$
|
|
2864
|
+
s1 = peg$c130(s1);
|
|
2536
2865
|
}
|
|
2537
2866
|
s0 = s1;
|
|
2538
2867
|
peg$silentFails--;
|
|
2539
2868
|
if (s0 === peg$FAILED) {
|
|
2540
2869
|
s1 = peg$FAILED;
|
|
2541
2870
|
if (peg$silentFails === 0) {
|
|
2542
|
-
peg$fail(peg$
|
|
2871
|
+
peg$fail(peg$c128);
|
|
2543
2872
|
}
|
|
2544
2873
|
}
|
|
2545
2874
|
return s0;
|
|
@@ -2566,7 +2895,7 @@ export const filterGrammarParser /*
|
|
|
2566
2895
|
s3 = peg$parsequotation_mark();
|
|
2567
2896
|
if (s3 !== peg$FAILED) {
|
|
2568
2897
|
peg$savedPos = s0;
|
|
2569
|
-
s1 = peg$
|
|
2898
|
+
s1 = peg$c131(s2);
|
|
2570
2899
|
s0 = s1;
|
|
2571
2900
|
}
|
|
2572
2901
|
else {
|
|
@@ -2598,7 +2927,7 @@ export const filterGrammarParser /*
|
|
|
2598
2927
|
}
|
|
2599
2928
|
if (s1 !== peg$FAILED) {
|
|
2600
2929
|
peg$savedPos = s0;
|
|
2601
|
-
s1 = peg$
|
|
2930
|
+
s1 = peg$c132(s1);
|
|
2602
2931
|
}
|
|
2603
2932
|
s0 = s1;
|
|
2604
2933
|
}
|
|
@@ -2606,7 +2935,7 @@ export const filterGrammarParser /*
|
|
|
2606
2935
|
if (s0 === peg$FAILED) {
|
|
2607
2936
|
s1 = peg$FAILED;
|
|
2608
2937
|
if (peg$silentFails === 0) {
|
|
2609
|
-
peg$fail(peg$
|
|
2938
|
+
peg$fail(peg$c128);
|
|
2610
2939
|
}
|
|
2611
2940
|
}
|
|
2612
2941
|
return s0;
|
|
@@ -2622,7 +2951,7 @@ export const filterGrammarParser /*
|
|
|
2622
2951
|
s2 = peg$parseSYMBOLS();
|
|
2623
2952
|
if (s2 !== peg$FAILED) {
|
|
2624
2953
|
peg$savedPos = s0;
|
|
2625
|
-
s1 = peg$
|
|
2954
|
+
s1 = peg$c134(s2);
|
|
2626
2955
|
s0 = s1;
|
|
2627
2956
|
}
|
|
2628
2957
|
else {
|
|
@@ -2639,135 +2968,135 @@ export const filterGrammarParser /*
|
|
|
2639
2968
|
s1 = peg$parseescape();
|
|
2640
2969
|
if (s1 !== peg$FAILED) {
|
|
2641
2970
|
if (input.charCodeAt(peg$currPos) === 34) {
|
|
2642
|
-
s2 = peg$
|
|
2971
|
+
s2 = peg$c135;
|
|
2643
2972
|
peg$currPos++;
|
|
2644
2973
|
}
|
|
2645
2974
|
else {
|
|
2646
2975
|
s2 = peg$FAILED;
|
|
2647
2976
|
if (peg$silentFails === 0) {
|
|
2648
|
-
peg$fail(peg$
|
|
2977
|
+
peg$fail(peg$c136);
|
|
2649
2978
|
}
|
|
2650
2979
|
}
|
|
2651
2980
|
if (s2 === peg$FAILED) {
|
|
2652
2981
|
if (input.charCodeAt(peg$currPos) === 92) {
|
|
2653
|
-
s2 = peg$
|
|
2982
|
+
s2 = peg$c137;
|
|
2654
2983
|
peg$currPos++;
|
|
2655
2984
|
}
|
|
2656
2985
|
else {
|
|
2657
2986
|
s2 = peg$FAILED;
|
|
2658
2987
|
if (peg$silentFails === 0) {
|
|
2659
|
-
peg$fail(peg$
|
|
2988
|
+
peg$fail(peg$c138);
|
|
2660
2989
|
}
|
|
2661
2990
|
}
|
|
2662
2991
|
if (s2 === peg$FAILED) {
|
|
2663
2992
|
if (input.charCodeAt(peg$currPos) === 47) {
|
|
2664
|
-
s2 = peg$
|
|
2993
|
+
s2 = peg$c139;
|
|
2665
2994
|
peg$currPos++;
|
|
2666
2995
|
}
|
|
2667
2996
|
else {
|
|
2668
2997
|
s2 = peg$FAILED;
|
|
2669
2998
|
if (peg$silentFails === 0) {
|
|
2670
|
-
peg$fail(peg$
|
|
2999
|
+
peg$fail(peg$c140);
|
|
2671
3000
|
}
|
|
2672
3001
|
}
|
|
2673
3002
|
if (s2 === peg$FAILED) {
|
|
2674
3003
|
s2 = peg$currPos;
|
|
2675
3004
|
if (input.charCodeAt(peg$currPos) === 98) {
|
|
2676
|
-
s3 = peg$
|
|
3005
|
+
s3 = peg$c141;
|
|
2677
3006
|
peg$currPos++;
|
|
2678
3007
|
}
|
|
2679
3008
|
else {
|
|
2680
3009
|
s3 = peg$FAILED;
|
|
2681
3010
|
if (peg$silentFails === 0) {
|
|
2682
|
-
peg$fail(peg$
|
|
3011
|
+
peg$fail(peg$c142);
|
|
2683
3012
|
}
|
|
2684
3013
|
}
|
|
2685
3014
|
if (s3 !== peg$FAILED) {
|
|
2686
3015
|
peg$savedPos = s2;
|
|
2687
|
-
s3 = peg$
|
|
3016
|
+
s3 = peg$c143();
|
|
2688
3017
|
}
|
|
2689
3018
|
s2 = s3;
|
|
2690
3019
|
if (s2 === peg$FAILED) {
|
|
2691
3020
|
s2 = peg$currPos;
|
|
2692
3021
|
if (input.charCodeAt(peg$currPos) ===
|
|
2693
3022
|
102) {
|
|
2694
|
-
s3 = peg$
|
|
3023
|
+
s3 = peg$c144;
|
|
2695
3024
|
peg$currPos++;
|
|
2696
3025
|
}
|
|
2697
3026
|
else {
|
|
2698
3027
|
s3 = peg$FAILED;
|
|
2699
3028
|
if (peg$silentFails === 0) {
|
|
2700
|
-
peg$fail(peg$
|
|
3029
|
+
peg$fail(peg$c145);
|
|
2701
3030
|
}
|
|
2702
3031
|
}
|
|
2703
3032
|
if (s3 !== peg$FAILED) {
|
|
2704
3033
|
peg$savedPos = s2;
|
|
2705
|
-
s3 = peg$
|
|
3034
|
+
s3 = peg$c146();
|
|
2706
3035
|
}
|
|
2707
3036
|
s2 = s3;
|
|
2708
3037
|
if (s2 === peg$FAILED) {
|
|
2709
3038
|
s2 = peg$currPos;
|
|
2710
3039
|
if (input.charCodeAt(peg$currPos) === 110) {
|
|
2711
|
-
s3 = peg$
|
|
3040
|
+
s3 = peg$c147;
|
|
2712
3041
|
peg$currPos++;
|
|
2713
3042
|
}
|
|
2714
3043
|
else {
|
|
2715
3044
|
s3 = peg$FAILED;
|
|
2716
3045
|
if (peg$silentFails === 0) {
|
|
2717
|
-
peg$fail(peg$
|
|
3046
|
+
peg$fail(peg$c148);
|
|
2718
3047
|
}
|
|
2719
3048
|
}
|
|
2720
3049
|
if (s3 !== peg$FAILED) {
|
|
2721
3050
|
peg$savedPos = s2;
|
|
2722
|
-
s3 = peg$
|
|
3051
|
+
s3 = peg$c149();
|
|
2723
3052
|
}
|
|
2724
3053
|
s2 = s3;
|
|
2725
3054
|
if (s2 === peg$FAILED) {
|
|
2726
3055
|
s2 = peg$currPos;
|
|
2727
3056
|
if (input.charCodeAt(peg$currPos) === 114) {
|
|
2728
|
-
s3 = peg$
|
|
3057
|
+
s3 = peg$c150;
|
|
2729
3058
|
peg$currPos++;
|
|
2730
3059
|
}
|
|
2731
3060
|
else {
|
|
2732
3061
|
s3 = peg$FAILED;
|
|
2733
3062
|
if (peg$silentFails === 0) {
|
|
2734
|
-
peg$fail(peg$
|
|
3063
|
+
peg$fail(peg$c151);
|
|
2735
3064
|
}
|
|
2736
3065
|
}
|
|
2737
3066
|
if (s3 !== peg$FAILED) {
|
|
2738
3067
|
peg$savedPos = s2;
|
|
2739
|
-
s3 = peg$
|
|
3068
|
+
s3 = peg$c152();
|
|
2740
3069
|
}
|
|
2741
3070
|
s2 = s3;
|
|
2742
3071
|
if (s2 === peg$FAILED) {
|
|
2743
3072
|
s2 = peg$currPos;
|
|
2744
3073
|
if (input.charCodeAt(peg$currPos) === 116) {
|
|
2745
|
-
s3 = peg$
|
|
3074
|
+
s3 = peg$c153;
|
|
2746
3075
|
peg$currPos++;
|
|
2747
3076
|
}
|
|
2748
3077
|
else {
|
|
2749
3078
|
s3 = peg$FAILED;
|
|
2750
3079
|
if (peg$silentFails ===
|
|
2751
3080
|
0) {
|
|
2752
|
-
peg$fail(peg$
|
|
3081
|
+
peg$fail(peg$c154);
|
|
2753
3082
|
}
|
|
2754
3083
|
}
|
|
2755
3084
|
if (s3 !== peg$FAILED) {
|
|
2756
3085
|
peg$savedPos = s2;
|
|
2757
|
-
s3 = peg$
|
|
3086
|
+
s3 = peg$c155();
|
|
2758
3087
|
}
|
|
2759
3088
|
s2 = s3;
|
|
2760
3089
|
if (s2 === peg$FAILED) {
|
|
2761
3090
|
s2 = peg$currPos;
|
|
2762
3091
|
if (input.charCodeAt(peg$currPos) === 117) {
|
|
2763
|
-
s3 = peg$
|
|
3092
|
+
s3 = peg$c156;
|
|
2764
3093
|
peg$currPos++;
|
|
2765
3094
|
}
|
|
2766
3095
|
else {
|
|
2767
3096
|
s3 = peg$FAILED;
|
|
2768
3097
|
if (peg$silentFails ===
|
|
2769
3098
|
0) {
|
|
2770
|
-
peg$fail(peg$
|
|
3099
|
+
peg$fail(peg$c157);
|
|
2771
3100
|
}
|
|
2772
3101
|
}
|
|
2773
3102
|
if (s3 !== peg$FAILED) {
|
|
@@ -2838,7 +3167,7 @@ export const filterGrammarParser /*
|
|
|
2838
3167
|
peg$savedPos =
|
|
2839
3168
|
s2;
|
|
2840
3169
|
s3 =
|
|
2841
|
-
peg$
|
|
3170
|
+
peg$c158(s4);
|
|
2842
3171
|
s2 = s3;
|
|
2843
3172
|
}
|
|
2844
3173
|
else {
|
|
@@ -2861,7 +3190,7 @@ export const filterGrammarParser /*
|
|
|
2861
3190
|
}
|
|
2862
3191
|
if (s2 !== peg$FAILED) {
|
|
2863
3192
|
peg$savedPos = s0;
|
|
2864
|
-
s1 = peg$
|
|
3193
|
+
s1 = peg$c159(s2);
|
|
2865
3194
|
s0 = s1;
|
|
2866
3195
|
}
|
|
2867
3196
|
else {
|
|
@@ -2885,7 +3214,7 @@ export const filterGrammarParser /*
|
|
|
2885
3214
|
if (s0 === peg$FAILED) {
|
|
2886
3215
|
s1 = peg$FAILED;
|
|
2887
3216
|
if (peg$silentFails === 0) {
|
|
2888
|
-
peg$fail(peg$
|
|
3217
|
+
peg$fail(peg$c133);
|
|
2889
3218
|
}
|
|
2890
3219
|
}
|
|
2891
3220
|
return s0;
|
|
@@ -2927,7 +3256,7 @@ export const filterGrammarParser /*
|
|
|
2927
3256
|
}
|
|
2928
3257
|
if (s2 !== peg$FAILED) {
|
|
2929
3258
|
peg$savedPos = s0;
|
|
2930
|
-
s1 = peg$
|
|
3259
|
+
s1 = peg$c160();
|
|
2931
3260
|
s0 = s1;
|
|
2932
3261
|
}
|
|
2933
3262
|
else {
|
|
@@ -2958,7 +3287,7 @@ export const filterGrammarParser /*
|
|
|
2958
3287
|
}
|
|
2959
3288
|
if (s2 !== peg$FAILED) {
|
|
2960
3289
|
peg$savedPos = s0;
|
|
2961
|
-
s1 = peg$
|
|
3290
|
+
s1 = peg$c161(s2);
|
|
2962
3291
|
s0 = s1;
|
|
2963
3292
|
}
|
|
2964
3293
|
else {
|
|
@@ -2993,13 +3322,13 @@ export const filterGrammarParser /*
|
|
|
2993
3322
|
function peg$parsePCT_SYMBOL() {
|
|
2994
3323
|
var s0;
|
|
2995
3324
|
if (input.charCodeAt(peg$currPos) === 37) {
|
|
2996
|
-
s0 = peg$
|
|
3325
|
+
s0 = peg$c162;
|
|
2997
3326
|
peg$currPos++;
|
|
2998
3327
|
}
|
|
2999
3328
|
else {
|
|
3000
3329
|
s0 = peg$FAILED;
|
|
3001
3330
|
if (peg$silentFails === 0) {
|
|
3002
|
-
peg$fail(peg$
|
|
3331
|
+
peg$fail(peg$c163);
|
|
3003
3332
|
}
|
|
3004
3333
|
}
|
|
3005
3334
|
return s0;
|
|
@@ -3007,13 +3336,13 @@ export const filterGrammarParser /*
|
|
|
3007
3336
|
function peg$parseUNDERSCORE() {
|
|
3008
3337
|
var s0;
|
|
3009
3338
|
if (input.charCodeAt(peg$currPos) === 95) {
|
|
3010
|
-
s0 = peg$
|
|
3339
|
+
s0 = peg$c164;
|
|
3011
3340
|
peg$currPos++;
|
|
3012
3341
|
}
|
|
3013
3342
|
else {
|
|
3014
3343
|
s0 = peg$FAILED;
|
|
3015
3344
|
if (peg$silentFails === 0) {
|
|
3016
|
-
peg$fail(peg$
|
|
3345
|
+
peg$fail(peg$c165);
|
|
3017
3346
|
}
|
|
3018
3347
|
}
|
|
3019
3348
|
return s0;
|
|
@@ -3021,13 +3350,13 @@ export const filterGrammarParser /*
|
|
|
3021
3350
|
function peg$parseCOMMA_SYMBOL() {
|
|
3022
3351
|
var s0;
|
|
3023
3352
|
if (input.charCodeAt(peg$currPos) === 44) {
|
|
3024
|
-
s0 = peg$
|
|
3353
|
+
s0 = peg$c166;
|
|
3025
3354
|
peg$currPos++;
|
|
3026
3355
|
}
|
|
3027
3356
|
else {
|
|
3028
3357
|
s0 = peg$FAILED;
|
|
3029
3358
|
if (peg$silentFails === 0) {
|
|
3030
|
-
peg$fail(peg$
|
|
3359
|
+
peg$fail(peg$c167);
|
|
3031
3360
|
}
|
|
3032
3361
|
}
|
|
3033
3362
|
return s0;
|
|
@@ -3049,13 +3378,13 @@ export const filterGrammarParser /*
|
|
|
3049
3378
|
function peg$parseSPACE_SYMBOL() {
|
|
3050
3379
|
var s0;
|
|
3051
3380
|
if (input.charCodeAt(peg$currPos) === 32) {
|
|
3052
|
-
s0 = peg$
|
|
3381
|
+
s0 = peg$c168;
|
|
3053
3382
|
peg$currPos++;
|
|
3054
3383
|
}
|
|
3055
3384
|
else {
|
|
3056
3385
|
s0 = peg$FAILED;
|
|
3057
3386
|
if (peg$silentFails === 0) {
|
|
3058
|
-
peg$fail(peg$
|
|
3387
|
+
peg$fail(peg$c169);
|
|
3059
3388
|
}
|
|
3060
3389
|
}
|
|
3061
3390
|
return s0;
|
|
@@ -3063,14 +3392,14 @@ export const filterGrammarParser /*
|
|
|
3063
3392
|
function peg$parseFOLLOWING_SPACE_END() {
|
|
3064
3393
|
var s0, s1, s2, s3;
|
|
3065
3394
|
s0 = peg$currPos;
|
|
3066
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
3067
|
-
s1 = peg$
|
|
3395
|
+
if (input.substr(peg$currPos, 2) === peg$c170) {
|
|
3396
|
+
s1 = peg$c170;
|
|
3068
3397
|
peg$currPos += 2;
|
|
3069
3398
|
}
|
|
3070
3399
|
else {
|
|
3071
3400
|
s1 = peg$FAILED;
|
|
3072
3401
|
if (peg$silentFails === 0) {
|
|
3073
|
-
peg$fail(peg$
|
|
3402
|
+
peg$fail(peg$c171);
|
|
3074
3403
|
}
|
|
3075
3404
|
}
|
|
3076
3405
|
if (s1 !== peg$FAILED) {
|
|
@@ -3095,7 +3424,7 @@ export const filterGrammarParser /*
|
|
|
3095
3424
|
else {
|
|
3096
3425
|
s3 = peg$FAILED;
|
|
3097
3426
|
if (peg$silentFails === 0) {
|
|
3098
|
-
peg$fail(peg$
|
|
3427
|
+
peg$fail(peg$c172);
|
|
3099
3428
|
}
|
|
3100
3429
|
}
|
|
3101
3430
|
peg$silentFails--;
|
|
@@ -3124,14 +3453,14 @@ export const filterGrammarParser /*
|
|
|
3124
3453
|
}
|
|
3125
3454
|
function peg$parseESCAPED_DOUBLE_SPACE() {
|
|
3126
3455
|
var s0;
|
|
3127
|
-
if (input.substr(peg$currPos, 3) === peg$
|
|
3128
|
-
s0 = peg$
|
|
3456
|
+
if (input.substr(peg$currPos, 3) === peg$c173) {
|
|
3457
|
+
s0 = peg$c173;
|
|
3129
3458
|
peg$currPos += 3;
|
|
3130
3459
|
}
|
|
3131
3460
|
else {
|
|
3132
3461
|
s0 = peg$FAILED;
|
|
3133
3462
|
if (peg$silentFails === 0) {
|
|
3134
|
-
peg$fail(peg$
|
|
3463
|
+
peg$fail(peg$c174);
|
|
3135
3464
|
}
|
|
3136
3465
|
}
|
|
3137
3466
|
return s0;
|
|
@@ -3139,13 +3468,13 @@ export const filterGrammarParser /*
|
|
|
3139
3468
|
function peg$parseCARET() {
|
|
3140
3469
|
var s0;
|
|
3141
3470
|
if (input.charCodeAt(peg$currPos) === 94) {
|
|
3142
|
-
s0 = peg$
|
|
3471
|
+
s0 = peg$c175;
|
|
3143
3472
|
peg$currPos++;
|
|
3144
3473
|
}
|
|
3145
3474
|
else {
|
|
3146
3475
|
s0 = peg$FAILED;
|
|
3147
3476
|
if (peg$silentFails === 0) {
|
|
3148
|
-
peg$fail(peg$
|
|
3477
|
+
peg$fail(peg$c176);
|
|
3149
3478
|
}
|
|
3150
3479
|
}
|
|
3151
3480
|
return s0;
|
|
@@ -3153,27 +3482,27 @@ export const filterGrammarParser /*
|
|
|
3153
3482
|
function peg$parseescape() {
|
|
3154
3483
|
var s0;
|
|
3155
3484
|
if (input.charCodeAt(peg$currPos) === 92) {
|
|
3156
|
-
s0 = peg$
|
|
3485
|
+
s0 = peg$c137;
|
|
3157
3486
|
peg$currPos++;
|
|
3158
3487
|
}
|
|
3159
3488
|
else {
|
|
3160
3489
|
s0 = peg$FAILED;
|
|
3161
3490
|
if (peg$silentFails === 0) {
|
|
3162
|
-
peg$fail(peg$
|
|
3491
|
+
peg$fail(peg$c138);
|
|
3163
3492
|
}
|
|
3164
3493
|
}
|
|
3165
3494
|
return s0;
|
|
3166
3495
|
}
|
|
3167
3496
|
function peg$parseescaped_quotation_mark() {
|
|
3168
3497
|
var s0;
|
|
3169
|
-
if (input.substr(peg$currPos, 2) === peg$
|
|
3170
|
-
s0 = peg$
|
|
3498
|
+
if (input.substr(peg$currPos, 2) === peg$c177) {
|
|
3499
|
+
s0 = peg$c177;
|
|
3171
3500
|
peg$currPos += 2;
|
|
3172
3501
|
}
|
|
3173
3502
|
else {
|
|
3174
3503
|
s0 = peg$FAILED;
|
|
3175
3504
|
if (peg$silentFails === 0) {
|
|
3176
|
-
peg$fail(peg$
|
|
3505
|
+
peg$fail(peg$c178);
|
|
3177
3506
|
}
|
|
3178
3507
|
}
|
|
3179
3508
|
return s0;
|
|
@@ -3181,13 +3510,13 @@ export const filterGrammarParser /*
|
|
|
3181
3510
|
function peg$parsequotation_mark() {
|
|
3182
3511
|
var s0;
|
|
3183
3512
|
if (input.charCodeAt(peg$currPos) === 34) {
|
|
3184
|
-
s0 = peg$
|
|
3513
|
+
s0 = peg$c135;
|
|
3185
3514
|
peg$currPos++;
|
|
3186
3515
|
}
|
|
3187
3516
|
else {
|
|
3188
3517
|
s0 = peg$FAILED;
|
|
3189
3518
|
if (peg$silentFails === 0) {
|
|
3190
|
-
peg$fail(peg$
|
|
3519
|
+
peg$fail(peg$c136);
|
|
3191
3520
|
}
|
|
3192
3521
|
}
|
|
3193
3522
|
return s0;
|
|
@@ -3210,7 +3539,7 @@ export const filterGrammarParser /*
|
|
|
3210
3539
|
s2 = peg$parsechar_range();
|
|
3211
3540
|
if (s2 !== peg$FAILED) {
|
|
3212
3541
|
peg$savedPos = s0;
|
|
3213
|
-
s1 = peg$
|
|
3542
|
+
s1 = peg$c179(s2);
|
|
3214
3543
|
s0 = s1;
|
|
3215
3544
|
}
|
|
3216
3545
|
else {
|
|
@@ -3230,35 +3559,35 @@ export const filterGrammarParser /*
|
|
|
3230
3559
|
s1 = peg$parsechar_range();
|
|
3231
3560
|
if (s1 !== peg$FAILED) {
|
|
3232
3561
|
peg$savedPos = s0;
|
|
3233
|
-
s1 = peg$
|
|
3562
|
+
s1 = peg$c179(s1);
|
|
3234
3563
|
}
|
|
3235
3564
|
s0 = s1;
|
|
3236
3565
|
return s0;
|
|
3237
3566
|
}
|
|
3238
3567
|
function peg$parsechar_range() {
|
|
3239
3568
|
var s0;
|
|
3240
|
-
if (peg$
|
|
3569
|
+
if (peg$c180.test(input.charAt(peg$currPos))) {
|
|
3241
3570
|
s0 = input.charAt(peg$currPos);
|
|
3242
3571
|
peg$currPos++;
|
|
3243
3572
|
}
|
|
3244
3573
|
else {
|
|
3245
3574
|
s0 = peg$FAILED;
|
|
3246
3575
|
if (peg$silentFails === 0) {
|
|
3247
|
-
peg$fail(peg$
|
|
3576
|
+
peg$fail(peg$c181);
|
|
3248
3577
|
}
|
|
3249
3578
|
}
|
|
3250
3579
|
return s0;
|
|
3251
3580
|
}
|
|
3252
3581
|
function peg$parseHEXDIG() {
|
|
3253
3582
|
var s0;
|
|
3254
|
-
if (peg$
|
|
3583
|
+
if (peg$c182.test(input.charAt(peg$currPos))) {
|
|
3255
3584
|
s0 = input.charAt(peg$currPos);
|
|
3256
3585
|
peg$currPos++;
|
|
3257
3586
|
}
|
|
3258
3587
|
else {
|
|
3259
3588
|
s0 = peg$FAILED;
|
|
3260
3589
|
if (peg$silentFails === 0) {
|
|
3261
|
-
peg$fail(peg$
|
|
3590
|
+
peg$fail(peg$c183);
|
|
3262
3591
|
}
|
|
3263
3592
|
}
|
|
3264
3593
|
return s0;
|