@opra/common 1.4.3 → 1.5.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/browser/index.cjs +5 -5
- package/browser/index.mjs +5 -5
- package/cjs/document/api-document.js +16 -9
- package/cjs/document/common/api-base.js +4 -2
- package/cjs/document/common/data-type-map.js +14 -3
- package/cjs/document/common/document-init-context.js +5 -0
- package/cjs/document/common/document-node.js +25 -29
- package/cjs/document/common/value.js +9 -3
- package/cjs/document/constants.js +1 -2
- package/cjs/document/data-type/api-field.js +19 -4
- package/cjs/document/data-type/complex-type-base.js +24 -7
- package/cjs/document/data-type/complex-type.js +17 -6
- package/cjs/document/data-type/data-type.js +16 -1
- package/cjs/document/data-type/enum-type.js +12 -3
- package/cjs/document/data-type/extended-types/base64.type.js +1 -0
- package/cjs/document/data-type/extended-types/date-string.type.js +1 -0
- package/cjs/document/data-type/extended-types/date-time-string.type.js +1 -0
- package/cjs/document/data-type/extended-types/date-time.type.js +6 -1
- package/cjs/document/data-type/extended-types/date.type.js +6 -1
- package/cjs/document/data-type/extended-types/email.type.js +1 -0
- package/cjs/document/data-type/extended-types/field-path.type.js +9 -3
- package/cjs/document/data-type/extended-types/filter.type.js +14 -5
- package/cjs/document/data-type/extended-types/object-id.type.js +1 -0
- package/cjs/document/data-type/extended-types/operation-result.type.js +1 -0
- package/cjs/document/data-type/extended-types/time.type.js +1 -0
- package/cjs/document/data-type/extended-types/url.type.js +1 -0
- package/cjs/document/data-type/extended-types/uuid.type.js +1 -0
- package/cjs/document/data-type/mapped-type.js +21 -9
- package/cjs/document/data-type/mixin-type.js +10 -5
- package/cjs/document/data-type/primitive-types/any.type.js +1 -0
- package/cjs/document/data-type/primitive-types/bigint.type.js +4 -1
- package/cjs/document/data-type/primitive-types/boolean.type.js +1 -0
- package/cjs/document/data-type/primitive-types/integer.type.js +4 -1
- package/cjs/document/data-type/primitive-types/null.type.js +1 -0
- package/cjs/document/data-type/primitive-types/number.type.js +4 -1
- package/cjs/document/data-type/primitive-types/string.type.js +4 -1
- package/cjs/document/data-type/simple-type.js +17 -5
- package/cjs/document/data-type/utils/create-mapped-class.js +3 -1
- package/cjs/document/decorators/api-field-decorator.js +2 -1
- package/cjs/document/decorators/complex-type.decorator.js +1 -1
- package/cjs/document/decorators/http-controller.decorator.js +7 -1
- package/cjs/document/decorators/http-operation-entity.decorator.js +20 -10
- package/cjs/document/decorators/http-operation.decorator.js +23 -10
- package/cjs/document/decorators/rpc-operation.decorator.js +1 -2
- package/cjs/document/decorators/simple-type.decorator.js +3 -2
- package/cjs/document/factory/api-document.factory.js +12 -3
- package/cjs/document/factory/data-type.factory.js +19 -7
- package/cjs/document/factory/http-api.factory.js +13 -4
- package/cjs/document/http/http-api.js +2 -2
- package/cjs/document/http/http-controller.js +7 -6
- package/cjs/document/http/http-media-type.js +18 -8
- package/cjs/document/http/http-multipart-field.js +2 -2
- package/cjs/document/http/http-operation-response.js +11 -6
- package/cjs/document/http/http-operation.js +8 -6
- package/cjs/document/http/http-parameter.js +2 -2
- package/cjs/document/http/http-request-body.js +4 -2
- package/cjs/document/http/http-status-range.js +3 -1
- package/cjs/document/rpc/rpc-operation-response.js +11 -3
- package/cjs/document/rpc/rpc-operation.js +11 -3
- package/cjs/document/utils/parse-regexp.util.js +2 -2
- package/cjs/exception/opra-exception.js +3 -1
- package/cjs/filter/antlr/OpraFilterLexer.js +190 -123
- package/cjs/filter/antlr/OpraFilterParser.js +53 -35
- package/cjs/filter/ast/expressions/arithmetic-expression.js +3 -1
- package/cjs/filter/ast/terms/number-literal.js +3 -1
- package/cjs/filter/filter-rules.js +18 -8
- package/cjs/filter/filter-tree-visitor.js +2 -1
- package/cjs/filter/opra-error-listener.js +7 -1
- package/cjs/filter/parse.js +3 -1
- package/cjs/filter/utils.js +3 -1
- package/cjs/helpers/get-stack-filename.js +6 -2
- package/cjs/helpers/mixin-utils.js +7 -2
- package/cjs/helpers/object-utils.js +3 -1
- package/cjs/helpers/parse-fields-projection.js +4 -2
- package/cjs/helpers/type-guards.js +7 -2
- package/cjs/i18n/i18n.js +13 -3
- package/cjs/i18n/translate.js +3 -1
- package/cjs/polifils/array-find-last.js +0 -2
- package/esm/document/api-document.js +17 -10
- package/esm/document/common/api-base.js +4 -2
- package/esm/document/common/data-type-map.js +14 -3
- package/esm/document/common/document-init-context.js +5 -0
- package/esm/document/common/document-node.js +25 -29
- package/esm/document/common/value.js +9 -3
- package/esm/document/constants.js +0 -1
- package/esm/document/data-type/api-field.js +19 -4
- package/esm/document/data-type/complex-type-base.js +25 -8
- package/esm/document/data-type/complex-type.js +17 -6
- package/esm/document/data-type/data-type.js +17 -2
- package/esm/document/data-type/enum-type.js +12 -3
- package/esm/document/data-type/extended-types/base64.type.js +1 -0
- package/esm/document/data-type/extended-types/date-string.type.js +1 -0
- package/esm/document/data-type/extended-types/date-time-string.type.js +1 -0
- package/esm/document/data-type/extended-types/date-time.type.js +6 -1
- package/esm/document/data-type/extended-types/date.type.js +6 -1
- package/esm/document/data-type/extended-types/email.type.js +1 -0
- package/esm/document/data-type/extended-types/field-path.type.js +9 -3
- package/esm/document/data-type/extended-types/filter.type.js +14 -5
- package/esm/document/data-type/extended-types/object-id.type.js +1 -0
- package/esm/document/data-type/extended-types/operation-result.type.js +1 -0
- package/esm/document/data-type/extended-types/time.type.js +1 -0
- package/esm/document/data-type/extended-types/url.type.js +1 -0
- package/esm/document/data-type/extended-types/uuid.type.js +1 -0
- package/esm/document/data-type/mapped-type.js +21 -9
- package/esm/document/data-type/mixin-type.js +11 -6
- package/esm/document/data-type/primitive-types/any.type.js +1 -0
- package/esm/document/data-type/primitive-types/bigint.type.js +4 -1
- package/esm/document/data-type/primitive-types/boolean.type.js +1 -0
- package/esm/document/data-type/primitive-types/integer.type.js +4 -1
- package/esm/document/data-type/primitive-types/null.type.js +1 -0
- package/esm/document/data-type/primitive-types/number.type.js +4 -1
- package/esm/document/data-type/primitive-types/string.type.js +4 -1
- package/esm/document/data-type/simple-type.js +18 -6
- package/esm/document/data-type/utils/create-mapped-class.js +4 -2
- package/esm/document/decorators/api-field-decorator.js +2 -1
- package/esm/document/decorators/complex-type.decorator.js +2 -2
- package/esm/document/decorators/http-controller.decorator.js +7 -1
- package/esm/document/decorators/http-operation-entity.decorator.js +22 -12
- package/esm/document/decorators/http-operation.decorator.js +23 -10
- package/esm/document/decorators/rpc-operation.decorator.js +1 -2
- package/esm/document/decorators/simple-type.decorator.js +4 -3
- package/esm/document/factory/api-document.factory.js +12 -3
- package/esm/document/factory/data-type.factory.js +21 -9
- package/esm/document/factory/http-api.factory.js +13 -4
- package/esm/document/http/http-api.js +2 -2
- package/esm/document/http/http-controller.js +8 -7
- package/esm/document/http/http-media-type.js +18 -8
- package/esm/document/http/http-multipart-field.js +2 -2
- package/esm/document/http/http-operation-response.js +11 -6
- package/esm/document/http/http-operation.js +9 -7
- package/esm/document/http/http-parameter.js +3 -3
- package/esm/document/http/http-request-body.js +4 -2
- package/esm/document/http/http-status-range.js +3 -1
- package/esm/document/rpc/rpc-controller.js +1 -1
- package/esm/document/rpc/rpc-header.js +1 -1
- package/esm/document/rpc/rpc-operation-response.js +11 -3
- package/esm/document/rpc/rpc-operation.js +12 -4
- package/esm/document/utils/parse-regexp.util.js +2 -2
- package/esm/exception/opra-exception.js +3 -1
- package/esm/filter/antlr/OpraFilterLexer.js +190 -123
- package/esm/filter/antlr/OpraFilterParser.js +53 -35
- package/esm/filter/ast/expressions/arithmetic-expression.js +3 -1
- package/esm/filter/ast/terms/number-literal.js +3 -1
- package/esm/filter/filter-rules.js +18 -8
- package/esm/filter/filter-tree-visitor.js +2 -1
- package/esm/filter/opra-error-listener.js +8 -2
- package/esm/filter/parse.js +3 -1
- package/esm/filter/utils.js +3 -1
- package/esm/helpers/get-stack-filename.js +6 -2
- package/esm/helpers/mixin-utils.js +7 -2
- package/esm/helpers/object-utils.js +3 -1
- package/esm/helpers/parse-fields-projection.js +4 -2
- package/esm/helpers/type-guards.js +7 -2
- package/esm/i18n/i18n.js +13 -3
- package/esm/i18n/translate.js +3 -1
- package/esm/polifils/array-find-last.js +0 -2
- package/package.json +1 -1
- package/types/document/api-document.d.ts +8 -2
- package/types/document/common/api-base.d.ts +1 -1
- package/types/document/common/document-init-context.d.ts +2 -0
- package/types/document/common/document-node.d.ts +8 -14
- package/types/document/common/value.d.ts +2 -1
- package/types/document/constants.d.ts +0 -1
- package/types/document/data-type/api-field.d.ts +6 -11
- package/types/document/data-type/complex-type.d.ts +2 -1
- package/types/document/data-type/data-type.d.ts +7 -2
- package/types/document/data-type/enum-type.d.ts +2 -1
- package/types/document/data-type/extended-types/field-path.type.d.ts +2 -1
- package/types/document/data-type/extended-types/filter.type.d.ts +2 -1
- package/types/document/data-type/mapped-type.d.ts +2 -1
- package/types/document/data-type/mixin-type.d.ts +2 -1
- package/types/document/data-type/simple-type.d.ts +2 -1
- package/types/document/factory/api-document.factory.d.ts +2 -1
- package/types/document/http/http-api.d.ts +1 -1
- package/types/document/http/http-controller.d.ts +2 -1
- package/types/document/http/http-media-type.d.ts +2 -1
- package/types/document/http/http-multipart-field.d.ts +2 -1
- package/types/document/http/http-operation-response.d.ts +2 -1
- package/types/document/http/http-operation.d.ts +2 -1
- package/types/document/http/http-parameter.d.ts +2 -1
- package/types/document/http/http-request-body.d.ts +2 -1
- package/types/filter/filter-rules.d.ts +3 -3
|
@@ -80,7 +80,10 @@ OpraFilterLexer.INTEGER = 41;
|
|
|
80
80
|
OpraFilterLexer.STRING = 42;
|
|
81
81
|
OpraFilterLexer.WHITESPACE = 43;
|
|
82
82
|
OpraFilterLexer.EOF = antlr4_1.Token.EOF;
|
|
83
|
-
OpraFilterLexer.channelNames = [
|
|
83
|
+
OpraFilterLexer.channelNames = [
|
|
84
|
+
'DEFAULT_TOKEN_CHANNEL',
|
|
85
|
+
'HIDDEN',
|
|
86
|
+
];
|
|
84
87
|
OpraFilterLexer.literalNames = [
|
|
85
88
|
null,
|
|
86
89
|
"'('",
|
|
@@ -218,128 +221,192 @@ OpraFilterLexer.ruleNames = [
|
|
|
218
221
|
'HEX',
|
|
219
222
|
];
|
|
220
223
|
OpraFilterLexer._serializedATN = [
|
|
221
|
-
4, 0, 43, 426, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4,
|
|
222
|
-
7,
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
1,
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
0,
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
0, 0,
|
|
275
|
-
0,
|
|
276
|
-
0,
|
|
277
|
-
0,
|
|
278
|
-
0,
|
|
279
|
-
0, 0,
|
|
280
|
-
0, 0,
|
|
281
|
-
|
|
282
|
-
0, 0, 0,
|
|
283
|
-
0,
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
0,
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
0,
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
0,
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
0, 0,
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
1, 0, 0, 0,
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
224
|
+
4, 0, 43, 426, 6, -1, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4,
|
|
225
|
+
7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7,
|
|
226
|
+
10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2,
|
|
227
|
+
16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7,
|
|
228
|
+
21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2,
|
|
229
|
+
27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7,
|
|
230
|
+
32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2,
|
|
231
|
+
38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7,
|
|
232
|
+
43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2,
|
|
233
|
+
49, 7, 49, 1, 0, 1, 0, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 4,
|
|
234
|
+
1, 4, 1, 5, 1, 5, 1, 6, 1, 6, 1, 7, 1, 7, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1,
|
|
235
|
+
9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1,
|
|
236
|
+
11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1,
|
|
237
|
+
13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1,
|
|
238
|
+
15, 1, 15, 1, 16, 1, 16, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1,
|
|
239
|
+
20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 24, 1,
|
|
240
|
+
24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 26, 1,
|
|
241
|
+
27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1,
|
|
242
|
+
28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1,
|
|
243
|
+
30, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1,
|
|
244
|
+
34, 5, 34, 225, 8, 34, 10, 34, 12, 34, 228, 9, 34, 1, 35, 1, 35, 1, 36, 1,
|
|
245
|
+
36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 3, 36, 240, 8, 36, 1, 37, 1,
|
|
246
|
+
37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1, 37, 1,
|
|
247
|
+
37, 1, 37, 3, 37, 256, 8, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1,
|
|
248
|
+
38, 1, 38, 3, 38, 266, 8, 38, 1, 39, 3, 39, 269, 8, 39, 1, 39, 4, 39, 272,
|
|
249
|
+
8, 39, 11, 39, 12, 39, 273, 1, 39, 1, 39, 5, 39, 278, 8, 39, 10, 39, 12, 39,
|
|
250
|
+
281, 9, 39, 3, 39, 283, 8, 39, 1, 39, 1, 39, 3, 39, 287, 8, 39, 1, 39, 4,
|
|
251
|
+
39, 290, 8, 39, 11, 39, 12, 39, 291, 3, 39, 294, 8, 39, 1, 39, 1, 39, 1, 39,
|
|
252
|
+
1, 39, 4, 39, 300, 8, 39, 11, 39, 12, 39, 301, 3, 39, 304, 8, 39, 1, 40, 3,
|
|
253
|
+
40, 307, 8, 40, 1, 40, 4, 40, 310, 8, 40, 11, 40, 12, 40, 311, 1, 40, 1, 40,
|
|
254
|
+
1, 40, 1, 40, 4, 40, 318, 8, 40, 11, 40, 12, 40, 319, 3, 40, 322, 8, 40, 1,
|
|
255
|
+
41, 1, 41, 1, 41, 5, 41, 327, 8, 41, 10, 41, 12, 41, 330, 9, 41, 1, 41, 1,
|
|
256
|
+
41, 1, 41, 1, 41, 5, 41, 336, 8, 41, 10, 41, 12, 41, 339, 9, 41, 1, 41, 3,
|
|
257
|
+
41, 342, 8, 41, 1, 42, 4, 42, 345, 8, 42, 11, 42, 12, 42, 346, 1, 42, 1, 42,
|
|
258
|
+
1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44,
|
|
259
|
+
3, 44, 362, 8, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44,
|
|
260
|
+
371, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 377, 8, 45, 1, 45, 1, 45, 1,
|
|
261
|
+
45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 4, 45, 389, 8, 45, 11,
|
|
262
|
+
45, 12, 45, 390, 3, 45, 393, 8, 45, 3, 45, 395, 8, 45, 1, 46, 1, 46, 1, 46,
|
|
263
|
+
3, 46, 400, 8, 46, 1, 46, 1, 46, 1, 46, 3, 46, 405, 8, 46, 1, 46, 1, 46, 1,
|
|
264
|
+
46, 3, 46, 410, 8, 46, 3, 46, 412, 8, 46, 1, 47, 1, 47, 1, 47, 3, 47, 417,
|
|
265
|
+
8, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 0, 0, 50, 1,
|
|
266
|
+
1, 3, 2, 5, 3, 7, 4, 9, 5, 11, 6, 13, 7, 15, 8, 17, 9, 19, 10, 21, 11, 23,
|
|
267
|
+
12, 25, 13, 27, 14, 29, 15, 31, 16, 33, 17, 35, 18, 37, 19, 39, 20, 41, 21,
|
|
268
|
+
43, 22, 45, 23, 47, 24, 49, 25, 51, 26, 53, 27, 55, 28, 57, 29, 59, 30, 61,
|
|
269
|
+
31, 63, 32, 65, 33, 67, 34, 69, 35, 71, 36, 73, 37, 75, 38, 77, 39, 79, 40,
|
|
270
|
+
81, 41, 83, 42, 85, 43, 87, 0, 89, 0, 91, 0, 93, 0, 95, 0, 97, 0, 99, 0, 1,
|
|
271
|
+
0, 16, 4, 0, 36, 36, 65, 90, 95, 95, 97, 122, 5, 0, 36, 36, 48, 57, 65, 90,
|
|
272
|
+
95, 95, 97, 122, 2, 0, 43, 43, 45, 45, 1, 0, 39, 39, 1, 0, 34, 34, 3, 0, 9,
|
|
273
|
+
10, 13, 13, 32, 32, 1, 0, 48, 57, 1, 0, 48, 48, 1, 0, 49, 57, 1, 0, 49, 49,
|
|
274
|
+
1, 0, 48, 50, 1, 0, 49, 51, 1, 0, 48, 49, 1, 0, 48, 51, 1, 0, 48, 53, 3, 0,
|
|
275
|
+
48, 57, 65, 70, 97, 102, 453, 0, 1, 1, 0, 0, 0, 0, 3, 1, 0, 0, 0, 0, 5, 1,
|
|
276
|
+
0, 0, 0, 0, 7, 1, 0, 0, 0, 0, 9, 1, 0, 0, 0, 0, 11, 1, 0, 0, 0, 0, 13, 1, 0,
|
|
277
|
+
0, 0, 0, 15, 1, 0, 0, 0, 0, 17, 1, 0, 0, 0, 0, 19, 1, 0, 0, 0, 0, 21, 1, 0,
|
|
278
|
+
0, 0, 0, 23, 1, 0, 0, 0, 0, 25, 1, 0, 0, 0, 0, 27, 1, 0, 0, 0, 0, 29, 1, 0,
|
|
279
|
+
0, 0, 0, 31, 1, 0, 0, 0, 0, 33, 1, 0, 0, 0, 0, 35, 1, 0, 0, 0, 0, 37, 1, 0,
|
|
280
|
+
0, 0, 0, 39, 1, 0, 0, 0, 0, 41, 1, 0, 0, 0, 0, 43, 1, 0, 0, 0, 0, 45, 1, 0,
|
|
281
|
+
0, 0, 0, 47, 1, 0, 0, 0, 0, 49, 1, 0, 0, 0, 0, 51, 1, 0, 0, 0, 0, 53, 1, 0,
|
|
282
|
+
0, 0, 0, 55, 1, 0, 0, 0, 0, 57, 1, 0, 0, 0, 0, 59, 1, 0, 0, 0, 0, 61, 1, 0,
|
|
283
|
+
0, 0, 0, 63, 1, 0, 0, 0, 0, 65, 1, 0, 0, 0, 0, 67, 1, 0, 0, 0, 0, 69, 1, 0,
|
|
284
|
+
0, 0, 0, 71, 1, 0, 0, 0, 0, 73, 1, 0, 0, 0, 0, 75, 1, 0, 0, 0, 0, 77, 1, 0,
|
|
285
|
+
0, 0, 0, 79, 1, 0, 0, 0, 0, 81, 1, 0, 0, 0, 0, 83, 1, 0, 0, 0, 0, 85, 1, 0,
|
|
286
|
+
0, 0, 1, 101, 1, 0, 0, 0, 3, 103, 1, 0, 0, 0, 5, 105, 1, 0, 0, 0, 7, 109, 1,
|
|
287
|
+
0, 0, 0, 9, 111, 1, 0, 0, 0, 11, 113, 1, 0, 0, 0, 13, 115, 1, 0, 0, 0, 15,
|
|
288
|
+
117, 1, 0, 0, 0, 17, 119, 1, 0, 0, 0, 19, 121, 1, 0, 0, 0, 21, 126, 1, 0, 0,
|
|
289
|
+
0, 23, 132, 1, 0, 0, 0, 25, 137, 1, 0, 0, 0, 27, 146, 1, 0, 0, 0, 29, 155,
|
|
290
|
+
1, 0, 0, 0, 31, 157, 1, 0, 0, 0, 33, 159, 1, 0, 0, 0, 35, 161, 1, 0, 0, 0,
|
|
291
|
+
37, 163, 1, 0, 0, 0, 39, 166, 1, 0, 0, 0, 41, 168, 1, 0, 0, 0, 43, 170, 1,
|
|
292
|
+
0, 0, 0, 45, 173, 1, 0, 0, 0, 47, 175, 1, 0, 0, 0, 49, 178, 1, 0, 0, 0, 51,
|
|
293
|
+
181, 1, 0, 0, 0, 53, 185, 1, 0, 0, 0, 55, 190, 1, 0, 0, 0, 57, 196, 1, 0, 0,
|
|
294
|
+
0, 59, 202, 1, 0, 0, 0, 61, 209, 1, 0, 0, 0, 63, 213, 1, 0, 0, 0, 65, 216,
|
|
295
|
+
1, 0, 0, 0, 67, 219, 1, 0, 0, 0, 69, 222, 1, 0, 0, 0, 71, 229, 1, 0, 0, 0,
|
|
296
|
+
73, 239, 1, 0, 0, 0, 75, 255, 1, 0, 0, 0, 77, 265, 1, 0, 0, 0, 79, 303, 1,
|
|
297
|
+
0, 0, 0, 81, 321, 1, 0, 0, 0, 83, 341, 1, 0, 0, 0, 85, 344, 1, 0, 0, 0, 87,
|
|
298
|
+
350, 1, 0, 0, 0, 89, 352, 1, 0, 0, 0, 91, 376, 1, 0, 0, 0, 93, 411, 1, 0, 0,
|
|
299
|
+
0, 95, 413, 1, 0, 0, 0, 97, 418, 1, 0, 0, 0, 99, 424, 1, 0, 0, 0, 101, 102,
|
|
300
|
+
5, 40, 0, 0, 102, 2, 1, 0, 0, 0, 103, 104, 5, 41, 0, 0, 104, 4, 1, 0, 0, 0,
|
|
301
|
+
105, 106, 5, 110, 0, 0, 106, 107, 5, 111, 0, 0, 107, 108, 5, 116, 0, 0, 108,
|
|
302
|
+
6, 1, 0, 0, 0, 109, 110, 5, 33, 0, 0, 110, 8, 1, 0, 0, 0, 111, 112, 5, 46,
|
|
303
|
+
0, 0, 112, 10, 1, 0, 0, 0, 113, 114, 5, 64, 0, 0, 114, 12, 1, 0, 0, 0, 115,
|
|
304
|
+
116, 5, 91, 0, 0, 116, 14, 1, 0, 0, 0, 117, 118, 5, 44, 0, 0, 118, 16, 1, 0,
|
|
305
|
+
0, 0, 119, 120, 5, 93, 0, 0, 120, 18, 1, 0, 0, 0, 121, 122, 5, 116, 0, 0,
|
|
306
|
+
122, 123, 5, 114, 0, 0, 123, 124, 5, 117, 0, 0, 124, 125, 5, 101, 0, 0, 125,
|
|
307
|
+
20, 1, 0, 0, 0, 126, 127, 5, 102, 0, 0, 127, 128, 5, 97, 0, 0, 128, 129, 5,
|
|
308
|
+
108, 0, 0, 129, 130, 5, 115, 0, 0, 130, 131, 5, 101, 0, 0, 131, 22, 1, 0, 0,
|
|
309
|
+
0, 132, 133, 5, 110, 0, 0, 133, 134, 5, 117, 0, 0, 134, 135, 5, 108, 0, 0,
|
|
310
|
+
135, 136, 5, 108, 0, 0, 136, 24, 1, 0, 0, 0, 137, 138, 5, 73, 0, 0, 138,
|
|
311
|
+
139, 5, 110, 0, 0, 139, 140, 5, 102, 0, 0, 140, 141, 5, 105, 0, 0, 141, 142,
|
|
312
|
+
5, 110, 0, 0, 142, 143, 5, 105, 0, 0, 143, 144, 5, 116, 0, 0, 144, 145, 5,
|
|
313
|
+
121, 0, 0, 145, 26, 1, 0, 0, 0, 146, 147, 5, 105, 0, 0, 147, 148, 5, 110, 0,
|
|
314
|
+
0, 148, 149, 5, 102, 0, 0, 149, 150, 5, 105, 0, 0, 150, 151, 5, 110, 0, 0,
|
|
315
|
+
151, 152, 5, 105, 0, 0, 152, 153, 5, 116, 0, 0, 153, 154, 5, 121, 0, 0, 154,
|
|
316
|
+
28, 1, 0, 0, 0, 155, 156, 5, 43, 0, 0, 156, 30, 1, 0, 0, 0, 157, 158, 5, 45,
|
|
317
|
+
0, 0, 158, 32, 1, 0, 0, 0, 159, 160, 5, 42, 0, 0, 160, 34, 1, 0, 0, 0, 161,
|
|
318
|
+
162, 5, 47, 0, 0, 162, 36, 1, 0, 0, 0, 163, 164, 5, 60, 0, 0, 164, 165, 5,
|
|
319
|
+
61, 0, 0, 165, 38, 1, 0, 0, 0, 166, 167, 5, 60, 0, 0, 167, 40, 1, 0, 0, 0,
|
|
320
|
+
168, 169, 5, 62, 0, 0, 169, 42, 1, 0, 0, 0, 170, 171, 5, 62, 0, 0, 171, 172,
|
|
321
|
+
5, 61, 0, 0, 172, 44, 1, 0, 0, 0, 173, 174, 5, 61, 0, 0, 174, 46, 1, 0, 0,
|
|
322
|
+
0, 175, 176, 5, 33, 0, 0, 176, 177, 5, 61, 0, 0, 177, 48, 1, 0, 0, 0, 178,
|
|
323
|
+
179, 5, 105, 0, 0, 179, 180, 5, 110, 0, 0, 180, 50, 1, 0, 0, 0, 181, 182, 5,
|
|
324
|
+
33, 0, 0, 182, 183, 5, 105, 0, 0, 183, 184, 5, 110, 0, 0, 184, 52, 1, 0, 0,
|
|
325
|
+
0, 185, 186, 5, 108, 0, 0, 186, 187, 5, 105, 0, 0, 187, 188, 5, 107, 0, 0,
|
|
326
|
+
188, 189, 5, 101, 0, 0, 189, 54, 1, 0, 0, 0, 190, 191, 5, 33, 0, 0, 191,
|
|
327
|
+
192, 5, 108, 0, 0, 192, 193, 5, 105, 0, 0, 193, 194, 5, 107, 0, 0, 194, 195,
|
|
328
|
+
5, 101, 0, 0, 195, 56, 1, 0, 0, 0, 196, 197, 5, 105, 0, 0, 197, 198, 5, 108,
|
|
329
|
+
0, 0, 198, 199, 5, 105, 0, 0, 199, 200, 5, 107, 0, 0, 200, 201, 5, 101, 0,
|
|
330
|
+
0, 201, 58, 1, 0, 0, 0, 202, 203, 5, 33, 0, 0, 203, 204, 5, 105, 0, 0, 204,
|
|
331
|
+
205, 5, 108, 0, 0, 205, 206, 5, 105, 0, 0, 206, 207, 5, 107, 0, 0, 207, 208,
|
|
332
|
+
5, 101, 0, 0, 208, 60, 1, 0, 0, 0, 209, 210, 5, 97, 0, 0, 210, 211, 5, 110,
|
|
333
|
+
0, 0, 211, 212, 5, 100, 0, 0, 212, 62, 1, 0, 0, 0, 213, 214, 5, 111, 0, 0,
|
|
334
|
+
214, 215, 5, 114, 0, 0, 215, 64, 1, 0, 0, 0, 216, 217, 5, 38, 0, 0, 217,
|
|
335
|
+
218, 5, 38, 0, 0, 218, 66, 1, 0, 0, 0, 219, 220, 5, 124, 0, 0, 220, 221, 5,
|
|
336
|
+
124, 0, 0, 221, 68, 1, 0, 0, 0, 222, 226, 7, 0, 0, 0, 223, 225, 7, 1, 0, 0,
|
|
337
|
+
224, 223, 1, 0, 0, 0, 225, 228, 1, 0, 0, 0, 226, 224, 1, 0, 0, 0, 226, 227,
|
|
338
|
+
1, 0, 0, 0, 227, 70, 1, 0, 0, 0, 228, 226, 1, 0, 0, 0, 229, 230, 7, 2, 0, 0,
|
|
339
|
+
230, 72, 1, 0, 0, 0, 231, 232, 5, 39, 0, 0, 232, 233, 3, 89, 44, 0, 233,
|
|
340
|
+
234, 5, 39, 0, 0, 234, 240, 1, 0, 0, 0, 235, 236, 5, 34, 0, 0, 236, 237, 3,
|
|
341
|
+
89, 44, 0, 237, 238, 5, 34, 0, 0, 238, 240, 1, 0, 0, 0, 239, 231, 1, 0, 0,
|
|
342
|
+
0, 239, 235, 1, 0, 0, 0, 240, 74, 1, 0, 0, 0, 241, 242, 5, 39, 0, 0, 242,
|
|
343
|
+
243, 3, 89, 44, 0, 243, 244, 5, 84, 0, 0, 244, 245, 3, 91, 45, 0, 245, 246,
|
|
344
|
+
3, 93, 46, 0, 246, 247, 5, 39, 0, 0, 247, 256, 1, 0, 0, 0, 248, 249, 5, 34,
|
|
345
|
+
0, 0, 249, 250, 3, 89, 44, 0, 250, 251, 5, 84, 0, 0, 251, 252, 3, 91, 45, 0,
|
|
346
|
+
252, 253, 3, 93, 46, 0, 253, 254, 5, 34, 0, 0, 254, 256, 1, 0, 0, 0, 255,
|
|
347
|
+
241, 1, 0, 0, 0, 255, 248, 1, 0, 0, 0, 256, 76, 1, 0, 0, 0, 257, 258, 5, 39,
|
|
348
|
+
0, 0, 258, 259, 3, 91, 45, 0, 259, 260, 5, 39, 0, 0, 260, 266, 1, 0, 0, 0,
|
|
349
|
+
261, 262, 5, 34, 0, 0, 262, 263, 3, 91, 45, 0, 263, 264, 5, 34, 0, 0, 264,
|
|
350
|
+
266, 1, 0, 0, 0, 265, 257, 1, 0, 0, 0, 265, 261, 1, 0, 0, 0, 266, 78, 1, 0,
|
|
351
|
+
0, 0, 267, 269, 3, 71, 35, 0, 268, 267, 1, 0, 0, 0, 268, 269, 1, 0, 0, 0,
|
|
352
|
+
269, 271, 1, 0, 0, 0, 270, 272, 3, 87, 43, 0, 271, 270, 1, 0, 0, 0, 272,
|
|
353
|
+
273, 1, 0, 0, 0, 273, 271, 1, 0, 0, 0, 273, 274, 1, 0, 0, 0, 274, 282, 1, 0,
|
|
354
|
+
0, 0, 275, 279, 5, 46, 0, 0, 276, 278, 3, 87, 43, 0, 277, 276, 1, 0, 0, 0,
|
|
355
|
+
278, 281, 1, 0, 0, 0, 279, 277, 1, 0, 0, 0, 279, 280, 1, 0, 0, 0, 280, 283,
|
|
356
|
+
1, 0, 0, 0, 281, 279, 1, 0, 0, 0, 282, 275, 1, 0, 0, 0, 282, 283, 1, 0, 0,
|
|
357
|
+
0, 283, 293, 1, 0, 0, 0, 284, 286, 5, 69, 0, 0, 285, 287, 7, 2, 0, 0, 286,
|
|
358
|
+
285, 1, 0, 0, 0, 286, 287, 1, 0, 0, 0, 287, 289, 1, 0, 0, 0, 288, 290, 3,
|
|
359
|
+
87, 43, 0, 289, 288, 1, 0, 0, 0, 290, 291, 1, 0, 0, 0, 291, 289, 1, 0, 0, 0,
|
|
360
|
+
291, 292, 1, 0, 0, 0, 292, 294, 1, 0, 0, 0, 293, 284, 1, 0, 0, 0, 293, 294,
|
|
361
|
+
1, 0, 0, 0, 294, 304, 1, 0, 0, 0, 295, 296, 5, 48, 0, 0, 296, 297, 5, 120,
|
|
362
|
+
0, 0, 297, 299, 1, 0, 0, 0, 298, 300, 3, 99, 49, 0, 299, 298, 1, 0, 0, 0,
|
|
363
|
+
300, 301, 1, 0, 0, 0, 301, 299, 1, 0, 0, 0, 301, 302, 1, 0, 0, 0, 302, 304,
|
|
364
|
+
1, 0, 0, 0, 303, 268, 1, 0, 0, 0, 303, 295, 1, 0, 0, 0, 304, 80, 1, 0, 0, 0,
|
|
365
|
+
305, 307, 3, 71, 35, 0, 306, 305, 1, 0, 0, 0, 306, 307, 1, 0, 0, 0, 307,
|
|
366
|
+
309, 1, 0, 0, 0, 308, 310, 3, 87, 43, 0, 309, 308, 1, 0, 0, 0, 310, 311, 1,
|
|
367
|
+
0, 0, 0, 311, 309, 1, 0, 0, 0, 311, 312, 1, 0, 0, 0, 312, 322, 1, 0, 0, 0,
|
|
368
|
+
313, 314, 5, 48, 0, 0, 314, 315, 5, 120, 0, 0, 315, 317, 1, 0, 0, 0, 316,
|
|
369
|
+
318, 3, 99, 49, 0, 317, 316, 1, 0, 0, 0, 318, 319, 1, 0, 0, 0, 319, 317, 1,
|
|
370
|
+
0, 0, 0, 319, 320, 1, 0, 0, 0, 320, 322, 1, 0, 0, 0, 321, 306, 1, 0, 0, 0,
|
|
371
|
+
321, 313, 1, 0, 0, 0, 322, 82, 1, 0, 0, 0, 323, 328, 5, 39, 0, 0, 324, 327,
|
|
372
|
+
3, 95, 47, 0, 325, 327, 8, 3, 0, 0, 326, 324, 1, 0, 0, 0, 326, 325, 1, 0, 0,
|
|
373
|
+
0, 327, 330, 1, 0, 0, 0, 328, 326, 1, 0, 0, 0, 328, 329, 1, 0, 0, 0, 329,
|
|
374
|
+
331, 1, 0, 0, 0, 330, 328, 1, 0, 0, 0, 331, 342, 5, 39, 0, 0, 332, 337, 5,
|
|
375
|
+
34, 0, 0, 333, 336, 3, 95, 47, 0, 334, 336, 8, 4, 0, 0, 335, 333, 1, 0, 0,
|
|
376
|
+
0, 335, 334, 1, 0, 0, 0, 336, 339, 1, 0, 0, 0, 337, 335, 1, 0, 0, 0, 337,
|
|
377
|
+
338, 1, 0, 0, 0, 338, 340, 1, 0, 0, 0, 339, 337, 1, 0, 0, 0, 340, 342, 5,
|
|
378
|
+
34, 0, 0, 341, 323, 1, 0, 0, 0, 341, 332, 1, 0, 0, 0, 342, 84, 1, 0, 0, 0,
|
|
379
|
+
343, 345, 7, 5, 0, 0, 344, 343, 1, 0, 0, 0, 345, 346, 1, 0, 0, 0, 346, 344,
|
|
380
|
+
1, 0, 0, 0, 346, 347, 1, 0, 0, 0, 347, 348, 1, 0, 0, 0, 348, 349, 6, 42, 0,
|
|
381
|
+
0, 349, 86, 1, 0, 0, 0, 350, 351, 7, 6, 0, 0, 351, 88, 1, 0, 0, 0, 352, 353,
|
|
382
|
+
7, 6, 0, 0, 353, 354, 7, 6, 0, 0, 354, 355, 7, 6, 0, 0, 355, 356, 7, 6, 0,
|
|
383
|
+
0, 356, 361, 5, 45, 0, 0, 357, 358, 7, 7, 0, 0, 358, 362, 7, 8, 0, 0, 359,
|
|
384
|
+
360, 7, 9, 0, 0, 360, 362, 7, 10, 0, 0, 361, 357, 1, 0, 0, 0, 361, 359, 1,
|
|
385
|
+
0, 0, 0, 362, 363, 1, 0, 0, 0, 363, 370, 5, 45, 0, 0, 364, 365, 7, 11, 0, 0,
|
|
386
|
+
365, 371, 7, 7, 0, 0, 366, 367, 7, 10, 0, 0, 367, 371, 7, 8, 0, 0, 368, 369,
|
|
387
|
+
5, 51, 0, 0, 369, 371, 5, 49, 0, 0, 370, 364, 1, 0, 0, 0, 370, 366, 1, 0, 0,
|
|
388
|
+
0, 370, 368, 1, 0, 0, 0, 371, 90, 1, 0, 0, 0, 372, 373, 7, 12, 0, 0, 373,
|
|
389
|
+
377, 7, 6, 0, 0, 374, 375, 5, 50, 0, 0, 375, 377, 7, 13, 0, 0, 376, 372, 1,
|
|
390
|
+
0, 0, 0, 376, 374, 1, 0, 0, 0, 377, 378, 1, 0, 0, 0, 378, 379, 5, 58, 0, 0,
|
|
391
|
+
379, 380, 7, 14, 0, 0, 380, 381, 7, 6, 0, 0, 381, 394, 1, 0, 0, 0, 382, 383,
|
|
392
|
+
5, 58, 0, 0, 383, 384, 7, 14, 0, 0, 384, 385, 7, 6, 0, 0, 385, 392, 1, 0, 0,
|
|
393
|
+
0, 386, 388, 5, 46, 0, 0, 387, 389, 7, 6, 0, 0, 388, 387, 1, 0, 0, 0, 389,
|
|
394
|
+
390, 1, 0, 0, 0, 390, 388, 1, 0, 0, 0, 390, 391, 1, 0, 0, 0, 391, 393, 1, 0,
|
|
395
|
+
0, 0, 392, 386, 1, 0, 0, 0, 392, 393, 1, 0, 0, 0, 393, 395, 1, 0, 0, 0, 394,
|
|
396
|
+
382, 1, 0, 0, 0, 394, 395, 1, 0, 0, 0, 395, 92, 1, 0, 0, 0, 396, 412, 5, 90,
|
|
397
|
+
0, 0, 397, 404, 7, 2, 0, 0, 398, 400, 7, 12, 0, 0, 399, 398, 1, 0, 0, 0,
|
|
398
|
+
399, 400, 1, 0, 0, 0, 400, 401, 1, 0, 0, 0, 401, 405, 7, 6, 0, 0, 402, 403,
|
|
399
|
+
5, 50, 0, 0, 403, 405, 7, 13, 0, 0, 404, 399, 1, 0, 0, 0, 404, 402, 1, 0, 0,
|
|
400
|
+
0, 405, 409, 1, 0, 0, 0, 406, 407, 5, 58, 0, 0, 407, 408, 7, 14, 0, 0, 408,
|
|
401
|
+
410, 7, 6, 0, 0, 409, 406, 1, 0, 0, 0, 409, 410, 1, 0, 0, 0, 410, 412, 1, 0,
|
|
402
|
+
0, 0, 411, 396, 1, 0, 0, 0, 411, 397, 1, 0, 0, 0, 412, 94, 1, 0, 0, 0, 413,
|
|
403
|
+
416, 5, 92, 0, 0, 414, 417, 3, 97, 48, 0, 415, 417, 9, 0, 0, 0, 416, 414, 1,
|
|
404
|
+
0, 0, 0, 416, 415, 1, 0, 0, 0, 417, 96, 1, 0, 0, 0, 418, 419, 5, 117, 0, 0,
|
|
405
|
+
419, 420, 3, 99, 49, 0, 420, 421, 3, 99, 49, 0, 421, 422, 3, 99, 49, 0, 422,
|
|
406
|
+
423, 3, 99, 49, 0, 423, 98, 1, 0, 0, 0, 424, 425, 7, 15, 0, 0, 425, 100, 1,
|
|
407
|
+
0, 0, 0, 35, 0, 226, 239, 255, 265, 268, 273, 279, 282, 286, 291, 293, 301,
|
|
408
|
+
303, 306, 311, 319, 321, 326, 328, 335, 337, 341, 346, 361, 370, 376, 390,
|
|
409
|
+
392, 394, 399, 404, 409, 411, 416, 1, 0, 1, 0,
|
|
343
410
|
];
|
|
344
411
|
OpraFilterLexer.DecisionsToDFA = OpraFilterLexer._ATN.decisionToState.map((ds, index) => new antlr4_1.DFA(ds, index));
|
|
345
412
|
exports.default = OpraFilterLexer;
|
|
@@ -81,11 +81,14 @@ class OpraFilterParser extends antlr4_1.Parser {
|
|
|
81
81
|
this._ctx = localctx;
|
|
82
82
|
_prevctx = localctx;
|
|
83
83
|
this.state = 38;
|
|
84
|
-
localctx._left =
|
|
84
|
+
localctx._left =
|
|
85
|
+
this.comparisonLeft();
|
|
85
86
|
this.state = 39;
|
|
86
|
-
localctx._operator =
|
|
87
|
+
localctx._operator =
|
|
88
|
+
this.comparisonOperator();
|
|
87
89
|
this.state = 40;
|
|
88
|
-
localctx._right =
|
|
90
|
+
localctx._right =
|
|
91
|
+
this.comparisonRight();
|
|
89
92
|
}
|
|
90
93
|
break;
|
|
91
94
|
case 1:
|
|
@@ -132,7 +135,6 @@ class OpraFilterParser extends antlr4_1.Parser {
|
|
|
132
135
|
if (this._parseListeners != null) {
|
|
133
136
|
this.triggerExitRuleEvent();
|
|
134
137
|
}
|
|
135
|
-
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
136
138
|
_prevctx = localctx;
|
|
137
139
|
{
|
|
138
140
|
{
|
|
@@ -143,7 +145,8 @@ class OpraFilterParser extends antlr4_1.Parser {
|
|
|
143
145
|
throw this.createFailedPredicateException('this.precpred(this._ctx, 3)');
|
|
144
146
|
}
|
|
145
147
|
this.state = 51;
|
|
146
|
-
localctx._op =
|
|
148
|
+
localctx._op =
|
|
149
|
+
this.logicalOperator();
|
|
147
150
|
this.state = 52;
|
|
148
151
|
this.expression(4);
|
|
149
152
|
}
|
|
@@ -933,36 +936,51 @@ OpraFilterParser.ruleNames = [
|
|
|
933
936
|
'polarityOperator',
|
|
934
937
|
];
|
|
935
938
|
OpraFilterParser._serializedATN = [
|
|
936
|
-
4, 1, 43, 120, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4,
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
1,
|
|
943
|
-
|
|
944
|
-
1,
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
0, 0,
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
0,
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
939
|
+
4, 1, 43, 120, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4,
|
|
940
|
+
2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2,
|
|
941
|
+
11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7,
|
|
942
|
+
16, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
|
|
943
|
+
1, 1, 1, 1, 3, 1, 49, 8, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 55, 8, 1, 10, 1,
|
|
944
|
+
12, 1, 58, 9, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 66, 8, 3, 1, 4,
|
|
945
|
+
1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 78, 8, 5, 1, 6,
|
|
946
|
+
1, 6, 1, 6, 5, 6, 83, 8, 6, 10, 6, 12, 6, 86, 9, 6, 1, 6, 1, 6, 1, 7, 1, 7,
|
|
947
|
+
1, 7, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 5, 9, 99, 8, 9, 10, 9, 12, 9, 102,
|
|
948
|
+
9, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 11, 1, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1,
|
|
949
|
+
14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 0, 1, 2, 17, 0, 2, 4, 6, 8,
|
|
950
|
+
10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 0, 6, 1, 0, 3, 4, 1, 0, 10,
|
|
951
|
+
11, 1, 0, 13, 14, 1, 0, 15, 18, 1, 0, 19, 30, 1, 0, 31, 34, 117, 0, 34, 1,
|
|
952
|
+
0, 0, 0, 2, 48, 1, 0, 0, 0, 4, 59, 1, 0, 0, 0, 6, 65, 1, 0, 0, 0, 8, 67, 1,
|
|
953
|
+
0, 0, 0, 10, 77, 1, 0, 0, 0, 12, 84, 1, 0, 0, 0, 14, 89, 1, 0, 0, 0, 16, 92,
|
|
954
|
+
1, 0, 0, 0, 18, 94, 1, 0, 0, 0, 20, 105, 1, 0, 0, 0, 22, 107, 1, 0, 0, 0,
|
|
955
|
+
24, 109, 1, 0, 0, 0, 26, 111, 1, 0, 0, 0, 28, 113, 1, 0, 0, 0, 30, 115, 1,
|
|
956
|
+
0, 0, 0, 32, 117, 1, 0, 0, 0, 34, 35, 3, 2, 1, 0, 35, 36, 5, 0, 0, 1, 36, 1,
|
|
957
|
+
1, 0, 0, 0, 37, 38, 6, 1, -1, 0, 38, 39, 3, 4, 2, 0, 39, 40, 3, 28, 14, 0,
|
|
958
|
+
40, 41, 3, 6, 3, 0, 41, 49, 1, 0, 0, 0, 42, 43, 5, 1, 0, 0, 43, 44, 3, 8, 4,
|
|
959
|
+
0, 44, 45, 5, 2, 0, 0, 45, 49, 1, 0, 0, 0, 46, 47, 7, 0, 0, 0, 47, 49, 3, 2,
|
|
960
|
+
1, 1, 48, 37, 1, 0, 0, 0, 48, 42, 1, 0, 0, 0, 48, 46, 1, 0, 0, 0, 49, 56, 1,
|
|
961
|
+
0, 0, 0, 50, 51, 10, 3, 0, 0, 51, 52, 3, 30, 15, 0, 52, 53, 3, 2, 1, 4, 53,
|
|
962
|
+
55, 1, 0, 0, 0, 54, 50, 1, 0, 0, 0, 55, 58, 1, 0, 0, 0, 56, 54, 1, 0, 0, 0,
|
|
963
|
+
56, 57, 1, 0, 0, 0, 57, 3, 1, 0, 0, 0, 58, 56, 1, 0, 0, 0, 59, 60, 3, 12, 6,
|
|
964
|
+
0, 60, 5, 1, 0, 0, 0, 61, 66, 3, 10, 5, 0, 62, 66, 3, 12, 6, 0, 63, 66, 3,
|
|
965
|
+
14, 7, 0, 64, 66, 3, 18, 9, 0, 65, 61, 1, 0, 0, 0, 65, 62, 1, 0, 0, 0, 65,
|
|
966
|
+
63, 1, 0, 0, 0, 65, 64, 1, 0, 0, 0, 66, 7, 1, 0, 0, 0, 67, 68, 3, 2, 1, 0,
|
|
967
|
+
68, 9, 1, 0, 0, 0, 69, 78, 5, 40, 0, 0, 70, 78, 3, 24, 12, 0, 71, 78, 3, 20,
|
|
968
|
+
10, 0, 72, 78, 3, 22, 11, 0, 73, 78, 5, 37, 0, 0, 74, 78, 5, 38, 0, 0, 75,
|
|
969
|
+
78, 5, 39, 0, 0, 76, 78, 5, 42, 0, 0, 77, 69, 1, 0, 0, 0, 77, 70, 1, 0, 0,
|
|
970
|
+
0, 77, 71, 1, 0, 0, 0, 77, 72, 1, 0, 0, 0, 77, 73, 1, 0, 0, 0, 77, 74, 1, 0,
|
|
971
|
+
0, 0, 77, 75, 1, 0, 0, 0, 77, 76, 1, 0, 0, 0, 78, 11, 1, 0, 0, 0, 79, 80, 3,
|
|
972
|
+
16, 8, 0, 80, 81, 5, 5, 0, 0, 81, 83, 1, 0, 0, 0, 82, 79, 1, 0, 0, 0, 83,
|
|
973
|
+
86, 1, 0, 0, 0, 84, 82, 1, 0, 0, 0, 84, 85, 1, 0, 0, 0, 85, 87, 1, 0, 0, 0,
|
|
974
|
+
86, 84, 1, 0, 0, 0, 87, 88, 3, 16, 8, 0, 88, 13, 1, 0, 0, 0, 89, 90, 5, 6,
|
|
975
|
+
0, 0, 90, 91, 3, 16, 8, 0, 91, 15, 1, 0, 0, 0, 92, 93, 5, 35, 0, 0, 93, 17,
|
|
976
|
+
1, 0, 0, 0, 94, 95, 5, 7, 0, 0, 95, 100, 3, 10, 5, 0, 96, 97, 5, 8, 0, 0,
|
|
977
|
+
97, 99, 3, 10, 5, 0, 98, 96, 1, 0, 0, 0, 99, 102, 1, 0, 0, 0, 100, 98, 1, 0,
|
|
978
|
+
0, 0, 100, 101, 1, 0, 0, 0, 101, 103, 1, 0, 0, 0, 102, 100, 1, 0, 0, 0, 103,
|
|
979
|
+
104, 5, 9, 0, 0, 104, 19, 1, 0, 0, 0, 105, 106, 7, 1, 0, 0, 106, 21, 1, 0,
|
|
980
|
+
0, 0, 107, 108, 5, 12, 0, 0, 108, 23, 1, 0, 0, 0, 109, 110, 7, 2, 0, 0, 110,
|
|
981
|
+
25, 1, 0, 0, 0, 111, 112, 7, 3, 0, 0, 112, 27, 1, 0, 0, 0, 113, 114, 7, 4,
|
|
982
|
+
0, 0, 114, 29, 1, 0, 0, 0, 115, 116, 7, 5, 0, 0, 116, 31, 1, 0, 0, 0, 117,
|
|
983
|
+
118, 5, 36, 0, 0, 118, 33, 1, 0, 0, 0, 6, 48, 56, 65, 77, 84, 100,
|
|
966
984
|
];
|
|
967
985
|
OpraFilterParser.DecisionsToDFA = OpraFilterParser._ATN.decisionToState.map((ds, index) => new antlr4_1.DFA(ds, index));
|
|
968
986
|
exports.default = OpraFilterParser;
|
|
@@ -15,7 +15,9 @@ class ArithmeticExpression extends expression_js_1.Expression {
|
|
|
15
15
|
return this;
|
|
16
16
|
}
|
|
17
17
|
toString() {
|
|
18
|
-
return this.items
|
|
18
|
+
return this.items
|
|
19
|
+
.map((child, i) => (i > 0 ? child.op : '') + child.expression)
|
|
20
|
+
.join('');
|
|
19
21
|
}
|
|
20
22
|
}
|
|
21
23
|
exports.ArithmeticExpression = ArithmeticExpression;
|
|
@@ -31,7 +31,9 @@ class NumberLiteral extends literal_js_1.Literal {
|
|
|
31
31
|
throw new errors_js_1.FilterValidationError(`Invalid number literal ${value}`);
|
|
32
32
|
}
|
|
33
33
|
toString() {
|
|
34
|
-
return typeof this.value === 'bigint'
|
|
34
|
+
return typeof this.value === 'bigint'
|
|
35
|
+
? ('' + this.value).replace(/n$/, '')
|
|
36
|
+
: '' + this.value;
|
|
35
37
|
}
|
|
36
38
|
}
|
|
37
39
|
exports.NumberLiteral = NumberLiteral;
|