@chaoswise/business 1.0.5 → 2.1.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.
Files changed (82) hide show
  1. package/lib/I18nInput/index.d.ts +31 -0
  2. package/lib/I18nInput/index.js +379 -0
  3. package/lib/I18nInput/index.less +7 -0
  4. package/lib/index.d.ts +1 -0
  5. package/lib/index.js +1 -4
  6. package/lib/locales/en_US.json +1 -1
  7. package/lib/locales/index.d.ts +7 -0
  8. package/lib/locales/index.js +28 -13
  9. package/lib/locales/intl.d.ts +11 -0
  10. package/lib/locales/intl.js +39 -24
  11. package/lib/locales/ja_JP.json +1 -0
  12. package/lib/locales/normalizeLocale.d.ts +2 -0
  13. package/lib/locales/normalizeLocale.js +27 -0
  14. package/lib/locales/withLocale.d.ts +28 -0
  15. package/lib/locales/withLocale.js +2 -2
  16. package/lib/locales/zh_CN.json +1 -1
  17. package/lib/locales/zh_HK.json +1 -0
  18. package/lib/locales/zh_TW.json +1 -1
  19. package/package.json +10 -5
  20. package/lib/AggregateSearch/CLSPL/CLQLLexer.js +0 -78
  21. package/lib/AggregateSearch/CLSPL/CLQLParser.js +0 -2724
  22. package/lib/AggregateSearch/CLSPL/CLQLParserListener.js +0 -347
  23. package/lib/AggregateSearch/CLSPL/CLQLParserVisitor.js +0 -251
  24. package/lib/AggregateSearch/CLSPL/SPLStagy.js +0 -197
  25. package/lib/AggregateSearch/CLSPL/index.js +0 -196
  26. package/lib/AggregateSearch/CLSPL/makeTokenizeFn.js +0 -18
  27. package/lib/AggregateSearch/CLSPL/token.js +0 -7
  28. package/lib/AggregateSearch/components/CloseAllIcon/index.js +0 -13
  29. package/lib/AggregateSearch/components/CloseAllIcon/index.less +0 -11
  30. package/lib/AggregateSearch/components/DropDown/assets/combined.svg +0 -22
  31. package/lib/AggregateSearch/components/DropDown/assets/copy.svg +0 -22
  32. package/lib/AggregateSearch/components/DropDown/assets/delete.svg +0 -24
  33. package/lib/AggregateSearch/components/DropDown/assets/home.svg +0 -20
  34. package/lib/AggregateSearch/components/DropDown/assets/key.svg +0 -21
  35. package/lib/AggregateSearch/components/DropDown/assets/star.svg +0 -22
  36. package/lib/AggregateSearch/components/DropDown/assets/time-circle.svg +0 -20
  37. package/lib/AggregateSearch/components/DropDown/assets/value.svg +0 -23
  38. package/lib/AggregateSearch/components/DropDown/config.js +0 -54
  39. package/lib/AggregateSearch/components/DropDown/index.js +0 -584
  40. package/lib/AggregateSearch/components/DropDown/index.less +0 -118
  41. package/lib/AggregateSearch/components/SwitchBtn/assets/tag-icon.svg +0 -17
  42. package/lib/AggregateSearch/components/SwitchBtn/assets/text-icon.svg +0 -18
  43. package/lib/AggregateSearch/components/SwitchBtn/index.js +0 -27
  44. package/lib/AggregateSearch/components/SwitchBtn/index.less +0 -31
  45. package/lib/AggregateSearch/hooks/useDropDown.js +0 -428
  46. package/lib/AggregateSearch/index.js +0 -520
  47. package/lib/AggregateSearch/index.less +0 -225
  48. package/lib/AggregateSearch/utils/index.js +0 -391
  49. package/lib/ContentEditableSearch/components/CloseAllIcon/index.js +0 -13
  50. package/lib/ContentEditableSearch/components/CloseAllIcon/index.less +0 -11
  51. package/lib/ContentEditableSearch/index.js +0 -157
  52. package/lib/ContentEditableSearch/index.less +0 -65
  53. package/lib/ContentEditableSearch/utils/index.js +0 -98
  54. package/lib/PropertyControlViewer/assets/doCommon.less +0 -75
  55. package/lib/PropertyControlViewer/assets/doSelect.less +0 -74
  56. package/lib/PropertyControlViewer/assets/index.less +0 -189
  57. package/lib/PropertyControlViewer/components/DoAppIcon/CustomIcon/iconfont.js +0 -1
  58. package/lib/PropertyControlViewer/components/DoAppIcon/CustomIcon/index.js +0 -29
  59. package/lib/PropertyControlViewer/components/DoAppIcon/iconData/IconJson.js +0 -0
  60. package/lib/PropertyControlViewer/components/DoAppIcon/index.js +0 -41
  61. package/lib/PropertyControlViewer/components/DoCiUnitBitmap.js +0 -50
  62. package/lib/PropertyControlViewer/components/DoCommon.js +0 -36
  63. package/lib/PropertyControlViewer/components/DoDefaultPlaceholder.js +0 -9
  64. package/lib/PropertyControlViewer/components/DoImage.js +0 -107
  65. package/lib/PropertyControlViewer/components/DoQuote/components/QuoteView.js +0 -63
  66. package/lib/PropertyControlViewer/components/DoQuote/components/TableQuoteView.js +0 -18
  67. package/lib/PropertyControlViewer/components/DoQuote/index.js +0 -16
  68. package/lib/PropertyControlViewer/components/DoSelect.js +0 -80
  69. package/lib/PropertyControlViewer/components/DoTable.js +0 -44
  70. package/lib/PropertyControlViewer/components/DoUser.js +0 -61
  71. package/lib/PropertyControlViewer/components/TagShowMoreList/index.js +0 -132
  72. package/lib/PropertyControlViewer/components/TagShowMoreList/index.less +0 -106
  73. package/lib/PropertyControlViewer/config/constants.js +0 -84
  74. package/lib/PropertyControlViewer/config/utils.js +0 -353
  75. package/lib/PropertyControlViewer/index.js +0 -195
  76. package/lib/PropertyControlViewer/index.less +0 -107
  77. package/lib/Watermark/index.js +0 -187
  78. package/lib/Watermark/index.less +0 -17
  79. package/lib/demo.js +0 -0
  80. package/lib/locale/en_US.js +0 -9
  81. package/lib/locale/index.js +0 -12
  82. package/lib/locale/zh_CN.js +0 -9
