@chaoswise/business 0.0.5 → 0.0.7
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 +22 -4
- package/lib/PropertyControlViewer/components/TagShowMoreList/index.js +1 -1
- package/lib/PropertyControlViewer/config/utils.js +8 -6
- package/lib/PropertyControlViewer/index.js +77 -76
- package/lib/PropertyControlViewer/index.less +30 -0
- package/lib/index.js +2 -1
- package/lib/locale/en_US.js +9 -0
- package/lib/locale/index.js +12 -0
- package/lib/locale/zh_CN.js +9 -0
- package/package.json +5 -3
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
|
+
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); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
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
|
+
// Generated from /Users/changle/Documents/code/doop/cql/src/main/resources/antlr/cql/CLQLParser.g4 by ANTLR 4.9.2
|
|
15
|
+
// jshint ignore: start
|
|
16
|
+
import antlr4 from 'antlr4';
|
|
17
|
+
|
|
18
|
+
// This class defines a complete listener for a parse tree produced by CLQLParser.
|
|
19
|
+
var CLQLParserListener = /*#__PURE__*/function (_antlr4$tree$ParseTre) {
|
|
20
|
+
_inherits(CLQLParserListener, _antlr4$tree$ParseTre);
|
|
21
|
+
var _super = _createSuper(CLQLParserListener);
|
|
22
|
+
function CLQLParserListener() {
|
|
23
|
+
_classCallCheck(this, CLQLParserListener);
|
|
24
|
+
return _super.apply(this, arguments);
|
|
25
|
+
}
|
|
26
|
+
_createClass(CLQLParserListener, [{
|
|
27
|
+
key: "enterRoot",
|
|
28
|
+
value:
|
|
29
|
+
// Enter a parse tree produced by CLQLParser#root.
|
|
30
|
+
function enterRoot(ctx) {}
|
|
31
|
+
|
|
32
|
+
// Exit a parse tree produced by CLQLParser#root.
|
|
33
|
+
}, {
|
|
34
|
+
key: "exitRoot",
|
|
35
|
+
value: function exitRoot(ctx) {}
|
|
36
|
+
|
|
37
|
+
// Enter a parse tree produced by CLQLParser#cqlStatement.
|
|
38
|
+
}, {
|
|
39
|
+
key: "enterCqlStatement",
|
|
40
|
+
value: function enterCqlStatement(ctx) {}
|
|
41
|
+
|
|
42
|
+
// Exit a parse tree produced by CLQLParser#cqlStatement.
|
|
43
|
+
}, {
|
|
44
|
+
key: "exitCqlStatement",
|
|
45
|
+
value: function exitCqlStatement(ctx) {}
|
|
46
|
+
|
|
47
|
+
// Enter a parse tree produced by CLQLParser#search.
|
|
48
|
+
}, {
|
|
49
|
+
key: "enterSearch",
|
|
50
|
+
value: function enterSearch(ctx) {}
|
|
51
|
+
|
|
52
|
+
// Exit a parse tree produced by CLQLParser#search.
|
|
53
|
+
}, {
|
|
54
|
+
key: "exitSearch",
|
|
55
|
+
value: function exitSearch(ctx) {}
|
|
56
|
+
|
|
57
|
+
// Enter a parse tree produced by CLQLParser#notExpr.
|
|
58
|
+
}, {
|
|
59
|
+
key: "enterNotExpr",
|
|
60
|
+
value: function enterNotExpr(ctx) {}
|
|
61
|
+
|
|
62
|
+
// Exit a parse tree produced by CLQLParser#notExpr.
|
|
63
|
+
}, {
|
|
64
|
+
key: "exitNotExpr",
|
|
65
|
+
value: function exitNotExpr(ctx) {}
|
|
66
|
+
|
|
67
|
+
// Enter a parse tree produced by CLQLParser#textExpr.
|
|
68
|
+
}, {
|
|
69
|
+
key: "enterTextExpr",
|
|
70
|
+
value: function enterTextExpr(ctx) {}
|
|
71
|
+
|
|
72
|
+
// Exit a parse tree produced by CLQLParser#textExpr.
|
|
73
|
+
}, {
|
|
74
|
+
key: "exitTextExpr",
|
|
75
|
+
value: function exitTextExpr(ctx) {}
|
|
76
|
+
|
|
77
|
+
// Enter a parse tree produced by CLQLParser#orExpr.
|
|
78
|
+
}, {
|
|
79
|
+
key: "enterOrExpr",
|
|
80
|
+
value: function enterOrExpr(ctx) {}
|
|
81
|
+
|
|
82
|
+
// Exit a parse tree produced by CLQLParser#orExpr.
|
|
83
|
+
}, {
|
|
84
|
+
key: "exitOrExpr",
|
|
85
|
+
value: function exitOrExpr(ctx) {}
|
|
86
|
+
|
|
87
|
+
// Enter a parse tree produced by CLQLParser#comparisonExpr.
|
|
88
|
+
}, {
|
|
89
|
+
key: "enterComparisonExpr",
|
|
90
|
+
value: function enterComparisonExpr(ctx) {}
|
|
91
|
+
|
|
92
|
+
// Exit a parse tree produced by CLQLParser#comparisonExpr.
|
|
93
|
+
}, {
|
|
94
|
+
key: "exitComparisonExpr",
|
|
95
|
+
value: function exitComparisonExpr(ctx) {}
|
|
96
|
+
|
|
97
|
+
// Enter a parse tree produced by CLQLParser#fieldExpr.
|
|
98
|
+
}, {
|
|
99
|
+
key: "enterFieldExpr",
|
|
100
|
+
value: function enterFieldExpr(ctx) {}
|
|
101
|
+
|
|
102
|
+
// Exit a parse tree produced by CLQLParser#fieldExpr.
|
|
103
|
+
}, {
|
|
104
|
+
key: "exitFieldExpr",
|
|
105
|
+
value: function exitFieldExpr(ctx) {}
|
|
106
|
+
|
|
107
|
+
// Enter a parse tree produced by CLQLParser#parenExpr.
|
|
108
|
+
}, {
|
|
109
|
+
key: "enterParenExpr",
|
|
110
|
+
value: function enterParenExpr(ctx) {}
|
|
111
|
+
|
|
112
|
+
// Exit a parse tree produced by CLQLParser#parenExpr.
|
|
113
|
+
}, {
|
|
114
|
+
key: "exitParenExpr",
|
|
115
|
+
value: function exitParenExpr(ctx) {}
|
|
116
|
+
|
|
117
|
+
// Enter a parse tree produced by CLQLParser#andExpr.
|
|
118
|
+
}, {
|
|
119
|
+
key: "enterAndExpr",
|
|
120
|
+
value: function enterAndExpr(ctx) {}
|
|
121
|
+
|
|
122
|
+
// Exit a parse tree produced by CLQLParser#andExpr.
|
|
123
|
+
}, {
|
|
124
|
+
key: "exitAndExpr",
|
|
125
|
+
value: function exitAndExpr(ctx) {}
|
|
126
|
+
|
|
127
|
+
// Enter a parse tree produced by CLQLParser#textSearchExpr.
|
|
128
|
+
}, {
|
|
129
|
+
key: "enterTextSearchExpr",
|
|
130
|
+
value: function enterTextSearchExpr(ctx) {}
|
|
131
|
+
|
|
132
|
+
// Exit a parse tree produced by CLQLParser#textSearchExpr.
|
|
133
|
+
}, {
|
|
134
|
+
key: "exitTextSearchExpr",
|
|
135
|
+
value: function exitTextSearchExpr(ctx) {}
|
|
136
|
+
|
|
137
|
+
// Enter a parse tree produced by CLQLParser#textRegexExpr.
|
|
138
|
+
}, {
|
|
139
|
+
key: "enterTextRegexExpr",
|
|
140
|
+
value: function enterTextRegexExpr(ctx) {}
|
|
141
|
+
|
|
142
|
+
// Exit a parse tree produced by CLQLParser#textRegexExpr.
|
|
143
|
+
}, {
|
|
144
|
+
key: "exitTextRegexExpr",
|
|
145
|
+
value: function exitTextRegexExpr(ctx) {}
|
|
146
|
+
|
|
147
|
+
// Enter a parse tree produced by CLQLParser#textRegexModelExpr.
|
|
148
|
+
}, {
|
|
149
|
+
key: "enterTextRegexModelExpr",
|
|
150
|
+
value: function enterTextRegexModelExpr(ctx) {}
|
|
151
|
+
|
|
152
|
+
// Exit a parse tree produced by CLQLParser#textRegexModelExpr.
|
|
153
|
+
}, {
|
|
154
|
+
key: "exitTextRegexModelExpr",
|
|
155
|
+
value: function exitTextRegexModelExpr(ctx) {}
|
|
156
|
+
|
|
157
|
+
// Enter a parse tree produced by CLQLParser#text_regex_expr.
|
|
158
|
+
}, {
|
|
159
|
+
key: "enterText_regex_expr",
|
|
160
|
+
value: function enterText_regex_expr(ctx) {}
|
|
161
|
+
|
|
162
|
+
// Exit a parse tree produced by CLQLParser#text_regex_expr.
|
|
163
|
+
}, {
|
|
164
|
+
key: "exitText_regex_expr",
|
|
165
|
+
value: function exitText_regex_expr(ctx) {}
|
|
166
|
+
|
|
167
|
+
// Enter a parse tree produced by CLQLParser#text_regex_model_expr.
|
|
168
|
+
}, {
|
|
169
|
+
key: "enterText_regex_model_expr",
|
|
170
|
+
value: function enterText_regex_model_expr(ctx) {}
|
|
171
|
+
|
|
172
|
+
// Exit a parse tree produced by CLQLParser#text_regex_model_expr.
|
|
173
|
+
}, {
|
|
174
|
+
key: "exitText_regex_model_expr",
|
|
175
|
+
value: function exitText_regex_model_expr(ctx) {}
|
|
176
|
+
|
|
177
|
+
// Enter a parse tree produced by CLQLParser#numberCompareExpr.
|
|
178
|
+
}, {
|
|
179
|
+
key: "enterNumberCompareExpr",
|
|
180
|
+
value: function enterNumberCompareExpr(ctx) {}
|
|
181
|
+
|
|
182
|
+
// Exit a parse tree produced by CLQLParser#numberCompareExpr.
|
|
183
|
+
}, {
|
|
184
|
+
key: "exitNumberCompareExpr",
|
|
185
|
+
value: function exitNumberCompareExpr(ctx) {}
|
|
186
|
+
|
|
187
|
+
// Enter a parse tree produced by CLQLParser#fieldValueExpr.
|
|
188
|
+
}, {
|
|
189
|
+
key: "enterFieldValueExpr",
|
|
190
|
+
value: function enterFieldValueExpr(ctx) {}
|
|
191
|
+
|
|
192
|
+
// Exit a parse tree produced by CLQLParser#fieldValueExpr.
|
|
193
|
+
}, {
|
|
194
|
+
key: "exitFieldValueExpr",
|
|
195
|
+
value: function exitFieldValueExpr(ctx) {}
|
|
196
|
+
|
|
197
|
+
// Enter a parse tree produced by CLQLParser#fieldRangeExpr.
|
|
198
|
+
}, {
|
|
199
|
+
key: "enterFieldRangeExpr",
|
|
200
|
+
value: function enterFieldRangeExpr(ctx) {}
|
|
201
|
+
|
|
202
|
+
// Exit a parse tree produced by CLQLParser#fieldRangeExpr.
|
|
203
|
+
}, {
|
|
204
|
+
key: "exitFieldRangeExpr",
|
|
205
|
+
value: function exitFieldRangeExpr(ctx) {}
|
|
206
|
+
|
|
207
|
+
// Enter a parse tree produced by CLQLParser#fieldInExpr.
|
|
208
|
+
}, {
|
|
209
|
+
key: "enterFieldInExpr",
|
|
210
|
+
value: function enterFieldInExpr(ctx) {}
|
|
211
|
+
|
|
212
|
+
// Exit a parse tree produced by CLQLParser#fieldInExpr.
|
|
213
|
+
}, {
|
|
214
|
+
key: "exitFieldInExpr",
|
|
215
|
+
value: function exitFieldInExpr(ctx) {}
|
|
216
|
+
|
|
217
|
+
// Enter a parse tree produced by CLQLParser#fieldExistExpr.
|
|
218
|
+
}, {
|
|
219
|
+
key: "enterFieldExistExpr",
|
|
220
|
+
value: function enterFieldExistExpr(ctx) {}
|
|
221
|
+
|
|
222
|
+
// Exit a parse tree produced by CLQLParser#fieldExistExpr.
|
|
223
|
+
}, {
|
|
224
|
+
key: "exitFieldExistExpr",
|
|
225
|
+
value: function exitFieldExistExpr(ctx) {}
|
|
226
|
+
|
|
227
|
+
// Enter a parse tree produced by CLQLParser#text_search_expr.
|
|
228
|
+
}, {
|
|
229
|
+
key: "enterText_search_expr",
|
|
230
|
+
value: function enterText_search_expr(ctx) {}
|
|
231
|
+
|
|
232
|
+
// Exit a parse tree produced by CLQLParser#text_search_expr.
|
|
233
|
+
}, {
|
|
234
|
+
key: "exitText_search_expr",
|
|
235
|
+
value: function exitText_search_expr(ctx) {}
|
|
236
|
+
|
|
237
|
+
// Enter a parse tree produced by CLQLParser#primary_expr.
|
|
238
|
+
}, {
|
|
239
|
+
key: "enterPrimary_expr",
|
|
240
|
+
value: function enterPrimary_expr(ctx) {}
|
|
241
|
+
|
|
242
|
+
// Exit a parse tree produced by CLQLParser#primary_expr.
|
|
243
|
+
}, {
|
|
244
|
+
key: "exitPrimary_expr",
|
|
245
|
+
value: function exitPrimary_expr(ctx) {}
|
|
246
|
+
|
|
247
|
+
// Enter a parse tree produced by CLQLParser#field.
|
|
248
|
+
}, {
|
|
249
|
+
key: "enterField",
|
|
250
|
+
value: function enterField(ctx) {}
|
|
251
|
+
|
|
252
|
+
// Exit a parse tree produced by CLQLParser#field.
|
|
253
|
+
}, {
|
|
254
|
+
key: "exitField",
|
|
255
|
+
value: function exitField(ctx) {}
|
|
256
|
+
|
|
257
|
+
// Enter a parse tree produced by CLQLParser#fuzzy_literal_value.
|
|
258
|
+
}, {
|
|
259
|
+
key: "enterFuzzy_literal_value",
|
|
260
|
+
value: function enterFuzzy_literal_value(ctx) {}
|
|
261
|
+
|
|
262
|
+
// Exit a parse tree produced by CLQLParser#fuzzy_literal_value.
|
|
263
|
+
}, {
|
|
264
|
+
key: "exitFuzzy_literal_value",
|
|
265
|
+
value: function exitFuzzy_literal_value(ctx) {}
|
|
266
|
+
|
|
267
|
+
// Enter a parse tree produced by CLQLParser#fuzzy_literal.
|
|
268
|
+
}, {
|
|
269
|
+
key: "enterFuzzy_literal",
|
|
270
|
+
value: function enterFuzzy_literal(ctx) {}
|
|
271
|
+
|
|
272
|
+
// Exit a parse tree produced by CLQLParser#fuzzy_literal.
|
|
273
|
+
}, {
|
|
274
|
+
key: "exitFuzzy_literal",
|
|
275
|
+
value: function exitFuzzy_literal(ctx) {}
|
|
276
|
+
|
|
277
|
+
// Enter a parse tree produced by CLQLParser#literal_value.
|
|
278
|
+
}, {
|
|
279
|
+
key: "enterLiteral_value",
|
|
280
|
+
value: function enterLiteral_value(ctx) {}
|
|
281
|
+
|
|
282
|
+
// Exit a parse tree produced by CLQLParser#literal_value.
|
|
283
|
+
}, {
|
|
284
|
+
key: "exitLiteral_value",
|
|
285
|
+
value: function exitLiteral_value(ctx) {}
|
|
286
|
+
|
|
287
|
+
// Enter a parse tree produced by CLQLParser#string_literal.
|
|
288
|
+
}, {
|
|
289
|
+
key: "enterString_literal",
|
|
290
|
+
value: function enterString_literal(ctx) {}
|
|
291
|
+
|
|
292
|
+
// Exit a parse tree produced by CLQLParser#string_literal.
|
|
293
|
+
}, {
|
|
294
|
+
key: "exitString_literal",
|
|
295
|
+
value: function exitString_literal(ctx) {}
|
|
296
|
+
|
|
297
|
+
// Enter a parse tree produced by CLQLParser#number_literal.
|
|
298
|
+
}, {
|
|
299
|
+
key: "enterNumber_literal",
|
|
300
|
+
value: function enterNumber_literal(ctx) {}
|
|
301
|
+
|
|
302
|
+
// Exit a parse tree produced by CLQLParser#number_literal.
|
|
303
|
+
}, {
|
|
304
|
+
key: "exitNumber_literal",
|
|
305
|
+
value: function exitNumber_literal(ctx) {}
|
|
306
|
+
|
|
307
|
+
// Enter a parse tree produced by CLQLParser#integer_literal.
|
|
308
|
+
}, {
|
|
309
|
+
key: "enterInteger_literal",
|
|
310
|
+
value: function enterInteger_literal(ctx) {}
|
|
311
|
+
|
|
312
|
+
// Exit a parse tree produced by CLQLParser#integer_literal.
|
|
313
|
+
}, {
|
|
314
|
+
key: "exitInteger_literal",
|
|
315
|
+
value: function exitInteger_literal(ctx) {}
|
|
316
|
+
|
|
317
|
+
// Enter a parse tree produced by CLQLParser#decimal_literal.
|
|
318
|
+
}, {
|
|
319
|
+
key: "enterDecimal_literal",
|
|
320
|
+
value: function enterDecimal_literal(ctx) {}
|
|
321
|
+
|
|
322
|
+
// Exit a parse tree produced by CLQLParser#decimal_literal.
|
|
323
|
+
}, {
|
|
324
|
+
key: "exitDecimal_literal",
|
|
325
|
+
value: function exitDecimal_literal(ctx) {}
|
|
326
|
+
|
|
327
|
+
// Enter a parse tree produced by CLQLParser#comparison_number_operator.
|
|
328
|
+
}, {
|
|
329
|
+
key: "enterComparison_number_operator",
|
|
330
|
+
value: function enterComparison_number_operator(ctx) {}
|
|
331
|
+
|
|
332
|
+
// Exit a parse tree produced by CLQLParser#comparison_number_operator.
|
|
333
|
+
}, {
|
|
334
|
+
key: "exitComparison_number_operator",
|
|
335
|
+
value: function exitComparison_number_operator(ctx) {}
|
|
336
|
+
|
|
337
|
+
// Enter a parse tree produced by CLQLParser#err.
|
|
338
|
+
}, {
|
|
339
|
+
key: "enterErr",
|
|
340
|
+
value: function enterErr(ctx) {}
|
|
341
|
+
|
|
342
|
+
// Exit a parse tree produced by CLQLParser#err.
|
|
343
|
+
}, {
|
|
344
|
+
key: "exitErr",
|
|
345
|
+
value: function exitErr(ctx) {}
|
|
346
|
+
}]);
|
|
347
|
+
return CLQLParserListener;
|
|
348
|
+
}(antlr4.tree.ParseTreeListener);
|
|
349
|
+
export { CLQLParserListener as default };
|
|
@@ -0,0 +1,253 @@
|
|
|
1
|
+
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); }
|
|
2
|
+
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
3
|
+
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); } }
|
|
4
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
5
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
+
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); }
|
|
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
|
+
// Generated from /Users/changle/Documents/code/doop/cql/src/main/resources/antlr/cql/CLQLParser.g4 by ANTLR 4.9.2
|
|
15
|
+
// jshint ignore: start
|
|
16
|
+
import antlr4 from 'antlr4';
|
|
17
|
+
|
|
18
|
+
// This class defines a complete generic visitor for a parse tree produced by CLQLParser.
|
|
19
|
+
var CLQLParserVisitor = /*#__PURE__*/function (_antlr4$tree$ParseTre) {
|
|
20
|
+
_inherits(CLQLParserVisitor, _antlr4$tree$ParseTre);
|
|
21
|
+
var _super = _createSuper(CLQLParserVisitor);
|
|
22
|
+
function CLQLParserVisitor() {
|
|
23
|
+
_classCallCheck(this, CLQLParserVisitor);
|
|
24
|
+
return _super.apply(this, arguments);
|
|
25
|
+
}
|
|
26
|
+
_createClass(CLQLParserVisitor, [{
|
|
27
|
+
key: "visitRoot",
|
|
28
|
+
value:
|
|
29
|
+
// Visit a parse tree produced by CLQLParser#root.
|
|
30
|
+
function visitRoot(ctx) {
|
|
31
|
+
return this.visitChildren(ctx);
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Visit a parse tree produced by CLQLParser#cqlStatement.
|
|
35
|
+
}, {
|
|
36
|
+
key: "visitCqlStatement",
|
|
37
|
+
value: function visitCqlStatement(ctx) {
|
|
38
|
+
return this.visitChildren(ctx);
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Visit a parse tree produced by CLQLParser#search.
|
|
42
|
+
}, {
|
|
43
|
+
key: "visitSearch",
|
|
44
|
+
value: function visitSearch(ctx) {
|
|
45
|
+
return this.visitChildren(ctx);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Visit a parse tree produced by CLQLParser#notExpr.
|
|
49
|
+
}, {
|
|
50
|
+
key: "visitNotExpr",
|
|
51
|
+
value: function visitNotExpr(ctx) {
|
|
52
|
+
return this.visitChildren(ctx);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Visit a parse tree produced by CLQLParser#textExpr.
|
|
56
|
+
}, {
|
|
57
|
+
key: "visitTextExpr",
|
|
58
|
+
value: function visitTextExpr(ctx) {
|
|
59
|
+
return this.visitChildren(ctx);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Visit a parse tree produced by CLQLParser#orExpr.
|
|
63
|
+
}, {
|
|
64
|
+
key: "visitOrExpr",
|
|
65
|
+
value: function visitOrExpr(ctx) {
|
|
66
|
+
return this.visitChildren(ctx);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// Visit a parse tree produced by CLQLParser#comparisonExpr.
|
|
70
|
+
}, {
|
|
71
|
+
key: "visitComparisonExpr",
|
|
72
|
+
value: function visitComparisonExpr(ctx) {
|
|
73
|
+
return this.visitChildren(ctx);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
// Visit a parse tree produced by CLQLParser#fieldExpr.
|
|
77
|
+
}, {
|
|
78
|
+
key: "visitFieldExpr",
|
|
79
|
+
value: function visitFieldExpr(ctx) {
|
|
80
|
+
return this.visitChildren(ctx);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
// Visit a parse tree produced by CLQLParser#parenExpr.
|
|
84
|
+
}, {
|
|
85
|
+
key: "visitParenExpr",
|
|
86
|
+
value: function visitParenExpr(ctx) {
|
|
87
|
+
return this.visitChildren(ctx);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Visit a parse tree produced by CLQLParser#andExpr.
|
|
91
|
+
}, {
|
|
92
|
+
key: "visitAndExpr",
|
|
93
|
+
value: function visitAndExpr(ctx) {
|
|
94
|
+
return this.visitChildren(ctx);
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
// Visit a parse tree produced by CLQLParser#textSearchExpr.
|
|
98
|
+
}, {
|
|
99
|
+
key: "visitTextSearchExpr",
|
|
100
|
+
value: function visitTextSearchExpr(ctx) {
|
|
101
|
+
return this.visitChildren(ctx);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
// Visit a parse tree produced by CLQLParser#textRegexExpr.
|
|
105
|
+
}, {
|
|
106
|
+
key: "visitTextRegexExpr",
|
|
107
|
+
value: function visitTextRegexExpr(ctx) {
|
|
108
|
+
return this.visitChildren(ctx);
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// Visit a parse tree produced by CLQLParser#textRegexModelExpr.
|
|
112
|
+
}, {
|
|
113
|
+
key: "visitTextRegexModelExpr",
|
|
114
|
+
value: function visitTextRegexModelExpr(ctx) {
|
|
115
|
+
return this.visitChildren(ctx);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
// Visit a parse tree produced by CLQLParser#text_regex_expr.
|
|
119
|
+
}, {
|
|
120
|
+
key: "visitText_regex_expr",
|
|
121
|
+
value: function visitText_regex_expr(ctx) {
|
|
122
|
+
return this.visitChildren(ctx);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
// Visit a parse tree produced by CLQLParser#text_regex_model_expr.
|
|
126
|
+
}, {
|
|
127
|
+
key: "visitText_regex_model_expr",
|
|
128
|
+
value: function visitText_regex_model_expr(ctx) {
|
|
129
|
+
return this.visitChildren(ctx);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// Visit a parse tree produced by CLQLParser#numberCompareExpr.
|
|
133
|
+
}, {
|
|
134
|
+
key: "visitNumberCompareExpr",
|
|
135
|
+
value: function visitNumberCompareExpr(ctx) {
|
|
136
|
+
return this.visitChildren(ctx);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
// Visit a parse tree produced by CLQLParser#fieldValueExpr.
|
|
140
|
+
}, {
|
|
141
|
+
key: "visitFieldValueExpr",
|
|
142
|
+
value: function visitFieldValueExpr(ctx) {
|
|
143
|
+
return this.visitChildren(ctx);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
// Visit a parse tree produced by CLQLParser#fieldRangeExpr.
|
|
147
|
+
}, {
|
|
148
|
+
key: "visitFieldRangeExpr",
|
|
149
|
+
value: function visitFieldRangeExpr(ctx) {
|
|
150
|
+
return this.visitChildren(ctx);
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// Visit a parse tree produced by CLQLParser#fieldInExpr.
|
|
154
|
+
}, {
|
|
155
|
+
key: "visitFieldInExpr",
|
|
156
|
+
value: function visitFieldInExpr(ctx) {
|
|
157
|
+
return this.visitChildren(ctx);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
// Visit a parse tree produced by CLQLParser#fieldExistExpr.
|
|
161
|
+
}, {
|
|
162
|
+
key: "visitFieldExistExpr",
|
|
163
|
+
value: function visitFieldExistExpr(ctx) {
|
|
164
|
+
return this.visitChildren(ctx);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
// Visit a parse tree produced by CLQLParser#text_search_expr.
|
|
168
|
+
}, {
|
|
169
|
+
key: "visitText_search_expr",
|
|
170
|
+
value: function visitText_search_expr(ctx) {
|
|
171
|
+
return this.visitChildren(ctx);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
// Visit a parse tree produced by CLQLParser#primary_expr.
|
|
175
|
+
}, {
|
|
176
|
+
key: "visitPrimary_expr",
|
|
177
|
+
value: function visitPrimary_expr(ctx) {
|
|
178
|
+
return this.visitChildren(ctx);
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
// Visit a parse tree produced by CLQLParser#field.
|
|
182
|
+
}, {
|
|
183
|
+
key: "visitField",
|
|
184
|
+
value: function visitField(ctx) {
|
|
185
|
+
return this.visitChildren(ctx);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
// Visit a parse tree produced by CLQLParser#fuzzy_literal_value.
|
|
189
|
+
}, {
|
|
190
|
+
key: "visitFuzzy_literal_value",
|
|
191
|
+
value: function visitFuzzy_literal_value(ctx) {
|
|
192
|
+
return this.visitChildren(ctx);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
// Visit a parse tree produced by CLQLParser#fuzzy_literal.
|
|
196
|
+
}, {
|
|
197
|
+
key: "visitFuzzy_literal",
|
|
198
|
+
value: function visitFuzzy_literal(ctx) {
|
|
199
|
+
return this.visitChildren(ctx);
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
// Visit a parse tree produced by CLQLParser#literal_value.
|
|
203
|
+
}, {
|
|
204
|
+
key: "visitLiteral_value",
|
|
205
|
+
value: function visitLiteral_value(ctx) {
|
|
206
|
+
return this.visitChildren(ctx);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// Visit a parse tree produced by CLQLParser#string_literal.
|
|
210
|
+
}, {
|
|
211
|
+
key: "visitString_literal",
|
|
212
|
+
value: function visitString_literal(ctx) {
|
|
213
|
+
return this.visitChildren(ctx);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
// Visit a parse tree produced by CLQLParser#number_literal.
|
|
217
|
+
}, {
|
|
218
|
+
key: "visitNumber_literal",
|
|
219
|
+
value: function visitNumber_literal(ctx) {
|
|
220
|
+
return this.visitChildren(ctx);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
// Visit a parse tree produced by CLQLParser#integer_literal.
|
|
224
|
+
}, {
|
|
225
|
+
key: "visitInteger_literal",
|
|
226
|
+
value: function visitInteger_literal(ctx) {
|
|
227
|
+
return this.visitChildren(ctx);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
// Visit a parse tree produced by CLQLParser#decimal_literal.
|
|
231
|
+
}, {
|
|
232
|
+
key: "visitDecimal_literal",
|
|
233
|
+
value: function visitDecimal_literal(ctx) {
|
|
234
|
+
return this.visitChildren(ctx);
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
// Visit a parse tree produced by CLQLParser#comparison_number_operator.
|
|
238
|
+
}, {
|
|
239
|
+
key: "visitComparison_number_operator",
|
|
240
|
+
value: function visitComparison_number_operator(ctx) {
|
|
241
|
+
return this.visitChildren(ctx);
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
// Visit a parse tree produced by CLQLParser#err.
|
|
245
|
+
}, {
|
|
246
|
+
key: "visitErr",
|
|
247
|
+
value: function visitErr(ctx) {
|
|
248
|
+
return this.visitChildren(ctx);
|
|
249
|
+
}
|
|
250
|
+
}]);
|
|
251
|
+
return CLQLParserVisitor;
|
|
252
|
+
}(antlr4.tree.ParseTreeVisitor);
|
|
253
|
+
export { CLQLParserVisitor as default };
|