@chaoswise/business 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/AggregateSearch/CLSPL/CLQLLexer.js +80 -0
- package/lib/AggregateSearch/CLSPL/CLQLParser.js +2797 -0
- package/lib/AggregateSearch/CLSPL/CLQLParserListener.js +349 -0
- package/lib/AggregateSearch/CLSPL/CLQLParserVisitor.js +253 -0
- package/lib/AggregateSearch/CLSPL/SPLStagy.js +189 -0
- package/lib/AggregateSearch/CLSPL/index.js +176 -0
- package/lib/AggregateSearch/CLSPL/makeTokenizeFn.js +18 -0
- package/lib/AggregateSearch/CLSPL/token.js +7 -0
- package/lib/AggregateSearch/components/DropDown/assets/combined.svg +22 -0
- package/lib/AggregateSearch/components/DropDown/assets/copy.svg +22 -0
- package/lib/AggregateSearch/components/DropDown/assets/delete.svg +24 -0
- package/lib/AggregateSearch/components/DropDown/assets/home.svg +20 -0
- package/lib/AggregateSearch/components/DropDown/assets/key.svg +21 -0
- package/lib/AggregateSearch/components/DropDown/assets/star.svg +22 -0
- package/lib/AggregateSearch/components/DropDown/assets/time-circle.svg +20 -0
- package/lib/AggregateSearch/components/DropDown/assets/value.svg +23 -0
- package/lib/AggregateSearch/components/DropDown/index.js +556 -0
- package/lib/AggregateSearch/components/DropDown/index.less +102 -0
- package/lib/AggregateSearch/components/SwitchBtn/assets/tag-icon.svg +17 -0
- package/lib/AggregateSearch/components/SwitchBtn/assets/text-icon.svg +18 -0
- package/lib/AggregateSearch/components/SwitchBtn/index.js +24 -0
- package/lib/AggregateSearch/components/SwitchBtn/index.less +15 -0
- package/lib/AggregateSearch/hooks/useDropDown.js +399 -0
- package/lib/AggregateSearch/index.js +350 -0
- package/lib/AggregateSearch/index.less +123 -0
- package/lib/AggregateSearch/utils/index.js +362 -0
- package/lib/PropertyControlViewer/assets/doSelect.less +1 -1
- package/lib/PropertyControlViewer/assets/index.less +3 -3
- package/lib/PropertyControlViewer/components/DoCiUnitBitmap.js +1 -1
- package/lib/PropertyControlViewer/components/DoDefaultPlaceholder.js +1 -1
- package/lib/PropertyControlViewer/components/DoUser.js +4 -4
- package/lib/PropertyControlViewer/components/TagShowMoreList/index.js +1 -1
- package/lib/PropertyControlViewer/config/utils.js +5 -4
- package/lib/PropertyControlViewer/index.js +77 -76
- package/lib/PropertyControlViewer/index.less +30 -0
- package/lib/index.js +2 -1
- package/package.json +5 -3
|
@@ -0,0 +1,2797 @@
|
|
|
1
|
+
function _get() { if (typeof Reflect !== "undefined" && Reflect.get) { _get = Reflect.get.bind(); } else { _get = function _get(target, property, receiver) { var base = _superPropBase(target, property); if (!base) return; var desc = Object.getOwnPropertyDescriptor(base, property); if (desc.get) { return desc.get.call(arguments.length < 3 ? target : receiver); } return desc.value; }; } return _get.apply(this, arguments); }
|
|
2
|
+
function _superPropBase(object, property) { while (!Object.prototype.hasOwnProperty.call(object, property)) { object = _getPrototypeOf(object); if (object === null) break; } return object; }
|
|
3
|
+
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); }
|
|
4
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
5
|
+
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor); } }
|
|
6
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
7
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
8
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
9
|
+
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
10
|
+
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
11
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
12
|
+
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
13
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
14
|
+
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
15
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
16
|
+
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
17
|
+
// Generated from /Users/changle/Documents/code/doop/cql/src/main/resources/antlr/cql/CLQLParser.g4 by ANTLR 4.9.2
|
|
18
|
+
// jshint ignore: start
|
|
19
|
+
import antlr4 from 'antlr4';
|
|
20
|
+
import CLQLParserListener from './CLQLParserListener.js';
|
|
21
|
+
import CLQLParserVisitor from './CLQLParserVisitor.js';
|
|
22
|
+
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('');
|
|
23
|
+
var atn = new antlr4.atn.ATNDeserializer().deserialize(serializedATN);
|
|
24
|
+
var decisionsToDFA = atn.decisionToState.map(function (ds, index) {
|
|
25
|
+
return new antlr4.dfa.DFA(ds, index);
|
|
26
|
+
});
|
|
27
|
+
var sharedContextCache = new antlr4.PredictionContextCache();
|
|
28
|
+
var CLQLParser = /*#__PURE__*/function (_antlr4$Parser) {
|
|
29
|
+
_inherits(CLQLParser, _antlr4$Parser);
|
|
30
|
+
var _super = _createSuper(CLQLParser);
|
|
31
|
+
function CLQLParser(input) {
|
|
32
|
+
var _this;
|
|
33
|
+
_classCallCheck(this, CLQLParser);
|
|
34
|
+
_this = _super.call(this, input);
|
|
35
|
+
_this._interp = new antlr4.atn.ParserATNSimulator(_assertThisInitialized(_this), atn, decisionsToDFA, sharedContextCache);
|
|
36
|
+
_this.ruleNames = CLQLParser.ruleNames;
|
|
37
|
+
_this.literalNames = CLQLParser.literalNames;
|
|
38
|
+
_this.symbolicNames = CLQLParser.symbolicNames;
|
|
39
|
+
return _this;
|
|
40
|
+
}
|
|
41
|
+
_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
|
+
return CLQLParser;
|
|
922
|
+
}(antlr4.Parser);
|
|
923
|
+
_defineProperty(CLQLParser, "grammarFileName", 'CLQLParser.g4');
|
|
924
|
+
_defineProperty(CLQLParser, "literalNames", [null, "'#'", null, null, null, null, "':'", "'('", "')'", "'<'", "'>'", "'<='", "'>='", "'?'", "'*'", "'['", "']'", "'{'", "'}'", "'~'", "'+'", "'-'"]);
|
|
925
|
+
_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']);
|
|
926
|
+
_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']);
|
|
927
|
+
export { CLQLParser as default };
|
|
928
|
+
CLQLParser.EOF = antlr4.Token.EOF;
|
|
929
|
+
CLQLParser.WEI = 1;
|
|
930
|
+
CLQLParser.REGEX = 2;
|
|
931
|
+
CLQLParser.BQUOTA_STRING = 3;
|
|
932
|
+
CLQLParser.LINE_COMMENT = 4;
|
|
933
|
+
CLQLParser.SPACES = 5;
|
|
934
|
+
CLQLParser.COLON = 6;
|
|
935
|
+
CLQLParser.LPAREN = 7;
|
|
936
|
+
CLQLParser.RPAREN = 8;
|
|
937
|
+
CLQLParser.LT = 9;
|
|
938
|
+
CLQLParser.GT = 10;
|
|
939
|
+
CLQLParser.LE = 11;
|
|
940
|
+
CLQLParser.GE = 12;
|
|
941
|
+
CLQLParser.QUESTION = 13;
|
|
942
|
+
CLQLParser.STAR = 14;
|
|
943
|
+
CLQLParser.LBRAKET = 15;
|
|
944
|
+
CLQLParser.RBRAKET = 16;
|
|
945
|
+
CLQLParser.LCURLY = 17;
|
|
946
|
+
CLQLParser.RCURLY = 18;
|
|
947
|
+
CLQLParser.WAVE = 19;
|
|
948
|
+
CLQLParser.PLUS = 20;
|
|
949
|
+
CLQLParser.MINUS = 21;
|
|
950
|
+
CLQLParser.K_AND = 22;
|
|
951
|
+
CLQLParser.K_NOT = 23;
|
|
952
|
+
CLQLParser.K_OR = 24;
|
|
953
|
+
CLQLParser.K_TO = 25;
|
|
954
|
+
CLQLParser.DQUOTA_STRING = 26;
|
|
955
|
+
CLQLParser.INTEGER_LITERAL = 27;
|
|
956
|
+
CLQLParser.DECIMAL_LITERAL = 28;
|
|
957
|
+
CLQLParser.HEXADECIMAL_LITERAL = 29;
|
|
958
|
+
CLQLParser.UNQUOTA_STRING = 30;
|
|
959
|
+
CLQLParser.UNEXPECTED_CHAR = 31;
|
|
960
|
+
CLQLParser.FUZZY_LITERAL = 32;
|
|
961
|
+
CLQLParser.RULE_root = 0;
|
|
962
|
+
CLQLParser.RULE_cqlStatement = 1;
|
|
963
|
+
CLQLParser.RULE_search = 2;
|
|
964
|
+
CLQLParser.RULE_logical_expr = 3;
|
|
965
|
+
CLQLParser.RULE_text_expr = 4;
|
|
966
|
+
CLQLParser.RULE_text_regex_expr = 5;
|
|
967
|
+
CLQLParser.RULE_text_regex_model_expr = 6;
|
|
968
|
+
CLQLParser.RULE_comparison_expr = 7;
|
|
969
|
+
CLQLParser.RULE_field_expr = 8;
|
|
970
|
+
CLQLParser.RULE_text_search_expr = 9;
|
|
971
|
+
CLQLParser.RULE_primary_expr = 10;
|
|
972
|
+
CLQLParser.RULE_field = 11;
|
|
973
|
+
CLQLParser.RULE_fuzzy_literal_value = 12;
|
|
974
|
+
CLQLParser.RULE_fuzzy_literal = 13;
|
|
975
|
+
CLQLParser.RULE_literal_value = 14;
|
|
976
|
+
CLQLParser.RULE_string_literal = 15;
|
|
977
|
+
CLQLParser.RULE_number_literal = 16;
|
|
978
|
+
CLQLParser.RULE_integer_literal = 17;
|
|
979
|
+
CLQLParser.RULE_decimal_literal = 18;
|
|
980
|
+
CLQLParser.RULE_comparison_number_operator = 19;
|
|
981
|
+
CLQLParser.RULE_err = 20;
|
|
982
|
+
var RootContext = /*#__PURE__*/function (_antlr4$ParserRuleCon) {
|
|
983
|
+
_inherits(RootContext, _antlr4$ParserRuleCon);
|
|
984
|
+
var _super2 = _createSuper(RootContext);
|
|
985
|
+
function RootContext(parser, parent, invokingState) {
|
|
986
|
+
var _this2;
|
|
987
|
+
_classCallCheck(this, RootContext);
|
|
988
|
+
if (parent === undefined) {
|
|
989
|
+
parent = null;
|
|
990
|
+
}
|
|
991
|
+
if (invokingState === undefined || invokingState === null) {
|
|
992
|
+
invokingState = -1;
|
|
993
|
+
}
|
|
994
|
+
_this2 = _super2.call(this, parent, invokingState);
|
|
995
|
+
_this2.parser = parser;
|
|
996
|
+
_this2.ruleIndex = CLQLParser.RULE_root;
|
|
997
|
+
return _this2;
|
|
998
|
+
}
|
|
999
|
+
_createClass(RootContext, [{
|
|
1000
|
+
key: "EOF",
|
|
1001
|
+
value: function EOF() {
|
|
1002
|
+
return this.getToken(CLQLParser.EOF, 0);
|
|
1003
|
+
}
|
|
1004
|
+
}, {
|
|
1005
|
+
key: "cqlStatement",
|
|
1006
|
+
value: function cqlStatement() {
|
|
1007
|
+
return this.getTypedRuleContext(CqlStatementContext, 0);
|
|
1008
|
+
}
|
|
1009
|
+
}, {
|
|
1010
|
+
key: "err",
|
|
1011
|
+
value: function err() {
|
|
1012
|
+
return this.getTypedRuleContext(ErrContext, 0);
|
|
1013
|
+
}
|
|
1014
|
+
}, {
|
|
1015
|
+
key: "enterRule",
|
|
1016
|
+
value: function enterRule(listener) {
|
|
1017
|
+
if (listener instanceof CLQLParserListener) {
|
|
1018
|
+
listener.enterRoot(this);
|
|
1019
|
+
}
|
|
1020
|
+
}
|
|
1021
|
+
}, {
|
|
1022
|
+
key: "exitRule",
|
|
1023
|
+
value: function exitRule(listener) {
|
|
1024
|
+
if (listener instanceof CLQLParserListener) {
|
|
1025
|
+
listener.exitRoot(this);
|
|
1026
|
+
}
|
|
1027
|
+
}
|
|
1028
|
+
}, {
|
|
1029
|
+
key: "accept",
|
|
1030
|
+
value: function accept(visitor) {
|
|
1031
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1032
|
+
return visitor.visitRoot(this);
|
|
1033
|
+
} else {
|
|
1034
|
+
return visitor.visitChildren(this);
|
|
1035
|
+
}
|
|
1036
|
+
}
|
|
1037
|
+
}]);
|
|
1038
|
+
return RootContext;
|
|
1039
|
+
}(antlr4.ParserRuleContext);
|
|
1040
|
+
var CqlStatementContext = /*#__PURE__*/function (_antlr4$ParserRuleCon2) {
|
|
1041
|
+
_inherits(CqlStatementContext, _antlr4$ParserRuleCon2);
|
|
1042
|
+
var _super3 = _createSuper(CqlStatementContext);
|
|
1043
|
+
function CqlStatementContext(parser, parent, invokingState) {
|
|
1044
|
+
var _this3;
|
|
1045
|
+
_classCallCheck(this, CqlStatementContext);
|
|
1046
|
+
if (parent === undefined) {
|
|
1047
|
+
parent = null;
|
|
1048
|
+
}
|
|
1049
|
+
if (invokingState === undefined || invokingState === null) {
|
|
1050
|
+
invokingState = -1;
|
|
1051
|
+
}
|
|
1052
|
+
_this3 = _super3.call(this, parent, invokingState);
|
|
1053
|
+
_this3.parser = parser;
|
|
1054
|
+
_this3.ruleIndex = CLQLParser.RULE_cqlStatement;
|
|
1055
|
+
return _this3;
|
|
1056
|
+
}
|
|
1057
|
+
_createClass(CqlStatementContext, [{
|
|
1058
|
+
key: "search",
|
|
1059
|
+
value: function search() {
|
|
1060
|
+
return this.getTypedRuleContext(SearchContext, 0);
|
|
1061
|
+
}
|
|
1062
|
+
}, {
|
|
1063
|
+
key: "enterRule",
|
|
1064
|
+
value: function enterRule(listener) {
|
|
1065
|
+
if (listener instanceof CLQLParserListener) {
|
|
1066
|
+
listener.enterCqlStatement(this);
|
|
1067
|
+
}
|
|
1068
|
+
}
|
|
1069
|
+
}, {
|
|
1070
|
+
key: "exitRule",
|
|
1071
|
+
value: function exitRule(listener) {
|
|
1072
|
+
if (listener instanceof CLQLParserListener) {
|
|
1073
|
+
listener.exitCqlStatement(this);
|
|
1074
|
+
}
|
|
1075
|
+
}
|
|
1076
|
+
}, {
|
|
1077
|
+
key: "accept",
|
|
1078
|
+
value: function accept(visitor) {
|
|
1079
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1080
|
+
return visitor.visitCqlStatement(this);
|
|
1081
|
+
} else {
|
|
1082
|
+
return visitor.visitChildren(this);
|
|
1083
|
+
}
|
|
1084
|
+
}
|
|
1085
|
+
}]);
|
|
1086
|
+
return CqlStatementContext;
|
|
1087
|
+
}(antlr4.ParserRuleContext);
|
|
1088
|
+
var SearchContext = /*#__PURE__*/function (_antlr4$ParserRuleCon3) {
|
|
1089
|
+
_inherits(SearchContext, _antlr4$ParserRuleCon3);
|
|
1090
|
+
var _super4 = _createSuper(SearchContext);
|
|
1091
|
+
function SearchContext(parser, parent, invokingState) {
|
|
1092
|
+
var _this4;
|
|
1093
|
+
_classCallCheck(this, SearchContext);
|
|
1094
|
+
if (parent === undefined) {
|
|
1095
|
+
parent = null;
|
|
1096
|
+
}
|
|
1097
|
+
if (invokingState === undefined || invokingState === null) {
|
|
1098
|
+
invokingState = -1;
|
|
1099
|
+
}
|
|
1100
|
+
_this4 = _super4.call(this, parent, invokingState);
|
|
1101
|
+
_defineProperty(_assertThisInitialized(_this4), "logical_expr", function (i) {
|
|
1102
|
+
if (i === undefined) {
|
|
1103
|
+
i = null;
|
|
1104
|
+
}
|
|
1105
|
+
if (i === null) {
|
|
1106
|
+
return this.getTypedRuleContexts(Logical_exprContext);
|
|
1107
|
+
} else {
|
|
1108
|
+
return this.getTypedRuleContext(Logical_exprContext, i);
|
|
1109
|
+
}
|
|
1110
|
+
});
|
|
1111
|
+
_this4.parser = parser;
|
|
1112
|
+
_this4.ruleIndex = CLQLParser.RULE_search;
|
|
1113
|
+
return _this4;
|
|
1114
|
+
}
|
|
1115
|
+
_createClass(SearchContext, [{
|
|
1116
|
+
key: "enterRule",
|
|
1117
|
+
value: function enterRule(listener) {
|
|
1118
|
+
if (listener instanceof CLQLParserListener) {
|
|
1119
|
+
listener.enterSearch(this);
|
|
1120
|
+
}
|
|
1121
|
+
}
|
|
1122
|
+
}, {
|
|
1123
|
+
key: "exitRule",
|
|
1124
|
+
value: function exitRule(listener) {
|
|
1125
|
+
if (listener instanceof CLQLParserListener) {
|
|
1126
|
+
listener.exitSearch(this);
|
|
1127
|
+
}
|
|
1128
|
+
}
|
|
1129
|
+
}, {
|
|
1130
|
+
key: "accept",
|
|
1131
|
+
value: function accept(visitor) {
|
|
1132
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1133
|
+
return visitor.visitSearch(this);
|
|
1134
|
+
} else {
|
|
1135
|
+
return visitor.visitChildren(this);
|
|
1136
|
+
}
|
|
1137
|
+
}
|
|
1138
|
+
}]);
|
|
1139
|
+
return SearchContext;
|
|
1140
|
+
}(antlr4.ParserRuleContext);
|
|
1141
|
+
var Logical_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon4) {
|
|
1142
|
+
_inherits(Logical_exprContext, _antlr4$ParserRuleCon4);
|
|
1143
|
+
var _super5 = _createSuper(Logical_exprContext);
|
|
1144
|
+
function Logical_exprContext(parser, parent, invokingState) {
|
|
1145
|
+
var _this5;
|
|
1146
|
+
_classCallCheck(this, Logical_exprContext);
|
|
1147
|
+
if (parent === undefined) {
|
|
1148
|
+
parent = null;
|
|
1149
|
+
}
|
|
1150
|
+
if (invokingState === undefined || invokingState === null) {
|
|
1151
|
+
invokingState = -1;
|
|
1152
|
+
}
|
|
1153
|
+
_this5 = _super5.call(this, parent, invokingState);
|
|
1154
|
+
_this5.parser = parser;
|
|
1155
|
+
_this5.ruleIndex = CLQLParser.RULE_logical_expr;
|
|
1156
|
+
return _this5;
|
|
1157
|
+
}
|
|
1158
|
+
_createClass(Logical_exprContext, [{
|
|
1159
|
+
key: "copyFrom",
|
|
1160
|
+
value: function copyFrom(ctx) {
|
|
1161
|
+
_get(_getPrototypeOf(Logical_exprContext.prototype), "copyFrom", this).call(this, ctx);
|
|
1162
|
+
}
|
|
1163
|
+
}]);
|
|
1164
|
+
return Logical_exprContext;
|
|
1165
|
+
}(antlr4.ParserRuleContext);
|
|
1166
|
+
var NotExprContext = /*#__PURE__*/function (_Logical_exprContext) {
|
|
1167
|
+
_inherits(NotExprContext, _Logical_exprContext);
|
|
1168
|
+
var _super6 = _createSuper(NotExprContext);
|
|
1169
|
+
function NotExprContext(parser, ctx) {
|
|
1170
|
+
var _thisSuper, _this6;
|
|
1171
|
+
_classCallCheck(this, NotExprContext);
|
|
1172
|
+
_this6 = _super6.call(this, parser);
|
|
1173
|
+
_get((_thisSuper = _assertThisInitialized(_this6), _getPrototypeOf(NotExprContext.prototype)), "copyFrom", _thisSuper).call(_thisSuper, ctx);
|
|
1174
|
+
return _this6;
|
|
1175
|
+
}
|
|
1176
|
+
_createClass(NotExprContext, [{
|
|
1177
|
+
key: "K_NOT",
|
|
1178
|
+
value: function K_NOT() {
|
|
1179
|
+
return this.getToken(CLQLParser.K_NOT, 0);
|
|
1180
|
+
}
|
|
1181
|
+
}, {
|
|
1182
|
+
key: "logical_expr",
|
|
1183
|
+
value: function logical_expr() {
|
|
1184
|
+
return this.getTypedRuleContext(Logical_exprContext, 0);
|
|
1185
|
+
}
|
|
1186
|
+
}, {
|
|
1187
|
+
key: "enterRule",
|
|
1188
|
+
value: function enterRule(listener) {
|
|
1189
|
+
if (listener instanceof CLQLParserListener) {
|
|
1190
|
+
listener.enterNotExpr(this);
|
|
1191
|
+
}
|
|
1192
|
+
}
|
|
1193
|
+
}, {
|
|
1194
|
+
key: "exitRule",
|
|
1195
|
+
value: function exitRule(listener) {
|
|
1196
|
+
if (listener instanceof CLQLParserListener) {
|
|
1197
|
+
listener.exitNotExpr(this);
|
|
1198
|
+
}
|
|
1199
|
+
}
|
|
1200
|
+
}, {
|
|
1201
|
+
key: "accept",
|
|
1202
|
+
value: function accept(visitor) {
|
|
1203
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1204
|
+
return visitor.visitNotExpr(this);
|
|
1205
|
+
} else {
|
|
1206
|
+
return visitor.visitChildren(this);
|
|
1207
|
+
}
|
|
1208
|
+
}
|
|
1209
|
+
}]);
|
|
1210
|
+
return NotExprContext;
|
|
1211
|
+
}(Logical_exprContext);
|
|
1212
|
+
CLQLParser.NotExprContext = NotExprContext;
|
|
1213
|
+
var TextExprContext = /*#__PURE__*/function (_Logical_exprContext2) {
|
|
1214
|
+
_inherits(TextExprContext, _Logical_exprContext2);
|
|
1215
|
+
var _super7 = _createSuper(TextExprContext);
|
|
1216
|
+
function TextExprContext(parser, ctx) {
|
|
1217
|
+
var _thisSuper2, _this7;
|
|
1218
|
+
_classCallCheck(this, TextExprContext);
|
|
1219
|
+
_this7 = _super7.call(this, parser);
|
|
1220
|
+
_get((_thisSuper2 = _assertThisInitialized(_this7), _getPrototypeOf(TextExprContext.prototype)), "copyFrom", _thisSuper2).call(_thisSuper2, ctx);
|
|
1221
|
+
return _this7;
|
|
1222
|
+
}
|
|
1223
|
+
_createClass(TextExprContext, [{
|
|
1224
|
+
key: "text_expr",
|
|
1225
|
+
value: function text_expr() {
|
|
1226
|
+
return this.getTypedRuleContext(Text_exprContext, 0);
|
|
1227
|
+
}
|
|
1228
|
+
}, {
|
|
1229
|
+
key: "enterRule",
|
|
1230
|
+
value: function enterRule(listener) {
|
|
1231
|
+
if (listener instanceof CLQLParserListener) {
|
|
1232
|
+
listener.enterTextExpr(this);
|
|
1233
|
+
}
|
|
1234
|
+
}
|
|
1235
|
+
}, {
|
|
1236
|
+
key: "exitRule",
|
|
1237
|
+
value: function exitRule(listener) {
|
|
1238
|
+
if (listener instanceof CLQLParserListener) {
|
|
1239
|
+
listener.exitTextExpr(this);
|
|
1240
|
+
}
|
|
1241
|
+
}
|
|
1242
|
+
}, {
|
|
1243
|
+
key: "accept",
|
|
1244
|
+
value: function accept(visitor) {
|
|
1245
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1246
|
+
return visitor.visitTextExpr(this);
|
|
1247
|
+
} else {
|
|
1248
|
+
return visitor.visitChildren(this);
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
}]);
|
|
1252
|
+
return TextExprContext;
|
|
1253
|
+
}(Logical_exprContext);
|
|
1254
|
+
CLQLParser.TextExprContext = TextExprContext;
|
|
1255
|
+
var OrExprContext = /*#__PURE__*/function (_Logical_exprContext3) {
|
|
1256
|
+
_inherits(OrExprContext, _Logical_exprContext3);
|
|
1257
|
+
var _super8 = _createSuper(OrExprContext);
|
|
1258
|
+
function OrExprContext(parser, ctx) {
|
|
1259
|
+
var _thisSuper3, _this8;
|
|
1260
|
+
_classCallCheck(this, OrExprContext);
|
|
1261
|
+
_this8 = _super8.call(this, parser);
|
|
1262
|
+
_defineProperty(_assertThisInitialized(_this8), "logical_expr", function (i) {
|
|
1263
|
+
if (i === undefined) {
|
|
1264
|
+
i = null;
|
|
1265
|
+
}
|
|
1266
|
+
if (i === null) {
|
|
1267
|
+
return this.getTypedRuleContexts(Logical_exprContext);
|
|
1268
|
+
} else {
|
|
1269
|
+
return this.getTypedRuleContext(Logical_exprContext, i);
|
|
1270
|
+
}
|
|
1271
|
+
});
|
|
1272
|
+
_this8.left = null; // Logical_exprContext;
|
|
1273
|
+
_this8.right = null; // Logical_exprContext;
|
|
1274
|
+
_get((_thisSuper3 = _assertThisInitialized(_this8), _getPrototypeOf(OrExprContext.prototype)), "copyFrom", _thisSuper3).call(_thisSuper3, ctx);
|
|
1275
|
+
return _this8;
|
|
1276
|
+
}
|
|
1277
|
+
_createClass(OrExprContext, [{
|
|
1278
|
+
key: "K_OR",
|
|
1279
|
+
value: function K_OR() {
|
|
1280
|
+
return this.getToken(CLQLParser.K_OR, 0);
|
|
1281
|
+
}
|
|
1282
|
+
}, {
|
|
1283
|
+
key: "enterRule",
|
|
1284
|
+
value: function enterRule(listener) {
|
|
1285
|
+
if (listener instanceof CLQLParserListener) {
|
|
1286
|
+
listener.enterOrExpr(this);
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
}, {
|
|
1290
|
+
key: "exitRule",
|
|
1291
|
+
value: function exitRule(listener) {
|
|
1292
|
+
if (listener instanceof CLQLParserListener) {
|
|
1293
|
+
listener.exitOrExpr(this);
|
|
1294
|
+
}
|
|
1295
|
+
}
|
|
1296
|
+
}, {
|
|
1297
|
+
key: "accept",
|
|
1298
|
+
value: function accept(visitor) {
|
|
1299
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1300
|
+
return visitor.visitOrExpr(this);
|
|
1301
|
+
} else {
|
|
1302
|
+
return visitor.visitChildren(this);
|
|
1303
|
+
}
|
|
1304
|
+
}
|
|
1305
|
+
}]);
|
|
1306
|
+
return OrExprContext;
|
|
1307
|
+
}(Logical_exprContext);
|
|
1308
|
+
CLQLParser.OrExprContext = OrExprContext;
|
|
1309
|
+
var ComparisonExprContext = /*#__PURE__*/function (_Logical_exprContext4) {
|
|
1310
|
+
_inherits(ComparisonExprContext, _Logical_exprContext4);
|
|
1311
|
+
var _super9 = _createSuper(ComparisonExprContext);
|
|
1312
|
+
function ComparisonExprContext(parser, ctx) {
|
|
1313
|
+
var _thisSuper4, _this9;
|
|
1314
|
+
_classCallCheck(this, ComparisonExprContext);
|
|
1315
|
+
_this9 = _super9.call(this, parser);
|
|
1316
|
+
_get((_thisSuper4 = _assertThisInitialized(_this9), _getPrototypeOf(ComparisonExprContext.prototype)), "copyFrom", _thisSuper4).call(_thisSuper4, ctx);
|
|
1317
|
+
return _this9;
|
|
1318
|
+
}
|
|
1319
|
+
_createClass(ComparisonExprContext, [{
|
|
1320
|
+
key: "comparison_expr",
|
|
1321
|
+
value: function comparison_expr() {
|
|
1322
|
+
return this.getTypedRuleContext(Comparison_exprContext, 0);
|
|
1323
|
+
}
|
|
1324
|
+
}, {
|
|
1325
|
+
key: "enterRule",
|
|
1326
|
+
value: function enterRule(listener) {
|
|
1327
|
+
if (listener instanceof CLQLParserListener) {
|
|
1328
|
+
listener.enterComparisonExpr(this);
|
|
1329
|
+
}
|
|
1330
|
+
}
|
|
1331
|
+
}, {
|
|
1332
|
+
key: "exitRule",
|
|
1333
|
+
value: function exitRule(listener) {
|
|
1334
|
+
if (listener instanceof CLQLParserListener) {
|
|
1335
|
+
listener.exitComparisonExpr(this);
|
|
1336
|
+
}
|
|
1337
|
+
}
|
|
1338
|
+
}, {
|
|
1339
|
+
key: "accept",
|
|
1340
|
+
value: function accept(visitor) {
|
|
1341
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1342
|
+
return visitor.visitComparisonExpr(this);
|
|
1343
|
+
} else {
|
|
1344
|
+
return visitor.visitChildren(this);
|
|
1345
|
+
}
|
|
1346
|
+
}
|
|
1347
|
+
}]);
|
|
1348
|
+
return ComparisonExprContext;
|
|
1349
|
+
}(Logical_exprContext);
|
|
1350
|
+
CLQLParser.ComparisonExprContext = ComparisonExprContext;
|
|
1351
|
+
var FieldExprContext = /*#__PURE__*/function (_Logical_exprContext5) {
|
|
1352
|
+
_inherits(FieldExprContext, _Logical_exprContext5);
|
|
1353
|
+
var _super10 = _createSuper(FieldExprContext);
|
|
1354
|
+
function FieldExprContext(parser, ctx) {
|
|
1355
|
+
var _thisSuper5, _this10;
|
|
1356
|
+
_classCallCheck(this, FieldExprContext);
|
|
1357
|
+
_this10 = _super10.call(this, parser);
|
|
1358
|
+
_get((_thisSuper5 = _assertThisInitialized(_this10), _getPrototypeOf(FieldExprContext.prototype)), "copyFrom", _thisSuper5).call(_thisSuper5, ctx);
|
|
1359
|
+
return _this10;
|
|
1360
|
+
}
|
|
1361
|
+
_createClass(FieldExprContext, [{
|
|
1362
|
+
key: "field_expr",
|
|
1363
|
+
value: function field_expr() {
|
|
1364
|
+
return this.getTypedRuleContext(Field_exprContext, 0);
|
|
1365
|
+
}
|
|
1366
|
+
}, {
|
|
1367
|
+
key: "enterRule",
|
|
1368
|
+
value: function enterRule(listener) {
|
|
1369
|
+
if (listener instanceof CLQLParserListener) {
|
|
1370
|
+
listener.enterFieldExpr(this);
|
|
1371
|
+
}
|
|
1372
|
+
}
|
|
1373
|
+
}, {
|
|
1374
|
+
key: "exitRule",
|
|
1375
|
+
value: function exitRule(listener) {
|
|
1376
|
+
if (listener instanceof CLQLParserListener) {
|
|
1377
|
+
listener.exitFieldExpr(this);
|
|
1378
|
+
}
|
|
1379
|
+
}
|
|
1380
|
+
}, {
|
|
1381
|
+
key: "accept",
|
|
1382
|
+
value: function accept(visitor) {
|
|
1383
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1384
|
+
return visitor.visitFieldExpr(this);
|
|
1385
|
+
} else {
|
|
1386
|
+
return visitor.visitChildren(this);
|
|
1387
|
+
}
|
|
1388
|
+
}
|
|
1389
|
+
}]);
|
|
1390
|
+
return FieldExprContext;
|
|
1391
|
+
}(Logical_exprContext);
|
|
1392
|
+
CLQLParser.FieldExprContext = FieldExprContext;
|
|
1393
|
+
var ParenExprContext = /*#__PURE__*/function (_Logical_exprContext6) {
|
|
1394
|
+
_inherits(ParenExprContext, _Logical_exprContext6);
|
|
1395
|
+
var _super11 = _createSuper(ParenExprContext);
|
|
1396
|
+
function ParenExprContext(parser, ctx) {
|
|
1397
|
+
var _thisSuper6, _this11;
|
|
1398
|
+
_classCallCheck(this, ParenExprContext);
|
|
1399
|
+
_this11 = _super11.call(this, parser);
|
|
1400
|
+
_get((_thisSuper6 = _assertThisInitialized(_this11), _getPrototypeOf(ParenExprContext.prototype)), "copyFrom", _thisSuper6).call(_thisSuper6, ctx);
|
|
1401
|
+
return _this11;
|
|
1402
|
+
}
|
|
1403
|
+
_createClass(ParenExprContext, [{
|
|
1404
|
+
key: "LPAREN",
|
|
1405
|
+
value: function LPAREN() {
|
|
1406
|
+
return this.getToken(CLQLParser.LPAREN, 0);
|
|
1407
|
+
}
|
|
1408
|
+
}, {
|
|
1409
|
+
key: "logical_expr",
|
|
1410
|
+
value: function logical_expr() {
|
|
1411
|
+
return this.getTypedRuleContext(Logical_exprContext, 0);
|
|
1412
|
+
}
|
|
1413
|
+
}, {
|
|
1414
|
+
key: "RPAREN",
|
|
1415
|
+
value: function RPAREN() {
|
|
1416
|
+
return this.getToken(CLQLParser.RPAREN, 0);
|
|
1417
|
+
}
|
|
1418
|
+
}, {
|
|
1419
|
+
key: "enterRule",
|
|
1420
|
+
value: function enterRule(listener) {
|
|
1421
|
+
if (listener instanceof CLQLParserListener) {
|
|
1422
|
+
listener.enterParenExpr(this);
|
|
1423
|
+
}
|
|
1424
|
+
}
|
|
1425
|
+
}, {
|
|
1426
|
+
key: "exitRule",
|
|
1427
|
+
value: function exitRule(listener) {
|
|
1428
|
+
if (listener instanceof CLQLParserListener) {
|
|
1429
|
+
listener.exitParenExpr(this);
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
}, {
|
|
1433
|
+
key: "accept",
|
|
1434
|
+
value: function accept(visitor) {
|
|
1435
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1436
|
+
return visitor.visitParenExpr(this);
|
|
1437
|
+
} else {
|
|
1438
|
+
return visitor.visitChildren(this);
|
|
1439
|
+
}
|
|
1440
|
+
}
|
|
1441
|
+
}]);
|
|
1442
|
+
return ParenExprContext;
|
|
1443
|
+
}(Logical_exprContext);
|
|
1444
|
+
CLQLParser.ParenExprContext = ParenExprContext;
|
|
1445
|
+
var AndExprContext = /*#__PURE__*/function (_Logical_exprContext7) {
|
|
1446
|
+
_inherits(AndExprContext, _Logical_exprContext7);
|
|
1447
|
+
var _super12 = _createSuper(AndExprContext);
|
|
1448
|
+
function AndExprContext(parser, ctx) {
|
|
1449
|
+
var _thisSuper7, _this12;
|
|
1450
|
+
_classCallCheck(this, AndExprContext);
|
|
1451
|
+
_this12 = _super12.call(this, parser);
|
|
1452
|
+
_defineProperty(_assertThisInitialized(_this12), "logical_expr", function (i) {
|
|
1453
|
+
if (i === undefined) {
|
|
1454
|
+
i = null;
|
|
1455
|
+
}
|
|
1456
|
+
if (i === null) {
|
|
1457
|
+
return this.getTypedRuleContexts(Logical_exprContext);
|
|
1458
|
+
} else {
|
|
1459
|
+
return this.getTypedRuleContext(Logical_exprContext, i);
|
|
1460
|
+
}
|
|
1461
|
+
});
|
|
1462
|
+
_this12.left = null; // Logical_exprContext;
|
|
1463
|
+
_this12.right = null; // Logical_exprContext;
|
|
1464
|
+
_get((_thisSuper7 = _assertThisInitialized(_this12), _getPrototypeOf(AndExprContext.prototype)), "copyFrom", _thisSuper7).call(_thisSuper7, ctx);
|
|
1465
|
+
return _this12;
|
|
1466
|
+
}
|
|
1467
|
+
_createClass(AndExprContext, [{
|
|
1468
|
+
key: "K_AND",
|
|
1469
|
+
value: function K_AND() {
|
|
1470
|
+
return this.getToken(CLQLParser.K_AND, 0);
|
|
1471
|
+
}
|
|
1472
|
+
}, {
|
|
1473
|
+
key: "enterRule",
|
|
1474
|
+
value: function enterRule(listener) {
|
|
1475
|
+
if (listener instanceof CLQLParserListener) {
|
|
1476
|
+
listener.enterAndExpr(this);
|
|
1477
|
+
}
|
|
1478
|
+
}
|
|
1479
|
+
}, {
|
|
1480
|
+
key: "exitRule",
|
|
1481
|
+
value: function exitRule(listener) {
|
|
1482
|
+
if (listener instanceof CLQLParserListener) {
|
|
1483
|
+
listener.exitAndExpr(this);
|
|
1484
|
+
}
|
|
1485
|
+
}
|
|
1486
|
+
}, {
|
|
1487
|
+
key: "accept",
|
|
1488
|
+
value: function accept(visitor) {
|
|
1489
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1490
|
+
return visitor.visitAndExpr(this);
|
|
1491
|
+
} else {
|
|
1492
|
+
return visitor.visitChildren(this);
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
}]);
|
|
1496
|
+
return AndExprContext;
|
|
1497
|
+
}(Logical_exprContext);
|
|
1498
|
+
CLQLParser.AndExprContext = AndExprContext;
|
|
1499
|
+
var Text_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon5) {
|
|
1500
|
+
_inherits(Text_exprContext, _antlr4$ParserRuleCon5);
|
|
1501
|
+
var _super13 = _createSuper(Text_exprContext);
|
|
1502
|
+
function Text_exprContext(parser, parent, invokingState) {
|
|
1503
|
+
var _this13;
|
|
1504
|
+
_classCallCheck(this, Text_exprContext);
|
|
1505
|
+
if (parent === undefined) {
|
|
1506
|
+
parent = null;
|
|
1507
|
+
}
|
|
1508
|
+
if (invokingState === undefined || invokingState === null) {
|
|
1509
|
+
invokingState = -1;
|
|
1510
|
+
}
|
|
1511
|
+
_this13 = _super13.call(this, parent, invokingState);
|
|
1512
|
+
_this13.parser = parser;
|
|
1513
|
+
_this13.ruleIndex = CLQLParser.RULE_text_expr;
|
|
1514
|
+
return _this13;
|
|
1515
|
+
}
|
|
1516
|
+
_createClass(Text_exprContext, [{
|
|
1517
|
+
key: "copyFrom",
|
|
1518
|
+
value: function copyFrom(ctx) {
|
|
1519
|
+
_get(_getPrototypeOf(Text_exprContext.prototype), "copyFrom", this).call(this, ctx);
|
|
1520
|
+
}
|
|
1521
|
+
}]);
|
|
1522
|
+
return Text_exprContext;
|
|
1523
|
+
}(antlr4.ParserRuleContext);
|
|
1524
|
+
var TextSearchExprContext = /*#__PURE__*/function (_Text_exprContext) {
|
|
1525
|
+
_inherits(TextSearchExprContext, _Text_exprContext);
|
|
1526
|
+
var _super14 = _createSuper(TextSearchExprContext);
|
|
1527
|
+
function TextSearchExprContext(parser, ctx) {
|
|
1528
|
+
var _thisSuper8, _this14;
|
|
1529
|
+
_classCallCheck(this, TextSearchExprContext);
|
|
1530
|
+
_this14 = _super14.call(this, parser);
|
|
1531
|
+
_get((_thisSuper8 = _assertThisInitialized(_this14), _getPrototypeOf(TextSearchExprContext.prototype)), "copyFrom", _thisSuper8).call(_thisSuper8, ctx);
|
|
1532
|
+
return _this14;
|
|
1533
|
+
}
|
|
1534
|
+
_createClass(TextSearchExprContext, [{
|
|
1535
|
+
key: "text_search_expr",
|
|
1536
|
+
value: function text_search_expr() {
|
|
1537
|
+
return this.getTypedRuleContext(Text_search_exprContext, 0);
|
|
1538
|
+
}
|
|
1539
|
+
}, {
|
|
1540
|
+
key: "enterRule",
|
|
1541
|
+
value: function enterRule(listener) {
|
|
1542
|
+
if (listener instanceof CLQLParserListener) {
|
|
1543
|
+
listener.enterTextSearchExpr(this);
|
|
1544
|
+
}
|
|
1545
|
+
}
|
|
1546
|
+
}, {
|
|
1547
|
+
key: "exitRule",
|
|
1548
|
+
value: function exitRule(listener) {
|
|
1549
|
+
if (listener instanceof CLQLParserListener) {
|
|
1550
|
+
listener.exitTextSearchExpr(this);
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
}, {
|
|
1554
|
+
key: "accept",
|
|
1555
|
+
value: function accept(visitor) {
|
|
1556
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1557
|
+
return visitor.visitTextSearchExpr(this);
|
|
1558
|
+
} else {
|
|
1559
|
+
return visitor.visitChildren(this);
|
|
1560
|
+
}
|
|
1561
|
+
}
|
|
1562
|
+
}]);
|
|
1563
|
+
return TextSearchExprContext;
|
|
1564
|
+
}(Text_exprContext);
|
|
1565
|
+
CLQLParser.TextSearchExprContext = TextSearchExprContext;
|
|
1566
|
+
var TextRegexExprContext = /*#__PURE__*/function (_Text_exprContext2) {
|
|
1567
|
+
_inherits(TextRegexExprContext, _Text_exprContext2);
|
|
1568
|
+
var _super15 = _createSuper(TextRegexExprContext);
|
|
1569
|
+
function TextRegexExprContext(parser, ctx) {
|
|
1570
|
+
var _thisSuper9, _this15;
|
|
1571
|
+
_classCallCheck(this, TextRegexExprContext);
|
|
1572
|
+
_this15 = _super15.call(this, parser);
|
|
1573
|
+
_get((_thisSuper9 = _assertThisInitialized(_this15), _getPrototypeOf(TextRegexExprContext.prototype)), "copyFrom", _thisSuper9).call(_thisSuper9, ctx);
|
|
1574
|
+
return _this15;
|
|
1575
|
+
}
|
|
1576
|
+
_createClass(TextRegexExprContext, [{
|
|
1577
|
+
key: "text_regex_expr",
|
|
1578
|
+
value: function text_regex_expr() {
|
|
1579
|
+
return this.getTypedRuleContext(Text_regex_exprContext, 0);
|
|
1580
|
+
}
|
|
1581
|
+
}, {
|
|
1582
|
+
key: "enterRule",
|
|
1583
|
+
value: function enterRule(listener) {
|
|
1584
|
+
if (listener instanceof CLQLParserListener) {
|
|
1585
|
+
listener.enterTextRegexExpr(this);
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1588
|
+
}, {
|
|
1589
|
+
key: "exitRule",
|
|
1590
|
+
value: function exitRule(listener) {
|
|
1591
|
+
if (listener instanceof CLQLParserListener) {
|
|
1592
|
+
listener.exitTextRegexExpr(this);
|
|
1593
|
+
}
|
|
1594
|
+
}
|
|
1595
|
+
}, {
|
|
1596
|
+
key: "accept",
|
|
1597
|
+
value: function accept(visitor) {
|
|
1598
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1599
|
+
return visitor.visitTextRegexExpr(this);
|
|
1600
|
+
} else {
|
|
1601
|
+
return visitor.visitChildren(this);
|
|
1602
|
+
}
|
|
1603
|
+
}
|
|
1604
|
+
}]);
|
|
1605
|
+
return TextRegexExprContext;
|
|
1606
|
+
}(Text_exprContext);
|
|
1607
|
+
CLQLParser.TextRegexExprContext = TextRegexExprContext;
|
|
1608
|
+
var TextRegexModelExprContext = /*#__PURE__*/function (_Text_exprContext3) {
|
|
1609
|
+
_inherits(TextRegexModelExprContext, _Text_exprContext3);
|
|
1610
|
+
var _super16 = _createSuper(TextRegexModelExprContext);
|
|
1611
|
+
function TextRegexModelExprContext(parser, ctx) {
|
|
1612
|
+
var _thisSuper10, _this16;
|
|
1613
|
+
_classCallCheck(this, TextRegexModelExprContext);
|
|
1614
|
+
_this16 = _super16.call(this, parser);
|
|
1615
|
+
_get((_thisSuper10 = _assertThisInitialized(_this16), _getPrototypeOf(TextRegexModelExprContext.prototype)), "copyFrom", _thisSuper10).call(_thisSuper10, ctx);
|
|
1616
|
+
return _this16;
|
|
1617
|
+
}
|
|
1618
|
+
_createClass(TextRegexModelExprContext, [{
|
|
1619
|
+
key: "text_regex_model_expr",
|
|
1620
|
+
value: function text_regex_model_expr() {
|
|
1621
|
+
return this.getTypedRuleContext(Text_regex_model_exprContext, 0);
|
|
1622
|
+
}
|
|
1623
|
+
}, {
|
|
1624
|
+
key: "enterRule",
|
|
1625
|
+
value: function enterRule(listener) {
|
|
1626
|
+
if (listener instanceof CLQLParserListener) {
|
|
1627
|
+
listener.enterTextRegexModelExpr(this);
|
|
1628
|
+
}
|
|
1629
|
+
}
|
|
1630
|
+
}, {
|
|
1631
|
+
key: "exitRule",
|
|
1632
|
+
value: function exitRule(listener) {
|
|
1633
|
+
if (listener instanceof CLQLParserListener) {
|
|
1634
|
+
listener.exitTextRegexModelExpr(this);
|
|
1635
|
+
}
|
|
1636
|
+
}
|
|
1637
|
+
}, {
|
|
1638
|
+
key: "accept",
|
|
1639
|
+
value: function accept(visitor) {
|
|
1640
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1641
|
+
return visitor.visitTextRegexModelExpr(this);
|
|
1642
|
+
} else {
|
|
1643
|
+
return visitor.visitChildren(this);
|
|
1644
|
+
}
|
|
1645
|
+
}
|
|
1646
|
+
}]);
|
|
1647
|
+
return TextRegexModelExprContext;
|
|
1648
|
+
}(Text_exprContext);
|
|
1649
|
+
CLQLParser.TextRegexModelExprContext = TextRegexModelExprContext;
|
|
1650
|
+
var Text_regex_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon6) {
|
|
1651
|
+
_inherits(Text_regex_exprContext, _antlr4$ParserRuleCon6);
|
|
1652
|
+
var _super17 = _createSuper(Text_regex_exprContext);
|
|
1653
|
+
function Text_regex_exprContext(parser, parent, invokingState) {
|
|
1654
|
+
var _this17;
|
|
1655
|
+
_classCallCheck(this, Text_regex_exprContext);
|
|
1656
|
+
if (parent === undefined) {
|
|
1657
|
+
parent = null;
|
|
1658
|
+
}
|
|
1659
|
+
if (invokingState === undefined || invokingState === null) {
|
|
1660
|
+
invokingState = -1;
|
|
1661
|
+
}
|
|
1662
|
+
_this17 = _super17.call(this, parent, invokingState);
|
|
1663
|
+
_this17.parser = parser;
|
|
1664
|
+
_this17.ruleIndex = CLQLParser.RULE_text_regex_expr;
|
|
1665
|
+
return _this17;
|
|
1666
|
+
}
|
|
1667
|
+
_createClass(Text_regex_exprContext, [{
|
|
1668
|
+
key: "REGEX",
|
|
1669
|
+
value: function REGEX() {
|
|
1670
|
+
return this.getToken(CLQLParser.REGEX, 0);
|
|
1671
|
+
}
|
|
1672
|
+
}, {
|
|
1673
|
+
key: "enterRule",
|
|
1674
|
+
value: function enterRule(listener) {
|
|
1675
|
+
if (listener instanceof CLQLParserListener) {
|
|
1676
|
+
listener.enterText_regex_expr(this);
|
|
1677
|
+
}
|
|
1678
|
+
}
|
|
1679
|
+
}, {
|
|
1680
|
+
key: "exitRule",
|
|
1681
|
+
value: function exitRule(listener) {
|
|
1682
|
+
if (listener instanceof CLQLParserListener) {
|
|
1683
|
+
listener.exitText_regex_expr(this);
|
|
1684
|
+
}
|
|
1685
|
+
}
|
|
1686
|
+
}, {
|
|
1687
|
+
key: "accept",
|
|
1688
|
+
value: function accept(visitor) {
|
|
1689
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1690
|
+
return visitor.visitText_regex_expr(this);
|
|
1691
|
+
} else {
|
|
1692
|
+
return visitor.visitChildren(this);
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
}]);
|
|
1696
|
+
return Text_regex_exprContext;
|
|
1697
|
+
}(antlr4.ParserRuleContext);
|
|
1698
|
+
var Text_regex_model_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon7) {
|
|
1699
|
+
_inherits(Text_regex_model_exprContext, _antlr4$ParserRuleCon7);
|
|
1700
|
+
var _super18 = _createSuper(Text_regex_model_exprContext);
|
|
1701
|
+
function Text_regex_model_exprContext(parser, parent, invokingState) {
|
|
1702
|
+
var _this18;
|
|
1703
|
+
_classCallCheck(this, Text_regex_model_exprContext);
|
|
1704
|
+
if (parent === undefined) {
|
|
1705
|
+
parent = null;
|
|
1706
|
+
}
|
|
1707
|
+
if (invokingState === undefined || invokingState === null) {
|
|
1708
|
+
invokingState = -1;
|
|
1709
|
+
}
|
|
1710
|
+
_this18 = _super18.call(this, parent, invokingState);
|
|
1711
|
+
_defineProperty(_assertThisInitialized(_this18), "WEI", function (i) {
|
|
1712
|
+
if (i === undefined) {
|
|
1713
|
+
i = null;
|
|
1714
|
+
}
|
|
1715
|
+
if (i === null) {
|
|
1716
|
+
return this.getTokens(CLQLParser.WEI);
|
|
1717
|
+
} else {
|
|
1718
|
+
return this.getToken(CLQLParser.WEI, i);
|
|
1719
|
+
}
|
|
1720
|
+
});
|
|
1721
|
+
_defineProperty(_assertThisInitialized(_this18), "BQUOTA_STRING", function (i) {
|
|
1722
|
+
if (i === undefined) {
|
|
1723
|
+
i = null;
|
|
1724
|
+
}
|
|
1725
|
+
if (i === null) {
|
|
1726
|
+
return this.getTokens(CLQLParser.BQUOTA_STRING);
|
|
1727
|
+
} else {
|
|
1728
|
+
return this.getToken(CLQLParser.BQUOTA_STRING, i);
|
|
1729
|
+
}
|
|
1730
|
+
});
|
|
1731
|
+
_defineProperty(_assertThisInitialized(_this18), "STAR", function (i) {
|
|
1732
|
+
if (i === undefined) {
|
|
1733
|
+
i = null;
|
|
1734
|
+
}
|
|
1735
|
+
if (i === null) {
|
|
1736
|
+
return this.getTokens(CLQLParser.STAR);
|
|
1737
|
+
} else {
|
|
1738
|
+
return this.getToken(CLQLParser.STAR, i);
|
|
1739
|
+
}
|
|
1740
|
+
});
|
|
1741
|
+
_this18.parser = parser;
|
|
1742
|
+
_this18.ruleIndex = CLQLParser.RULE_text_regex_model_expr;
|
|
1743
|
+
return _this18;
|
|
1744
|
+
}
|
|
1745
|
+
_createClass(Text_regex_model_exprContext, [{
|
|
1746
|
+
key: "enterRule",
|
|
1747
|
+
value: function enterRule(listener) {
|
|
1748
|
+
if (listener instanceof CLQLParserListener) {
|
|
1749
|
+
listener.enterText_regex_model_expr(this);
|
|
1750
|
+
}
|
|
1751
|
+
}
|
|
1752
|
+
}, {
|
|
1753
|
+
key: "exitRule",
|
|
1754
|
+
value: function exitRule(listener) {
|
|
1755
|
+
if (listener instanceof CLQLParserListener) {
|
|
1756
|
+
listener.exitText_regex_model_expr(this);
|
|
1757
|
+
}
|
|
1758
|
+
}
|
|
1759
|
+
}, {
|
|
1760
|
+
key: "accept",
|
|
1761
|
+
value: function accept(visitor) {
|
|
1762
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1763
|
+
return visitor.visitText_regex_model_expr(this);
|
|
1764
|
+
} else {
|
|
1765
|
+
return visitor.visitChildren(this);
|
|
1766
|
+
}
|
|
1767
|
+
}
|
|
1768
|
+
}]);
|
|
1769
|
+
return Text_regex_model_exprContext;
|
|
1770
|
+
}(antlr4.ParserRuleContext);
|
|
1771
|
+
var Comparison_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon8) {
|
|
1772
|
+
_inherits(Comparison_exprContext, _antlr4$ParserRuleCon8);
|
|
1773
|
+
var _super19 = _createSuper(Comparison_exprContext);
|
|
1774
|
+
function Comparison_exprContext(parser, parent, invokingState) {
|
|
1775
|
+
var _this19;
|
|
1776
|
+
_classCallCheck(this, Comparison_exprContext);
|
|
1777
|
+
if (parent === undefined) {
|
|
1778
|
+
parent = null;
|
|
1779
|
+
}
|
|
1780
|
+
if (invokingState === undefined || invokingState === null) {
|
|
1781
|
+
invokingState = -1;
|
|
1782
|
+
}
|
|
1783
|
+
_this19 = _super19.call(this, parent, invokingState);
|
|
1784
|
+
_this19.parser = parser;
|
|
1785
|
+
_this19.ruleIndex = CLQLParser.RULE_comparison_expr;
|
|
1786
|
+
return _this19;
|
|
1787
|
+
}
|
|
1788
|
+
_createClass(Comparison_exprContext, [{
|
|
1789
|
+
key: "copyFrom",
|
|
1790
|
+
value: function copyFrom(ctx) {
|
|
1791
|
+
_get(_getPrototypeOf(Comparison_exprContext.prototype), "copyFrom", this).call(this, ctx);
|
|
1792
|
+
}
|
|
1793
|
+
}]);
|
|
1794
|
+
return Comparison_exprContext;
|
|
1795
|
+
}(antlr4.ParserRuleContext);
|
|
1796
|
+
var NumberCompareExprContext = /*#__PURE__*/function (_Comparison_exprConte) {
|
|
1797
|
+
_inherits(NumberCompareExprContext, _Comparison_exprConte);
|
|
1798
|
+
var _super20 = _createSuper(NumberCompareExprContext);
|
|
1799
|
+
function NumberCompareExprContext(parser, ctx) {
|
|
1800
|
+
var _thisSuper11, _this20;
|
|
1801
|
+
_classCallCheck(this, NumberCompareExprContext);
|
|
1802
|
+
_this20 = _super20.call(this, parser);
|
|
1803
|
+
_defineProperty(_assertThisInitialized(_this20), "primary_expr", function (i) {
|
|
1804
|
+
if (i === undefined) {
|
|
1805
|
+
i = null;
|
|
1806
|
+
}
|
|
1807
|
+
if (i === null) {
|
|
1808
|
+
return this.getTypedRuleContexts(Primary_exprContext);
|
|
1809
|
+
} else {
|
|
1810
|
+
return this.getTypedRuleContext(Primary_exprContext, i);
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
_this20.left = null; // Primary_exprContext;
|
|
1814
|
+
_this20.right = null; // Primary_exprContext;
|
|
1815
|
+
_get((_thisSuper11 = _assertThisInitialized(_this20), _getPrototypeOf(NumberCompareExprContext.prototype)), "copyFrom", _thisSuper11).call(_thisSuper11, ctx);
|
|
1816
|
+
return _this20;
|
|
1817
|
+
}
|
|
1818
|
+
_createClass(NumberCompareExprContext, [{
|
|
1819
|
+
key: "comparison_number_operator",
|
|
1820
|
+
value: function comparison_number_operator() {
|
|
1821
|
+
return this.getTypedRuleContext(Comparison_number_operatorContext, 0);
|
|
1822
|
+
}
|
|
1823
|
+
}, {
|
|
1824
|
+
key: "enterRule",
|
|
1825
|
+
value: function enterRule(listener) {
|
|
1826
|
+
if (listener instanceof CLQLParserListener) {
|
|
1827
|
+
listener.enterNumberCompareExpr(this);
|
|
1828
|
+
}
|
|
1829
|
+
}
|
|
1830
|
+
}, {
|
|
1831
|
+
key: "exitRule",
|
|
1832
|
+
value: function exitRule(listener) {
|
|
1833
|
+
if (listener instanceof CLQLParserListener) {
|
|
1834
|
+
listener.exitNumberCompareExpr(this);
|
|
1835
|
+
}
|
|
1836
|
+
}
|
|
1837
|
+
}, {
|
|
1838
|
+
key: "accept",
|
|
1839
|
+
value: function accept(visitor) {
|
|
1840
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1841
|
+
return visitor.visitNumberCompareExpr(this);
|
|
1842
|
+
} else {
|
|
1843
|
+
return visitor.visitChildren(this);
|
|
1844
|
+
}
|
|
1845
|
+
}
|
|
1846
|
+
}]);
|
|
1847
|
+
return NumberCompareExprContext;
|
|
1848
|
+
}(Comparison_exprContext);
|
|
1849
|
+
CLQLParser.NumberCompareExprContext = NumberCompareExprContext;
|
|
1850
|
+
var Field_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon9) {
|
|
1851
|
+
_inherits(Field_exprContext, _antlr4$ParserRuleCon9);
|
|
1852
|
+
var _super21 = _createSuper(Field_exprContext);
|
|
1853
|
+
function Field_exprContext(parser, parent, invokingState) {
|
|
1854
|
+
var _this21;
|
|
1855
|
+
_classCallCheck(this, Field_exprContext);
|
|
1856
|
+
if (parent === undefined) {
|
|
1857
|
+
parent = null;
|
|
1858
|
+
}
|
|
1859
|
+
if (invokingState === undefined || invokingState === null) {
|
|
1860
|
+
invokingState = -1;
|
|
1861
|
+
}
|
|
1862
|
+
_this21 = _super21.call(this, parent, invokingState);
|
|
1863
|
+
_this21.parser = parser;
|
|
1864
|
+
_this21.ruleIndex = CLQLParser.RULE_field_expr;
|
|
1865
|
+
return _this21;
|
|
1866
|
+
}
|
|
1867
|
+
_createClass(Field_exprContext, [{
|
|
1868
|
+
key: "copyFrom",
|
|
1869
|
+
value: function copyFrom(ctx) {
|
|
1870
|
+
_get(_getPrototypeOf(Field_exprContext.prototype), "copyFrom", this).call(this, ctx);
|
|
1871
|
+
}
|
|
1872
|
+
}]);
|
|
1873
|
+
return Field_exprContext;
|
|
1874
|
+
}(antlr4.ParserRuleContext);
|
|
1875
|
+
var FieldRangeExprContext = /*#__PURE__*/function (_Field_exprContext) {
|
|
1876
|
+
_inherits(FieldRangeExprContext, _Field_exprContext);
|
|
1877
|
+
var _super22 = _createSuper(FieldRangeExprContext);
|
|
1878
|
+
function FieldRangeExprContext(parser, ctx) {
|
|
1879
|
+
var _thisSuper12, _this22;
|
|
1880
|
+
_classCallCheck(this, FieldRangeExprContext);
|
|
1881
|
+
_this22 = _super22.call(this, parser);
|
|
1882
|
+
_defineProperty(_assertThisInitialized(_this22), "number_literal", function (i) {
|
|
1883
|
+
if (i === undefined) {
|
|
1884
|
+
i = null;
|
|
1885
|
+
}
|
|
1886
|
+
if (i === null) {
|
|
1887
|
+
return this.getTypedRuleContexts(Number_literalContext);
|
|
1888
|
+
} else {
|
|
1889
|
+
return this.getTypedRuleContext(Number_literalContext, i);
|
|
1890
|
+
}
|
|
1891
|
+
});
|
|
1892
|
+
_get((_thisSuper12 = _assertThisInitialized(_this22), _getPrototypeOf(FieldRangeExprContext.prototype)), "copyFrom", _thisSuper12).call(_thisSuper12, ctx);
|
|
1893
|
+
return _this22;
|
|
1894
|
+
}
|
|
1895
|
+
_createClass(FieldRangeExprContext, [{
|
|
1896
|
+
key: "field",
|
|
1897
|
+
value: function field() {
|
|
1898
|
+
return this.getTypedRuleContext(FieldContext, 0);
|
|
1899
|
+
}
|
|
1900
|
+
}, {
|
|
1901
|
+
key: "COLON",
|
|
1902
|
+
value: function COLON() {
|
|
1903
|
+
return this.getToken(CLQLParser.COLON, 0);
|
|
1904
|
+
}
|
|
1905
|
+
}, {
|
|
1906
|
+
key: "K_TO",
|
|
1907
|
+
value: function K_TO() {
|
|
1908
|
+
return this.getToken(CLQLParser.K_TO, 0);
|
|
1909
|
+
}
|
|
1910
|
+
}, {
|
|
1911
|
+
key: "LBRAKET",
|
|
1912
|
+
value: function LBRAKET() {
|
|
1913
|
+
return this.getToken(CLQLParser.LBRAKET, 0);
|
|
1914
|
+
}
|
|
1915
|
+
}, {
|
|
1916
|
+
key: "LCURLY",
|
|
1917
|
+
value: function LCURLY() {
|
|
1918
|
+
return this.getToken(CLQLParser.LCURLY, 0);
|
|
1919
|
+
}
|
|
1920
|
+
}, {
|
|
1921
|
+
key: "RBRAKET",
|
|
1922
|
+
value: function RBRAKET() {
|
|
1923
|
+
return this.getToken(CLQLParser.RBRAKET, 0);
|
|
1924
|
+
}
|
|
1925
|
+
}, {
|
|
1926
|
+
key: "RCURLY",
|
|
1927
|
+
value: function RCURLY() {
|
|
1928
|
+
return this.getToken(CLQLParser.RCURLY, 0);
|
|
1929
|
+
}
|
|
1930
|
+
}, {
|
|
1931
|
+
key: "enterRule",
|
|
1932
|
+
value: function enterRule(listener) {
|
|
1933
|
+
if (listener instanceof CLQLParserListener) {
|
|
1934
|
+
listener.enterFieldRangeExpr(this);
|
|
1935
|
+
}
|
|
1936
|
+
}
|
|
1937
|
+
}, {
|
|
1938
|
+
key: "exitRule",
|
|
1939
|
+
value: function exitRule(listener) {
|
|
1940
|
+
if (listener instanceof CLQLParserListener) {
|
|
1941
|
+
listener.exitFieldRangeExpr(this);
|
|
1942
|
+
}
|
|
1943
|
+
}
|
|
1944
|
+
}, {
|
|
1945
|
+
key: "accept",
|
|
1946
|
+
value: function accept(visitor) {
|
|
1947
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
1948
|
+
return visitor.visitFieldRangeExpr(this);
|
|
1949
|
+
} else {
|
|
1950
|
+
return visitor.visitChildren(this);
|
|
1951
|
+
}
|
|
1952
|
+
}
|
|
1953
|
+
}]);
|
|
1954
|
+
return FieldRangeExprContext;
|
|
1955
|
+
}(Field_exprContext);
|
|
1956
|
+
CLQLParser.FieldRangeExprContext = FieldRangeExprContext;
|
|
1957
|
+
var FieldValueExprContext = /*#__PURE__*/function (_Field_exprContext2) {
|
|
1958
|
+
_inherits(FieldValueExprContext, _Field_exprContext2);
|
|
1959
|
+
var _super23 = _createSuper(FieldValueExprContext);
|
|
1960
|
+
function FieldValueExprContext(parser, ctx) {
|
|
1961
|
+
var _thisSuper13, _this23;
|
|
1962
|
+
_classCallCheck(this, FieldValueExprContext);
|
|
1963
|
+
_this23 = _super23.call(this, parser);
|
|
1964
|
+
_this23.left = null; // FieldContext;
|
|
1965
|
+
_this23.right = null; // Fuzzy_literal_valueContext;
|
|
1966
|
+
_get((_thisSuper13 = _assertThisInitialized(_this23), _getPrototypeOf(FieldValueExprContext.prototype)), "copyFrom", _thisSuper13).call(_thisSuper13, ctx);
|
|
1967
|
+
return _this23;
|
|
1968
|
+
}
|
|
1969
|
+
_createClass(FieldValueExprContext, [{
|
|
1970
|
+
key: "COLON",
|
|
1971
|
+
value: function COLON() {
|
|
1972
|
+
return this.getToken(CLQLParser.COLON, 0);
|
|
1973
|
+
}
|
|
1974
|
+
}, {
|
|
1975
|
+
key: "field",
|
|
1976
|
+
value: function field() {
|
|
1977
|
+
return this.getTypedRuleContext(FieldContext, 0);
|
|
1978
|
+
}
|
|
1979
|
+
}, {
|
|
1980
|
+
key: "fuzzy_literal_value",
|
|
1981
|
+
value: function fuzzy_literal_value() {
|
|
1982
|
+
return this.getTypedRuleContext(Fuzzy_literal_valueContext, 0);
|
|
1983
|
+
}
|
|
1984
|
+
}, {
|
|
1985
|
+
key: "enterRule",
|
|
1986
|
+
value: function enterRule(listener) {
|
|
1987
|
+
if (listener instanceof CLQLParserListener) {
|
|
1988
|
+
listener.enterFieldValueExpr(this);
|
|
1989
|
+
}
|
|
1990
|
+
}
|
|
1991
|
+
}, {
|
|
1992
|
+
key: "exitRule",
|
|
1993
|
+
value: function exitRule(listener) {
|
|
1994
|
+
if (listener instanceof CLQLParserListener) {
|
|
1995
|
+
listener.exitFieldValueExpr(this);
|
|
1996
|
+
}
|
|
1997
|
+
}
|
|
1998
|
+
}, {
|
|
1999
|
+
key: "accept",
|
|
2000
|
+
value: function accept(visitor) {
|
|
2001
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2002
|
+
return visitor.visitFieldValueExpr(this);
|
|
2003
|
+
} else {
|
|
2004
|
+
return visitor.visitChildren(this);
|
|
2005
|
+
}
|
|
2006
|
+
}
|
|
2007
|
+
}]);
|
|
2008
|
+
return FieldValueExprContext;
|
|
2009
|
+
}(Field_exprContext);
|
|
2010
|
+
CLQLParser.FieldValueExprContext = FieldValueExprContext;
|
|
2011
|
+
var FieldInExprContext = /*#__PURE__*/function (_Field_exprContext3) {
|
|
2012
|
+
_inherits(FieldInExprContext, _Field_exprContext3);
|
|
2013
|
+
var _super24 = _createSuper(FieldInExprContext);
|
|
2014
|
+
function FieldInExprContext(parser, ctx) {
|
|
2015
|
+
var _thisSuper14, _this24;
|
|
2016
|
+
_classCallCheck(this, FieldInExprContext);
|
|
2017
|
+
_this24 = _super24.call(this, parser);
|
|
2018
|
+
_defineProperty(_assertThisInitialized(_this24), "literal_value", function (i) {
|
|
2019
|
+
if (i === undefined) {
|
|
2020
|
+
i = null;
|
|
2021
|
+
}
|
|
2022
|
+
if (i === null) {
|
|
2023
|
+
return this.getTypedRuleContexts(Literal_valueContext);
|
|
2024
|
+
} else {
|
|
2025
|
+
return this.getTypedRuleContext(Literal_valueContext, i);
|
|
2026
|
+
}
|
|
2027
|
+
});
|
|
2028
|
+
_defineProperty(_assertThisInitialized(_this24), "K_OR", function (i) {
|
|
2029
|
+
if (i === undefined) {
|
|
2030
|
+
i = null;
|
|
2031
|
+
}
|
|
2032
|
+
if (i === null) {
|
|
2033
|
+
return this.getTokens(CLQLParser.K_OR);
|
|
2034
|
+
} else {
|
|
2035
|
+
return this.getToken(CLQLParser.K_OR, i);
|
|
2036
|
+
}
|
|
2037
|
+
});
|
|
2038
|
+
_get((_thisSuper14 = _assertThisInitialized(_this24), _getPrototypeOf(FieldInExprContext.prototype)), "copyFrom", _thisSuper14).call(_thisSuper14, ctx);
|
|
2039
|
+
return _this24;
|
|
2040
|
+
}
|
|
2041
|
+
_createClass(FieldInExprContext, [{
|
|
2042
|
+
key: "field",
|
|
2043
|
+
value: function field() {
|
|
2044
|
+
return this.getTypedRuleContext(FieldContext, 0);
|
|
2045
|
+
}
|
|
2046
|
+
}, {
|
|
2047
|
+
key: "COLON",
|
|
2048
|
+
value: function COLON() {
|
|
2049
|
+
return this.getToken(CLQLParser.COLON, 0);
|
|
2050
|
+
}
|
|
2051
|
+
}, {
|
|
2052
|
+
key: "LPAREN",
|
|
2053
|
+
value: function LPAREN() {
|
|
2054
|
+
return this.getToken(CLQLParser.LPAREN, 0);
|
|
2055
|
+
}
|
|
2056
|
+
}, {
|
|
2057
|
+
key: "RPAREN",
|
|
2058
|
+
value: function RPAREN() {
|
|
2059
|
+
return this.getToken(CLQLParser.RPAREN, 0);
|
|
2060
|
+
}
|
|
2061
|
+
}, {
|
|
2062
|
+
key: "enterRule",
|
|
2063
|
+
value: function enterRule(listener) {
|
|
2064
|
+
if (listener instanceof CLQLParserListener) {
|
|
2065
|
+
listener.enterFieldInExpr(this);
|
|
2066
|
+
}
|
|
2067
|
+
}
|
|
2068
|
+
}, {
|
|
2069
|
+
key: "exitRule",
|
|
2070
|
+
value: function exitRule(listener) {
|
|
2071
|
+
if (listener instanceof CLQLParserListener) {
|
|
2072
|
+
listener.exitFieldInExpr(this);
|
|
2073
|
+
}
|
|
2074
|
+
}
|
|
2075
|
+
}, {
|
|
2076
|
+
key: "accept",
|
|
2077
|
+
value: function accept(visitor) {
|
|
2078
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2079
|
+
return visitor.visitFieldInExpr(this);
|
|
2080
|
+
} else {
|
|
2081
|
+
return visitor.visitChildren(this);
|
|
2082
|
+
}
|
|
2083
|
+
}
|
|
2084
|
+
}]);
|
|
2085
|
+
return FieldInExprContext;
|
|
2086
|
+
}(Field_exprContext);
|
|
2087
|
+
CLQLParser.FieldInExprContext = FieldInExprContext;
|
|
2088
|
+
var FieldExistExprContext = /*#__PURE__*/function (_Field_exprContext4) {
|
|
2089
|
+
_inherits(FieldExistExprContext, _Field_exprContext4);
|
|
2090
|
+
var _super25 = _createSuper(FieldExistExprContext);
|
|
2091
|
+
function FieldExistExprContext(parser, ctx) {
|
|
2092
|
+
var _thisSuper15, _this25;
|
|
2093
|
+
_classCallCheck(this, FieldExistExprContext);
|
|
2094
|
+
_this25 = _super25.call(this, parser);
|
|
2095
|
+
_get((_thisSuper15 = _assertThisInitialized(_this25), _getPrototypeOf(FieldExistExprContext.prototype)), "copyFrom", _thisSuper15).call(_thisSuper15, ctx);
|
|
2096
|
+
return _this25;
|
|
2097
|
+
}
|
|
2098
|
+
_createClass(FieldExistExprContext, [{
|
|
2099
|
+
key: "WAVE",
|
|
2100
|
+
value: function WAVE() {
|
|
2101
|
+
return this.getToken(CLQLParser.WAVE, 0);
|
|
2102
|
+
}
|
|
2103
|
+
}, {
|
|
2104
|
+
key: "field",
|
|
2105
|
+
value: function field() {
|
|
2106
|
+
return this.getTypedRuleContext(FieldContext, 0);
|
|
2107
|
+
}
|
|
2108
|
+
}, {
|
|
2109
|
+
key: "enterRule",
|
|
2110
|
+
value: function enterRule(listener) {
|
|
2111
|
+
if (listener instanceof CLQLParserListener) {
|
|
2112
|
+
listener.enterFieldExistExpr(this);
|
|
2113
|
+
}
|
|
2114
|
+
}
|
|
2115
|
+
}, {
|
|
2116
|
+
key: "exitRule",
|
|
2117
|
+
value: function exitRule(listener) {
|
|
2118
|
+
if (listener instanceof CLQLParserListener) {
|
|
2119
|
+
listener.exitFieldExistExpr(this);
|
|
2120
|
+
}
|
|
2121
|
+
}
|
|
2122
|
+
}, {
|
|
2123
|
+
key: "accept",
|
|
2124
|
+
value: function accept(visitor) {
|
|
2125
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2126
|
+
return visitor.visitFieldExistExpr(this);
|
|
2127
|
+
} else {
|
|
2128
|
+
return visitor.visitChildren(this);
|
|
2129
|
+
}
|
|
2130
|
+
}
|
|
2131
|
+
}]);
|
|
2132
|
+
return FieldExistExprContext;
|
|
2133
|
+
}(Field_exprContext);
|
|
2134
|
+
CLQLParser.FieldExistExprContext = FieldExistExprContext;
|
|
2135
|
+
var Text_search_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon10) {
|
|
2136
|
+
_inherits(Text_search_exprContext, _antlr4$ParserRuleCon10);
|
|
2137
|
+
var _super26 = _createSuper(Text_search_exprContext);
|
|
2138
|
+
function Text_search_exprContext(parser, parent, invokingState) {
|
|
2139
|
+
var _this26;
|
|
2140
|
+
_classCallCheck(this, Text_search_exprContext);
|
|
2141
|
+
if (parent === undefined) {
|
|
2142
|
+
parent = null;
|
|
2143
|
+
}
|
|
2144
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2145
|
+
invokingState = -1;
|
|
2146
|
+
}
|
|
2147
|
+
_this26 = _super26.call(this, parent, invokingState);
|
|
2148
|
+
_this26.parser = parser;
|
|
2149
|
+
_this26.ruleIndex = CLQLParser.RULE_text_search_expr;
|
|
2150
|
+
return _this26;
|
|
2151
|
+
}
|
|
2152
|
+
_createClass(Text_search_exprContext, [{
|
|
2153
|
+
key: "fuzzy_literal_value",
|
|
2154
|
+
value: function fuzzy_literal_value() {
|
|
2155
|
+
return this.getTypedRuleContext(Fuzzy_literal_valueContext, 0);
|
|
2156
|
+
}
|
|
2157
|
+
}, {
|
|
2158
|
+
key: "enterRule",
|
|
2159
|
+
value: function enterRule(listener) {
|
|
2160
|
+
if (listener instanceof CLQLParserListener) {
|
|
2161
|
+
listener.enterText_search_expr(this);
|
|
2162
|
+
}
|
|
2163
|
+
}
|
|
2164
|
+
}, {
|
|
2165
|
+
key: "exitRule",
|
|
2166
|
+
value: function exitRule(listener) {
|
|
2167
|
+
if (listener instanceof CLQLParserListener) {
|
|
2168
|
+
listener.exitText_search_expr(this);
|
|
2169
|
+
}
|
|
2170
|
+
}
|
|
2171
|
+
}, {
|
|
2172
|
+
key: "accept",
|
|
2173
|
+
value: function accept(visitor) {
|
|
2174
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2175
|
+
return visitor.visitText_search_expr(this);
|
|
2176
|
+
} else {
|
|
2177
|
+
return visitor.visitChildren(this);
|
|
2178
|
+
}
|
|
2179
|
+
}
|
|
2180
|
+
}]);
|
|
2181
|
+
return Text_search_exprContext;
|
|
2182
|
+
}(antlr4.ParserRuleContext);
|
|
2183
|
+
var Primary_exprContext = /*#__PURE__*/function (_antlr4$ParserRuleCon11) {
|
|
2184
|
+
_inherits(Primary_exprContext, _antlr4$ParserRuleCon11);
|
|
2185
|
+
var _super27 = _createSuper(Primary_exprContext);
|
|
2186
|
+
function Primary_exprContext(parser, parent, invokingState) {
|
|
2187
|
+
var _this27;
|
|
2188
|
+
_classCallCheck(this, Primary_exprContext);
|
|
2189
|
+
if (parent === undefined) {
|
|
2190
|
+
parent = null;
|
|
2191
|
+
}
|
|
2192
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2193
|
+
invokingState = -1;
|
|
2194
|
+
}
|
|
2195
|
+
_this27 = _super27.call(this, parent, invokingState);
|
|
2196
|
+
_this27.parser = parser;
|
|
2197
|
+
_this27.ruleIndex = CLQLParser.RULE_primary_expr;
|
|
2198
|
+
return _this27;
|
|
2199
|
+
}
|
|
2200
|
+
_createClass(Primary_exprContext, [{
|
|
2201
|
+
key: "field",
|
|
2202
|
+
value: function field() {
|
|
2203
|
+
return this.getTypedRuleContext(FieldContext, 0);
|
|
2204
|
+
}
|
|
2205
|
+
}, {
|
|
2206
|
+
key: "literal_value",
|
|
2207
|
+
value: function literal_value() {
|
|
2208
|
+
return this.getTypedRuleContext(Literal_valueContext, 0);
|
|
2209
|
+
}
|
|
2210
|
+
}, {
|
|
2211
|
+
key: "enterRule",
|
|
2212
|
+
value: function enterRule(listener) {
|
|
2213
|
+
if (listener instanceof CLQLParserListener) {
|
|
2214
|
+
listener.enterPrimary_expr(this);
|
|
2215
|
+
}
|
|
2216
|
+
}
|
|
2217
|
+
}, {
|
|
2218
|
+
key: "exitRule",
|
|
2219
|
+
value: function exitRule(listener) {
|
|
2220
|
+
if (listener instanceof CLQLParserListener) {
|
|
2221
|
+
listener.exitPrimary_expr(this);
|
|
2222
|
+
}
|
|
2223
|
+
}
|
|
2224
|
+
}, {
|
|
2225
|
+
key: "accept",
|
|
2226
|
+
value: function accept(visitor) {
|
|
2227
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2228
|
+
return visitor.visitPrimary_expr(this);
|
|
2229
|
+
} else {
|
|
2230
|
+
return visitor.visitChildren(this);
|
|
2231
|
+
}
|
|
2232
|
+
}
|
|
2233
|
+
}]);
|
|
2234
|
+
return Primary_exprContext;
|
|
2235
|
+
}(antlr4.ParserRuleContext);
|
|
2236
|
+
var FieldContext = /*#__PURE__*/function (_antlr4$ParserRuleCon12) {
|
|
2237
|
+
_inherits(FieldContext, _antlr4$ParserRuleCon12);
|
|
2238
|
+
var _super28 = _createSuper(FieldContext);
|
|
2239
|
+
function FieldContext(parser, parent, invokingState) {
|
|
2240
|
+
var _this28;
|
|
2241
|
+
_classCallCheck(this, FieldContext);
|
|
2242
|
+
if (parent === undefined) {
|
|
2243
|
+
parent = null;
|
|
2244
|
+
}
|
|
2245
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2246
|
+
invokingState = -1;
|
|
2247
|
+
}
|
|
2248
|
+
_this28 = _super28.call(this, parent, invokingState);
|
|
2249
|
+
_this28.parser = parser;
|
|
2250
|
+
_this28.ruleIndex = CLQLParser.RULE_field;
|
|
2251
|
+
return _this28;
|
|
2252
|
+
}
|
|
2253
|
+
_createClass(FieldContext, [{
|
|
2254
|
+
key: "UNQUOTA_STRING",
|
|
2255
|
+
value: function UNQUOTA_STRING() {
|
|
2256
|
+
return this.getToken(CLQLParser.UNQUOTA_STRING, 0);
|
|
2257
|
+
}
|
|
2258
|
+
}, {
|
|
2259
|
+
key: "enterRule",
|
|
2260
|
+
value: function enterRule(listener) {
|
|
2261
|
+
if (listener instanceof CLQLParserListener) {
|
|
2262
|
+
listener.enterField(this);
|
|
2263
|
+
}
|
|
2264
|
+
}
|
|
2265
|
+
}, {
|
|
2266
|
+
key: "exitRule",
|
|
2267
|
+
value: function exitRule(listener) {
|
|
2268
|
+
if (listener instanceof CLQLParserListener) {
|
|
2269
|
+
listener.exitField(this);
|
|
2270
|
+
}
|
|
2271
|
+
}
|
|
2272
|
+
}, {
|
|
2273
|
+
key: "accept",
|
|
2274
|
+
value: function accept(visitor) {
|
|
2275
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2276
|
+
return visitor.visitField(this);
|
|
2277
|
+
} else {
|
|
2278
|
+
return visitor.visitChildren(this);
|
|
2279
|
+
}
|
|
2280
|
+
}
|
|
2281
|
+
}]);
|
|
2282
|
+
return FieldContext;
|
|
2283
|
+
}(antlr4.ParserRuleContext);
|
|
2284
|
+
var Fuzzy_literal_valueContext = /*#__PURE__*/function (_antlr4$ParserRuleCon13) {
|
|
2285
|
+
_inherits(Fuzzy_literal_valueContext, _antlr4$ParserRuleCon13);
|
|
2286
|
+
var _super29 = _createSuper(Fuzzy_literal_valueContext);
|
|
2287
|
+
function Fuzzy_literal_valueContext(parser, parent, invokingState) {
|
|
2288
|
+
var _this29;
|
|
2289
|
+
_classCallCheck(this, Fuzzy_literal_valueContext);
|
|
2290
|
+
if (parent === undefined) {
|
|
2291
|
+
parent = null;
|
|
2292
|
+
}
|
|
2293
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2294
|
+
invokingState = -1;
|
|
2295
|
+
}
|
|
2296
|
+
_this29 = _super29.call(this, parent, invokingState);
|
|
2297
|
+
_this29.parser = parser;
|
|
2298
|
+
_this29.ruleIndex = CLQLParser.RULE_fuzzy_literal_value;
|
|
2299
|
+
return _this29;
|
|
2300
|
+
}
|
|
2301
|
+
_createClass(Fuzzy_literal_valueContext, [{
|
|
2302
|
+
key: "fuzzy_literal",
|
|
2303
|
+
value: function fuzzy_literal() {
|
|
2304
|
+
return this.getTypedRuleContext(Fuzzy_literalContext, 0);
|
|
2305
|
+
}
|
|
2306
|
+
}, {
|
|
2307
|
+
key: "literal_value",
|
|
2308
|
+
value: function literal_value() {
|
|
2309
|
+
return this.getTypedRuleContext(Literal_valueContext, 0);
|
|
2310
|
+
}
|
|
2311
|
+
}, {
|
|
2312
|
+
key: "enterRule",
|
|
2313
|
+
value: function enterRule(listener) {
|
|
2314
|
+
if (listener instanceof CLQLParserListener) {
|
|
2315
|
+
listener.enterFuzzy_literal_value(this);
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
}, {
|
|
2319
|
+
key: "exitRule",
|
|
2320
|
+
value: function exitRule(listener) {
|
|
2321
|
+
if (listener instanceof CLQLParserListener) {
|
|
2322
|
+
listener.exitFuzzy_literal_value(this);
|
|
2323
|
+
}
|
|
2324
|
+
}
|
|
2325
|
+
}, {
|
|
2326
|
+
key: "accept",
|
|
2327
|
+
value: function accept(visitor) {
|
|
2328
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2329
|
+
return visitor.visitFuzzy_literal_value(this);
|
|
2330
|
+
} else {
|
|
2331
|
+
return visitor.visitChildren(this);
|
|
2332
|
+
}
|
|
2333
|
+
}
|
|
2334
|
+
}]);
|
|
2335
|
+
return Fuzzy_literal_valueContext;
|
|
2336
|
+
}(antlr4.ParserRuleContext);
|
|
2337
|
+
var Fuzzy_literalContext = /*#__PURE__*/function (_antlr4$ParserRuleCon14) {
|
|
2338
|
+
_inherits(Fuzzy_literalContext, _antlr4$ParserRuleCon14);
|
|
2339
|
+
var _super30 = _createSuper(Fuzzy_literalContext);
|
|
2340
|
+
function Fuzzy_literalContext(parser, parent, invokingState) {
|
|
2341
|
+
var _this30;
|
|
2342
|
+
_classCallCheck(this, Fuzzy_literalContext);
|
|
2343
|
+
if (parent === undefined) {
|
|
2344
|
+
parent = null;
|
|
2345
|
+
}
|
|
2346
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2347
|
+
invokingState = -1;
|
|
2348
|
+
}
|
|
2349
|
+
_this30 = _super30.call(this, parent, invokingState);
|
|
2350
|
+
_this30.parser = parser;
|
|
2351
|
+
_this30.ruleIndex = CLQLParser.RULE_fuzzy_literal;
|
|
2352
|
+
return _this30;
|
|
2353
|
+
}
|
|
2354
|
+
_createClass(Fuzzy_literalContext, [{
|
|
2355
|
+
key: "FUZZY_LITERAL",
|
|
2356
|
+
value: function FUZZY_LITERAL() {
|
|
2357
|
+
return this.getToken(CLQLParser.FUZZY_LITERAL, 0);
|
|
2358
|
+
}
|
|
2359
|
+
}, {
|
|
2360
|
+
key: "enterRule",
|
|
2361
|
+
value: function enterRule(listener) {
|
|
2362
|
+
if (listener instanceof CLQLParserListener) {
|
|
2363
|
+
listener.enterFuzzy_literal(this);
|
|
2364
|
+
}
|
|
2365
|
+
}
|
|
2366
|
+
}, {
|
|
2367
|
+
key: "exitRule",
|
|
2368
|
+
value: function exitRule(listener) {
|
|
2369
|
+
if (listener instanceof CLQLParserListener) {
|
|
2370
|
+
listener.exitFuzzy_literal(this);
|
|
2371
|
+
}
|
|
2372
|
+
}
|
|
2373
|
+
}, {
|
|
2374
|
+
key: "accept",
|
|
2375
|
+
value: function accept(visitor) {
|
|
2376
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2377
|
+
return visitor.visitFuzzy_literal(this);
|
|
2378
|
+
} else {
|
|
2379
|
+
return visitor.visitChildren(this);
|
|
2380
|
+
}
|
|
2381
|
+
}
|
|
2382
|
+
}]);
|
|
2383
|
+
return Fuzzy_literalContext;
|
|
2384
|
+
}(antlr4.ParserRuleContext);
|
|
2385
|
+
var Literal_valueContext = /*#__PURE__*/function (_antlr4$ParserRuleCon15) {
|
|
2386
|
+
_inherits(Literal_valueContext, _antlr4$ParserRuleCon15);
|
|
2387
|
+
var _super31 = _createSuper(Literal_valueContext);
|
|
2388
|
+
function Literal_valueContext(parser, parent, invokingState) {
|
|
2389
|
+
var _this31;
|
|
2390
|
+
_classCallCheck(this, Literal_valueContext);
|
|
2391
|
+
if (parent === undefined) {
|
|
2392
|
+
parent = null;
|
|
2393
|
+
}
|
|
2394
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2395
|
+
invokingState = -1;
|
|
2396
|
+
}
|
|
2397
|
+
_this31 = _super31.call(this, parent, invokingState);
|
|
2398
|
+
_this31.parser = parser;
|
|
2399
|
+
_this31.ruleIndex = CLQLParser.RULE_literal_value;
|
|
2400
|
+
return _this31;
|
|
2401
|
+
}
|
|
2402
|
+
_createClass(Literal_valueContext, [{
|
|
2403
|
+
key: "string_literal",
|
|
2404
|
+
value: function string_literal() {
|
|
2405
|
+
return this.getTypedRuleContext(String_literalContext, 0);
|
|
2406
|
+
}
|
|
2407
|
+
}, {
|
|
2408
|
+
key: "number_literal",
|
|
2409
|
+
value: function number_literal() {
|
|
2410
|
+
return this.getTypedRuleContext(Number_literalContext, 0);
|
|
2411
|
+
}
|
|
2412
|
+
}, {
|
|
2413
|
+
key: "enterRule",
|
|
2414
|
+
value: function enterRule(listener) {
|
|
2415
|
+
if (listener instanceof CLQLParserListener) {
|
|
2416
|
+
listener.enterLiteral_value(this);
|
|
2417
|
+
}
|
|
2418
|
+
}
|
|
2419
|
+
}, {
|
|
2420
|
+
key: "exitRule",
|
|
2421
|
+
value: function exitRule(listener) {
|
|
2422
|
+
if (listener instanceof CLQLParserListener) {
|
|
2423
|
+
listener.exitLiteral_value(this);
|
|
2424
|
+
}
|
|
2425
|
+
}
|
|
2426
|
+
}, {
|
|
2427
|
+
key: "accept",
|
|
2428
|
+
value: function accept(visitor) {
|
|
2429
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2430
|
+
return visitor.visitLiteral_value(this);
|
|
2431
|
+
} else {
|
|
2432
|
+
return visitor.visitChildren(this);
|
|
2433
|
+
}
|
|
2434
|
+
}
|
|
2435
|
+
}]);
|
|
2436
|
+
return Literal_valueContext;
|
|
2437
|
+
}(antlr4.ParserRuleContext);
|
|
2438
|
+
var String_literalContext = /*#__PURE__*/function (_antlr4$ParserRuleCon16) {
|
|
2439
|
+
_inherits(String_literalContext, _antlr4$ParserRuleCon16);
|
|
2440
|
+
var _super32 = _createSuper(String_literalContext);
|
|
2441
|
+
function String_literalContext(parser, parent, invokingState) {
|
|
2442
|
+
var _this32;
|
|
2443
|
+
_classCallCheck(this, String_literalContext);
|
|
2444
|
+
if (parent === undefined) {
|
|
2445
|
+
parent = null;
|
|
2446
|
+
}
|
|
2447
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2448
|
+
invokingState = -1;
|
|
2449
|
+
}
|
|
2450
|
+
_this32 = _super32.call(this, parent, invokingState);
|
|
2451
|
+
_this32.parser = parser;
|
|
2452
|
+
_this32.ruleIndex = CLQLParser.RULE_string_literal;
|
|
2453
|
+
return _this32;
|
|
2454
|
+
}
|
|
2455
|
+
_createClass(String_literalContext, [{
|
|
2456
|
+
key: "UNQUOTA_STRING",
|
|
2457
|
+
value: function UNQUOTA_STRING() {
|
|
2458
|
+
return this.getToken(CLQLParser.UNQUOTA_STRING, 0);
|
|
2459
|
+
}
|
|
2460
|
+
}, {
|
|
2461
|
+
key: "DQUOTA_STRING",
|
|
2462
|
+
value: function DQUOTA_STRING() {
|
|
2463
|
+
return this.getToken(CLQLParser.DQUOTA_STRING, 0);
|
|
2464
|
+
}
|
|
2465
|
+
}, {
|
|
2466
|
+
key: "enterRule",
|
|
2467
|
+
value: function enterRule(listener) {
|
|
2468
|
+
if (listener instanceof CLQLParserListener) {
|
|
2469
|
+
listener.enterString_literal(this);
|
|
2470
|
+
}
|
|
2471
|
+
}
|
|
2472
|
+
}, {
|
|
2473
|
+
key: "exitRule",
|
|
2474
|
+
value: function exitRule(listener) {
|
|
2475
|
+
if (listener instanceof CLQLParserListener) {
|
|
2476
|
+
listener.exitString_literal(this);
|
|
2477
|
+
}
|
|
2478
|
+
}
|
|
2479
|
+
}, {
|
|
2480
|
+
key: "accept",
|
|
2481
|
+
value: function accept(visitor) {
|
|
2482
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2483
|
+
return visitor.visitString_literal(this);
|
|
2484
|
+
} else {
|
|
2485
|
+
return visitor.visitChildren(this);
|
|
2486
|
+
}
|
|
2487
|
+
}
|
|
2488
|
+
}]);
|
|
2489
|
+
return String_literalContext;
|
|
2490
|
+
}(antlr4.ParserRuleContext);
|
|
2491
|
+
var Number_literalContext = /*#__PURE__*/function (_antlr4$ParserRuleCon17) {
|
|
2492
|
+
_inherits(Number_literalContext, _antlr4$ParserRuleCon17);
|
|
2493
|
+
var _super33 = _createSuper(Number_literalContext);
|
|
2494
|
+
function Number_literalContext(parser, parent, invokingState) {
|
|
2495
|
+
var _this33;
|
|
2496
|
+
_classCallCheck(this, Number_literalContext);
|
|
2497
|
+
if (parent === undefined) {
|
|
2498
|
+
parent = null;
|
|
2499
|
+
}
|
|
2500
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2501
|
+
invokingState = -1;
|
|
2502
|
+
}
|
|
2503
|
+
_this33 = _super33.call(this, parent, invokingState);
|
|
2504
|
+
_this33.parser = parser;
|
|
2505
|
+
_this33.ruleIndex = CLQLParser.RULE_number_literal;
|
|
2506
|
+
return _this33;
|
|
2507
|
+
}
|
|
2508
|
+
_createClass(Number_literalContext, [{
|
|
2509
|
+
key: "integer_literal",
|
|
2510
|
+
value: function integer_literal() {
|
|
2511
|
+
return this.getTypedRuleContext(Integer_literalContext, 0);
|
|
2512
|
+
}
|
|
2513
|
+
}, {
|
|
2514
|
+
key: "decimal_literal",
|
|
2515
|
+
value: function decimal_literal() {
|
|
2516
|
+
return this.getTypedRuleContext(Decimal_literalContext, 0);
|
|
2517
|
+
}
|
|
2518
|
+
}, {
|
|
2519
|
+
key: "enterRule",
|
|
2520
|
+
value: function enterRule(listener) {
|
|
2521
|
+
if (listener instanceof CLQLParserListener) {
|
|
2522
|
+
listener.enterNumber_literal(this);
|
|
2523
|
+
}
|
|
2524
|
+
}
|
|
2525
|
+
}, {
|
|
2526
|
+
key: "exitRule",
|
|
2527
|
+
value: function exitRule(listener) {
|
|
2528
|
+
if (listener instanceof CLQLParserListener) {
|
|
2529
|
+
listener.exitNumber_literal(this);
|
|
2530
|
+
}
|
|
2531
|
+
}
|
|
2532
|
+
}, {
|
|
2533
|
+
key: "accept",
|
|
2534
|
+
value: function accept(visitor) {
|
|
2535
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2536
|
+
return visitor.visitNumber_literal(this);
|
|
2537
|
+
} else {
|
|
2538
|
+
return visitor.visitChildren(this);
|
|
2539
|
+
}
|
|
2540
|
+
}
|
|
2541
|
+
}]);
|
|
2542
|
+
return Number_literalContext;
|
|
2543
|
+
}(antlr4.ParserRuleContext);
|
|
2544
|
+
var Integer_literalContext = /*#__PURE__*/function (_antlr4$ParserRuleCon18) {
|
|
2545
|
+
_inherits(Integer_literalContext, _antlr4$ParserRuleCon18);
|
|
2546
|
+
var _super34 = _createSuper(Integer_literalContext);
|
|
2547
|
+
function Integer_literalContext(parser, parent, invokingState) {
|
|
2548
|
+
var _this34;
|
|
2549
|
+
_classCallCheck(this, Integer_literalContext);
|
|
2550
|
+
if (parent === undefined) {
|
|
2551
|
+
parent = null;
|
|
2552
|
+
}
|
|
2553
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2554
|
+
invokingState = -1;
|
|
2555
|
+
}
|
|
2556
|
+
_this34 = _super34.call(this, parent, invokingState);
|
|
2557
|
+
_this34.parser = parser;
|
|
2558
|
+
_this34.ruleIndex = CLQLParser.RULE_integer_literal;
|
|
2559
|
+
return _this34;
|
|
2560
|
+
}
|
|
2561
|
+
_createClass(Integer_literalContext, [{
|
|
2562
|
+
key: "INTEGER_LITERAL",
|
|
2563
|
+
value: function INTEGER_LITERAL() {
|
|
2564
|
+
return this.getToken(CLQLParser.INTEGER_LITERAL, 0);
|
|
2565
|
+
}
|
|
2566
|
+
}, {
|
|
2567
|
+
key: "PLUS",
|
|
2568
|
+
value: function PLUS() {
|
|
2569
|
+
return this.getToken(CLQLParser.PLUS, 0);
|
|
2570
|
+
}
|
|
2571
|
+
}, {
|
|
2572
|
+
key: "MINUS",
|
|
2573
|
+
value: function MINUS() {
|
|
2574
|
+
return this.getToken(CLQLParser.MINUS, 0);
|
|
2575
|
+
}
|
|
2576
|
+
}, {
|
|
2577
|
+
key: "enterRule",
|
|
2578
|
+
value: function enterRule(listener) {
|
|
2579
|
+
if (listener instanceof CLQLParserListener) {
|
|
2580
|
+
listener.enterInteger_literal(this);
|
|
2581
|
+
}
|
|
2582
|
+
}
|
|
2583
|
+
}, {
|
|
2584
|
+
key: "exitRule",
|
|
2585
|
+
value: function exitRule(listener) {
|
|
2586
|
+
if (listener instanceof CLQLParserListener) {
|
|
2587
|
+
listener.exitInteger_literal(this);
|
|
2588
|
+
}
|
|
2589
|
+
}
|
|
2590
|
+
}, {
|
|
2591
|
+
key: "accept",
|
|
2592
|
+
value: function accept(visitor) {
|
|
2593
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2594
|
+
return visitor.visitInteger_literal(this);
|
|
2595
|
+
} else {
|
|
2596
|
+
return visitor.visitChildren(this);
|
|
2597
|
+
}
|
|
2598
|
+
}
|
|
2599
|
+
}]);
|
|
2600
|
+
return Integer_literalContext;
|
|
2601
|
+
}(antlr4.ParserRuleContext);
|
|
2602
|
+
var Decimal_literalContext = /*#__PURE__*/function (_antlr4$ParserRuleCon19) {
|
|
2603
|
+
_inherits(Decimal_literalContext, _antlr4$ParserRuleCon19);
|
|
2604
|
+
var _super35 = _createSuper(Decimal_literalContext);
|
|
2605
|
+
function Decimal_literalContext(parser, parent, invokingState) {
|
|
2606
|
+
var _this35;
|
|
2607
|
+
_classCallCheck(this, Decimal_literalContext);
|
|
2608
|
+
if (parent === undefined) {
|
|
2609
|
+
parent = null;
|
|
2610
|
+
}
|
|
2611
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2612
|
+
invokingState = -1;
|
|
2613
|
+
}
|
|
2614
|
+
_this35 = _super35.call(this, parent, invokingState);
|
|
2615
|
+
_this35.parser = parser;
|
|
2616
|
+
_this35.ruleIndex = CLQLParser.RULE_decimal_literal;
|
|
2617
|
+
return _this35;
|
|
2618
|
+
}
|
|
2619
|
+
_createClass(Decimal_literalContext, [{
|
|
2620
|
+
key: "DECIMAL_LITERAL",
|
|
2621
|
+
value: function DECIMAL_LITERAL() {
|
|
2622
|
+
return this.getToken(CLQLParser.DECIMAL_LITERAL, 0);
|
|
2623
|
+
}
|
|
2624
|
+
}, {
|
|
2625
|
+
key: "HEXADECIMAL_LITERAL",
|
|
2626
|
+
value: function HEXADECIMAL_LITERAL() {
|
|
2627
|
+
return this.getToken(CLQLParser.HEXADECIMAL_LITERAL, 0);
|
|
2628
|
+
}
|
|
2629
|
+
}, {
|
|
2630
|
+
key: "PLUS",
|
|
2631
|
+
value: function PLUS() {
|
|
2632
|
+
return this.getToken(CLQLParser.PLUS, 0);
|
|
2633
|
+
}
|
|
2634
|
+
}, {
|
|
2635
|
+
key: "MINUS",
|
|
2636
|
+
value: function MINUS() {
|
|
2637
|
+
return this.getToken(CLQLParser.MINUS, 0);
|
|
2638
|
+
}
|
|
2639
|
+
}, {
|
|
2640
|
+
key: "enterRule",
|
|
2641
|
+
value: function enterRule(listener) {
|
|
2642
|
+
if (listener instanceof CLQLParserListener) {
|
|
2643
|
+
listener.enterDecimal_literal(this);
|
|
2644
|
+
}
|
|
2645
|
+
}
|
|
2646
|
+
}, {
|
|
2647
|
+
key: "exitRule",
|
|
2648
|
+
value: function exitRule(listener) {
|
|
2649
|
+
if (listener instanceof CLQLParserListener) {
|
|
2650
|
+
listener.exitDecimal_literal(this);
|
|
2651
|
+
}
|
|
2652
|
+
}
|
|
2653
|
+
}, {
|
|
2654
|
+
key: "accept",
|
|
2655
|
+
value: function accept(visitor) {
|
|
2656
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2657
|
+
return visitor.visitDecimal_literal(this);
|
|
2658
|
+
} else {
|
|
2659
|
+
return visitor.visitChildren(this);
|
|
2660
|
+
}
|
|
2661
|
+
}
|
|
2662
|
+
}]);
|
|
2663
|
+
return Decimal_literalContext;
|
|
2664
|
+
}(antlr4.ParserRuleContext);
|
|
2665
|
+
var Comparison_number_operatorContext = /*#__PURE__*/function (_antlr4$ParserRuleCon20) {
|
|
2666
|
+
_inherits(Comparison_number_operatorContext, _antlr4$ParserRuleCon20);
|
|
2667
|
+
var _super36 = _createSuper(Comparison_number_operatorContext);
|
|
2668
|
+
function Comparison_number_operatorContext(parser, parent, invokingState) {
|
|
2669
|
+
var _this36;
|
|
2670
|
+
_classCallCheck(this, Comparison_number_operatorContext);
|
|
2671
|
+
if (parent === undefined) {
|
|
2672
|
+
parent = null;
|
|
2673
|
+
}
|
|
2674
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2675
|
+
invokingState = -1;
|
|
2676
|
+
}
|
|
2677
|
+
_this36 = _super36.call(this, parent, invokingState);
|
|
2678
|
+
_this36.parser = parser;
|
|
2679
|
+
_this36.ruleIndex = CLQLParser.RULE_comparison_number_operator;
|
|
2680
|
+
return _this36;
|
|
2681
|
+
}
|
|
2682
|
+
_createClass(Comparison_number_operatorContext, [{
|
|
2683
|
+
key: "LT",
|
|
2684
|
+
value: function LT() {
|
|
2685
|
+
return this.getToken(CLQLParser.LT, 0);
|
|
2686
|
+
}
|
|
2687
|
+
}, {
|
|
2688
|
+
key: "GT",
|
|
2689
|
+
value: function GT() {
|
|
2690
|
+
return this.getToken(CLQLParser.GT, 0);
|
|
2691
|
+
}
|
|
2692
|
+
}, {
|
|
2693
|
+
key: "LE",
|
|
2694
|
+
value: function LE() {
|
|
2695
|
+
return this.getToken(CLQLParser.LE, 0);
|
|
2696
|
+
}
|
|
2697
|
+
}, {
|
|
2698
|
+
key: "GE",
|
|
2699
|
+
value: function GE() {
|
|
2700
|
+
return this.getToken(CLQLParser.GE, 0);
|
|
2701
|
+
}
|
|
2702
|
+
}, {
|
|
2703
|
+
key: "enterRule",
|
|
2704
|
+
value: function enterRule(listener) {
|
|
2705
|
+
if (listener instanceof CLQLParserListener) {
|
|
2706
|
+
listener.enterComparison_number_operator(this);
|
|
2707
|
+
}
|
|
2708
|
+
}
|
|
2709
|
+
}, {
|
|
2710
|
+
key: "exitRule",
|
|
2711
|
+
value: function exitRule(listener) {
|
|
2712
|
+
if (listener instanceof CLQLParserListener) {
|
|
2713
|
+
listener.exitComparison_number_operator(this);
|
|
2714
|
+
}
|
|
2715
|
+
}
|
|
2716
|
+
}, {
|
|
2717
|
+
key: "accept",
|
|
2718
|
+
value: function accept(visitor) {
|
|
2719
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2720
|
+
return visitor.visitComparison_number_operator(this);
|
|
2721
|
+
} else {
|
|
2722
|
+
return visitor.visitChildren(this);
|
|
2723
|
+
}
|
|
2724
|
+
}
|
|
2725
|
+
}]);
|
|
2726
|
+
return Comparison_number_operatorContext;
|
|
2727
|
+
}(antlr4.ParserRuleContext);
|
|
2728
|
+
var ErrContext = /*#__PURE__*/function (_antlr4$ParserRuleCon21) {
|
|
2729
|
+
_inherits(ErrContext, _antlr4$ParserRuleCon21);
|
|
2730
|
+
var _super37 = _createSuper(ErrContext);
|
|
2731
|
+
function ErrContext(parser, parent, invokingState) {
|
|
2732
|
+
var _this37;
|
|
2733
|
+
_classCallCheck(this, ErrContext);
|
|
2734
|
+
if (parent === undefined) {
|
|
2735
|
+
parent = null;
|
|
2736
|
+
}
|
|
2737
|
+
if (invokingState === undefined || invokingState === null) {
|
|
2738
|
+
invokingState = -1;
|
|
2739
|
+
}
|
|
2740
|
+
_this37 = _super37.call(this, parent, invokingState);
|
|
2741
|
+
_this37.parser = parser;
|
|
2742
|
+
_this37.ruleIndex = CLQLParser.RULE_err;
|
|
2743
|
+
_this37._UNEXPECTED_CHAR = null; // Token
|
|
2744
|
+
return _this37;
|
|
2745
|
+
}
|
|
2746
|
+
_createClass(ErrContext, [{
|
|
2747
|
+
key: "UNEXPECTED_CHAR",
|
|
2748
|
+
value: function UNEXPECTED_CHAR() {
|
|
2749
|
+
return this.getToken(CLQLParser.UNEXPECTED_CHAR, 0);
|
|
2750
|
+
}
|
|
2751
|
+
}, {
|
|
2752
|
+
key: "enterRule",
|
|
2753
|
+
value: function enterRule(listener) {
|
|
2754
|
+
if (listener instanceof CLQLParserListener) {
|
|
2755
|
+
listener.enterErr(this);
|
|
2756
|
+
}
|
|
2757
|
+
}
|
|
2758
|
+
}, {
|
|
2759
|
+
key: "exitRule",
|
|
2760
|
+
value: function exitRule(listener) {
|
|
2761
|
+
if (listener instanceof CLQLParserListener) {
|
|
2762
|
+
listener.exitErr(this);
|
|
2763
|
+
}
|
|
2764
|
+
}
|
|
2765
|
+
}, {
|
|
2766
|
+
key: "accept",
|
|
2767
|
+
value: function accept(visitor) {
|
|
2768
|
+
if (visitor instanceof CLQLParserVisitor) {
|
|
2769
|
+
return visitor.visitErr(this);
|
|
2770
|
+
} else {
|
|
2771
|
+
return visitor.visitChildren(this);
|
|
2772
|
+
}
|
|
2773
|
+
}
|
|
2774
|
+
}]);
|
|
2775
|
+
return ErrContext;
|
|
2776
|
+
}(antlr4.ParserRuleContext);
|
|
2777
|
+
CLQLParser.RootContext = RootContext;
|
|
2778
|
+
CLQLParser.CqlStatementContext = CqlStatementContext;
|
|
2779
|
+
CLQLParser.SearchContext = SearchContext;
|
|
2780
|
+
CLQLParser.Logical_exprContext = Logical_exprContext;
|
|
2781
|
+
CLQLParser.Text_exprContext = Text_exprContext;
|
|
2782
|
+
CLQLParser.Text_regex_exprContext = Text_regex_exprContext;
|
|
2783
|
+
CLQLParser.Text_regex_model_exprContext = Text_regex_model_exprContext;
|
|
2784
|
+
CLQLParser.Comparison_exprContext = Comparison_exprContext;
|
|
2785
|
+
CLQLParser.Field_exprContext = Field_exprContext;
|
|
2786
|
+
CLQLParser.Text_search_exprContext = Text_search_exprContext;
|
|
2787
|
+
CLQLParser.Primary_exprContext = Primary_exprContext;
|
|
2788
|
+
CLQLParser.FieldContext = FieldContext;
|
|
2789
|
+
CLQLParser.Fuzzy_literal_valueContext = Fuzzy_literal_valueContext;
|
|
2790
|
+
CLQLParser.Fuzzy_literalContext = Fuzzy_literalContext;
|
|
2791
|
+
CLQLParser.Literal_valueContext = Literal_valueContext;
|
|
2792
|
+
CLQLParser.String_literalContext = String_literalContext;
|
|
2793
|
+
CLQLParser.Number_literalContext = Number_literalContext;
|
|
2794
|
+
CLQLParser.Integer_literalContext = Integer_literalContext;
|
|
2795
|
+
CLQLParser.Decimal_literalContext = Decimal_literalContext;
|
|
2796
|
+
CLQLParser.Comparison_number_operatorContext = Comparison_number_operatorContext;
|
|
2797
|
+
CLQLParser.ErrContext = ErrContext;
|