@@ -1,2724 +0,0 @@
1
- function _superPropGet(t, o, e, r) { var p = _get(_getPrototypeOf(1 & r ? t.prototype : t), o, e); return 2 & r && "function" == typeof p ? function (t) { return p.apply(e, t); } : p; }
2
- function _get() { return _get = "undefined" != typeof Reflect && Reflect.get ? Reflect.get.bind() : function (e, t, r) { var p = _superPropBase(e, t); if (p) { var n = Object.getOwnPropertyDescriptor(p, t); return n.get ? n.get.call(arguments.length < 3 ? e : r) : n.value; } }, _get.apply(null, arguments); }
3
- function _superPropBase(t, o) { for (; !{}.hasOwnProperty.call(t, o) && null !== (t = _getPrototypeOf(t));); return t; }
4
- function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
5
- function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
6
- function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
7
- function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
8
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
9
- function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
10
- function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
11
- function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
12
- function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
13
- function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
14
- function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
15
- function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
16
- function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
17
- function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
18
- // Generated from /Users/changle/Documents/code/doop/cql/src/main/resources/antlr/cql/CLQLParser.g4 by ANTLR 4.9.2
19
- // jshint ignore: start
20
- import antlr4 from 'antlr4';
21
- import CLQLParserListener from './CLQLParserListener.js';
22
- import CLQLParserVisitor from './CLQLParserVisitor.js';
23
- var serializedATN = ["\x03\u608B\uA72A\u8133\uB9ED\u417C\u3BE7\u7786", "\u5964\x03\"\xB2\x04\x02\t\x02\x04\x03\t\x03\x04\x04", "\t\x04\x04\x05\t\x05\x04\x06\t\x06\x04\x07\t\x07", "\x04\b\t\b\x04\t\t\t\x04\n\t\n\x04\x0B\t\x0B\x04\f\t\f", "\x04\r\t\r\x04\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10", "\x04\x11\t\x11\x04\x12\t\x12\x04\x13\t\x13\x04\x14", "\t\x14\x04\x15\t\x15\x04\x16\t\x16\x03\x02\x03\x02", "\x05\x02/\n\x02\x03\x02\x03\x02\x03\x03\x03\x03", "\x03\x04\x06\x046\n\x04\r\x04\x0E\x047\x03\x05\x03", "\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03", "\x05\x03\x05\x03\x05\x05\x05D\n\x05\x03\x05\x03", "\x05\x03\x05\x03\x05\x03\x05\x03\x05\x07\x05L", "\n\x05\f\x05\x0E\x05O\x0B\x05\x03\x06\x03\x06\x03", "\x06\x05\x06T\n\x06\x03\x07\x03\x07\x03\b\x03\b", "\x05\bZ\n\b\x03\b\x03\b\x05\b^\n\b\x07\b`\n\b\f\b\x0E\b", "c\x0B\b\x03\b\x05\bf\n\b\x03\b\x03\b\x03\t\x03\t\x03", "\t\x03\t\x03\n\x03\n\x03\n\x03\n\x03\n\x03\n\x03\n\x03", "\n\x03\n\x03\n\x03\n\x03\n\x03\n\x03\n\x03\n\x03\n\x03", "\n\x03\n\x07\n\x80\n\n\f\n\x0E\n\x83\x0B\n\x03\n\x03", "\n\x03\n\x03\n\x05\n\x89\n\n\x03\x0B\x03\x0B\x03\f", "\x03\f\x05\f\x8F\n\f\x03\r\x03\r\x03\x0E\x03\x0E\x05", "\x0E\x95\n\x0E\x03\x0F\x03\x0F\x03\x10\x03\x10", "\x05\x10\x9B\n\x10\x03\x11\x03\x11\x03\x12\x03", "\x12\x05\x12\xA1\n\x12\x03\x13\x05\x13\xA4\n\x13", "\x03\x13\x03\x13\x03\x14\x05\x14\xA9\n\x14\x03", "\x14\x03\x14\x03\x15\x03\x15\x03\x16\x03\x16\x03", "\x16\x03\x16\x02\x03\b\x17\x02\x04\x06\b\n\f\x0E", "\x10\x12\x14\x16\x18\x1A\x1C\x1E \"$&(*\x02\b\x04", "\x02\x11\x11\x13\x13\x04\x02\x12\x12\x14\x14\x04", "\x02\x1C\x1C \x03\x02\x16\x17\x03\x02\x1E\x1F", "\x03\x02\x0B\x0E\x02\xB4\x02.\x03\x02\x02\x02", "\x042\x03\x02\x02\x02\x065\x03\x02\x02\x02\bC\x03", "\x02\x02\x02\nS\x03\x02\x02\x02\fU\x03\x02\x02\x02", "\x0EW\x03\x02\x02\x02\x10i\x03\x02\x02\x02\x12", "\x88\x03\x02\x02\x02\x14\x8A\x03\x02\x02\x02\x16", "\x8E\x03\x02\x02\x02\x18\x90\x03\x02\x02\x02\x1A", "\x94\x03\x02\x02\x02\x1C\x96\x03\x02\x02\x02\x1E", "\x9A\x03\x02\x02\x02 \x9C\x03\x02\x02\x02\"\xA0", "\x03\x02\x02\x02$\xA3\x03\x02\x02\x02&\xA8\x03", "\x02\x02\x02(\xAC\x03\x02\x02\x02*\xAE\x03\x02", "\x02\x02,/\x05\x04\x03\x02-/\x05*\x16\x02.,\x03", "\x02\x02\x02.-\x03\x02\x02\x02/0\x03\x02\x02\x02", "01\x07\x02\x02\x031\x03\x03\x02\x02\x0223\x05\x06", "\x04\x023\x05\x03\x02\x02\x0246\x05\b\x05\x0254", "\x03\x02\x02\x0267\x03\x02\x02\x0275\x03\x02\x02", "\x0278\x03\x02\x02\x028\x07\x03\x02\x02\x029:\b", "\x05\x01\x02:;\x07\t\x02\x02;<\x05\b\x05\x02<=\x07", "\n\x02\x02=D\x03\x02\x02\x02>?\x07\x19\x02\x02?", "D\x05\b\x05\b@D\x05\x10\t\x02AD\x05\x12\n\x02BD\x05", "\n\x06\x02C9\x03\x02\x02\x02C>\x03\x02\x02\x02C", "@\x03\x02\x02\x02CA\x03\x02\x02\x02CB\x03\x02\x02", "\x02DM\x03\x02\x02\x02EF\f\x07\x02\x02FG\x07\x1A", "\x02\x02GL\x05\b\x05\bHI\f\x06\x02\x02IJ\x07\x18\x02", "\x02JL\x05\b\x05\x07KE\x03\x02\x02\x02KH\x03\x02", "\x02\x02LO\x03\x02\x02\x02MK\x03\x02\x02\x02MN\x03", "\x02\x02\x02N\t\x03\x02\x02\x02OM\x03\x02\x02\x02", "PT\x05\x14\x0B\x02QT\x05\f\x07\x02RT\x05\x0E\b\x02", "SP\x03\x02\x02\x02SQ\x03\x02\x02\x02SR\x03\x02\x02", "\x02T\x0B\x03\x02\x02\x02UV\x07\x04\x02\x02V\r\x03", "\x02\x02\x02We\x07\x03\x02\x02XZ\x07\x05\x02\x02", "YX\x03\x02\x02\x02YZ\x03\x02\x02\x02Z[\x03\x02\x02", "\x02[]\x07\x10\x02\x02\\^\x07\x05\x02\x02]\\\x03", "\x02\x02\x02]^\x03\x02\x02\x02^`\x03\x02\x02\x02", "_Y\x03\x02\x02\x02`c\x03\x02\x02\x02a_\x03\x02\x02", "\x02ab\x03\x02\x02\x02bf\x03\x02\x02\x02ca\x03\x02", "\x02\x02df\x07\x05\x02\x02ea\x03\x02\x02\x02ed\x03", "\x02\x02\x02fg\x03\x02\x02\x02gh\x07\x03\x02\x02", "h\x0F\x03\x02\x02\x02ij\x05\x16\f\x02jk\x05(\x15", "\x02kl\x05\x16\f\x02l\x11\x03\x02\x02\x02mn\x05", "\x18\r\x02no\x07\b\x02\x02op\x05\x1A\x0E\x02p\x89", "\x03\x02\x02\x02qr\x05\x18\r\x02rs\x07\b\x02\x02", "st\t\x02\x02\x02tu\x05\"\x12\x02uv\x07\x1B\x02\x02", "vw\x05\"\x12\x02wx\t\x03\x02\x02x\x89\x03\x02\x02", "\x02yz\x05\x18\r\x02z{\x07\b\x02\x02{|\x07\t\x02\x02", "|\x81\x05\x1E\x10\x02}~\x07\x1A\x02\x02~\x80\x05", "\x1E\x10\x02\x7F}\x03\x02\x02\x02\x80\x83\x03", "\x02\x02\x02\x81\x7F\x03\x02\x02\x02\x81\x82\x03", "\x02\x02\x02\x82\x84\x03\x02\x02\x02\x83\x81\x03", "\x02\x02\x02\x84\x85\x07\n\x02\x02\x85\x89\x03", "\x02\x02\x02\x86\x87\x07\x15\x02\x02\x87\x89\x05", "\x18\r\x02\x88m\x03\x02\x02\x02\x88q\x03\x02\x02", "\x02\x88y\x03\x02\x02\x02\x88\x86\x03\x02\x02", "\x02\x89\x13\x03\x02\x02\x02\x8A\x8B\x05\x1A\x0E", "\x02\x8B\x15\x03\x02\x02\x02\x8C\x8F\x05\x18\r", "\x02\x8D\x8F\x05\x1E\x10\x02\x8E\x8C\x03\x02\x02", "\x02\x8E\x8D\x03\x02\x02\x02\x8F\x17\x03\x02\x02", "\x02\x90\x91\x07 \x02\x02\x91\x19\x03\x02\x02", "\x02\x92\x95\x05\x1C\x0F\x02\x93\x95\x05\x1E\x10", "\x02\x94\x92\x03\x02\x02\x02\x94\x93\x03\x02\x02", "\x02\x95\x1B\x03\x02\x02\x02\x96\x97\x07\"\x02", "\x02\x97\x1D\x03\x02\x02\x02\x98\x9B\x05 \x11", "\x02\x99\x9B\x05\"\x12\x02\x9A\x98\x03\x02\x02", "\x02\x9A\x99\x03\x02\x02\x02\x9B\x1F\x03\x02\x02", "\x02\x9C\x9D\t\x04\x02\x02\x9D!\x03\x02\x02\x02", "\x9E\xA1\x05$\x13\x02\x9F\xA1\x05&\x14\x02\xA0", "\x9E\x03\x02\x02\x02\xA0\x9F\x03\x02\x02\x02\xA1", "#\x03\x02\x02\x02\xA2\xA4\t\x05\x02\x02\xA3\xA2", "\x03\x02\x02\x02\xA3\xA4\x03\x02\x02\x02\xA4\xA5", "\x03\x02\x02\x02\xA5\xA6\x07\x1D\x02\x02\xA6%", "\x03\x02\x02\x02\xA7\xA9\t\x05\x02\x02\xA8\xA7", "\x03\x02\x02\x02\xA8\xA9\x03\x02\x02\x02\xA9\xAA", "\x03\x02\x02\x02\xAA\xAB\t\x06\x02\x02\xAB'\x03", "\x02\x02\x02\xAC\xAD\t\x07\x02\x02\xAD)\x03\x02", "\x02\x02\xAE\xAF\x07!\x02\x02\xAF\xB0\b\x16\x01", "\x02\xB0+\x03\x02\x02\x02\x14.7CKMSY]ae\x81\x88\x8E", "\x94\x9A\xA0\xA3\xA8"].join('');
24
- var atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
25
- var decisionsToDFA = atn.decisionToState.map(function (ds, index) {
26
- return new antlr4.dfa.DFA(ds, index);
27
- });
28
- var sharedContextCache = new antlr4.PredictionContextCache();
29
- var CLQLParser = /*#__PURE__*/function (_antlr4$Parser) {
30
- function CLQLParser(input) {
31
- var _this;
32
- _classCallCheck(this, CLQLParser);
33
- _this = _callSuper(this, CLQLParser, [input]);
34
- _this._interp = new antlr4.atn.ParserATNSimulator(_this, atn, decisionsToDFA, sharedContextCache);
35
- _this.ruleNames = CLQLParser.ruleNames;
36
- _this.literalNames = CLQLParser.literalNames;
37
- _this.symbolicNames = CLQLParser.symbolicNames;
38
- return _this;
39
- }
40
- _inherits(CLQLParser, _antlr4$Parser);
41
- return _createClass(CLQLParser, [{
42
- key: "atn",
43
- get: function get() {
44
- return atn;
45
- }
46
- }, {
47
- key: "sempred",
48
- value: function sempred(localctx, ruleIndex, predIndex) {
49
- switch (ruleIndex) {
50
- case 3:
51
- return this.logical_expr_sempred(localctx, predIndex);
52
- default:
53
- throw 'No predicate with index:' + ruleIndex;
54
- }
55
- }
56
- }, {
57
- key: "logical_expr_sempred",
58
- value: function logical_expr_sempred(localctx, predIndex) {
59
- switch (predIndex) {
60
- case 0:
61
- return this.precpred(this._ctx, 5);
62
- case 1:
63
- return this.precpred(this._ctx, 4);
64
- default:
65
- throw 'No predicate with index:' + predIndex;
66
- }
67
- }
68
- }, {
69
- key: "root",
70
- value: function root() {
71
- var localctx = new RootContext(this, this._ctx, this.state);
72
- this.enterRule(localctx, 0, CLQLParser.RULE_root);
73
- try {
74
- this.enterOuterAlt(localctx, 1);
75
- this.state = 44;
76
- this._errHandler.sync(this);
77
- switch (this._input.LA(1)) {
78
- case CLQLParser.WEI:
79
- case CLQLParser.REGEX:
80
- case CLQLParser.LPAREN:
81
- case CLQLParser.WAVE:
82
- case CLQLParser.PLUS:
83
- case CLQLParser.MINUS:
84
- case CLQLParser.K_NOT:
85
- case CLQLParser.DQUOTA_STRING:
86
- case CLQLParser.INTEGER_LITERAL:
87
- case CLQLParser.DECIMAL_LITERAL:
88
- case CLQLParser.HEXADECIMAL_LITERAL:
89
- case CLQLParser.UNQUOTA_STRING:
90
- case CLQLParser.FUZZY_LITERAL:
91
- this.state = 42;
92
- this.cqlStatement();
93
- break;
94
- case CLQLParser.UNEXPECTED_CHAR:
95
- this.state = 43;
96
- this.err();
97
- break;
98
- default:
99
- throw new antlr4.error.NoViableAltException(this);
100
- }
101
- this.state = 46;
102
- this.match(CLQLParser.EOF);
103
- } catch (re) {
104
- if (re instanceof antlr4.error.RecognitionException) {
105
- localctx.exception = re;
106
- this._errHandler.reportError(this, re);
107
- this._errHandler.recover(this, re);
108
- } else {
109
- throw re;
110
- }
111
- } finally {
112
- this.exitRule();
113
- }
114
- return localctx;
115
- }
116
- }, {
117
- key: "cqlStatement",
118
- value: function cqlStatement() {
119
- var localctx = new CqlStatementContext(this, this._ctx, this.state);
120
- this.enterRule(localctx, 2, CLQLParser.RULE_cqlStatement);
121
- try {
122
- this.enterOuterAlt(localctx, 1);
123
- this.state = 48;
124
- this.search();
125
- } catch (re) {
126
- if (re instanceof antlr4.error.RecognitionException) {
127
- localctx.exception = re;
128
- this._errHandler.reportError(this, re);
129
- this._errHandler.recover(this, re);
130
- } else {
131
- throw re;
132
- }
133
- } finally {
134
- this.exitRule();
135
- }
136
- return localctx;
137
- }
138
- }, {
139
- key: "search",
140
- value: function search() {
141
- var localctx = new SearchContext(this, this._ctx, this.state);
142
- this.enterRule(localctx, 4, CLQLParser.RULE_search);
143
- var _la = 0; // Token type
144
- try {
145
- this.enterOuterAlt(localctx, 1);
146
- this.state = 51;
147
- this._errHandler.sync(this);
148
- _la = this._input.LA(1);
149
- do {
150
- this.state = 50;
151
- this.logical_expr(0);
152
- this.state = 53;
153
- this._errHandler.sync(this);
154
- _la = this._input.LA(1);
155
- } while ((_la - 1 & ~0x1f) == 0 && (1 << _la - 1 & (1 << CLQLParser.WEI - 1 | 1 << CLQLParser.REGEX - 1 | 1 << CLQLParser.LPAREN - 1 | 1 << CLQLParser.WAVE - 1 | 1 << CLQLParser.PLUS - 1 | 1 << CLQLParser.MINUS - 1 | 1 << CLQLParser.K_NOT - 1 | 1 << CLQLParser.DQUOTA_STRING - 1 | 1 << CLQLParser.INTEGER_LITERAL - 1 | 1 << CLQLParser.DECIMAL_LITERAL - 1 | 1 << CLQLParser.HEXADECIMAL_LITERAL - 1 | 1 << CLQLParser.UNQUOTA_STRING - 1 | 1 << CLQLParser.FUZZY_LITERAL - 1)) !== 0);
156
- } catch (re) {
157
- if (re instanceof antlr4.error.RecognitionException) {
158
- localctx.exception = re;
159
- this._errHandler.reportError(this, re);
160
- this._errHandler.recover(this, re);
161
- } else {
162
- throw re;
163
- }
164
- } finally {
165
- this.exitRule();
166
- }
167
- return localctx;
168
- }
169
- }, {
170
- key: "logical_expr",
171
- value: function logical_expr(_p) {
172
- if (_p === undefined) {
173
- _p = 0;
174
- }
175
- var _parentctx = this._ctx;
176
- var _parentState = this.state;
177
- var localctx = new Logical_exprContext(this, this._ctx, _parentState);
178
- var _prevctx = localctx;
179
- var _startState = 6;
180
- this.enterRecursionRule(localctx, 6, CLQLParser.RULE_logical_expr, _p);
181
- try {
182
- this.enterOuterAlt(localctx, 1);
183
- this.state = 65;
184
- this._errHandler.sync(this);
185
- var la_ = this._interp.adaptivePredict(this._input, 2, this._ctx);
186
- switch (la_) {
187
- case 1:
188
- localctx = new ParenExprContext(this, localctx);
189
- this._ctx = localctx;
190
- _prevctx = localctx;
191
- this.state = 56;
192
- this.match(CLQLParser.LPAREN);
193
- this.state = 57;
194
- this.logical_expr(0);
195
- this.state = 58;
196
- this.match(CLQLParser.RPAREN);
197
- break;
198
- case 2:
199
- localctx = new NotExprContext(this, localctx);
200
- this._ctx = localctx;
201
- _prevctx = localctx;
202
- this.state = 60;
203
- this.match(CLQLParser.K_NOT);
204
- this.state = 61;
205
- this.logical_expr(6);
206
- break;
207
- case 3:
208
- localctx = new ComparisonExprContext(this, localctx);
209
- this._ctx = localctx;
210
- _prevctx = localctx;
211
- this.state = 62;
212
- this.comparison_expr();
213
- break;
214
- case 4:
215
- localctx = new FieldExprContext(this, localctx);
216
- this._ctx = localctx;
217
- _prevctx = localctx;
218
- this.state = 63;
219
- this.field_expr();
220
- break;
221
- case 5:
222
- localctx = new TextExprContext(this, localctx);
223
- this._ctx = localctx;
224
- _prevctx = localctx;
225
- this.state = 64;
226
- this.text_expr();
227
- break;
228
- }
229
- this._ctx.stop = this._input.LT(-1);
230
- this.state = 75;
231
- this._errHandler.sync(this);
232
- var _alt = this._interp.adaptivePredict(this._input, 4, this._ctx);
233
- while (_alt != 2 && _alt != antlr4.atn.ATN.INVALID_ALT_NUMBER) {
234
- if (_alt === 1) {
235
- if (this._parseListeners !== null) {
236
- this.triggerExitRuleEvent();
237
- }
238
- _prevctx = localctx;
239
- this.state = 73;
240
- this._errHandler.sync(this);
241
- var la_ = this._interp.adaptivePredict(this._input, 3, this._ctx);
242
- switch (la_) {
243
- case 1:
244
- localctx = new OrExprContext(this, new Logical_exprContext(this, _parentctx, _parentState));
245
- localctx.left = _prevctx;
246
- this.pushNewRecursionContext(localctx, _startState, CLQLParser.RULE_logical_expr);
247
- this.state = 67;
248
- if (!this.precpred(this._ctx, 5)) {
249
- throw new antlr4.error.FailedPredicateException(this, 'this.precpred(this._ctx, 5)');
250
- }
251
- this.state = 68;
252
- this.match(CLQLParser.K_OR);
253
- this.state = 69;
254
- localctx.right = this.logical_expr(6);
255
- break;
256
- case 2:
257
- localctx = new AndExprContext(this, new Logical_exprContext(this, _parentctx, _parentState));
258
- localctx.left = _prevctx;
259
- this.pushNewRecursionContext(localctx, _startState, CLQLParser.RULE_logical_expr);
260
- this.state = 70;
261
- if (!this.precpred(this._ctx, 4)) {
262
- throw new antlr4.error.FailedPredicateException(this, 'this.precpred(this._ctx, 4)');
263
- }
264
- this.state = 71;
265
- this.match(CLQLParser.K_AND);
266
- this.state = 72;
267
- localctx.right = this.logical_expr(5);
268
- break;
269
- }
270
- }
271
- this.state = 77;
272
- this._errHandler.sync(this);
273
- _alt = this._interp.adaptivePredict(this._input, 4, this._ctx);
274
- }
275
- } catch (error) {
276
- if (error instanceof antlr4.error.RecognitionException) {
277
- localctx.exception = error;
278
- this._errHandler.reportError(this, error);
279
- this._errHandler.recover(this, error);
280
- } else {
281
- throw error;
282
- }
283
- } finally {
284
- this.unrollRecursionContexts(_parentctx);
285
- }
286
- return localctx;
287
- }
288
- }, {
289
- key: "text_expr",
290
- value: function text_expr() {
291
- var localctx = new Text_exprContext(this, this._ctx, this.state);
292
- this.enterRule(localctx, 8, CLQLParser.RULE_text_expr);
293
- try {
294
- this.state = 81;
295
- this._errHandler.sync(this);
296
- switch (this._input.LA(1)) {
297
- case CLQLParser.PLUS:
298
- case CLQLParser.MINUS:
299
- case CLQLParser.DQUOTA_STRING:
300
- case CLQLParser.INTEGER_LITERAL:
301
- case CLQLParser.DECIMAL_LITERAL:
302
- case CLQLParser.HEXADECIMAL_LITERAL:
303
- case CLQLParser.UNQUOTA_STRING:
304
- case CLQLParser.FUZZY_LITERAL:
305
- localctx = new TextSearchExprContext(this, localctx);
306
- this.enterOuterAlt(localctx, 1);
307
- this.state = 78;
308
- this.text_search_expr();
309
- break;
310
- case CLQLParser.REGEX:
311
- localctx = new TextRegexExprContext(this, localctx);
312
- this.enterOuterAlt(localctx, 2);
313
- this.state = 79;
314
- this.text_regex_expr();
315
- break;
316
- case CLQLParser.WEI:
317
- localctx = new TextRegexModelExprContext(this, localctx);
318
- this.enterOuterAlt(localctx, 3);
319
- this.state = 80;
320
- this.text_regex_model_expr();
321
- break;
322
- default:
323
- throw new antlr4.error.NoViableAltException(this);
324
- }
325
- } catch (re) {
326
- if (re instanceof antlr4.error.RecognitionException) {
327
- localctx.exception = re;
328
- this._errHandler.reportError(this, re);
329
- this._errHandler.recover(this, re);
330
- } else {
331
- throw re;
332
- }
333
- } finally {
334
- this.exitRule();
335
- }
336
- return localctx;
337
- }
338
- }, {
339
- key: "text_regex_expr",
340
- value: function text_regex_expr() {
341
- var localctx = new Text_regex_exprContext(this, this._ctx, this.state);
342
- this.enterRule(localctx, 10, CLQLParser.RULE_text_regex_expr);
343
- try {
344
- this.enterOuterAlt(localctx, 1);
345
- this.state = 83;
346
- this.match(CLQLParser.REGEX);
347
- } catch (re) {
348
- if (re instanceof antlr4.error.RecognitionException) {
349
- localctx.exception = re;
350
- this._errHandler.reportError(this, re);
351
- this._errHandler.recover(this, re);
352
- } else {
353
- throw re;
354
- }
355
- } finally {
356
- this.exitRule();
357
- }
358
- return localctx;
359
- }
360
- }, {
361
- key: "text_regex_model_expr",
362
- value: function text_regex_model_expr() {
363
- var localctx = new Text_regex_model_exprContext(this, this._ctx, this.state);
364
- this.enterRule(localctx, 12, CLQLParser.RULE_text_regex_model_expr);
365
- var _la = 0; // Token type
366
- try {
367
- this.enterOuterAlt(localctx, 1);
368
- this.state = 85;
369
- this.match(CLQLParser.WEI);
370
- this.state = 99;
371
- this._errHandler.sync(this);
372
- var la_ = this._interp.adaptivePredict(this._input, 9, this._ctx);
373
- switch (la_) {
374
- case 1:
375
- this.state = 95;
376
- this._errHandler.sync(this);
377
- _la = this._input.LA(1);
378
- while (_la === CLQLParser.BQUOTA_STRING || _la === CLQLParser.STAR) {
379
- this.state = 87;
380
- this._errHandler.sync(this);
381
- _la = this._input.LA(1);
382
- if (_la === CLQLParser.BQUOTA_STRING) {
383
- this.state = 86;
384
- this.match(CLQLParser.BQUOTA_STRING);
385
- }
386
- this.state = 89;
387
- this.match(CLQLParser.STAR);
388
- this.state = 91;
389
- this._errHandler.sync(this);
390
- var la_ = this._interp.adaptivePredict(this._input, 7, this._ctx);
391
- if (la_ === 1) {
392
- this.state = 90;
393
- this.match(CLQLParser.BQUOTA_STRING);
394
- }
395
- this.state = 97;
396
- this._errHandler.sync(this);
397
- _la = this._input.LA(1);
398
- }
399
- break;
400
- case 2:
401
- this.state = 98;
402
- this.match(CLQLParser.BQUOTA_STRING);
403
- break;
404
- }
405
- this.state = 101;
406
- this.match(CLQLParser.WEI);
407
- } catch (re) {
408
- if (re instanceof antlr4.error.RecognitionException) {
409
- localctx.exception = re;
410
- this._errHandler.reportError(this, re);
411
- this._errHandler.recover(this, re);
412
- } else {
413
- throw re;
414
- }
415
- } finally {
416
- this.exitRule();
417
- }
418
- return localctx;
419
- }
420
- }, {
421
- key: "comparison_expr",
422
- value: function comparison_expr() {
423
- var localctx = new Comparison_exprContext(this, this._ctx, this.state);
424
- this.enterRule(localctx, 14, CLQLParser.RULE_comparison_expr);
425
- try {
426
- localctx = new NumberCompareExprContext(this, localctx);
427
- this.enterOuterAlt(localctx, 1);
428
- this.state = 103;
429
- localctx.left = this.primary_expr();
430
- this.state = 104;
431
- this.comparison_number_operator();
432
- this.state = 105;
433
- localctx.right = this.primary_expr();
434
- } catch (re) {
435
- if (re instanceof antlr4.error.RecognitionException) {
436
- localctx.exception = re;
437
- this._errHandler.reportError(this, re);
438
- this._errHandler.recover(this, re);
439
- } else {
440
- throw re;
441
- }
442
- } finally {
443
- this.exitRule();
444
- }
445
- return localctx;
446
- }
447
- }, {
448
- key: "field_expr",
449
- value: function field_expr() {
450
- var localctx = new Field_exprContext(this, this._ctx, this.state);
451
- this.enterRule(localctx, 16, CLQLParser.RULE_field_expr);
452
- var _la = 0; // Token type
453
- try {
454
- this.state = 134;
455
- this._errHandler.sync(this);
456
- var la_ = this._interp.adaptivePredict(this._input, 11, this._ctx);
457
- switch (la_) {
458
- case 1:
459
- localctx = new FieldValueExprContext(this, localctx);
460
- this.enterOuterAlt(localctx, 1);
461
- this.state = 107;
462
- localctx.left = this.field();
463
- this.state = 108;
464
- this.match(CLQLParser.COLON);
465
- this.state = 109;
466
- localctx.right = this.fuzzy_literal_value();
467
- break;
468
- case 2:
469
- localctx = new FieldRangeExprContext(this, localctx);
470
- this.enterOuterAlt(localctx, 2);
471
- this.state = 111;
472
- this.field();
473
- this.state = 112;
474
- this.match(CLQLParser.COLON);
475
- this.state = 113;
476
- _la = this._input.LA(1);
477
- if (!(_la === CLQLParser.LBRAKET || _la === CLQLParser.LCURLY)) {
478
- this._errHandler.recoverInline(this);
479
- } else {
480
- this._errHandler.reportMatch(this);
481
- this.consume();
482
- }
483
- this.state = 114;
484
- this.number_literal();
485
- this.state = 115;
486
- this.match(CLQLParser.K_TO);
487
- this.state = 116;
488
- this.number_literal();
489
- this.state = 117;
490
- _la = this._input.LA(1);
491
- if (!(_la === CLQLParser.RBRAKET || _la === CLQLParser.RCURLY)) {
492
- this._errHandler.recoverInline(this);
493
- } else {
494
- this._errHandler.reportMatch(this);
495
- this.consume();
496
- }
497
- break;
498
- case 3:
499
- localctx = new FieldInExprContext(this, localctx);
500
- this.enterOuterAlt(localctx, 3);
501
- this.state = 119;
502
- this.field();
503
- this.state = 120;
504
- this.match(CLQLParser.COLON);
505
- this.state = 121;
506
- this.match(CLQLParser.LPAREN);
507
- this.state = 122;
508
- this.literal_value();
509
- this.state = 127;
510
- this._errHandler.sync(this);
511
- _la = this._input.LA(1);
512
- while (_la === CLQLParser.K_OR) {
513
- this.state = 123;
514
- this.match(CLQLParser.K_OR);
515
- this.state = 124;
516
- this.literal_value();
517
- this.state = 129;
518
- this._errHandler.sync(this);
519
- _la = this._input.LA(1);
520
- }
521
- this.state = 130;
522
- this.match(CLQLParser.RPAREN);
523
- break;
524
- case 4:
525
- localctx = new FieldExistExprContext(this, localctx);
526
- this.enterOuterAlt(localctx, 4);
527
- this.state = 132;
528
- this.match(CLQLParser.WAVE);
529
- this.state = 133;
530
- this.field();
531
- break;
532
- }
533
- } catch (re) {
534
- if (re instanceof antlr4.error.RecognitionException) {
535
- localctx.exception = re;
536
- this._errHandler.reportError(this, re);
537
- this._errHandler.recover(this, re);
538
- } else {
539
- throw re;
540
- }
541
- } finally {
542
- this.exitRule();
543
- }
544
- return localctx;
545
- }
546
- }, {
547
- key: "text_search_expr",
548
- value: function text_search_expr() {
549
- var localctx = new Text_search_exprContext(this, this._ctx, this.state);
550
- this.enterRule(localctx, 18, CLQLParser.RULE_text_search_expr);
551
- try {
552
- this.enterOuterAlt(localctx, 1);
553
- this.state = 136;
554
- this.fuzzy_literal_value();
555
- } catch (re) {
556
- if (re instanceof antlr4.error.RecognitionException) {
557
- localctx.exception = re;
558
- this._errHandler.reportError(this, re);
559
- this._errHandler.recover(this, re);
560
- } else {
561
- throw re;
562
- }
563
- } finally {
564
- this.exitRule();
565
- }
566
- return localctx;
567
- }
568
- }, {
569
- key: "primary_expr",
570
- value: function primary_expr() {
571
- var localctx = new Primary_exprContext(this, this._ctx, this.state);
572
- this.enterRule(localctx, 20, CLQLParser.RULE_primary_expr);
573
- try {
574
- this.state = 140;
575
- this._errHandler.sync(this);
576
- var la_ = this._interp.adaptivePredict(this._input, 12, this._ctx);
577
- switch (la_) {
578
- case 1:
579
- this.enterOuterAlt(localctx, 1);
580
- this.state = 138;
581
- this.field();
582
- break;
583
- case 2:
584
- this.enterOuterAlt(localctx, 2);
585
- this.state = 139;
586
- this.literal_value();
587
- break;
588
- }
589
- } catch (re) {
590
- if (re instanceof antlr4.error.RecognitionException) {
591
- localctx.exception = re;
592
- this._errHandler.reportError(this, re);
593
- this._errHandler.recover(this, re);
594
- } else {
595
- throw re;
596
- }
597
- } finally {
598
- this.exitRule();
599
- }
600
- return localctx;
601
- }
602
- }, {
603
- key: "field",
604
- value: function field() {
605
- var localctx = new FieldContext(this, this._ctx, this.state);
606
- this.enterRule(localctx, 22, CLQLParser.RULE_field);
607
- try {
608
- this.enterOuterAlt(localctx, 1);
609
- this.state = 142;
610
- this.match(CLQLParser.UNQUOTA_STRING);
611
- } catch (re) {
612
- if (re instanceof antlr4.error.RecognitionException) {
613
- localctx.exception = re;
614
- this._errHandler.reportError(this, re);
615
- this._errHandler.recover(this, re);
616
- } else {
617
- throw re;
618
- }
619
- } finally {
620
- this.exitRule();
621
- }
622
- return localctx;
623
- }
624
- }, {
625
- key: "fuzzy_literal_value",
626
- value: function fuzzy_literal_value() {
627
- var localctx = new Fuzzy_literal_valueContext(this, this._ctx, this.state);
628
- this.enterRule(localctx, 24, CLQLParser.RULE_fuzzy_literal_value);
629
- try {
630
- this.state = 146;
631
- this._errHandler.sync(this);
632
- switch (this._input.LA(1)) {
633
- case CLQLParser.FUZZY_LITERAL:
634
- this.enterOuterAlt(localctx, 1);
635
- this.state = 144;
636
- this.fuzzy_literal();
637
- break;
638
- case CLQLParser.PLUS:
639
- case CLQLParser.MINUS:
640
- case CLQLParser.DQUOTA_STRING:
641
- case CLQLParser.INTEGER_LITERAL:
642
- case CLQLParser.DECIMAL_LITERAL:
643
- case CLQLParser.HEXADECIMAL_LITERAL:
644
- case CLQLParser.UNQUOTA_STRING:
645
- this.enterOuterAlt(localctx, 2);
646
- this.state = 145;
647
- this.literal_value();
648
- break;
649
- default:
650
- throw new antlr4.error.NoViableAltException(this);
651
- }
652
- } catch (re) {
653
- if (re instanceof antlr4.error.RecognitionException) {
654
- localctx.exception = re;
655
- this._errHandler.reportError(this, re);
656
- this._errHandler.recover(this, re);
657
- } else {
658
- throw re;
659
- }
660
- } finally {
661
- this.exitRule();
662
- }
663
- return localctx;
664
- }
665
- }, {
666
- key: "fuzzy_literal",
667
- value: function fuzzy_literal() {
668
- var localctx = new Fuzzy_literalContext(this, this._ctx, this.state);
669
- this.enterRule(localctx, 26, CLQLParser.RULE_fuzzy_literal);
670
- try {
671
- this.enterOuterAlt(localctx, 1);
672
- this.state = 148;
673
- this.match(CLQLParser.FUZZY_LITERAL);
674
- } catch (re) {
675
- if (re instanceof antlr4.error.RecognitionException) {
676
- localctx.exception = re;
677
- this._errHandler.reportError(this, re);
678
- this._errHandler.recover(this, re);
679
- } else {
680
- throw re;
681
- }
682
- } finally {
683
- this.exitRule();
684
- }
685
- return localctx;
686
- }
687
- }, {
688
- key: "literal_value",
689
- value: function literal_value() {
690
- var localctx = new Literal_valueContext(this, this._ctx, this.state);
691
- this.enterRule(localctx, 28, CLQLParser.RULE_literal_value);
692
- try {
693
- this.state = 152;
694
- this._errHandler.sync(this);
695
- switch (this._input.LA(1)) {
696
- case CLQLParser.DQUOTA_STRING:
697
- case CLQLParser.UNQUOTA_STRING:
698
- this.enterOuterAlt(localctx, 1);
699
- this.state = 150;
700
- this.string_literal();
701
- break;
702
- case CLQLParser.PLUS:
703
- case CLQLParser.MINUS:
704
- case CLQLParser.INTEGER_LITERAL:
705
- case CLQLParser.DECIMAL_LITERAL:
706
- case CLQLParser.HEXADECIMAL_LITERAL:
707
- this.enterOuterAlt(localctx, 2);
708
- this.state = 151;
709
- this.number_literal();
710
- break;
711
- default:
712
- throw new antlr4.error.NoViableAltException(this);
713
- }
714
- } catch (re) {
715
- if (re instanceof antlr4.error.RecognitionException) {
716
- localctx.exception = re;
717
- this._errHandler.reportError(this, re);
718
- this._errHandler.recover(this, re);
719
- } else {
720
- throw re;
721
- }
722
- } finally {
723
- this.exitRule();
724
- }
725
- return localctx;
726
- }
727
- }, {
728
- key: "string_literal",
729
- value: function string_literal() {
730
- var localctx = new String_literalContext(this, this._ctx, this.state);
731
- this.enterRule(localctx, 30, CLQLParser.RULE_string_literal);
732
- var _la = 0; // Token type
733
- try {
734
- this.enterOuterAlt(localctx, 1);
735
- this.state = 154;
736
- _la = this._input.LA(1);
737
- if (!(_la === CLQLParser.DQUOTA_STRING || _la === CLQLParser.UNQUOTA_STRING)) {
738
- this._errHandler.recoverInline(this);
739
- } else {
740
- this._errHandler.reportMatch(this);
741
- this.consume();
742
- }
743
- } catch (re) {
744
- if (re instanceof antlr4.error.RecognitionException) {
745
- localctx.exception = re;
746
- this._errHandler.reportError(this, re);
747
- this._errHandler.recover(this, re);
748
- } else {
749
- throw re;
750
- }
751
- } finally {
752
- this.exitRule();
753
- }
754
- return localctx;
755
- }
756
- }, {
757
- key: "number_literal",
758
- value: function number_literal() {
759
- var localctx = new Number_literalContext(this, this._ctx, this.state);
760
- this.enterRule(localctx, 32, CLQLParser.RULE_number_literal);
761
- try {
762
- this.state = 158;
763
- this._errHandler.sync(this);
764
- var la_ = this._interp.adaptivePredict(this._input, 15, this._ctx);
765
- switch (la_) {
766
- case 1:
767
- this.enterOuterAlt(localctx, 1);
768
- this.state = 156;
769
- this.integer_literal();
770
- break;
771
- case 2:
772
- this.enterOuterAlt(localctx, 2);
773
- this.state = 157;
774
- this.decimal_literal();
775
- break;
776
- }
777
- } catch (re) {
778
- if (re instanceof antlr4.error.RecognitionException) {
779
- localctx.exception = re;
780
- this._errHandler.reportError(this, re);
781
- this._errHandler.recover(this, re);
782
- } else {
783
- throw re;
784
- }
785
- } finally {
786
- this.exitRule();
787
- }
788
- return localctx;
789
- }
790
- }, {
791
- key: "integer_literal",
792
- value: function integer_literal() {
793
- var localctx = new Integer_literalContext(this, this._ctx, this.state);
794
- this.enterRule(localctx, 34, CLQLParser.RULE_integer_literal);
795
- var _la = 0; // Token type
796
- try {
797
- this.enterOuterAlt(localctx, 1);
798
- this.state = 161;
799
- this._errHandler.sync(this);
800
- _la = this._input.LA(1);
801
- if (_la === CLQLParser.PLUS || _la === CLQLParser.MINUS) {
802
- this.state = 160;
803
- _la = this._input.LA(1);
804
- if (!(_la === CLQLParser.PLUS || _la === CLQLParser.MINUS)) {
805
- this._errHandler.recoverInline(this);
806
- } else {
807
- this._errHandler.reportMatch(this);
808
- this.consume();
809
- }
810
- }
811
- this.state = 163;
812
- this.match(CLQLParser.INTEGER_LITERAL);
813
- } catch (re) {
814
- if (re instanceof antlr4.error.RecognitionException) {
815
- localctx.exception = re;
816
- this._errHandler.reportError(this, re);
817
- this._errHandler.recover(this, re);
818
- } else {
819
- throw re;
820
- }
821
- } finally {
822
- this.exitRule();
823
- }
824
- return localctx;
825
- }
826
- }, {
827
- key: "decimal_literal",
828
- value: function decimal_literal() {
829
- var localctx = new Decimal_literalContext(this, this._ctx, this.state);
830
- this.enterRule(localctx, 36, CLQLParser.RULE_decimal_literal);
831
- var _la = 0; // Token type
832
- try {
833
- this.enterOuterAlt(localctx, 1);
834
- this.state = 166;
835
- this._errHandler.sync(this);
836
- _la = this._input.LA(1);
837
- if (_la === CLQLParser.PLUS || _la === CLQLParser.MINUS) {
838
- this.state = 165;
839
- _la = this._input.LA(1);
840
- if (!(_la === CLQLParser.PLUS || _la === CLQLParser.MINUS)) {
841
- this._errHandler.recoverInline(this);
842
- } else {
843
- this._errHandler.reportMatch(this);
844
- this.consume();
845
- }
846
- }
847
- this.state = 168;
848
- _la = this._input.LA(1);
849
- if (!(_la === CLQLParser.DECIMAL_LITERAL || _la === CLQLParser.HEXADECIMAL_LITERAL)) {
850
- this._errHandler.recoverInline(this);
851
- } else {
852
- this._errHandler.reportMatch(this);
853
- this.consume();
854
- }
855
- } catch (re) {
856
- if (re instanceof antlr4.error.RecognitionException) {
857
- localctx.exception = re;
858
- this._errHandler.reportError(this, re);
859
- this._errHandler.recover(this, re);
860
- } else {
861
- throw re;
862
- }
863
- } finally {
864
- this.exitRule();
865
- }
866
- return localctx;
867
- }
868
- }, {
869
- key: "comparison_number_operator",
870
- value: function comparison_number_operator() {
871
- var localctx = new Comparison_number_operatorContext(this, this._ctx, this.state);
872
- this.enterRule(localctx, 38, CLQLParser.RULE_comparison_number_operator);
873
- var _la = 0; // Token type
874
- try {
875
- this.enterOuterAlt(localctx, 1);
876
- this.state = 170;
877
- _la = this._input.LA(1);
878
- if (!((_la & ~0x1f) == 0 && (1 << _la & (1 << CLQLParser.LT | 1 << CLQLParser.GT | 1 << CLQLParser.LE | 1 << CLQLParser.GE)) !== 0)) {
879
- this._errHandler.recoverInline(this);
880
- } else {
881
- this._errHandler.reportMatch(this);
882
- this.consume();
883
- }
884
- } catch (re) {
885
- if (re instanceof antlr4.error.RecognitionException) {
886
- localctx.exception = re;
887
- this._errHandler.reportError(this, re);
888
- this._errHandler.recover(this, re);
889
- } else {
890
- throw re;
891
- }
892
- } finally {
893
- this.exitRule();
894
- }
895
- return localctx;
896
- }
897
- }, {
898
- key: "err",
899
- value: function err() {
900
- var localctx = new ErrContext(this, this._ctx, this.state);
901
- this.enterRule(localctx, 40, CLQLParser.RULE_err);
902
- try {
903
- this.enterOuterAlt(localctx, 1);
904
- this.state = 172;
905
- localctx._UNEXPECTED_CHAR = this.match(CLQLParser.UNEXPECTED_CHAR);
906
- throw new Error('UNEXPECTED_CHAR=' + (localctx._UNEXPECTED_CHAR === null ? null : localctx._UNEXPECTED_CHAR.text));
907
- } catch (re) {
908
- if (re instanceof antlr4.error.RecognitionException) {
909
- localctx.exception = re;
910
- this._errHandler.reportError(this, re);
911
- this._errHandler.recover(this, re);
912
- } else {
913
- throw re;
914
- }
915
- } finally {
916
- this.exitRule();
917
- }
918
- return localctx;
919
- }
920
- }]);
921
- }(antlr4.Parser);
922
- _defineProperty(CLQLParser, "grammarFileName", 'CLQLParser.g4');
923
- _defineProperty(CLQLParser, "literalNames", [null, "'#'", null, null, null, null, "':'", "'('", "')'", "'<'", "'>'", "'<='", "'>='", "'?'", "'*'", "'['", "']'", "'{'", "'}'", "'~'", "'+'", "'-'"]);
924
- _defineProperty(CLQLParser, "symbolicNames", [null, 'WEI', 'REGEX', 'BQUOTA_STRING', 'LINE_COMMENT', 'SPACES', 'COLON', 'LPAREN', 'RPAREN', 'LT', 'GT', 'LE', 'GE', 'QUESTION', 'STAR', 'LBRAKET', 'RBRAKET', 'LCURLY', 'RCURLY', 'WAVE', 'PLUS', 'MINUS', 'K_AND', 'K_NOT', 'K_OR', 'K_TO', 'DQUOTA_STRING', 'INTEGER_LITERAL', 'DECIMAL_LITERAL', 'HEXADECIMAL_LITERAL', 'UNQUOTA_STRING', 'UNEXPECTED_CHAR', 'FUZZY_LITERAL']);
925
- _defineProperty(CLQLParser, "ruleNames", ['root', 'cqlStatement', 'search', 'logical_expr', 'text_expr', 'text_regex_expr', 'text_regex_model_expr', 'comparison_expr', 'field_expr', 'text_search_expr', 'primary_expr', 'field', 'fuzzy_literal_value', 'fuzzy_literal', 'literal_value', 'string_literal', 'number_literal', 'integer_literal', 'decimal_literal', 'comparison_number_operator', 'err']);
926
- export { CLQLParser as default };
927
- CLQLParser.EOF = antlr4.Token.EOF;
928
- CLQLParser.WEI = 1;
929
- CLQLParser.REGEX = 2;
930
- CLQLParser.BQUOTA_STRING = 3;
931
- CLQLParser.LINE_COMMENT = 4;
932
- CLQLParser.SPACES = 5;
933
- CLQLParser.COLON = 6;
934
- CLQLParser.LPAREN = 7;
935
- CLQLParser.RPAREN = 8;
936
- CLQLParser.LT = 9;
937
- CLQLParser.GT = 10;
938
- CLQLParser.LE = 11;
939
- CLQLParser.GE = 12;
940
- CLQLParser.QUESTION = 13;
941
- CLQLParser.STAR = 14;
942
- CLQLParser.LBRAKET = 15;
943
- CLQLParser.RBRAKET = 16;
944
- CLQLParser.LCURLY = 17;
945
- CLQLParser.RCURLY = 18;
946
- CLQLParser.WAVE = 19;
947
- CLQLParser.PLUS = 20;
948
- CLQLParser.MINUS = 21;
949
- CLQLParser.K_AND = 22;
950
- CLQLParser.K_NOT = 23;
951
- CLQLParser.K_OR = 24;
952
- CLQLParser.K_TO = 25;
953
- CLQLParser.DQUOTA_STRING = 26;
954
- CLQLParser.INTEGER_LITERAL = 27;
955
- CLQLParser.DECIMAL_LITERAL = 28;
956
- CLQLParser.HEXADECIMAL_LITERAL = 29;
957
- CLQLParser.UNQUOTA_STRING = 30;
958
- CLQLParser.UNEXPECTED_CHAR = 31;
959
- CLQLParser.FUZZY_LITERAL = 32;
960
- CLQLParser.RULE_root = 0;
961
- CLQLParser.RULE_cqlStatement = 1;
962
- CLQLParser.RULE_search = 2;
963
- CLQLParser.RULE_logical_expr = 3;
964
- CLQLParser.RULE_text_expr = 4;
965
- CLQLParser.RULE_text_regex_expr = 5;
966
- CLQLParser.RULE_text_regex_model_expr = 6;
967
- CLQLParser.RULE_comparison_expr = 7;
968
- CLQLParser.RULE_field_expr = 8;
969
- CLQLParser.RULE_text_search_expr = 9;
970
- CLQLParser.RULE_primary_expr = 10;
971
- CLQLParser.RULE_field = 11;
972
- CLQLParser.RULE_fuzzy_literal_value = 12;
973
- CLQLParser.RULE_fuzzy_literal = 13;
974
- CLQLParser.RULE_literal_value = 14;
975
- CLQLParser.RULE_string_literal = 15;
976
- CLQLParser.RULE_number_literal = 16;
977
- CLQLParser.RULE_integer_literal = 17;
978
- CLQLParser.RULE_decimal_literal = 18;
979
- CLQLParser.RULE_comparison_number_operator = 19;
980
- CLQLParser.RULE_err = 20;
981
- var RootContext = /*#__PURE__*/function (_antlr4$ParserRuleCon) {
982
- function RootContext(parser, parent, invokingState) {
983
- var _this2;
984
- _classCallCheck(this, RootContext);
985
- if (parent === undefined) {
986
- parent = null;
987
- }
988
- if (invokingState === undefined || invokingState === null) {
989
- invokingState = -1;
990
- }
991
- _this2 = _callSuper(this, RootContext, [parent, invokingState]);
992
- _this2.parser = parser;
993
- _this2.ruleIndex = CLQLParser.RULE_root;
994
- return _this2;
995
- }
996
- _inherits(RootContext, _antlr4$ParserRuleCon);
997
- return _createClass(RootContext, [{
998
- key: "EOF",
999
- value: function EOF() {
1000
- return this.getToken(CLQLParser.EOF, 0);
1001
- }
1002
- }, {
1003
- key: "cqlStatement",
1004
- value: function cqlStatement() {
1005
- return this.getTypedRuleContext(CqlStatementContext, 0);
1006
- }
1007
- }, {
1008
- key: "err",
1009
- value: function err() {
1010
- return this.getTypedRuleContext(ErrContext, 0);
1011
- }
1012
- }, {
1013
- key: "enterRule",
1014
- value: function enterRule(listener) {
1015
- if (listener instanceof CLQLParserListener) {
1016
- listener.enterRoot(this);
1017
- }
1018
- }
1019
- }, {
1020
- key: "exitRule",
1021
- value: function exitRule(listener) {
1022
- if (listener instanceof CLQLParserListener) {
1023
- listener.exitRoot(this);
1024
- }
1025
- }
1026
- }, {
1027
- key: "accept",
1028
- value: function accept(visitor) {
1029
- if (visitor instanceof CLQLParserVisitor) {
1030
- return visitor.visitRoot(this);
1031
- } else {
1032
- return visitor.visitChildren(this);
1033
- }
1034
- }
1035
- }]);
1036
- }(antlr4.ParserRuleContext);
1037
- var CqlStatementContext = /*#__PURE__*/function (_antlr4$ParserRuleCon2) {
1038
- function CqlStatementContext(parser, parent, invokingState) {
1039
- var _this3;
1040
- _classCallCheck(this, CqlStatementContext);
1041
- if (parent === undefined) {
1042
- parent = null;
1043
- }
1044
- if (invokingState === undefined || invokingState === null) {
1045
- invokingState = -1;
1046
- }
1047
- _this3 = _callSuper(this, CqlStatementContext, [parent, invokingState]);
1048
- _this3.parser = parser;
1049
- _this3.ruleIndex = CLQLParser.RULE_cqlStatement;
1050
- return _this3;
1051
- }
1052
- _inherits(CqlStatementContext, _antlr4$ParserRuleCon2);
1053
- return _createClass(CqlStatementContext, [{
1054
- key: "search",
1055
- value: function search() {
1056
- return this.getTypedRuleContext(SearchContext, 0);
1057
- }
1058
- }, {
1059
- key: "enterRule",
1060
- value: function enterRule(listener) {
1061
- if (listener instanceof CLQLParserListener) {
1062
- listener.enterCqlStatement(this);
1063
- }
1064
- }
1065
- }, {
1066
- key: "exitRule",
1067
- value: function exitRule(listener) {
1068
- if (listener instanceof CLQLParserListener) {
1069
- listener.exitCqlStatement(this);
1070
- }
1071
- }
1072
- }, {
1073
- key: "accept",
1074
- value: function accept(visitor) {
1075
- if (visitor instanceof CLQLParserVisitor) {
1076
- return visitor.visitCqlStatement(this);
1077
- } else {
1078
- return visitor.visitChildren(this);
1079
- }
1080
- }
1081
- }]);
1082
- }(antlr4.ParserRuleContext);
1083
- var SearchContext = /*#__PURE__*/function (_antlr4$ParserRuleCon3) {
1084
- function SearchContext(parser, parent, invokingState) {
1085
- var _this4;
1086
- _classCallCheck(this, SearchContext);
1087
- if (parent === undefined) {
1088
- parent = null;
1089
- }
1090
- if (invokingState === undefined || invokingState === null) {
1091
- invokingState = -1;
1092
- }
1093
- _this4 = _callSuper(this, SearchContext, [parent, invokingState]);
1094
- _defineProperty(_this4, "logical_expr", function (i) {
1095
- if (i === undefined) {
1096
- i = null;
1097
- }
1098
- if (i === null) {
1099
- return this.getTypedRuleContexts(Logical_exprContext);
1100
- } else {
1101
- return this.getTypedRuleContext(Logical_exprContext, i);
1102
- }
1103
- });
1104
- _this4.parser = parser;
1105
- _this4.ruleIndex = CLQLParser.RULE_search;
1106
- return _this4;
1107
- }
1108
- _inherits(SearchContext, _antlr4$ParserRuleCon3);
1109
- return _createClass(SearchContext, [{
1110
- key: "enterRule",
1111
- value: function enterRule(listener) {
1112
- if (listener instanceof CLQLParserListener) {
1113
- listener.enterSearch(this);
1114
- }
1115
- }
1116
- }, {
1117
- key: "exitRule",
1118
- value: function exitRule(listener) {
1119
- if (listener instanceof CLQLParserListener) {
1120
- listener.exitSearch(this);
1121
- }
1122
- }
1123
- }, {
1124
- key: "accept",
1125
- value: function accept(visitor) {
1126
- if (visitor instanceof CLQLParserVisitor) {
1127
- return visitor.visitSearch(this);
1128
- } else {
1129
- return visitor.visitChildren(this);
1130
- }
1131
- }
1132
- }]);
1133
- }(antlr4.ParserRuleContext);
1134
- var Logical_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon4) {
1135
- function Logical_exprContext(parser, parent, invokingState) {
1136
- var _this5;
1137
- _classCallCheck(this, Logical_exprContext);
1138
- if (parent === undefined) {
1139
- parent = null;
1140
- }
1141
- if (invokingState === undefined || invokingState === null) {
1142
- invokingState = -1;
1143
- }
1144
- _this5 = _callSuper(this, Logical_exprContext, [parent, invokingState]);
1145
- _this5.parser = parser;
1146
- _this5.ruleIndex = CLQLParser.RULE_logical_expr;
1147
- return _this5;
1148
- }
1149
- _inherits(Logical_exprContext, _antlr4$ParserRuleCon4);
1150
- return _createClass(Logical_exprContext, [{
1151
- key: "copyFrom",
1152
- value: function copyFrom(ctx) {
1153
- _superPropGet(Logical_exprContext, "copyFrom", this, 3)([ctx]);
1154
- }
1155
- }]);
1156
- }(antlr4.ParserRuleContext);
1157
- var NotExprContext = /*#__PURE__*/function (_Logical_exprContext) {
1158
- function NotExprContext(parser, ctx) {
1159
- var _this6;
1160
- _classCallCheck(this, NotExprContext);
1161
- _this6 = _callSuper(this, NotExprContext, [parser]);
1162
- _superPropGet((_this6, NotExprContext), "copyFrom", _this6, 3)([ctx]);
1163
- return _this6;
1164
- }
1165
- _inherits(NotExprContext, _Logical_exprContext);
1166
- return _createClass(NotExprContext, [{
1167
- key: "K_NOT",
1168
- value: function K_NOT() {
1169
- return this.getToken(CLQLParser.K_NOT, 0);
1170
- }
1171
- }, {
1172
- key: "logical_expr",
1173
- value: function logical_expr() {
1174
- return this.getTypedRuleContext(Logical_exprContext, 0);
1175
- }
1176
- }, {
1177
- key: "enterRule",
1178
- value: function enterRule(listener) {
1179
- if (listener instanceof CLQLParserListener) {
1180
- listener.enterNotExpr(this);
1181
- }
1182
- }
1183
- }, {
1184
- key: "exitRule",
1185
- value: function exitRule(listener) {
1186
- if (listener instanceof CLQLParserListener) {
1187
- listener.exitNotExpr(this);
1188
- }
1189
- }
1190
- }, {
1191
- key: "accept",
1192
- value: function accept(visitor) {
1193
- if (visitor instanceof CLQLParserVisitor) {
1194
- return visitor.visitNotExpr(this);
1195
- } else {
1196
- return visitor.visitChildren(this);
1197
- }
1198
- }
1199
- }]);
1200
- }(Logical_exprContext);
1201
- CLQLParser.NotExprContext = NotExprContext;
1202
- var TextExprContext = /*#__PURE__*/function (_Logical_exprContext2) {
1203
- function TextExprContext(parser, ctx) {
1204
- var _this7;
1205
- _classCallCheck(this, TextExprContext);
1206
- _this7 = _callSuper(this, TextExprContext, [parser]);
1207
- _superPropGet((_this7, TextExprContext), "copyFrom", _this7, 3)([ctx]);
1208
- return _this7;
1209
- }
1210
- _inherits(TextExprContext, _Logical_exprContext2);
1211
- return _createClass(TextExprContext, [{
1212
- key: "text_expr",
1213
- value: function text_expr() {
1214
- return this.getTypedRuleContext(Text_exprContext, 0);
1215
- }
1216
- }, {
1217
- key: "enterRule",
1218
- value: function enterRule(listener) {
1219
- if (listener instanceof CLQLParserListener) {
1220
- listener.enterTextExpr(this);
1221
- }
1222
- }
1223
- }, {
1224
- key: "exitRule",
1225
- value: function exitRule(listener) {
1226
- if (listener instanceof CLQLParserListener) {
1227
- listener.exitTextExpr(this);
1228
- }
1229
- }
1230
- }, {
1231
- key: "accept",
1232
- value: function accept(visitor) {
1233
- if (visitor instanceof CLQLParserVisitor) {
1234
- return visitor.visitTextExpr(this);
1235
- } else {
1236
- return visitor.visitChildren(this);
1237
- }
1238
- }
1239
- }]);
1240
- }(Logical_exprContext);
1241
- CLQLParser.TextExprContext = TextExprContext;
1242
- var OrExprContext = /*#__PURE__*/function (_Logical_exprContext3) {
1243
- function OrExprContext(parser, ctx) {
1244
- var _this8;
1245
- _classCallCheck(this, OrExprContext);
1246
- _this8 = _callSuper(this, OrExprContext, [parser]);
1247
- _defineProperty(_this8, "logical_expr", function (i) {
1248
- if (i === undefined) {
1249
- i = null;
1250
- }
1251
- if (i === null) {
1252
- return this.getTypedRuleContexts(Logical_exprContext);
1253
- } else {
1254
- return this.getTypedRuleContext(Logical_exprContext, i);
1255
- }
1256
- });
1257
- _this8.left = null; // Logical_exprContext;
1258
- _this8.right = null; // Logical_exprContext;
1259
- _superPropGet((_this8, OrExprContext), "copyFrom", _this8, 3)([ctx]);
1260
- return _this8;
1261
- }
1262
- _inherits(OrExprContext, _Logical_exprContext3);
1263
- return _createClass(OrExprContext, [{
1264
- key: "K_OR",
1265
- value: function K_OR() {
1266
- return this.getToken(CLQLParser.K_OR, 0);
1267
- }
1268
- }, {
1269
- key: "enterRule",
1270
- value: function enterRule(listener) {
1271
- if (listener instanceof CLQLParserListener) {
1272
- listener.enterOrExpr(this);
1273
- }
1274
- }
1275
- }, {
1276
- key: "exitRule",
1277
- value: function exitRule(listener) {
1278
- if (listener instanceof CLQLParserListener) {
1279
- listener.exitOrExpr(this);
1280
- }
1281
- }
1282
- }, {
1283
- key: "accept",
1284
- value: function accept(visitor) {
1285
- if (visitor instanceof CLQLParserVisitor) {
1286
- return visitor.visitOrExpr(this);
1287
- } else {
1288
- return visitor.visitChildren(this);
1289
- }
1290
- }
1291
- }]);
1292
- }(Logical_exprContext);
1293
- CLQLParser.OrExprContext = OrExprContext;
1294
- var ComparisonExprContext = /*#__PURE__*/function (_Logical_exprContext4) {
1295
- function ComparisonExprContext(parser, ctx) {
1296
- var _this9;
1297
- _classCallCheck(this, ComparisonExprContext);
1298
- _this9 = _callSuper(this, ComparisonExprContext, [parser]);
1299
- _superPropGet((_this9, ComparisonExprContext), "copyFrom", _this9, 3)([ctx]);
1300
- return _this9;
1301
- }
1302
- _inherits(ComparisonExprContext, _Logical_exprContext4);
1303
- return _createClass(ComparisonExprContext, [{
1304
- key: "comparison_expr",
1305
- value: function comparison_expr() {
1306
- return this.getTypedRuleContext(Comparison_exprContext, 0);
1307
- }
1308
- }, {
1309
- key: "enterRule",
1310
- value: function enterRule(listener) {
1311
- if (listener instanceof CLQLParserListener) {
1312
- listener.enterComparisonExpr(this);
1313
- }
1314
- }
1315
- }, {
1316
- key: "exitRule",
1317
- value: function exitRule(listener) {
1318
- if (listener instanceof CLQLParserListener) {
1319
- listener.exitComparisonExpr(this);
1320
- }
1321
- }
1322
- }, {
1323
- key: "accept",
1324
- value: function accept(visitor) {
1325
- if (visitor instanceof CLQLParserVisitor) {
1326
- return visitor.visitComparisonExpr(this);
1327
- } else {
1328
- return visitor.visitChildren(this);
1329
- }
1330
- }
1331
- }]);
1332
- }(Logical_exprContext);
1333
- CLQLParser.ComparisonExprContext = ComparisonExprContext;
1334
- var FieldExprContext = /*#__PURE__*/function (_Logical_exprContext5) {
1335
- function FieldExprContext(parser, ctx) {
1336
- var _this10;
1337
- _classCallCheck(this, FieldExprContext);
1338
- _this10 = _callSuper(this, FieldExprContext, [parser]);
1339
- _superPropGet((_this10, FieldExprContext), "copyFrom", _this10, 3)([ctx]);
1340
- return _this10;
1341
- }
1342
- _inherits(FieldExprContext, _Logical_exprContext5);
1343
- return _createClass(FieldExprContext, [{
1344
- key: "field_expr",
1345
- value: function field_expr() {
1346
- return this.getTypedRuleContext(Field_exprContext, 0);
1347
- }
1348
- }, {
1349
- key: "enterRule",
1350
- value: function enterRule(listener) {
1351
- if (listener instanceof CLQLParserListener) {
1352
- listener.enterFieldExpr(this);
1353
- }
1354
- }
1355
- }, {
1356
- key: "exitRule",
1357
- value: function exitRule(listener) {
1358
- if (listener instanceof CLQLParserListener) {
1359
- listener.exitFieldExpr(this);
1360
- }
1361
- }
1362
- }, {
1363
- key: "accept",
1364
- value: function accept(visitor) {
1365
- if (visitor instanceof CLQLParserVisitor) {
1366
- return visitor.visitFieldExpr(this);
1367
- } else {
1368
- return visitor.visitChildren(this);
1369
- }
1370
- }
1371
- }]);
1372
- }(Logical_exprContext);
1373
- CLQLParser.FieldExprContext = FieldExprContext;
1374
- var ParenExprContext = /*#__PURE__*/function (_Logical_exprContext6) {
1375
- function ParenExprContext(parser, ctx) {
1376
- var _this11;
1377
- _classCallCheck(this, ParenExprContext);
1378
- _this11 = _callSuper(this, ParenExprContext, [parser]);
1379
- _superPropGet((_this11, ParenExprContext), "copyFrom", _this11, 3)([ctx]);
1380
- return _this11;
1381
- }
1382
- _inherits(ParenExprContext, _Logical_exprContext6);
1383
- return _createClass(ParenExprContext, [{
1384
- key: "LPAREN",
1385
- value: function LPAREN() {
1386
- return this.getToken(CLQLParser.LPAREN, 0);
1387
- }
1388
- }, {
1389
- key: "logical_expr",
1390
- value: function logical_expr() {
1391
- return this.getTypedRuleContext(Logical_exprContext, 0);
1392
- }
1393
- }, {
1394
- key: "RPAREN",
1395
- value: function RPAREN() {
1396
- return this.getToken(CLQLParser.RPAREN, 0);
1397
- }
1398
- }, {
1399
- key: "enterRule",
1400
- value: function enterRule(listener) {
1401
- if (listener instanceof CLQLParserListener) {
1402
- listener.enterParenExpr(this);
1403
- }
1404
- }
1405
- }, {
1406
- key: "exitRule",
1407
- value: function exitRule(listener) {
1408
- if (listener instanceof CLQLParserListener) {
1409
- listener.exitParenExpr(this);
1410
- }
1411
- }
1412
- }, {
1413
- key: "accept",
1414
- value: function accept(visitor) {
1415
- if (visitor instanceof CLQLParserVisitor) {
1416
- return visitor.visitParenExpr(this);
1417
- } else {
1418
- return visitor.visitChildren(this);
1419
- }
1420
- }
1421
- }]);
1422
- }(Logical_exprContext);
1423
- CLQLParser.ParenExprContext = ParenExprContext;
1424
- var AndExprContext = /*#__PURE__*/function (_Logical_exprContext7) {
1425
- function AndExprContext(parser, ctx) {
1426
- var _this12;
1427
- _classCallCheck(this, AndExprContext);
1428
- _this12 = _callSuper(this, AndExprContext, [parser]);
1429
- _defineProperty(_this12, "logical_expr", function (i) {
1430
- if (i === undefined) {
1431
- i = null;
1432
- }
1433
- if (i === null) {
1434
- return this.getTypedRuleContexts(Logical_exprContext);
1435
- } else {
1436
- return this.getTypedRuleContext(Logical_exprContext, i);
1437
- }
1438
- });
1439
- _this12.left = null; // Logical_exprContext;
1440
- _this12.right = null; // Logical_exprContext;
1441
- _superPropGet((_this12, AndExprContext), "copyFrom", _this12, 3)([ctx]);
1442
- return _this12;
1443
- }
1444
- _inherits(AndExprContext, _Logical_exprContext7);
1445
- return _createClass(AndExprContext, [{
1446
- key: "K_AND",
1447
- value: function K_AND() {
1448
- return this.getToken(CLQLParser.K_AND, 0);
1449
- }
1450
- }, {
1451
- key: "enterRule",
1452
- value: function enterRule(listener) {
1453
- if (listener instanceof CLQLParserListener) {
1454
- listener.enterAndExpr(this);
1455
- }
1456
- }
1457
- }, {
1458
- key: "exitRule",
1459
- value: function exitRule(listener) {
1460
- if (listener instanceof CLQLParserListener) {
1461
- listener.exitAndExpr(this);
1462
- }
1463
- }
1464
- }, {
1465
- key: "accept",
1466
- value: function accept(visitor) {
1467
- if (visitor instanceof CLQLParserVisitor) {
1468
- return visitor.visitAndExpr(this);
1469
- } else {
1470
- return visitor.visitChildren(this);
1471
- }
1472
- }
1473
- }]);
1474
- }(Logical_exprContext);
1475
- CLQLParser.AndExprContext = AndExprContext;
1476
- var Text_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon5) {
1477
- function Text_exprContext(parser, parent, invokingState) {
1478
- var _this13;
1479
- _classCallCheck(this, Text_exprContext);
1480
- if (parent === undefined) {
1481
- parent = null;
1482
- }
1483
- if (invokingState === undefined || invokingState === null) {
1484
- invokingState = -1;
1485
- }
1486
- _this13 = _callSuper(this, Text_exprContext, [parent, invokingState]);
1487
- _this13.parser = parser;
1488
- _this13.ruleIndex = CLQLParser.RULE_text_expr;
1489
- return _this13;
1490
- }
1491
- _inherits(Text_exprContext, _antlr4$ParserRuleCon5);
1492
- return _createClass(Text_exprContext, [{
1493
- key: "copyFrom",
1494
- value: function copyFrom(ctx) {
1495
- _superPropGet(Text_exprContext, "copyFrom", this, 3)([ctx]);
1496
- }
1497
- }]);
1498
- }(antlr4.ParserRuleContext);
1499
- var TextSearchExprContext = /*#__PURE__*/function (_Text_exprContext) {
1500
- function TextSearchExprContext(parser, ctx) {
1501
- var _this14;
1502
- _classCallCheck(this, TextSearchExprContext);
1503
- _this14 = _callSuper(this, TextSearchExprContext, [parser]);
1504
- _superPropGet((_this14, TextSearchExprContext), "copyFrom", _this14, 3)([ctx]);
1505
- return _this14;
1506
- }
1507
- _inherits(TextSearchExprContext, _Text_exprContext);
1508
- return _createClass(TextSearchExprContext, [{
1509
- key: "text_search_expr",
1510
- value: function text_search_expr() {
1511
- return this.getTypedRuleContext(Text_search_exprContext, 0);
1512
- }
1513
- }, {
1514
- key: "enterRule",
1515
- value: function enterRule(listener) {
1516
- if (listener instanceof CLQLParserListener) {
1517
- listener.enterTextSearchExpr(this);
1518
- }
1519
- }
1520
- }, {
1521
- key: "exitRule",
1522
- value: function exitRule(listener) {
1523
- if (listener instanceof CLQLParserListener) {
1524
- listener.exitTextSearchExpr(this);
1525
- }
1526
- }
1527
- }, {
1528
- key: "accept",
1529
- value: function accept(visitor) {
1530
- if (visitor instanceof CLQLParserVisitor) {
1531
- return visitor.visitTextSearchExpr(this);
1532
- } else {
1533
- return visitor.visitChildren(this);
1534
- }
1535
- }
1536
- }]);
1537
- }(Text_exprContext);
1538
- CLQLParser.TextSearchExprContext = TextSearchExprContext;
1539
- var TextRegexExprContext = /*#__PURE__*/function (_Text_exprContext2) {
1540
- function TextRegexExprContext(parser, ctx) {
1541
- var _this15;
1542
- _classCallCheck(this, TextRegexExprContext);
1543
- _this15 = _callSuper(this, TextRegexExprContext, [parser]);
1544
- _superPropGet((_this15, TextRegexExprContext), "copyFrom", _this15, 3)([ctx]);
1545
- return _this15;
1546
- }
1547
- _inherits(TextRegexExprContext, _Text_exprContext2);
1548
- return _createClass(TextRegexExprContext, [{
1549
- key: "text_regex_expr",
1550
- value: function text_regex_expr() {
1551
- return this.getTypedRuleContext(Text_regex_exprContext, 0);
1552
- }
1553
- }, {
1554
- key: "enterRule",
1555
- value: function enterRule(listener) {
1556
- if (listener instanceof CLQLParserListener) {
1557
- listener.enterTextRegexExpr(this);
1558
- }
1559
- }
1560
- }, {
1561
- key: "exitRule",
1562
- value: function exitRule(listener) {
1563
- if (listener instanceof CLQLParserListener) {
1564
- listener.exitTextRegexExpr(this);
1565
- }
1566
- }
1567
- }, {
1568
- key: "accept",
1569
- value: function accept(visitor) {
1570
- if (visitor instanceof CLQLParserVisitor) {
1571
- return visitor.visitTextRegexExpr(this);
1572
- } else {
1573
- return visitor.visitChildren(this);
1574
- }
1575
- }
1576
- }]);
1577
- }(Text_exprContext);
1578
- CLQLParser.TextRegexExprContext = TextRegexExprContext;
1579
- var TextRegexModelExprContext = /*#__PURE__*/function (_Text_exprContext3) {
1580
- function TextRegexModelExprContext(parser, ctx) {
1581
- var _this16;
1582
- _classCallCheck(this, TextRegexModelExprContext);
1583
- _this16 = _callSuper(this, TextRegexModelExprContext, [parser]);
1584
- _superPropGet((_this16, TextRegexModelExprContext), "copyFrom", _this16, 3)([ctx]);
1585
- return _this16;
1586
- }
1587
- _inherits(TextRegexModelExprContext, _Text_exprContext3);
1588
- return _createClass(TextRegexModelExprContext, [{
1589
- key: "text_regex_model_expr",
1590
- value: function text_regex_model_expr() {
1591
- return this.getTypedRuleContext(Text_regex_model_exprContext, 0);
1592
- }
1593
- }, {
1594
- key: "enterRule",
1595
- value: function enterRule(listener) {
1596
- if (listener instanceof CLQLParserListener) {
1597
- listener.enterTextRegexModelExpr(this);
1598
- }
1599
- }
1600
- }, {
1601
- key: "exitRule",
1602
- value: function exitRule(listener) {
1603
- if (listener instanceof CLQLParserListener) {
1604
- listener.exitTextRegexModelExpr(this);
1605
- }
1606
- }
1607
- }, {
1608
- key: "accept",
1609
- value: function accept(visitor) {
1610
- if (visitor instanceof CLQLParserVisitor) {
1611
- return visitor.visitTextRegexModelExpr(this);
1612
- } else {
1613
- return visitor.visitChildren(this);
1614
- }
1615
- }
1616
- }]);
1617
- }(Text_exprContext);
1618
- CLQLParser.TextRegexModelExprContext = TextRegexModelExprContext;
1619
- var Text_regex_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon6) {
1620
- function Text_regex_exprContext(parser, parent, invokingState) {
1621
- var _this17;
1622
- _classCallCheck(this, Text_regex_exprContext);
1623
- if (parent === undefined) {
1624
- parent = null;
1625
- }
1626
- if (invokingState === undefined || invokingState === null) {
1627
- invokingState = -1;
1628
- }
1629
- _this17 = _callSuper(this, Text_regex_exprContext, [parent, invokingState]);
1630
- _this17.parser = parser;
1631
- _this17.ruleIndex = CLQLParser.RULE_text_regex_expr;
1632
- return _this17;
1633
- }
1634
- _inherits(Text_regex_exprContext, _antlr4$ParserRuleCon6);
1635
- return _createClass(Text_regex_exprContext, [{
1636
- key: "REGEX",
1637
- value: function REGEX() {
1638
- return this.getToken(CLQLParser.REGEX, 0);
1639
- }
1640
- }, {
1641
- key: "enterRule",
1642
- value: function enterRule(listener) {
1643
- if (listener instanceof CLQLParserListener) {
1644
- listener.enterText_regex_expr(this);
1645
- }
1646
- }
1647
- }, {
1648
- key: "exitRule",
1649
- value: function exitRule(listener) {
1650
- if (listener instanceof CLQLParserListener) {
1651
- listener.exitText_regex_expr(this);
1652
- }
1653
- }
1654
- }, {
1655
- key: "accept",
1656
- value: function accept(visitor) {
1657
- if (visitor instanceof CLQLParserVisitor) {
1658
- return visitor.visitText_regex_expr(this);
1659
- } else {
1660
- return visitor.visitChildren(this);
1661
- }
1662
- }
1663
- }]);
1664
- }(antlr4.ParserRuleContext);
1665
- var Text_regex_model_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon7) {
1666
- function Text_regex_model_exprContext(parser, parent, invokingState) {
1667
- var _this18;
1668
- _classCallCheck(this, Text_regex_model_exprContext);
1669
- if (parent === undefined) {
1670
- parent = null;
1671
- }
1672
- if (invokingState === undefined || invokingState === null) {
1673
- invokingState = -1;
1674
- }
1675
- _this18 = _callSuper(this, Text_regex_model_exprContext, [parent, invokingState]);
1676
- _defineProperty(_this18, "WEI", function (i) {
1677
- if (i === undefined) {
1678
- i = null;
1679
- }
1680
- if (i === null) {
1681
- return this.getTokens(CLQLParser.WEI);
1682
- } else {
1683
- return this.getToken(CLQLParser.WEI, i);
1684
- }
1685
- });
1686
- _defineProperty(_this18, "BQUOTA_STRING", function (i) {
1687
- if (i === undefined) {
1688
- i = null;
1689
- }
1690
- if (i === null) {
1691
- return this.getTokens(CLQLParser.BQUOTA_STRING);
1692
- } else {
1693
- return this.getToken(CLQLParser.BQUOTA_STRING, i);
1694
- }
1695
- });
1696
- _defineProperty(_this18, "STAR", function (i) {
1697
- if (i === undefined) {
1698
- i = null;
1699
- }
1700
- if (i === null) {
1701
- return this.getTokens(CLQLParser.STAR);
1702
- } else {
1703
- return this.getToken(CLQLParser.STAR, i);
1704
- }
1705
- });
1706
- _this18.parser = parser;
1707
- _this18.ruleIndex = CLQLParser.RULE_text_regex_model_expr;
1708
- return _this18;
1709
- }
1710
- _inherits(Text_regex_model_exprContext, _antlr4$ParserRuleCon7);
1711
- return _createClass(Text_regex_model_exprContext, [{
1712
- key: "enterRule",
1713
- value: function enterRule(listener) {
1714
- if (listener instanceof CLQLParserListener) {
1715
- listener.enterText_regex_model_expr(this);
1716
- }
1717
- }
1718
- }, {
1719
- key: "exitRule",
1720
- value: function exitRule(listener) {
1721
- if (listener instanceof CLQLParserListener) {
1722
- listener.exitText_regex_model_expr(this);
1723
- }
1724
- }
1725
- }, {
1726
- key: "accept",
1727
- value: function accept(visitor) {
1728
- if (visitor instanceof CLQLParserVisitor) {
1729
- return visitor.visitText_regex_model_expr(this);
1730
- } else {
1731
- return visitor.visitChildren(this);
1732
- }
1733
- }
1734
- }]);
1735
- }(antlr4.ParserRuleContext);
1736
- var Comparison_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon8) {
1737
- function Comparison_exprContext(parser, parent, invokingState) {
1738
- var _this19;
1739
- _classCallCheck(this, Comparison_exprContext);
1740
- if (parent === undefined) {
1741
- parent = null;
1742
- }
1743
- if (invokingState === undefined || invokingState === null) {
1744
- invokingState = -1;
1745
- }
1746
- _this19 = _callSuper(this, Comparison_exprContext, [parent, invokingState]);
1747
- _this19.parser = parser;
1748
- _this19.ruleIndex = CLQLParser.RULE_comparison_expr;
1749
- return _this19;
1750
- }
1751
- _inherits(Comparison_exprContext, _antlr4$ParserRuleCon8);
1752
- return _createClass(Comparison_exprContext, [{
1753
- key: "copyFrom",
1754
- value: function copyFrom(ctx) {
1755
- _superPropGet(Comparison_exprContext, "copyFrom", this, 3)([ctx]);
1756
- }
1757
- }]);
1758
- }(antlr4.ParserRuleContext);
1759
- var NumberCompareExprContext = /*#__PURE__*/function (_Comparison_exprConte) {
1760
- function NumberCompareExprContext(parser, ctx) {
1761
- var _this20;
1762
- _classCallCheck(this, NumberCompareExprContext);
1763
- _this20 = _callSuper(this, NumberCompareExprContext, [parser]);
1764
- _defineProperty(_this20, "primary_expr", function (i) {
1765
- if (i === undefined) {
1766
- i = null;
1767
- }
1768
- if (i === null) {
1769
- return this.getTypedRuleContexts(Primary_exprContext);
1770
- } else {
1771
- return this.getTypedRuleContext(Primary_exprContext, i);
1772
- }
1773
- });
1774
- _this20.left = null; // Primary_exprContext;
1775
- _this20.right = null; // Primary_exprContext;
1776
- _superPropGet((_this20, NumberCompareExprContext), "copyFrom", _this20, 3)([ctx]);
1777
- return _this20;
1778
- }
1779
- _inherits(NumberCompareExprContext, _Comparison_exprConte);
1780
- return _createClass(NumberCompareExprContext, [{
1781
- key: "comparison_number_operator",
1782
- value: function comparison_number_operator() {
1783
- return this.getTypedRuleContext(Comparison_number_operatorContext, 0);
1784
- }
1785
- }, {
1786
- key: "enterRule",
1787
- value: function enterRule(listener) {
1788
- if (listener instanceof CLQLParserListener) {
1789
- listener.enterNumberCompareExpr(this);
1790
- }
1791
- }
1792
- }, {
1793
- key: "exitRule",
1794
- value: function exitRule(listener) {
1795
- if (listener instanceof CLQLParserListener) {
1796
- listener.exitNumberCompareExpr(this);
1797
- }
1798
- }
1799
- }, {
1800
- key: "accept",
1801
- value: function accept(visitor) {
1802
- if (visitor instanceof CLQLParserVisitor) {
1803
- return visitor.visitNumberCompareExpr(this);
1804
- } else {
1805
- return visitor.visitChildren(this);
1806
- }
1807
- }
1808
- }]);
1809
- }(Comparison_exprContext);
1810
- CLQLParser.NumberCompareExprContext = NumberCompareExprContext;
1811
- var Field_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon9) {
1812
- function Field_exprContext(parser, parent, invokingState) {
1813
- var _this21;
1814
- _classCallCheck(this, Field_exprContext);
1815
- if (parent === undefined) {
1816
- parent = null;
1817
- }
1818
- if (invokingState === undefined || invokingState === null) {
1819
- invokingState = -1;
1820
- }
1821
- _this21 = _callSuper(this, Field_exprContext, [parent, invokingState]);
1822
- _this21.parser = parser;
1823
- _this21.ruleIndex = CLQLParser.RULE_field_expr;
1824
- return _this21;
1825
- }
1826
- _inherits(Field_exprContext, _antlr4$ParserRuleCon9);
1827
- return _createClass(Field_exprContext, [{
1828
- key: "copyFrom",
1829
- value: function copyFrom(ctx) {
1830
- _superPropGet(Field_exprContext, "copyFrom", this, 3)([ctx]);
1831
- }
1832
- }]);
1833
- }(antlr4.ParserRuleContext);
1834
- var FieldRangeExprContext = /*#__PURE__*/function (_Field_exprContext) {
1835
- function FieldRangeExprContext(parser, ctx) {
1836
- var _this22;
1837
- _classCallCheck(this, FieldRangeExprContext);
1838
- _this22 = _callSuper(this, FieldRangeExprContext, [parser]);
1839
- _defineProperty(_this22, "number_literal", function (i) {
1840
- if (i === undefined) {
1841
- i = null;
1842
- }
1843
- if (i === null) {
1844
- return this.getTypedRuleContexts(Number_literalContext);
1845
- } else {
1846
- return this.getTypedRuleContext(Number_literalContext, i);
1847
- }
1848
- });
1849
- _superPropGet((_this22, FieldRangeExprContext), "copyFrom", _this22, 3)([ctx]);
1850
- return _this22;
1851
- }
1852
- _inherits(FieldRangeExprContext, _Field_exprContext);
1853
- return _createClass(FieldRangeExprContext, [{
1854
- key: "field",
1855
- value: function field() {
1856
- return this.getTypedRuleContext(FieldContext, 0);
1857
- }
1858
- }, {
1859
- key: "COLON",
1860
- value: function COLON() {
1861
- return this.getToken(CLQLParser.COLON, 0);
1862
- }
1863
- }, {
1864
- key: "K_TO",
1865
- value: function K_TO() {
1866
- return this.getToken(CLQLParser.K_TO, 0);
1867
- }
1868
- }, {
1869
- key: "LBRAKET",
1870
- value: function LBRAKET() {
1871
- return this.getToken(CLQLParser.LBRAKET, 0);
1872
- }
1873
- }, {
1874
- key: "LCURLY",
1875
- value: function LCURLY() {
1876
- return this.getToken(CLQLParser.LCURLY, 0);
1877
- }
1878
- }, {
1879
- key: "RBRAKET",
1880
- value: function RBRAKET() {
1881
- return this.getToken(CLQLParser.RBRAKET, 0);
1882
- }
1883
- }, {
1884
- key: "RCURLY",
1885
- value: function RCURLY() {
1886
- return this.getToken(CLQLParser.RCURLY, 0);
1887
- }
1888
- }, {
1889
- key: "enterRule",
1890
- value: function enterRule(listener) {
1891
- if (listener instanceof CLQLParserListener) {
1892
- listener.enterFieldRangeExpr(this);
1893
- }
1894
- }
1895
- }, {
1896
- key: "exitRule",
1897
- value: function exitRule(listener) {
1898
- if (listener instanceof CLQLParserListener) {
1899
- listener.exitFieldRangeExpr(this);
1900
- }
1901
- }
1902
- }, {
1903
- key: "accept",
1904
- value: function accept(visitor) {
1905
- if (visitor instanceof CLQLParserVisitor) {
1906
- return visitor.visitFieldRangeExpr(this);
1907
- } else {
1908
- return visitor.visitChildren(this);
1909
- }
1910
- }
1911
- }]);
1912
- }(Field_exprContext);
1913
- CLQLParser.FieldRangeExprContext = FieldRangeExprContext;
1914
- var FieldValueExprContext = /*#__PURE__*/function (_Field_exprContext2) {
1915
- function FieldValueExprContext(parser, ctx) {
1916
- var _this23;
1917
- _classCallCheck(this, FieldValueExprContext);
1918
- _this23 = _callSuper(this, FieldValueExprContext, [parser]);
1919
- _this23.left = null; // FieldContext;
1920
- _this23.right = null; // Fuzzy_literal_valueContext;
1921
- _superPropGet((_this23, FieldValueExprContext), "copyFrom", _this23, 3)([ctx]);
1922
- return _this23;
1923
- }
1924
- _inherits(FieldValueExprContext, _Field_exprContext2);
1925
- return _createClass(FieldValueExprContext, [{
1926
- key: "COLON",
1927
- value: function COLON() {
1928
- return this.getToken(CLQLParser.COLON, 0);
1929
- }
1930
- }, {
1931
- key: "field",
1932
- value: function field() {
1933
- return this.getTypedRuleContext(FieldContext, 0);
1934
- }
1935
- }, {
1936
- key: "fuzzy_literal_value",
1937
- value: function fuzzy_literal_value() {
1938
- return this.getTypedRuleContext(Fuzzy_literal_valueContext, 0);
1939
- }
1940
- }, {
1941
- key: "enterRule",
1942
- value: function enterRule(listener) {
1943
- if (listener instanceof CLQLParserListener) {
1944
- listener.enterFieldValueExpr(this);
1945
- }
1946
- }
1947
- }, {
1948
- key: "exitRule",
1949
- value: function exitRule(listener) {
1950
- if (listener instanceof CLQLParserListener) {
1951
- listener.exitFieldValueExpr(this);
1952
- }
1953
- }
1954
- }, {
1955
- key: "accept",
1956
- value: function accept(visitor) {
1957
- if (visitor instanceof CLQLParserVisitor) {
1958
- return visitor.visitFieldValueExpr(this);
1959
- } else {
1960
- return visitor.visitChildren(this);
1961
- }
1962
- }
1963
- }]);
1964
- }(Field_exprContext);
1965
- CLQLParser.FieldValueExprContext = FieldValueExprContext;
1966
- var FieldInExprContext = /*#__PURE__*/function (_Field_exprContext3) {
1967
- function FieldInExprContext(parser, ctx) {
1968
- var _this24;
1969
- _classCallCheck(this, FieldInExprContext);
1970
- _this24 = _callSuper(this, FieldInExprContext, [parser]);
1971
- _defineProperty(_this24, "literal_value", function (i) {
1972
- if (i === undefined) {
1973
- i = null;
1974
- }
1975
- if (i === null) {
1976
- return this.getTypedRuleContexts(Literal_valueContext);
1977
- } else {
1978
- return this.getTypedRuleContext(Literal_valueContext, i);
1979
- }
1980
- });
1981
- _defineProperty(_this24, "K_OR", function (i) {
1982
- if (i === undefined) {
1983
- i = null;
1984
- }
1985
- if (i === null) {
1986
- return this.getTokens(CLQLParser.K_OR);
1987
- } else {
1988
- return this.getToken(CLQLParser.K_OR, i);
1989
- }
1990
- });
1991
- _superPropGet((_this24, FieldInExprContext), "copyFrom", _this24, 3)([ctx]);
1992
- return _this24;
1993
- }
1994
- _inherits(FieldInExprContext, _Field_exprContext3);
1995
- return _createClass(FieldInExprContext, [{
1996
- key: "field",
1997
- value: function field() {
1998
- return this.getTypedRuleContext(FieldContext, 0);
1999
- }
2000
- }, {
2001
- key: "COLON",
2002
- value: function COLON() {
2003
- return this.getToken(CLQLParser.COLON, 0);
2004
- }
2005
- }, {
2006
- key: "LPAREN",
2007
- value: function LPAREN() {
2008
- return this.getToken(CLQLParser.LPAREN, 0);
2009
- }
2010
- }, {
2011
- key: "RPAREN",
2012
- value: function RPAREN() {
2013
- return this.getToken(CLQLParser.RPAREN, 0);
2014
- }
2015
- }, {
2016
- key: "enterRule",
2017
- value: function enterRule(listener) {
2018
- if (listener instanceof CLQLParserListener) {
2019
- listener.enterFieldInExpr(this);
2020
- }
2021
- }
2022
- }, {
2023
- key: "exitRule",
2024
- value: function exitRule(listener) {
2025
- if (listener instanceof CLQLParserListener) {
2026
- listener.exitFieldInExpr(this);
2027
- }
2028
- }
2029
- }, {
2030
- key: "accept",
2031
- value: function accept(visitor) {
2032
- if (visitor instanceof CLQLParserVisitor) {
2033
- return visitor.visitFieldInExpr(this);
2034
- } else {
2035
- return visitor.visitChildren(this);
2036
- }
2037
- }
2038
- }]);
2039
- }(Field_exprContext);
2040
- CLQLParser.FieldInExprContext = FieldInExprContext;
2041
- var FieldExistExprContext = /*#__PURE__*/function (_Field_exprContext4) {
2042
- function FieldExistExprContext(parser, ctx) {
2043
- var _this25;
2044
- _classCallCheck(this, FieldExistExprContext);
2045
- _this25 = _callSuper(this, FieldExistExprContext, [parser]);
2046
- _superPropGet((_this25, FieldExistExprContext), "copyFrom", _this25, 3)([ctx]);
2047
- return _this25;
2048
- }
2049
- _inherits(FieldExistExprContext, _Field_exprContext4);
2050
- return _createClass(FieldExistExprContext, [{
2051
- key: "WAVE",
2052
- value: function WAVE() {
2053
- return this.getToken(CLQLParser.WAVE, 0);
2054
- }
2055
- }, {
2056
- key: "field",
2057
- value: function field() {
2058
- return this.getTypedRuleContext(FieldContext, 0);
2059
- }
2060
- }, {
2061
- key: "enterRule",
2062
- value: function enterRule(listener) {
2063
- if (listener instanceof CLQLParserListener) {
2064
- listener.enterFieldExistExpr(this);
2065
- }
2066
- }
2067
- }, {
2068
- key: "exitRule",
2069
- value: function exitRule(listener) {
2070
- if (listener instanceof CLQLParserListener) {
2071
- listener.exitFieldExistExpr(this);
2072
- }
2073
- }
2074
- }, {
2075
- key: "accept",
2076
- value: function accept(visitor) {
2077
- if (visitor instanceof CLQLParserVisitor) {
2078
- return visitor.visitFieldExistExpr(this);
2079
- } else {
2080
- return visitor.visitChildren(this);
2081
- }
2082
- }
2083
- }]);
2084
- }(Field_exprContext);
2085
- CLQLParser.FieldExistExprContext = FieldExistExprContext;
2086
- var Text_search_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon10) {
2087
- function Text_search_exprContext(parser, parent, invokingState) {
2088
- var _this26;
2089
- _classCallCheck(this, Text_search_exprContext);
2090
- if (parent === undefined) {
2091
- parent = null;
2092
- }
2093
- if (invokingState === undefined || invokingState === null) {
2094
- invokingState = -1;
2095
- }
2096
- _this26 = _callSuper(this, Text_search_exprContext, [parent, invokingState]);
2097
- _this26.parser = parser;
2098
- _this26.ruleIndex = CLQLParser.RULE_text_search_expr;
2099
- return _this26;
2100
- }
2101
- _inherits(Text_search_exprContext, _antlr4$ParserRuleCon10);
2102
- return _createClass(Text_search_exprContext, [{
2103
- key: "fuzzy_literal_value",
2104
- value: function fuzzy_literal_value() {
2105
- return this.getTypedRuleContext(Fuzzy_literal_valueContext, 0);
2106
- }
2107
- }, {
2108
- key: "enterRule",
2109
- value: function enterRule(listener) {
2110
- if (listener instanceof CLQLParserListener) {
2111
- listener.enterText_search_expr(this);
2112
- }
2113
- }
2114
- }, {
2115
- key: "exitRule",
2116
- value: function exitRule(listener) {
2117
- if (listener instanceof CLQLParserListener) {
2118
- listener.exitText_search_expr(this);
2119
- }
2120
- }
2121
- }, {
2122
- key: "accept",
2123
- value: function accept(visitor) {
2124
- if (visitor instanceof CLQLParserVisitor) {
2125
- return visitor.visitText_search_expr(this);
2126
- } else {
2127
- return visitor.visitChildren(this);
2128
- }
2129
- }
2130
- }]);
2131
- }(antlr4.ParserRuleContext);
2132
- var Primary_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon11) {
2133
- function Primary_exprContext(parser, parent, invokingState) {
2134
- var _this27;
2135
- _classCallCheck(this, Primary_exprContext);
2136
- if (parent === undefined) {
2137
- parent = null;
2138
- }
2139
- if (invokingState === undefined || invokingState === null) {
2140
- invokingState = -1;
2141
- }
2142
- _this27 = _callSuper(this, Primary_exprContext, [parent, invokingState]);
2143
- _this27.parser = parser;
2144
- _this27.ruleIndex = CLQLParser.RULE_primary_expr;
2145
- return _this27;
2146
- }
2147
- _inherits(Primary_exprContext, _antlr4$ParserRuleCon11);
2148
- return _createClass(Primary_exprContext, [{
2149
- key: "field",
2150
- value: function field() {
2151
- return this.getTypedRuleContext(FieldContext, 0);
2152
- }
2153
- }, {
2154
- key: "literal_value",
2155
- value: function literal_value() {
2156
- return this.getTypedRuleContext(Literal_valueContext, 0);
2157
- }
2158
- }, {
2159
- key: "enterRule",
2160
- value: function enterRule(listener) {
2161
- if (listener instanceof CLQLParserListener) {
2162
- listener.enterPrimary_expr(this);
2163
- }
2164
- }
2165
- }, {
2166
- key: "exitRule",
2167
- value: function exitRule(listener) {
2168
- if (listener instanceof CLQLParserListener) {
2169
- listener.exitPrimary_expr(this);
2170
- }
2171
- }
2172
- }, {
2173
- key: "accept",
2174
- value: function accept(visitor) {
2175
- if (visitor instanceof CLQLParserVisitor) {
2176
- return visitor.visitPrimary_expr(this);
2177
- } else {
2178
- return visitor.visitChildren(this);
2179
- }
2180
- }
2181
- }]);
2182
- }(antlr4.ParserRuleContext);
2183
- var FieldContext = /*#__PURE__*/function (_antlr4$ParserRuleCon12) {
2184
- function FieldContext(parser, parent, invokingState) {
2185
- var _this28;
2186
- _classCallCheck(this, FieldContext);
2187
- if (parent === undefined) {
2188
- parent = null;
2189
- }
2190
- if (invokingState === undefined || invokingState === null) {
2191
- invokingState = -1;
2192
- }
2193
- _this28 = _callSuper(this, FieldContext, [parent, invokingState]);
2194
- _this28.parser = parser;
2195
- _this28.ruleIndex = CLQLParser.RULE_field;
2196
- return _this28;
2197
- }
2198
- _inherits(FieldContext, _antlr4$ParserRuleCon12);
2199
- return _createClass(FieldContext, [{
2200
- key: "UNQUOTA_STRING",
2201
- value: function UNQUOTA_STRING() {
2202
- return this.getToken(CLQLParser.UNQUOTA_STRING, 0);
2203
- }
2204
- }, {
2205
- key: "enterRule",
2206
- value: function enterRule(listener) {
2207
- if (listener instanceof CLQLParserListener) {
2208
- listener.enterField(this);
2209
- }
2210
- }
2211
- }, {
2212
- key: "exitRule",
2213
- value: function exitRule(listener) {
2214
- if (listener instanceof CLQLParserListener) {
2215
- listener.exitField(this);
2216
- }
2217
- }
2218
- }, {
2219
- key: "accept",
2220
- value: function accept(visitor) {
2221
- if (visitor instanceof CLQLParserVisitor) {
2222
- return visitor.visitField(this);
2223
- } else {
2224
- return visitor.visitChildren(this);
2225
- }
2226
- }
2227
- }]);
2228
- }(antlr4.ParserRuleContext);
2229
- var Fuzzy_literal_valueContext = /*#__PURE__*/function (_antlr4$ParserRuleCon13) {
2230
- function Fuzzy_literal_valueContext(parser, parent, invokingState) {
2231
- var _this29;
2232
- _classCallCheck(this, Fuzzy_literal_valueContext);
2233
- if (parent === undefined) {
2234
- parent = null;
2235
- }
2236
- if (invokingState === undefined || invokingState === null) {
2237
- invokingState = -1;
2238
- }
2239
- _this29 = _callSuper(this, Fuzzy_literal_valueContext, [parent, invokingState]);
2240
- _this29.parser = parser;
2241
- _this29.ruleIndex = CLQLParser.RULE_fuzzy_literal_value;
2242
- return _this29;
2243
- }
2244
- _inherits(Fuzzy_literal_valueContext, _antlr4$ParserRuleCon13);
2245
- return _createClass(Fuzzy_literal_valueContext, [{
2246
- key: "fuzzy_literal",
2247
- value: function fuzzy_literal() {
2248
- return this.getTypedRuleContext(Fuzzy_literalContext, 0);
2249
- }
2250
- }, {
2251
- key: "literal_value",
2252
- value: function literal_value() {
2253
- return this.getTypedRuleContext(Literal_valueContext, 0);
2254
- }
2255
- }, {
2256
- key: "enterRule",
2257
- value: function enterRule(listener) {
2258
- if (listener instanceof CLQLParserListener) {
2259
- listener.enterFuzzy_literal_value(this);
2260
- }
2261
- }
2262
- }, {
2263
- key: "exitRule",
2264
- value: function exitRule(listener) {
2265
- if (listener instanceof CLQLParserListener) {
2266
- listener.exitFuzzy_literal_value(this);
2267
- }
2268
- }
2269
- }, {
2270
- key: "accept",
2271
- value: function accept(visitor) {
2272
- if (visitor instanceof CLQLParserVisitor) {
2273
- return visitor.visitFuzzy_literal_value(this);
2274
- } else {
2275
- return visitor.visitChildren(this);
2276
- }
2277
- }
2278
- }]);
2279
- }(antlr4.ParserRuleContext);
2280
- var Fuzzy_literalContext = /*#__PURE__*/function (_antlr4$ParserRuleCon14) {
2281
- function Fuzzy_literalContext(parser, parent, invokingState) {
2282
- var _this30;
2283
- _classCallCheck(this, Fuzzy_literalContext);
2284
- if (parent === undefined) {
2285
- parent = null;
2286
- }
2287
- if (invokingState === undefined || invokingState === null) {
2288
- invokingState = -1;
2289
- }
2290
- _this30 = _callSuper(this, Fuzzy_literalContext, [parent, invokingState]);
2291
- _this30.parser = parser;
2292
- _this30.ruleIndex = CLQLParser.RULE_fuzzy_literal;
2293
- return _this30;
2294
- }
2295
- _inherits(Fuzzy_literalContext, _antlr4$ParserRuleCon14);
2296
- return _createClass(Fuzzy_literalContext, [{
2297
- key: "FUZZY_LITERAL",
2298
- value: function FUZZY_LITERAL() {
2299
- return this.getToken(CLQLParser.FUZZY_LITERAL, 0);
2300
- }
2301
- }, {
2302
- key: "enterRule",
2303
- value: function enterRule(listener) {
2304
- if (listener instanceof CLQLParserListener) {
2305
- listener.enterFuzzy_literal(this);
2306
- }
2307
- }
2308
- }, {
2309
- key: "exitRule",
2310
- value: function exitRule(listener) {
2311
- if (listener instanceof CLQLParserListener) {
2312
- listener.exitFuzzy_literal(this);
2313
- }
2314
- }
2315
- }, {
2316
- key: "accept",
2317
- value: function accept(visitor) {
2318
- if (visitor instanceof CLQLParserVisitor) {
2319
- return visitor.visitFuzzy_literal(this);
2320
- } else {
2321
- return visitor.visitChildren(this);
2322
- }
2323
- }
2324
- }]);
2325
- }(antlr4.ParserRuleContext);
2326
- var Literal_valueContext = /*#__PURE__*/function (_antlr4$ParserRuleCon15) {
2327
- function Literal_valueContext(parser, parent, invokingState) {
2328
- var _this31;
2329
- _classCallCheck(this, Literal_valueContext);
2330
- if (parent === undefined) {
2331
- parent = null;
2332
- }
2333
- if (invokingState === undefined || invokingState === null) {
2334
- invokingState = -1;
2335
- }
2336
- _this31 = _callSuper(this, Literal_valueContext, [parent, invokingState]);
2337
- _this31.parser = parser;
2338
- _this31.ruleIndex = CLQLParser.RULE_literal_value;
2339
- return _this31;
2340
- }
2341
- _inherits(Literal_valueContext, _antlr4$ParserRuleCon15);
2342
- return _createClass(Literal_valueContext, [{
2343
- key: "string_literal",
2344
- value: function string_literal() {
2345
- return this.getTypedRuleContext(String_literalContext, 0);
2346
- }
2347
- }, {
2348
- key: "number_literal",
2349
- value: function number_literal() {
2350
- return this.getTypedRuleContext(Number_literalContext, 0);
2351
- }
2352
- }, {
2353
- key: "enterRule",
2354
- value: function enterRule(listener) {
2355
- if (listener instanceof CLQLParserListener) {
2356
- listener.enterLiteral_value(this);
2357
- }
2358
- }
2359
- }, {
2360
- key: "exitRule",
2361
- value: function exitRule(listener) {
2362
- if (listener instanceof CLQLParserListener) {
2363
- listener.exitLiteral_value(this);
2364
- }
2365
- }
2366
- }, {
2367
- key: "accept",
2368
- value: function accept(visitor) {
2369
- if (visitor instanceof CLQLParserVisitor) {
2370
- return visitor.visitLiteral_value(this);
2371
- } else {
2372
- return visitor.visitChildren(this);
2373
- }
2374
- }
2375
- }]);
2376
- }(antlr4.ParserRuleContext);
2377
- var String_literalContext = /*#__PURE__*/function (_antlr4$ParserRuleCon16) {
2378
- function String_literalContext(parser, parent, invokingState) {
2379
- var _this32;
2380
- _classCallCheck(this, String_literalContext);
2381
- if (parent === undefined) {
2382
- parent = null;
2383
- }
2384
- if (invokingState === undefined || invokingState === null) {
2385
- invokingState = -1;
2386
- }
2387
- _this32 = _callSuper(this, String_literalContext, [parent, invokingState]);
2388
- _this32.parser = parser;
2389
- _this32.ruleIndex = CLQLParser.RULE_string_literal;
2390
- return _this32;
2391
- }
2392
- _inherits(String_literalContext, _antlr4$ParserRuleCon16);
2393
- return _createClass(String_literalContext, [{
2394
- key: "UNQUOTA_STRING",
2395
- value: function UNQUOTA_STRING() {
2396
- return this.getToken(CLQLParser.UNQUOTA_STRING, 0);
2397
- }
2398
- }, {
2399
- key: "DQUOTA_STRING",
2400
- value: function DQUOTA_STRING() {
2401
- return this.getToken(CLQLParser.DQUOTA_STRING, 0);
2402
- }
2403
- }, {
2404
- key: "enterRule",
2405
- value: function enterRule(listener) {
2406
- if (listener instanceof CLQLParserListener) {
2407
- listener.enterString_literal(this);
2408
- }
2409
- }
2410
- }, {
2411
- key: "exitRule",
2412
- value: function exitRule(listener) {
2413
- if (listener instanceof CLQLParserListener) {
2414
- listener.exitString_literal(this);
2415
- }
2416
- }
2417
- }, {
2418
- key: "accept",
2419
- value: function accept(visitor) {
2420
- if (visitor instanceof CLQLParserVisitor) {
2421
- return visitor.visitString_literal(this);
2422
- } else {
2423
- return visitor.visitChildren(this);
2424
- }
2425
- }
2426
- }]);
2427
- }(antlr4.ParserRuleContext);
2428
- var Number_literalContext = /*#__PURE__*/function (_antlr4$ParserRuleCon17) {
2429
- function Number_literalContext(parser, parent, invokingState) {
2430
- var _this33;
2431
- _classCallCheck(this, Number_literalContext);
2432
- if (parent === undefined) {
2433
- parent = null;
2434
- }
2435
- if (invokingState === undefined || invokingState === null) {
2436
- invokingState = -1;
2437
- }
2438
- _this33 = _callSuper(this, Number_literalContext, [parent, invokingState]);
2439
- _this33.parser = parser;
2440
- _this33.ruleIndex = CLQLParser.RULE_number_literal;
2441
- return _this33;
2442
- }
2443
- _inherits(Number_literalContext, _antlr4$ParserRuleCon17);
2444
- return _createClass(Number_literalContext, [{
2445
- key: "integer_literal",
2446
- value: function integer_literal() {
2447
- return this.getTypedRuleContext(Integer_literalContext, 0);
2448
- }
2449
- }, {
2450
- key: "decimal_literal",
2451
- value: function decimal_literal() {
2452
- return this.getTypedRuleContext(Decimal_literalContext, 0);
2453
- }
2454
- }, {
2455
- key: "enterRule",
2456
- value: function enterRule(listener) {
2457
- if (listener instanceof CLQLParserListener) {
2458
- listener.enterNumber_literal(this);
2459
- }
2460
- }
2461
- }, {
2462
- key: "exitRule",
2463
- value: function exitRule(listener) {
2464
- if (listener instanceof CLQLParserListener) {
2465
- listener.exitNumber_literal(this);
2466
- }
2467
- }
2468
- }, {
2469
- key: "accept",
2470
- value: function accept(visitor) {
2471
- if (visitor instanceof CLQLParserVisitor) {
2472
- return visitor.visitNumber_literal(this);
2473
- } else {
2474
- return visitor.visitChildren(this);
2475
- }
2476
- }
2477
- }]);
2478
- }(antlr4.ParserRuleContext);
2479
- var Integer_literalContext = /*#__PURE__*/function (_antlr4$ParserRuleCon18) {
2480
- function Integer_literalContext(parser, parent, invokingState) {
2481
- var _this34;
2482
- _classCallCheck(this, Integer_literalContext);
2483
- if (parent === undefined) {
2484
- parent = null;
2485
- }
2486
- if (invokingState === undefined || invokingState === null) {
2487
- invokingState = -1;
2488
- }
2489
- _this34 = _callSuper(this, Integer_literalContext, [parent, invokingState]);
2490
- _this34.parser = parser;
2491
- _this34.ruleIndex = CLQLParser.RULE_integer_literal;
2492
- return _this34;
2493
- }
2494
- _inherits(Integer_literalContext, _antlr4$ParserRuleCon18);
2495
- return _createClass(Integer_literalContext, [{
2496
- key: "INTEGER_LITERAL",
2497
- value: function INTEGER_LITERAL() {
2498
- return this.getToken(CLQLParser.INTEGER_LITERAL, 0);
2499
- }
2500
- }, {
2501
- key: "PLUS",
2502
- value: function PLUS() {
2503
- return this.getToken(CLQLParser.PLUS, 0);
2504
- }
2505
- }, {
2506
- key: "MINUS",
2507
- value: function MINUS() {
2508
- return this.getToken(CLQLParser.MINUS, 0);
2509
- }
2510
- }, {
2511
- key: "enterRule",
2512
- value: function enterRule(listener) {
2513
- if (listener instanceof CLQLParserListener) {
2514
- listener.enterInteger_literal(this);
2515
- }
2516
- }
2517
- }, {
2518
- key: "exitRule",
2519
- value: function exitRule(listener) {
2520
- if (listener instanceof CLQLParserListener) {
2521
- listener.exitInteger_literal(this);
2522
- }
2523
- }
2524
- }, {
2525
- key: "accept",
2526
- value: function accept(visitor) {
2527
- if (visitor instanceof CLQLParserVisitor) {
2528
- return visitor.visitInteger_literal(this);
2529
- } else {
2530
- return visitor.visitChildren(this);
2531
- }
2532
- }
2533
- }]);
2534
- }(antlr4.ParserRuleContext);
2535
- var Decimal_literalContext = /*#__PURE__*/function (_antlr4$ParserRuleCon19) {
2536
- function Decimal_literalContext(parser, parent, invokingState) {
2537
- var _this35;
2538
- _classCallCheck(this, Decimal_literalContext);
2539
- if (parent === undefined) {
2540
- parent = null;
2541
- }
2542
- if (invokingState === undefined || invokingState === null) {
2543
- invokingState = -1;
2544
- }
2545
- _this35 = _callSuper(this, Decimal_literalContext, [parent, invokingState]);
2546
- _this35.parser = parser;
2547
- _this35.ruleIndex = CLQLParser.RULE_decimal_literal;
2548
- return _this35;
2549
- }
2550
- _inherits(Decimal_literalContext, _antlr4$ParserRuleCon19);
2551
- return _createClass(Decimal_literalContext, [{
2552
- key: "DECIMAL_LITERAL",
2553
- value: function DECIMAL_LITERAL() {
2554
- return this.getToken(CLQLParser.DECIMAL_LITERAL, 0);
2555
- }
2556
- }, {
2557
- key: "HEXADECIMAL_LITERAL",
2558
- value: function HEXADECIMAL_LITERAL() {
2559
- return this.getToken(CLQLParser.HEXADECIMAL_LITERAL, 0);
2560
- }
2561
- }, {
2562
- key: "PLUS",
2563
- value: function PLUS() {
2564
- return this.getToken(CLQLParser.PLUS, 0);
2565
- }
2566
- }, {
2567
- key: "MINUS",
2568
- value: function MINUS() {
2569
- return this.getToken(CLQLParser.MINUS, 0);
2570
- }
2571
- }, {
2572
- key: "enterRule",
2573
- value: function enterRule(listener) {
2574
- if (listener instanceof CLQLParserListener) {
2575
- listener.enterDecimal_literal(this);
2576
- }
2577
- }
2578
- }, {
2579
- key: "exitRule",
2580
- value: function exitRule(listener) {
2581
- if (listener instanceof CLQLParserListener) {
2582
- listener.exitDecimal_literal(this);
2583
- }
2584
- }
2585
- }, {
2586
- key: "accept",
2587
- value: function accept(visitor) {
2588
- if (visitor instanceof CLQLParserVisitor) {
2589
- return visitor.visitDecimal_literal(this);
2590
- } else {
2591
- return visitor.visitChildren(this);
2592
- }
2593
- }
2594
- }]);
2595
- }(antlr4.ParserRuleContext);
2596
- var Comparison_number_operatorContext = /*#__PURE__*/function (_antlr4$ParserRuleCon20) {
2597
- function Comparison_number_operatorContext(parser, parent, invokingState) {
2598
- var _this36;
2599
- _classCallCheck(this, Comparison_number_operatorContext);
2600
- if (parent === undefined) {
2601
- parent = null;
2602
- }
2603
- if (invokingState === undefined || invokingState === null) {
2604
- invokingState = -1;
2605
- }
2606
- _this36 = _callSuper(this, Comparison_number_operatorContext, [parent, invokingState]);
2607
- _this36.parser = parser;
2608
- _this36.ruleIndex = CLQLParser.RULE_comparison_number_operator;
2609
- return _this36;
2610
- }
2611
- _inherits(Comparison_number_operatorContext, _antlr4$ParserRuleCon20);
2612
- return _createClass(Comparison_number_operatorContext, [{
2613
- key: "LT",
2614
- value: function LT() {
2615
- return this.getToken(CLQLParser.LT, 0);
2616
- }
2617
- }, {
2618
- key: "GT",
2619
- value: function GT() {
2620
- return this.getToken(CLQLParser.GT, 0);
2621
- }
2622
- }, {
2623
- key: "LE",
2624
- value: function LE() {
2625
- return this.getToken(CLQLParser.LE, 0);
2626
- }
2627
- }, {
2628
- key: "GE",
2629
- value: function GE() {
2630
- return this.getToken(CLQLParser.GE, 0);
2631
- }
2632
- }, {
2633
- key: "enterRule",
2634
- value: function enterRule(listener) {
2635
- if (listener instanceof CLQLParserListener) {
2636
- listener.enterComparison_number_operator(this);
2637
- }
2638
- }
2639
- }, {
2640
- key: "exitRule",
2641
- value: function exitRule(listener) {
2642
- if (listener instanceof CLQLParserListener) {
2643
- listener.exitComparison_number_operator(this);
2644
- }
2645
- }
2646
- }, {
2647
- key: "accept",
2648
- value: function accept(visitor) {
2649
- if (visitor instanceof CLQLParserVisitor) {
2650
- return visitor.visitComparison_number_operator(this);
2651
- } else {
2652
- return visitor.visitChildren(this);
2653
- }
2654
- }
2655
- }]);
2656
- }(antlr4.ParserRuleContext);
2657
- var ErrContext = /*#__PURE__*/function (_antlr4$ParserRuleCon21) {
2658
- function ErrContext(parser, parent, invokingState) {
2659
- var _this37;
2660
- _classCallCheck(this, ErrContext);
2661
- if (parent === undefined) {
2662
- parent = null;
2663
- }
2664
- if (invokingState === undefined || invokingState === null) {
2665
- invokingState = -1;
2666
- }
2667
- _this37 = _callSuper(this, ErrContext, [parent, invokingState]);
2668
- _this37.parser = parser;
2669
- _this37.ruleIndex = CLQLParser.RULE_err;
2670
- _this37._UNEXPECTED_CHAR = null; // Token
2671
- return _this37;
2672
- }
2673
- _inherits(ErrContext, _antlr4$ParserRuleCon21);
2674
- return _createClass(ErrContext, [{
2675
- key: "UNEXPECTED_CHAR",
2676
- value: function UNEXPECTED_CHAR() {
2677
- return this.getToken(CLQLParser.UNEXPECTED_CHAR, 0);
2678
- }
2679
- }, {
2680
- key: "enterRule",
2681
- value: function enterRule(listener) {
2682
- if (listener instanceof CLQLParserListener) {
2683
- listener.enterErr(this);
2684
- }
2685
- }
2686
- }, {
2687
- key: "exitRule",
2688
- value: function exitRule(listener) {
2689
- if (listener instanceof CLQLParserListener) {
2690
- listener.exitErr(this);
2691
- }
2692
- }
2693
- }, {
2694
- key: "accept",
2695
- value: function accept(visitor) {
2696
- if (visitor instanceof CLQLParserVisitor) {
2697
- return visitor.visitErr(this);
2698
- } else {
2699
- return visitor.visitChildren(this);
2700
- }
2701
- }
2702
- }]);
2703
- }(antlr4.ParserRuleContext);
2704
- CLQLParser.RootContext = RootContext;
2705
- CLQLParser.CqlStatementContext = CqlStatementContext;
2706
- CLQLParser.SearchContext = SearchContext;
2707
- CLQLParser.Logical_exprContext = Logical_exprContext;
2708
- CLQLParser.Text_exprContext = Text_exprContext;
2709
- CLQLParser.Text_regex_exprContext = Text_regex_exprContext;
2710
- CLQLParser.Text_regex_model_exprContext = Text_regex_model_exprContext;
2711
- CLQLParser.Comparison_exprContext = Comparison_exprContext;
2712
- CLQLParser.Field_exprContext = Field_exprContext;
2713
- CLQLParser.Text_search_exprContext = Text_search_exprContext;
2714
- CLQLParser.Primary_exprContext = Primary_exprContext;
2715
- CLQLParser.FieldContext = FieldContext;
2716
- CLQLParser.Fuzzy_literal_valueContext = Fuzzy_literal_valueContext;
2717
- CLQLParser.Fuzzy_literalContext = Fuzzy_literalContext;
2718
- CLQLParser.Literal_valueContext = Literal_valueContext;
2719
- CLQLParser.String_literalContext = String_literalContext;
2720
- CLQLParser.Number_literalContext = Number_literalContext;
2721
- CLQLParser.Integer_literalContext = Integer_literalContext;
2722
- CLQLParser.Decimal_literalContext = Decimal_literalContext;
2723
- CLQLParser.Comparison_number_operatorContext = Comparison_number_operatorContext;
2724
- CLQLParser.ErrContext = ErrContext;