@cruglobal/godtools-shared 0.9.2-SNAPSHOT.1318 → 0.9.2-SNAPSHOT.1329
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/88b0986a7186d029-atomicfu-js-ir.js +44 -64
- package/88b0986a7186d029-atomicfu-js-ir.js.map +1 -1
- package/Napier-napier-js-ir.js +36 -39
- package/Napier-napier-js-ir.js.map +1 -1
- package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js +3192 -3509
- package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js.map +1 -1
- package/colormath-root-colormath.js +932 -1342
- package/colormath-root-colormath.js.map +1 -1
- package/fluid-locale.js +306 -514
- package/fluid-locale.js.map +1 -1
- package/kotlin-kotlin-stdlib-js-ir.js +1552 -2470
- package/kotlin-kotlin-stdlib-js-ir.js.map +1 -1
- package/{kotlin-mpp-godtools-tool-parser-common.js → kotlin-mpp-godtools-tool-parser-module-common.js} +2 -2
- package/{kotlin-mpp-godtools-tool-parser-parser-expressions.js → kotlin-mpp-godtools-tool-parser-module-parser-expressions.js} +533 -673
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js.map +1 -0
- package/{kotlin-mpp-godtools-tool-parser-parser.js → kotlin-mpp-godtools-tool-parser-module-parser.js} +2917 -4070
- package/kotlin-mpp-godtools-tool-parser-module-parser.js.map +1 -0
- package/{kotlin-mpp-godtools-tool-parser-state.js → kotlin-mpp-godtools-tool-parser-module-state.js} +236 -274
- package/kotlin-mpp-godtools-tool-parser-module-state.js.map +1 -0
- package/{kotlin-mpp-godtools-tool-parser-npm.d.ts → kotlin-mpp-godtools-tool-parser-publishing-npm.d.ts} +2 -1
- package/kotlin-mpp-godtools-tool-parser-publishing-npm.js +26 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js +15 -0
- package/kotlin_org_jetbrains_kotlin_kotlin_dom_api_compat.js.map +1 -0
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js +3151 -4206
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +1 -1
- package/package.json +5 -4
- package/kotlin-mpp-godtools-tool-parser-npm.js +0 -26
- package/kotlin-mpp-godtools-tool-parser-parser-expressions.js.map +0 -1
- package/kotlin-mpp-godtools-tool-parser-parser.js.map +0 -1
- package/kotlin-mpp-godtools-tool-parser-state.js.map +0 -1
- /package/{kotlin-mpp-godtools-tool-parser-common.js.map → kotlin-mpp-godtools-tool-parser-module-common.js.map} +0 -0
- /package/{kotlin-mpp-godtools-tool-parser-npm.js.map → kotlin-mpp-godtools-tool-parser-publishing-npm.js.map} +0 -0
|
@@ -5,60 +5,58 @@
|
|
|
5
5
|
factory(module.exports, require('./antlr-kotlin-antlr-kotlin-runtime-js-ir.js'), require('./kotlin-kotlin-stdlib-js-ir.js'));
|
|
6
6
|
else {
|
|
7
7
|
if (typeof this['antlr-kotlin-antlr-kotlin-runtime-js-ir'] === 'undefined') {
|
|
8
|
-
throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-parser-expressions'. Its dependency 'antlr-kotlin-antlr-kotlin-runtime-js-ir' was not found. Please, check whether 'antlr-kotlin-antlr-kotlin-runtime-js-ir' is loaded prior to 'kotlin-mpp-godtools-tool-parser-parser-expressions'.");
|
|
8
|
+
throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-module-parser-expressions'. Its dependency 'antlr-kotlin-antlr-kotlin-runtime-js-ir' was not found. Please, check whether 'antlr-kotlin-antlr-kotlin-runtime-js-ir' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-parser-expressions'.");
|
|
9
9
|
}
|
|
10
10
|
if (typeof this['kotlin-kotlin-stdlib-js-ir'] === 'undefined') {
|
|
11
|
-
throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-parser-expressions'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'kotlin-mpp-godtools-tool-parser-parser-expressions'.");
|
|
11
|
+
throw new Error("Error loading module 'kotlin-mpp-godtools-tool-parser-module-parser-expressions'. Its dependency 'kotlin-kotlin-stdlib-js-ir' was not found. Please, check whether 'kotlin-kotlin-stdlib-js-ir' is loaded prior to 'kotlin-mpp-godtools-tool-parser-module-parser-expressions'.");
|
|
12
12
|
}
|
|
13
|
-
root['kotlin-mpp-godtools-tool-parser-parser-expressions'] = factory(typeof this['kotlin-mpp-godtools-tool-parser-parser-expressions'] === 'undefined' ? {} : this['kotlin-mpp-godtools-tool-parser-parser-expressions'], this['antlr-kotlin-antlr-kotlin-runtime-js-ir'], this['kotlin-kotlin-stdlib-js-ir']);
|
|
13
|
+
root['kotlin-mpp-godtools-tool-parser-module-parser-expressions'] = factory(typeof this['kotlin-mpp-godtools-tool-parser-module-parser-expressions'] === 'undefined' ? {} : this['kotlin-mpp-godtools-tool-parser-module-parser-expressions'], this['antlr-kotlin-antlr-kotlin-runtime-js-ir'], this['kotlin-kotlin-stdlib-js-ir']);
|
|
14
14
|
}
|
|
15
15
|
}(this, function (_, kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime, kotlin_kotlin) {
|
|
16
16
|
'use strict';
|
|
17
17
|
//region block: imports
|
|
18
18
|
var AbstractParseTreeVisitor = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.n;
|
|
19
|
-
var ensureNotNull = kotlin_kotlin.$_$.
|
|
20
|
-
var protoOf = kotlin_kotlin.$_$.
|
|
21
|
-
var classMeta = kotlin_kotlin.$_$.
|
|
22
|
-
var VOID = kotlin_kotlin.$_$.
|
|
23
|
-
var setMetadataFor = kotlin_kotlin.$_$.
|
|
19
|
+
var ensureNotNull = kotlin_kotlin.$_$.n9;
|
|
20
|
+
var protoOf = kotlin_kotlin.$_$.s6;
|
|
21
|
+
var classMeta = kotlin_kotlin.$_$.x5;
|
|
22
|
+
var VOID = kotlin_kotlin.$_$.w9;
|
|
23
|
+
var setMetadataFor = kotlin_kotlin.$_$.t6;
|
|
24
24
|
var Unit_getInstance = kotlin_kotlin.$_$.m2;
|
|
25
25
|
var PredictionContextCache = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.k;
|
|
26
26
|
var listOf = kotlin_kotlin.$_$.b4;
|
|
27
27
|
var copyToArray = kotlin_kotlin.$_$.f3;
|
|
28
28
|
var VocabularyImpl = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.y;
|
|
29
|
-
var fillArrayVal = kotlin_kotlin.$_$.
|
|
29
|
+
var fillArrayVal = kotlin_kotlin.$_$.b6;
|
|
30
30
|
var ATNDeserializer = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.h;
|
|
31
31
|
var asCharArray = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.a;
|
|
32
32
|
var DFA = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.l;
|
|
33
|
-
var objectMeta = kotlin_kotlin.$_$.
|
|
34
|
-
var Enum = kotlin_kotlin.$_$.
|
|
33
|
+
var objectMeta = kotlin_kotlin.$_$.r6;
|
|
34
|
+
var Enum = kotlin_kotlin.$_$.v8;
|
|
35
35
|
var Lexer = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.s;
|
|
36
36
|
var Lexer_init_$Init$ = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.b;
|
|
37
37
|
var ArrayList_init_$Create$ = kotlin_kotlin.$_$.e;
|
|
38
|
-
var THROW_CCE = kotlin_kotlin.$_$.
|
|
39
|
-
var isArray = kotlin_kotlin.$_$.
|
|
38
|
+
var THROW_CCE = kotlin_kotlin.$_$.g9;
|
|
39
|
+
var isArray = kotlin_kotlin.$_$.h6;
|
|
40
40
|
var LexerATNSimulator = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.i;
|
|
41
|
-
var
|
|
42
|
-
var getPropertyCallableRef = kotlin_kotlin.$_$.c6;
|
|
43
|
-
var interfaceMeta = kotlin_kotlin.$_$.f6;
|
|
41
|
+
var interfaceMeta = kotlin_kotlin.$_$.g6;
|
|
44
42
|
var ParserRuleContext_init_$Init$ = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.d;
|
|
45
|
-
var objectCreate = kotlin_kotlin.$_$.
|
|
43
|
+
var objectCreate = kotlin_kotlin.$_$.q6;
|
|
46
44
|
var ParserRuleContext_init_$Init$_0 = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.c;
|
|
47
45
|
var ParserRuleContext = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.u;
|
|
48
|
-
var isInterface = kotlin_kotlin.$_$.
|
|
46
|
+
var isInterface = kotlin_kotlin.$_$.j6;
|
|
49
47
|
var Token = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.x;
|
|
50
|
-
var Long = kotlin_kotlin.$_$.
|
|
48
|
+
var Long = kotlin_kotlin.$_$.a9;
|
|
51
49
|
var Companion_getInstance = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.e;
|
|
52
50
|
var FailedPredicateException = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.r;
|
|
53
51
|
var RecognitionException = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.w;
|
|
54
52
|
var Parser = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.v;
|
|
55
53
|
var ParserATNSimulator = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.j;
|
|
56
54
|
var NoViableAltException = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.t;
|
|
57
|
-
var toString = kotlin_kotlin.$_$.
|
|
55
|
+
var toString = kotlin_kotlin.$_$.w6;
|
|
58
56
|
var IllegalStateException_init_$Create$ = kotlin_kotlin.$_$.b1;
|
|
59
57
|
var toSet = kotlin_kotlin.$_$.u4;
|
|
60
58
|
var emptySet = kotlin_kotlin.$_$.j3;
|
|
61
|
-
var isBlank = kotlin_kotlin.$_$.
|
|
59
|
+
var isBlank = kotlin_kotlin.$_$.v7;
|
|
62
60
|
var CharStreams_getInstance = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.f;
|
|
63
61
|
var CommonTokenStream = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.q;
|
|
64
62
|
var BailErrorStrategy = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.p;
|
|
@@ -70,7 +68,7 @@
|
|
|
70
68
|
var TerminalNode = kotlin_org_cru_mobile_fork_antlr_kotlin_antlr_kotlin_runtime.$_$.o;
|
|
71
69
|
var addAll = kotlin_kotlin.$_$.u2;
|
|
72
70
|
var IllegalStateException_init_$Create$_0 = kotlin_kotlin.$_$.z;
|
|
73
|
-
var toInt = kotlin_kotlin.$_$.
|
|
71
|
+
var toInt = kotlin_kotlin.$_$.l8;
|
|
74
72
|
//endregion
|
|
75
73
|
//region block: pre-declaration
|
|
76
74
|
setMetadataFor(StateExpressionVisitor, 'StateExpressionVisitor', interfaceMeta);
|
|
@@ -105,38 +103,38 @@
|
|
|
105
103
|
function StateExpressionBaseVisitor() {
|
|
106
104
|
AbstractParseTreeVisitor.call(this);
|
|
107
105
|
}
|
|
108
|
-
protoOf(StateExpressionBaseVisitor).
|
|
109
|
-
return ensureNotNull(ensureNotNull(this).
|
|
106
|
+
protoOf(StateExpressionBaseVisitor).a2m = function (ctx) {
|
|
107
|
+
return ensureNotNull(ensureNotNull(this).i21(ctx));
|
|
110
108
|
};
|
|
111
|
-
protoOf(StateExpressionBaseVisitor).
|
|
112
|
-
return ensureNotNull(ensureNotNull(this).
|
|
109
|
+
protoOf(StateExpressionBaseVisitor).b2m = function (ctx) {
|
|
110
|
+
return ensureNotNull(ensureNotNull(this).i21(ctx));
|
|
113
111
|
};
|
|
114
|
-
protoOf(StateExpressionBaseVisitor).
|
|
115
|
-
return ensureNotNull(ensureNotNull(this).
|
|
112
|
+
protoOf(StateExpressionBaseVisitor).c2m = function (ctx) {
|
|
113
|
+
return ensureNotNull(ensureNotNull(this).i21(ctx));
|
|
116
114
|
};
|
|
117
|
-
protoOf(StateExpressionBaseVisitor).
|
|
118
|
-
return ensureNotNull(ensureNotNull(this).
|
|
115
|
+
protoOf(StateExpressionBaseVisitor).d2m = function (ctx) {
|
|
116
|
+
return ensureNotNull(ensureNotNull(this).i21(ctx));
|
|
119
117
|
};
|
|
120
|
-
protoOf(StateExpressionBaseVisitor).
|
|
121
|
-
return ensureNotNull(ensureNotNull(this).
|
|
118
|
+
protoOf(StateExpressionBaseVisitor).e2m = function (ctx) {
|
|
119
|
+
return ensureNotNull(ensureNotNull(this).i21(ctx));
|
|
122
120
|
};
|
|
123
|
-
protoOf(StateExpressionBaseVisitor).
|
|
124
|
-
return ensureNotNull(ensureNotNull(this).
|
|
121
|
+
protoOf(StateExpressionBaseVisitor).f2m = function (ctx) {
|
|
122
|
+
return ensureNotNull(ensureNotNull(this).i21(ctx));
|
|
125
123
|
};
|
|
126
|
-
protoOf(StateExpressionBaseVisitor).
|
|
127
|
-
return ensureNotNull(ensureNotNull(this).
|
|
124
|
+
protoOf(StateExpressionBaseVisitor).g2m = function (ctx) {
|
|
125
|
+
return ensureNotNull(ensureNotNull(this).i21(ctx));
|
|
128
126
|
};
|
|
129
|
-
protoOf(StateExpressionBaseVisitor).
|
|
130
|
-
return ensureNotNull(ensureNotNull(this).
|
|
127
|
+
protoOf(StateExpressionBaseVisitor).h2m = function (ctx) {
|
|
128
|
+
return ensureNotNull(ensureNotNull(this).i21(ctx));
|
|
131
129
|
};
|
|
132
|
-
protoOf(StateExpressionBaseVisitor).
|
|
133
|
-
return ensureNotNull(ensureNotNull(this).
|
|
130
|
+
protoOf(StateExpressionBaseVisitor).i2m = function (ctx) {
|
|
131
|
+
return ensureNotNull(ensureNotNull(this).i21(ctx));
|
|
134
132
|
};
|
|
135
|
-
protoOf(StateExpressionBaseVisitor).
|
|
136
|
-
return ensureNotNull(ensureNotNull(this).
|
|
133
|
+
protoOf(StateExpressionBaseVisitor).j2m = function (ctx) {
|
|
134
|
+
return ensureNotNull(ensureNotNull(this).i21(ctx));
|
|
137
135
|
};
|
|
138
|
-
protoOf(StateExpressionBaseVisitor).
|
|
139
|
-
return ensureNotNull(ensureNotNull(this).
|
|
136
|
+
protoOf(StateExpressionBaseVisitor).k2m = function (ctx) {
|
|
137
|
+
return ensureNotNull(ensureNotNull(this).i21(ctx));
|
|
140
138
|
};
|
|
141
139
|
var Channels_DEFAULT_TOKEN_CHANNEL_instance;
|
|
142
140
|
var Channels_HIDDEN_instance;
|
|
@@ -198,61 +196,49 @@
|
|
|
198
196
|
}
|
|
199
197
|
function Companion() {
|
|
200
198
|
Companion_instance = this;
|
|
201
|
-
this.
|
|
202
|
-
this.
|
|
203
|
-
this.
|
|
199
|
+
this.m2m_1 = new PredictionContextCache();
|
|
200
|
+
this.n2m_1 = listOf([null, "'=='", "'!='", "'&&'", "'||'", "'!'", "'>='", "'>'", "'<='", "'<'", "'('", "')'", "'true'", "'false'"]);
|
|
201
|
+
this.o2m_1 = listOf([null, 'EQ', 'NEQ', 'AND', 'OR', 'NOT', 'GTE', 'GT', 'LTE', 'LT', 'OPAR', 'CPAR', 'TRUE', 'FALSE', 'FUNC_ISSET', 'FUNC_VALUES', 'INT', 'STRING', 'VAR']);
|
|
204
202
|
var tmp = this;
|
|
205
|
-
var tmp$ret$0;
|
|
206
203
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
207
|
-
var tmp0_toTypedArray = this.
|
|
208
|
-
|
|
209
|
-
var tmp_0 = tmp$ret$0;
|
|
204
|
+
var tmp0_toTypedArray = this.n2m_1;
|
|
205
|
+
var tmp_0 = copyToArray(tmp0_toTypedArray);
|
|
210
206
|
var tmp$ret$1;
|
|
211
207
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
212
|
-
var tmp1_toTypedArray = this.
|
|
208
|
+
var tmp1_toTypedArray = this.o2m_1;
|
|
213
209
|
tmp$ret$1 = copyToArray(tmp1_toTypedArray);
|
|
214
|
-
tmp.
|
|
210
|
+
tmp.p2m_1 = new VocabularyImpl(tmp_0, tmp$ret$1);
|
|
215
211
|
var tmp_1 = this;
|
|
216
212
|
var tmp_2 = 0;
|
|
217
|
-
var tmp_3 = this.
|
|
218
|
-
var tmp$ret$2;
|
|
213
|
+
var tmp_3 = this.o2m_1.i();
|
|
219
214
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
220
|
-
|
|
221
|
-
var tmp_4 = tmp$ret$2;
|
|
215
|
+
var tmp_4 = fillArrayVal(Array(tmp_3), null);
|
|
222
216
|
while (tmp_2 < tmp_3) {
|
|
223
217
|
var tmp_5 = tmp_2;
|
|
224
|
-
var
|
|
225
|
-
// Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.generated.Companion.tokenNames.<anonymous>' call
|
|
226
|
-
var el = Companion_getInstance_1().m2f_1.r1u(tmp_5);
|
|
218
|
+
var el = Companion_getInstance_1().p2m_1.u21(tmp_5);
|
|
227
219
|
if (el == null) {
|
|
228
|
-
el = Companion_getInstance_1().
|
|
220
|
+
el = Companion_getInstance_1().p2m_1.v21(tmp_5);
|
|
229
221
|
}
|
|
230
222
|
if (el == null) {
|
|
231
223
|
el = '<INVALID>';
|
|
232
224
|
}
|
|
233
|
-
|
|
234
|
-
tmp_4[tmp_5] = tmp$ret$3;
|
|
225
|
+
tmp_4[tmp_5] = el;
|
|
235
226
|
tmp_2 = tmp_2 + 1 | 0;
|
|
236
227
|
}
|
|
237
|
-
tmp_1.
|
|
238
|
-
this.
|
|
239
|
-
this.
|
|
228
|
+
tmp_1.q2m_1 = tmp_4;
|
|
229
|
+
this.r2m_1 = "\x03\u608B\uA72A\u8133\uB9ED\u417C\u3BE7\u7786\u5964\x02\x14}\b\x01\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\x03\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03\x04\x03\x04\x03\x04\x03\x05\x03\x05\x03\x05\x03\x06\x03\x06\x03\x07\x03\x07\x03\x07\x03\b\x03\b\x03\t\x03\t\x03\t\x03\n\x03\n\x03\x0B\x03\x0B\x03\f\x03\f\x03\r\x03\r\x03\r\x03\r\x03\r\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x11\x06\x11a\n\x11\r\x11\x0E\x11b\x03\x12\x03\x12\x07\x12g\n\x12\f\x12\x0E\x12j\x0B\x12\x03\x12\x03\x12\x03\x12\x07\x12o\n\x12\f\x12\x0E\x12r\x0B\x12\x03\x12\x05\x12u\n\x12\x03\x13\x03\x13\x07\x13y\n\x13\f\x13\x0E\x13|\x0B\x13\x02\x02\x14\x03\x03\x05\x04\x07\x05\t\x06\x0B\x07\r\b\x0F\t\x11\n\x13\x0B\x15\f\x17\r\x19\x0E\x1B\x0F\x1D\x10\x1F\x11!\x12#\x13%\x14\x03\x02\x07\x03\x022;\x03\x02$$\x03\x02))\x04\x02C\\c|\x06\x022;C\\aac|\x02\x81\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02\x02\x07\x03\x02\x02\x02\x02\t\x03\x02\x02\x02\x02\x0B\x03\x02\x02\x02\x02\r\x03\x02\x02\x02\x02\x0F\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02\x02\x13\x03\x02\x02\x02\x02\x15\x03\x02\x02\x02\x02\x17\x03\x02\x02\x02\x02\x19\x03\x02\x02\x02\x02\x1B\x03\x02\x02\x02\x02\x1D\x03\x02\x02\x02\x02\x1F\x03\x02\x02\x02\x02!\x03\x02\x02\x02\x02#\x03\x02\x02\x02\x02%\x03\x02\x02\x02\x03'\x03\x02\x02\x02\x05*\x03\x02\x02\x02\x07-\x03\x02\x02\x02\t0\x03\x02\x02\x02\x0B3\x03\x02\x02\x02\r5\x03\x02\x02\x02\x0F8\x03\x02\x02\x02\x11:\x03\x02\x02\x02\x13=\x03\x02\x02\x02\x15?\x03\x02\x02\x02\x17A\x03\x02\x02\x02\x19C\x03\x02\x02\x02\x1BH\x03\x02\x02\x02\x1DN\x03\x02\x02\x02\x1FV\x03\x02\x02\x02!`\x03\x02\x02\x02#t\x03\x02\x02\x02%v\x03\x02\x02\x02'(\x07?\x02\x02()\x07?\x02\x02)\x04\x03\x02\x02\x02*+\x07#\x02\x02+,\x07?\x02\x02,\x06\x03\x02\x02\x02-.\x07(\x02\x02./\x07(\x02\x02/\b\x03\x02\x02\x0201\x07~\x02\x0212\x07~\x02\x022\n\x03\x02\x02\x0234\x07#\x02\x024\f\x03\x02\x02\x0256\x07@\x02\x0267\x07?\x02\x027\x0E\x03\x02\x02\x0289\x07@\x02\x029\x10\x03\x02\x02\x02:;\x07>\x02\x02;<\x07?\x02\x02<\x12\x03\x02\x02\x02=>\x07>\x02\x02>\x14\x03\x02\x02\x02?@\x07*\x02\x02@\x16\x03\x02\x02\x02AB\x07+\x02\x02B\x18\x03\x02\x02\x02CD\x07v\x02\x02DE\x07t\x02\x02EF\x07w\x02\x02FG\x07g\x02\x02G\x1A\x03\x02\x02\x02HI\x07h\x02\x02IJ\x07c\x02\x02JK\x07n\x02\x02KL\x07u\x02\x02LM\x07g\x02\x02M\x1C\x03\x02\x02\x02NO\x07k\x02\x02OP\x07u\x02\x02PQ\x07U\x02\x02QR\x07g\x02\x02RS\x07v\x02\x02ST\x03\x02\x02\x02TU\x05\x15\x0B\x02U\x1E\x03\x02\x02\x02VW\x07x\x02\x02WX\x07c\x02\x02XY\x07n\x02\x02YZ\x07w\x02\x02Z[\x07g\x02\x02[\\\x07u\x02\x02\\]\x03\x02\x02\x02]^\x05\x15\x0B\x02^ \x03\x02\x02\x02_a\t\x02\x02\x02`_\x03\x02\x02\x02ab\x03\x02\x02\x02b`\x03\x02\x02\x02bc\x03\x02\x02\x02c\"\x03\x02\x02\x02dh\x07$\x02\x02eg\n\x03\x02\x02fe\x03\x02\x02\x02gj\x03\x02\x02\x02hf\x03\x02\x02\x02hi\x03\x02\x02\x02ik\x03\x02\x02\x02jh\x03\x02\x02\x02ku\x07$\x02\x02lp\x07)\x02\x02mo\n\x04\x02\x02nm\x03\x02\x02\x02or\x03\x02\x02\x02pn\x03\x02\x02\x02pq\x03\x02\x02\x02qs\x03\x02\x02\x02rp\x03\x02\x02\x02su\x07)\x02\x02td\x03\x02\x02\x02tl\x03\x02\x02\x02u$\x03\x02\x02\x02vz\t\x05\x02\x02wy\t\x06\x02\x02xw\x03\x02\x02\x02y|\x03\x02\x02\x02zx\x03\x02\x02\x02z{\x03\x02\x02\x02{&\x03\x02\x02\x02|z\x03\x02\x02\x02\b\x02bhptz\x02";
|
|
230
|
+
this.s2m_1 = (new ATNDeserializer()).f26(asCharArray("\x03\u608B\uA72A\u8133\uB9ED\u417C\u3BE7\u7786\u5964\x02\x14}\b\x01\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\x03\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x03\x04\x03\x04\x03\x04\x03\x05\x03\x05\x03\x05\x03\x06\x03\x06\x03\x07\x03\x07\x03\x07\x03\b\x03\b\x03\t\x03\t\x03\t\x03\n\x03\n\x03\x0B\x03\x0B\x03\f\x03\f\x03\r\x03\r\x03\r\x03\r\x03\r\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0E\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x0F\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x10\x03\x11\x06\x11a\n\x11\r\x11\x0E\x11b\x03\x12\x03\x12\x07\x12g\n\x12\f\x12\x0E\x12j\x0B\x12\x03\x12\x03\x12\x03\x12\x07\x12o\n\x12\f\x12\x0E\x12r\x0B\x12\x03\x12\x05\x12u\n\x12\x03\x13\x03\x13\x07\x13y\n\x13\f\x13\x0E\x13|\x0B\x13\x02\x02\x14\x03\x03\x05\x04\x07\x05\t\x06\x0B\x07\r\b\x0F\t\x11\n\x13\x0B\x15\f\x17\r\x19\x0E\x1B\x0F\x1D\x10\x1F\x11!\x12#\x13%\x14\x03\x02\x07\x03\x022;\x03\x02$$\x03\x02))\x04\x02C\\c|\x06\x022;C\\aac|\x02\x81\x02\x03\x03\x02\x02\x02\x02\x05\x03\x02\x02\x02\x02\x07\x03\x02\x02\x02\x02\t\x03\x02\x02\x02\x02\x0B\x03\x02\x02\x02\x02\r\x03\x02\x02\x02\x02\x0F\x03\x02\x02\x02\x02\x11\x03\x02\x02\x02\x02\x13\x03\x02\x02\x02\x02\x15\x03\x02\x02\x02\x02\x17\x03\x02\x02\x02\x02\x19\x03\x02\x02\x02\x02\x1B\x03\x02\x02\x02\x02\x1D\x03\x02\x02\x02\x02\x1F\x03\x02\x02\x02\x02!\x03\x02\x02\x02\x02#\x03\x02\x02\x02\x02%\x03\x02\x02\x02\x03'\x03\x02\x02\x02\x05*\x03\x02\x02\x02\x07-\x03\x02\x02\x02\t0\x03\x02\x02\x02\x0B3\x03\x02\x02\x02\r5\x03\x02\x02\x02\x0F8\x03\x02\x02\x02\x11:\x03\x02\x02\x02\x13=\x03\x02\x02\x02\x15?\x03\x02\x02\x02\x17A\x03\x02\x02\x02\x19C\x03\x02\x02\x02\x1BH\x03\x02\x02\x02\x1DN\x03\x02\x02\x02\x1FV\x03\x02\x02\x02!`\x03\x02\x02\x02#t\x03\x02\x02\x02%v\x03\x02\x02\x02'(\x07?\x02\x02()\x07?\x02\x02)\x04\x03\x02\x02\x02*+\x07#\x02\x02+,\x07?\x02\x02,\x06\x03\x02\x02\x02-.\x07(\x02\x02./\x07(\x02\x02/\b\x03\x02\x02\x0201\x07~\x02\x0212\x07~\x02\x022\n\x03\x02\x02\x0234\x07#\x02\x024\f\x03\x02\x02\x0256\x07@\x02\x0267\x07?\x02\x027\x0E\x03\x02\x02\x0289\x07@\x02\x029\x10\x03\x02\x02\x02:;\x07>\x02\x02;<\x07?\x02\x02<\x12\x03\x02\x02\x02=>\x07>\x02\x02>\x14\x03\x02\x02\x02?@\x07*\x02\x02@\x16\x03\x02\x02\x02AB\x07+\x02\x02B\x18\x03\x02\x02\x02CD\x07v\x02\x02DE\x07t\x02\x02EF\x07w\x02\x02FG\x07g\x02\x02G\x1A\x03\x02\x02\x02HI\x07h\x02\x02IJ\x07c\x02\x02JK\x07n\x02\x02KL\x07u\x02\x02LM\x07g\x02\x02M\x1C\x03\x02\x02\x02NO\x07k\x02\x02OP\x07u\x02\x02PQ\x07U\x02\x02QR\x07g\x02\x02RS\x07v\x02\x02ST\x03\x02\x02\x02TU\x05\x15\x0B\x02U\x1E\x03\x02\x02\x02VW\x07x\x02\x02WX\x07c\x02\x02XY\x07n\x02\x02YZ\x07w\x02\x02Z[\x07g\x02\x02[\\\x07u\x02\x02\\]\x03\x02\x02\x02]^\x05\x15\x0B\x02^ \x03\x02\x02\x02_a\t\x02\x02\x02`_\x03\x02\x02\x02ab\x03\x02\x02\x02b`\x03\x02\x02\x02bc\x03\x02\x02\x02c\"\x03\x02\x02\x02dh\x07$\x02\x02eg\n\x03\x02\x02fe\x03\x02\x02\x02gj\x03\x02\x02\x02hf\x03\x02\x02\x02hi\x03\x02\x02\x02ik\x03\x02\x02\x02jh\x03\x02\x02\x02ku\x07$\x02\x02lp\x07)\x02\x02mo\n\x04\x02\x02nm\x03\x02\x02\x02or\x03\x02\x02\x02pn\x03\x02\x02\x02pq\x03\x02\x02\x02qs\x03\x02\x02\x02rp\x03\x02\x02\x02su\x07)\x02\x02td\x03\x02\x02\x02tl\x03\x02\x02\x02u$\x03\x02\x02\x02vz\t\x05\x02\x02wy\t\x06\x02\x02xw\x03\x02\x02\x02y|\x03\x02\x02\x02zx\x03\x02\x02\x02z{\x03\x02\x02\x02{&\x03\x02\x02\x02|z\x03\x02\x02\x02\b\x02bhptz\x02"));
|
|
240
231
|
var tmp_6 = this;
|
|
241
232
|
var tmp_7 = 0;
|
|
242
|
-
var tmp_8 = this.
|
|
243
|
-
var tmp$ret$4;
|
|
233
|
+
var tmp_8 = this.s2m_1.x21();
|
|
244
234
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
245
|
-
|
|
246
|
-
var tmp_9 = tmp$ret$4;
|
|
235
|
+
var tmp_9 = fillArrayVal(Array(tmp_8), null);
|
|
247
236
|
while (tmp_7 < tmp_8) {
|
|
248
237
|
var tmp_10 = tmp_7;
|
|
249
|
-
|
|
250
|
-
// Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.generated.Companion.<anonymous>' call
|
|
251
|
-
tmp$ret$5 = new DFA(ensureNotNull(Companion_getInstance_1().p2f_1.i1v(tmp_10)), tmp_10);
|
|
252
|
-
tmp_9[tmp_10] = tmp$ret$5;
|
|
238
|
+
tmp_9[tmp_10] = new DFA(ensureNotNull(Companion_getInstance_1().s2m_1.l22(tmp_10)), tmp_10);
|
|
253
239
|
tmp_7 = tmp_7 + 1 | 0;
|
|
254
240
|
}
|
|
255
|
-
tmp_6.
|
|
241
|
+
tmp_6.l2m_1 = tmp_9;
|
|
256
242
|
}
|
|
257
243
|
var Companion_instance;
|
|
258
244
|
function Companion_getInstance_1() {
|
|
@@ -262,7 +248,7 @@
|
|
|
262
248
|
}
|
|
263
249
|
function Channels(name, ordinal, id) {
|
|
264
250
|
Enum.call(this, name, ordinal);
|
|
265
|
-
this.
|
|
251
|
+
this.v2m_1 = id;
|
|
266
252
|
}
|
|
267
253
|
function Rules(name, ordinal) {
|
|
268
254
|
Enum.call(this, name, ordinal);
|
|
@@ -350,72 +336,52 @@
|
|
|
350
336
|
function StateExpressionLexer(input) {
|
|
351
337
|
Companion_getInstance_1();
|
|
352
338
|
Lexer_init_$Init$(input, this);
|
|
353
|
-
this.
|
|
339
|
+
this.m2n_1 = input;
|
|
354
340
|
var tmp = this;
|
|
355
|
-
var tmp$ret$2;
|
|
356
341
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
357
|
-
var tmp$ret$1;
|
|
358
342
|
// Inline function 'kotlin.collections.map' call
|
|
359
|
-
var
|
|
360
|
-
var tmp2_map = name$factory();
|
|
361
|
-
var tmp$ret$0;
|
|
343
|
+
var tmp0_map = values();
|
|
362
344
|
// Inline function 'kotlin.collections.mapTo' call
|
|
363
|
-
var tmp0_mapTo = ArrayList_init_$Create$(
|
|
364
|
-
var indexedObject = tmp1_map;
|
|
345
|
+
var tmp0_mapTo = ArrayList_init_$Create$(tmp0_map.length);
|
|
365
346
|
var inductionVariable = 0;
|
|
366
|
-
var last =
|
|
347
|
+
var last = tmp0_map.length;
|
|
367
348
|
while (inductionVariable < last) {
|
|
368
|
-
var item =
|
|
349
|
+
var item = tmp0_map[inductionVariable];
|
|
369
350
|
inductionVariable = inductionVariable + 1 | 0;
|
|
370
|
-
|
|
351
|
+
var tmp$ret$0;
|
|
352
|
+
tmp$ret$0 = item.b5_1;
|
|
353
|
+
tmp0_mapTo.a(tmp$ret$0);
|
|
371
354
|
}
|
|
372
|
-
tmp
|
|
373
|
-
tmp$ret$1 = tmp$ret$0;
|
|
374
|
-
var tmp3_toTypedArray = tmp$ret$1;
|
|
375
|
-
tmp$ret$2 = copyToArray(tmp3_toTypedArray);
|
|
376
|
-
tmp.k2g_1 = tmp$ret$2;
|
|
355
|
+
tmp.n2n_1 = copyToArray(tmp0_mapTo);
|
|
377
356
|
var tmp_0 = this;
|
|
378
|
-
var tmp_1 = Companion_getInstance_1().
|
|
379
|
-
var tmp_2 = Companion_getInstance_1().
|
|
380
|
-
tmp_0.
|
|
357
|
+
var tmp_1 = Companion_getInstance_1().s2m_1;
|
|
358
|
+
var tmp_2 = Companion_getInstance_1().l2m_1;
|
|
359
|
+
tmp_0.z1s_1 = new LexerATNSimulator(this, tmp_1, isArray(tmp_2) ? tmp_2 : THROW_CCE(), Companion_getInstance_1().m2m_1);
|
|
381
360
|
}
|
|
382
|
-
protoOf(StateExpressionLexer).
|
|
383
|
-
var tmp$ret$3;
|
|
361
|
+
protoOf(StateExpressionLexer).s1v = function () {
|
|
384
362
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
385
|
-
var tmp$ret$2;
|
|
386
363
|
// Inline function 'kotlin.collections.map' call
|
|
387
|
-
var
|
|
388
|
-
var tmp$ret$1;
|
|
364
|
+
var tmp0_map = values_0();
|
|
389
365
|
// Inline function 'kotlin.collections.mapTo' call
|
|
390
|
-
var tmp0_mapTo = ArrayList_init_$Create$(
|
|
391
|
-
var indexedObject = tmp1_map;
|
|
366
|
+
var tmp0_mapTo = ArrayList_init_$Create$(tmp0_map.length);
|
|
392
367
|
var inductionVariable = 0;
|
|
393
|
-
var last =
|
|
368
|
+
var last = tmp0_map.length;
|
|
394
369
|
while (inductionVariable < last) {
|
|
395
|
-
var item =
|
|
370
|
+
var item = tmp0_map[inductionVariable];
|
|
396
371
|
inductionVariable = inductionVariable + 1 | 0;
|
|
397
372
|
var tmp$ret$0;
|
|
398
373
|
// Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.generated.StateExpressionLexer.<get-ruleNames>.<anonymous>' call
|
|
399
374
|
tmp$ret$0 = item.b5_1;
|
|
400
375
|
tmp0_mapTo.a(tmp$ret$0);
|
|
401
376
|
}
|
|
402
|
-
|
|
403
|
-
tmp$ret$2 = tmp$ret$1;
|
|
404
|
-
var tmp2_toTypedArray = tmp$ret$2;
|
|
405
|
-
tmp$ret$3 = copyToArray(tmp2_toTypedArray);
|
|
406
|
-
return tmp$ret$3;
|
|
377
|
+
return copyToArray(tmp0_mapTo);
|
|
407
378
|
};
|
|
408
|
-
protoOf(StateExpressionLexer).
|
|
409
|
-
return Companion_getInstance_1().
|
|
379
|
+
protoOf(StateExpressionLexer).j1u = function () {
|
|
380
|
+
return Companion_getInstance_1().s2m_1;
|
|
410
381
|
};
|
|
411
|
-
protoOf(StateExpressionLexer).
|
|
412
|
-
return Companion_getInstance_1().
|
|
382
|
+
protoOf(StateExpressionLexer).c1t = function () {
|
|
383
|
+
return Companion_getInstance_1().p2m_1;
|
|
413
384
|
};
|
|
414
|
-
function name$factory() {
|
|
415
|
-
return getPropertyCallableRef('name', 1, KProperty1, function (receiver) {
|
|
416
|
-
return receiver.b5_1;
|
|
417
|
-
}, null);
|
|
418
|
-
}
|
|
419
385
|
function StateExpressionListener() {
|
|
420
386
|
}
|
|
421
387
|
var Tokens_EOF_instance;
|
|
@@ -488,7 +454,7 @@
|
|
|
488
454
|
function IntCmpExprContext_init_$Init$(ctx, $this) {
|
|
489
455
|
BooleanExprContext_init_$Init$_0($this);
|
|
490
456
|
IntCmpExprContext.call($this);
|
|
491
|
-
$this.
|
|
457
|
+
$this.r2o(ctx);
|
|
492
458
|
return $this;
|
|
493
459
|
}
|
|
494
460
|
function IntCmpExprContext_init_$Create$(ctx) {
|
|
@@ -497,7 +463,7 @@
|
|
|
497
463
|
function ParExprContext_init_$Init$(ctx, $this) {
|
|
498
464
|
BooleanExprContext_init_$Init$_0($this);
|
|
499
465
|
ParExprContext.call($this);
|
|
500
|
-
$this.
|
|
466
|
+
$this.r2o(ctx);
|
|
501
467
|
return $this;
|
|
502
468
|
}
|
|
503
469
|
function ParExprContext_init_$Create$(ctx) {
|
|
@@ -506,7 +472,7 @@
|
|
|
506
472
|
function BooleanAtomContext_init_$Init$(ctx, $this) {
|
|
507
473
|
BooleanExprContext_init_$Init$_0($this);
|
|
508
474
|
BooleanAtomContext.call($this);
|
|
509
|
-
$this.
|
|
475
|
+
$this.r2o(ctx);
|
|
510
476
|
return $this;
|
|
511
477
|
}
|
|
512
478
|
function BooleanAtomContext_init_$Create$(ctx) {
|
|
@@ -515,7 +481,7 @@
|
|
|
515
481
|
function EqExprContext_init_$Init$(ctx, $this) {
|
|
516
482
|
BooleanExprContext_init_$Init$_0($this);
|
|
517
483
|
EqExprContext.call($this);
|
|
518
|
-
$this.
|
|
484
|
+
$this.r2o(ctx);
|
|
519
485
|
return $this;
|
|
520
486
|
}
|
|
521
487
|
function EqExprContext_init_$Create$(ctx) {
|
|
@@ -524,7 +490,7 @@
|
|
|
524
490
|
function NotExprContext_init_$Init$(ctx, $this) {
|
|
525
491
|
BooleanExprContext_init_$Init$_0($this);
|
|
526
492
|
NotExprContext.call($this);
|
|
527
|
-
$this.
|
|
493
|
+
$this.r2o(ctx);
|
|
528
494
|
return $this;
|
|
529
495
|
}
|
|
530
496
|
function NotExprContext_init_$Create$(ctx) {
|
|
@@ -533,7 +499,7 @@
|
|
|
533
499
|
function IsSetFuncContext_init_$Init$(ctx, $this) {
|
|
534
500
|
BooleanExprContext_init_$Init$_0($this);
|
|
535
501
|
IsSetFuncContext.call($this);
|
|
536
|
-
$this.
|
|
502
|
+
$this.r2o(ctx);
|
|
537
503
|
return $this;
|
|
538
504
|
}
|
|
539
505
|
function IsSetFuncContext_init_$Create$(ctx) {
|
|
@@ -542,7 +508,7 @@
|
|
|
542
508
|
function OrExprContext_init_$Init$(ctx, $this) {
|
|
543
509
|
BooleanExprContext_init_$Init$_0($this);
|
|
544
510
|
OrExprContext.call($this);
|
|
545
|
-
$this.
|
|
511
|
+
$this.r2o(ctx);
|
|
546
512
|
return $this;
|
|
547
513
|
}
|
|
548
514
|
function OrExprContext_init_$Create$(ctx) {
|
|
@@ -551,7 +517,7 @@
|
|
|
551
517
|
function AndExprContext_init_$Init$(ctx, $this) {
|
|
552
518
|
BooleanExprContext_init_$Init$_0($this);
|
|
553
519
|
AndExprContext.call($this);
|
|
554
|
-
$this.
|
|
520
|
+
$this.r2o(ctx);
|
|
555
521
|
return $this;
|
|
556
522
|
}
|
|
557
523
|
function AndExprContext_init_$Create$(ctx) {
|
|
@@ -573,7 +539,7 @@
|
|
|
573
539
|
function IntAtomContext_init_$Init$(ctx, $this) {
|
|
574
540
|
IntExprContext_init_$Init$_0($this);
|
|
575
541
|
IntAtomContext.call($this);
|
|
576
|
-
$this.
|
|
542
|
+
$this.z2o(ctx);
|
|
577
543
|
return $this;
|
|
578
544
|
}
|
|
579
545
|
function IntAtomContext_init_$Create$(ctx) {
|
|
@@ -582,7 +548,7 @@
|
|
|
582
548
|
function ParIntExprContext_init_$Init$(ctx, $this) {
|
|
583
549
|
IntExprContext_init_$Init$_0($this);
|
|
584
550
|
ParIntExprContext.call($this);
|
|
585
|
-
$this.
|
|
551
|
+
$this.z2o(ctx);
|
|
586
552
|
return $this;
|
|
587
553
|
}
|
|
588
554
|
function ParIntExprContext_init_$Create$(ctx) {
|
|
@@ -591,7 +557,7 @@
|
|
|
591
557
|
function ValuesFuncContext_init_$Init$(ctx, $this) {
|
|
592
558
|
IntExprContext_init_$Init$_0($this);
|
|
593
559
|
ValuesFuncContext.call($this);
|
|
594
|
-
$this.
|
|
560
|
+
$this.z2o(ctx);
|
|
595
561
|
return $this;
|
|
596
562
|
}
|
|
597
563
|
function ValuesFuncContext_init_$Create$(ctx) {
|
|
@@ -599,80 +565,62 @@
|
|
|
599
565
|
}
|
|
600
566
|
function Tokens(name, ordinal, id) {
|
|
601
567
|
Enum.call(this, name, ordinal);
|
|
602
|
-
this.
|
|
568
|
+
this.c2p_1 = id;
|
|
603
569
|
}
|
|
604
570
|
function Rules_0(name, ordinal, id) {
|
|
605
571
|
Enum.call(this, name, ordinal);
|
|
606
|
-
this.
|
|
572
|
+
this.f2p_1 = id;
|
|
607
573
|
}
|
|
608
574
|
function Companion_0() {
|
|
609
575
|
Companion_instance_0 = this;
|
|
610
|
-
this.
|
|
576
|
+
this.h2p_1 = new PredictionContextCache();
|
|
611
577
|
var tmp = this;
|
|
612
|
-
var tmp$ret$2;
|
|
613
578
|
// Inline function 'kotlin.arrayOf' call
|
|
614
|
-
var tmp$ret$1;
|
|
615
579
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
616
|
-
var tmp$ret$0;
|
|
617
580
|
// Inline function 'kotlin.js.asDynamic' call
|
|
618
|
-
tmp
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
tmp.f2i_1 = tmp$ret$2;
|
|
622
|
-
this.g2i_1 = listOf([null, "'=='", "'!='", "'&&'", "'||'", "'!'", "'>='", "'>'", "'<='", "'<'", "'('", "')'", "'true'", "'false'"]);
|
|
623
|
-
this.h2i_1 = listOf([null, 'EQ', 'NEQ', 'AND', 'OR', 'NOT', 'GTE', 'GT', 'LTE', 'LT', 'OPAR', 'CPAR', 'TRUE', 'FALSE', 'FUNC_ISSET', 'FUNC_VALUES', 'INT', 'STRING', 'VAR']);
|
|
581
|
+
tmp.i2p_1 = ['booleanExpr', 'intExpr'];
|
|
582
|
+
this.j2p_1 = listOf([null, "'=='", "'!='", "'&&'", "'||'", "'!'", "'>='", "'>'", "'<='", "'<'", "'('", "')'", "'true'", "'false'"]);
|
|
583
|
+
this.k2p_1 = listOf([null, 'EQ', 'NEQ', 'AND', 'OR', 'NOT', 'GTE', 'GT', 'LTE', 'LT', 'OPAR', 'CPAR', 'TRUE', 'FALSE', 'FUNC_ISSET', 'FUNC_VALUES', 'INT', 'STRING', 'VAR']);
|
|
624
584
|
var tmp_0 = this;
|
|
625
|
-
var tmp$ret$3;
|
|
626
585
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
627
|
-
var tmp0_toTypedArray = this.
|
|
628
|
-
|
|
629
|
-
var tmp_1 = tmp$ret$3;
|
|
586
|
+
var tmp0_toTypedArray = this.j2p_1;
|
|
587
|
+
var tmp_1 = copyToArray(tmp0_toTypedArray);
|
|
630
588
|
var tmp$ret$4;
|
|
631
589
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
632
|
-
var tmp1_toTypedArray = this.
|
|
590
|
+
var tmp1_toTypedArray = this.k2p_1;
|
|
633
591
|
tmp$ret$4 = copyToArray(tmp1_toTypedArray);
|
|
634
|
-
tmp_0.
|
|
592
|
+
tmp_0.l2p_1 = new VocabularyImpl(tmp_1, tmp$ret$4);
|
|
635
593
|
var tmp_2 = this;
|
|
636
594
|
var tmp_3 = 0;
|
|
637
|
-
var tmp_4 = this.
|
|
638
|
-
var tmp$ret$5;
|
|
595
|
+
var tmp_4 = this.k2p_1.i();
|
|
639
596
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
640
|
-
|
|
641
|
-
var tmp_5 = tmp$ret$5;
|
|
597
|
+
var tmp_5 = fillArrayVal(Array(tmp_4), null);
|
|
642
598
|
while (tmp_3 < tmp_4) {
|
|
643
599
|
var tmp_6 = tmp_3;
|
|
644
|
-
var
|
|
645
|
-
// Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.generated.Companion.tokenNames.<anonymous>' call
|
|
646
|
-
var el = Companion_getInstance_2().i2i_1.r1u(tmp_6);
|
|
600
|
+
var el = Companion_getInstance_2().l2p_1.u21(tmp_6);
|
|
647
601
|
if (el == null) {
|
|
648
|
-
el = Companion_getInstance_2().
|
|
602
|
+
el = Companion_getInstance_2().l2p_1.v21(tmp_6);
|
|
649
603
|
}
|
|
650
604
|
if (el == null) {
|
|
651
605
|
el = '<INVALID>';
|
|
652
606
|
}
|
|
653
|
-
|
|
654
|
-
tmp_5[tmp_6] = tmp$ret$6;
|
|
607
|
+
tmp_5[tmp_6] = el;
|
|
655
608
|
tmp_3 = tmp_3 + 1 | 0;
|
|
656
609
|
}
|
|
657
|
-
tmp_2.
|
|
658
|
-
this.
|
|
659
|
-
this.
|
|
610
|
+
tmp_2.m2p_1 = tmp_5;
|
|
611
|
+
this.n2p_1 = '\x03\u608B\uA72A\u8133\uB9ED\u417C\u3BE7\u7786\u5964\x03\x140\x04\x02\t\x02\x04\x03\t\x03\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x05\x02\x19\n\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x07\x02!\n\x02\f\x02\x0E\x02$\x0B\x02\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x05\x03.\n\x03\x03\x03\x02\x03\x02\x04\x02\x04\x02\x05\x03\x02\x03\x04\x04\x02\x03\x04\b\x0B\x03\x02\x0E\x0F\x026\x02\x18\x03\x02\x02\x02\x04-\x03\x02\x02\x02\x06\x07\b\x02\x01\x02\x07\b\x07\f\x02\x02\b\t\x05\x02\x02\x02\t\n\x07\r\x02\x02\n\x19\x03\x02\x02\x02\x0B\f\x07\x07\x02\x02\f\x19\x05\x02\x02\t\r\x0E\x07\x10\x02\x02\x0E\x0F\x07\x14\x02\x02\x0F\x19\x07\r\x02\x02\x10\x11\x07\x14\x02\x02\x11\x12\t\x02\x02\x02\x12\x19\x07\x13\x02\x02\x13\x14\x05\x04\x03\x02\x14\x15\t\x03\x02\x02\x15\x16\x05\x04\x03\x02\x16\x19\x03\x02\x02\x02\x17\x19\t\x04\x02\x02\x18\x06\x03\x02\x02\x02\x18\x0B\x03\x02\x02\x02\x18\r\x03\x02\x02\x02\x18\x10\x03\x02\x02\x02\x18\x13\x03\x02\x02\x02\x18\x17\x03\x02\x02\x02\x19"\x03\x02\x02\x02\x1A\x1B\f\b\x02\x02\x1B\x1C\x07\x05\x02\x02\x1C!\x05\x02\x02\t\x1D\x1E\f\x07\x02\x02\x1E\x1F\x07\x06\x02\x02\x1F!\x05\x02\x02\b \x1A\x03\x02\x02\x02 \x1D\x03\x02\x02\x02!$\x03\x02\x02\x02" \x03\x02\x02\x02"#\x03\x02\x02\x02#\x03\x03\x02\x02\x02$"\x03\x02\x02\x02%&\x07\f\x02\x02&\'\x05\x04\x03\x02\'(\x07\r\x02\x02(.\x03\x02\x02\x02)*\x07\x11\x02\x02*+\x07\x14\x02\x02+.\x07\r\x02\x02,.\x07\x12\x02\x02-%\x03\x02\x02\x02-)\x03\x02\x02\x02-,\x03\x02\x02\x02.\x05\x03\x02\x02\x02\x06\x18 "-';
|
|
612
|
+
this.o2p_1 = (new ATNDeserializer()).f26(asCharArray('\x03\u608B\uA72A\u8133\uB9ED\u417C\u3BE7\u7786\u5964\x03\x140\x04\x02\t\x02\x04\x03\t\x03\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x05\x02\x19\n\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x03\x02\x07\x02!\n\x02\f\x02\x0E\x02$\x0B\x02\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x05\x03.\n\x03\x03\x03\x02\x03\x02\x04\x02\x04\x02\x05\x03\x02\x03\x04\x04\x02\x03\x04\b\x0B\x03\x02\x0E\x0F\x026\x02\x18\x03\x02\x02\x02\x04-\x03\x02\x02\x02\x06\x07\b\x02\x01\x02\x07\b\x07\f\x02\x02\b\t\x05\x02\x02\x02\t\n\x07\r\x02\x02\n\x19\x03\x02\x02\x02\x0B\f\x07\x07\x02\x02\f\x19\x05\x02\x02\t\r\x0E\x07\x10\x02\x02\x0E\x0F\x07\x14\x02\x02\x0F\x19\x07\r\x02\x02\x10\x11\x07\x14\x02\x02\x11\x12\t\x02\x02\x02\x12\x19\x07\x13\x02\x02\x13\x14\x05\x04\x03\x02\x14\x15\t\x03\x02\x02\x15\x16\x05\x04\x03\x02\x16\x19\x03\x02\x02\x02\x17\x19\t\x04\x02\x02\x18\x06\x03\x02\x02\x02\x18\x0B\x03\x02\x02\x02\x18\r\x03\x02\x02\x02\x18\x10\x03\x02\x02\x02\x18\x13\x03\x02\x02\x02\x18\x17\x03\x02\x02\x02\x19"\x03\x02\x02\x02\x1A\x1B\f\b\x02\x02\x1B\x1C\x07\x05\x02\x02\x1C!\x05\x02\x02\t\x1D\x1E\f\x07\x02\x02\x1E\x1F\x07\x06\x02\x02\x1F!\x05\x02\x02\b \x1A\x03\x02\x02\x02 \x1D\x03\x02\x02\x02!$\x03\x02\x02\x02" \x03\x02\x02\x02"#\x03\x02\x02\x02#\x03\x03\x02\x02\x02$"\x03\x02\x02\x02%&\x07\f\x02\x02&\'\x05\x04\x03\x02\'(\x07\r\x02\x02(.\x03\x02\x02\x02)*\x07\x11\x02\x02*+\x07\x14\x02\x02+.\x07\r\x02\x02,.\x07\x12\x02\x02-%\x03\x02\x02\x02-)\x03\x02\x02\x02-,\x03\x02\x02\x02.\x05\x03\x02\x02\x02\x06\x18 "-'));
|
|
660
613
|
var tmp_7 = this;
|
|
661
614
|
var tmp_8 = 0;
|
|
662
|
-
var tmp_9 = this.
|
|
663
|
-
var tmp$ret$7;
|
|
615
|
+
var tmp_9 = this.o2p_1.x21();
|
|
664
616
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
665
|
-
|
|
666
|
-
var tmp_10 = tmp$ret$7;
|
|
617
|
+
var tmp_10 = fillArrayVal(Array(tmp_9), null);
|
|
667
618
|
while (tmp_8 < tmp_9) {
|
|
668
619
|
var tmp_11 = tmp_8;
|
|
669
|
-
|
|
670
|
-
// Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.generated.Companion.<anonymous>' call
|
|
671
|
-
tmp$ret$8 = new DFA(ensureNotNull(Companion_getInstance_2().l2i_1.i1v(tmp_11)), tmp_11);
|
|
672
|
-
tmp_10[tmp_11] = tmp$ret$8;
|
|
620
|
+
tmp_10[tmp_11] = new DFA(ensureNotNull(Companion_getInstance_2().o2p_1.l22(tmp_11)), tmp_11);
|
|
673
621
|
tmp_8 = tmp_8 + 1 | 0;
|
|
674
622
|
}
|
|
675
|
-
tmp_7.
|
|
623
|
+
tmp_7.g2p_1 = tmp_10;
|
|
676
624
|
}
|
|
677
625
|
var Companion_instance_0;
|
|
678
626
|
function Companion_getInstance_2() {
|
|
@@ -680,479 +628,440 @@
|
|
|
680
628
|
new Companion_0();
|
|
681
629
|
return Companion_instance_0;
|
|
682
630
|
}
|
|
683
|
-
protoOf(BooleanExprContext).
|
|
684
|
-
return Rules_RULE_booleanExpr_getInstance().
|
|
631
|
+
protoOf(BooleanExprContext).t1v = function () {
|
|
632
|
+
return Rules_RULE_booleanExpr_getInstance().f2p_1;
|
|
685
633
|
};
|
|
686
|
-
protoOf(BooleanExprContext).
|
|
687
|
-
protoOf(ParserRuleContext).
|
|
634
|
+
protoOf(BooleanExprContext).r2o = function (ctx) {
|
|
635
|
+
protoOf(ParserRuleContext).w20.call(this, ctx);
|
|
688
636
|
};
|
|
689
637
|
function BooleanExprContext() {
|
|
690
638
|
}
|
|
691
|
-
protoOf(IntCmpExprContext).
|
|
639
|
+
protoOf(IntCmpExprContext).z1z = function (listener) {
|
|
692
640
|
if (isInterface(listener, StateExpressionListener)) {
|
|
693
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
641
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).o2n(this);
|
|
694
642
|
}
|
|
695
643
|
};
|
|
696
|
-
protoOf(IntCmpExprContext).
|
|
644
|
+
protoOf(IntCmpExprContext).b20 = function (listener) {
|
|
697
645
|
if (isInterface(listener, StateExpressionListener)) {
|
|
698
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
646
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).p2n(this);
|
|
699
647
|
}
|
|
700
648
|
};
|
|
701
|
-
protoOf(IntCmpExprContext).
|
|
649
|
+
protoOf(IntCmpExprContext).a21 = function (visitor) {
|
|
702
650
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
703
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
651
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).a2m(this);
|
|
704
652
|
} else {
|
|
705
|
-
return ensureNotNull(visitor.
|
|
653
|
+
return ensureNotNull(visitor.i21(this));
|
|
706
654
|
}
|
|
707
655
|
};
|
|
708
656
|
function IntCmpExprContext() {
|
|
709
|
-
this.
|
|
710
|
-
this.
|
|
711
|
-
this.
|
|
657
|
+
this.w2p_1 = null;
|
|
658
|
+
this.x2p_1 = null;
|
|
659
|
+
this.y2p_1 = null;
|
|
712
660
|
}
|
|
713
|
-
protoOf(ParExprContext).
|
|
661
|
+
protoOf(ParExprContext).z1z = function (listener) {
|
|
714
662
|
if (isInterface(listener, StateExpressionListener)) {
|
|
715
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
663
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).q2n(this);
|
|
716
664
|
}
|
|
717
665
|
};
|
|
718
|
-
protoOf(ParExprContext).
|
|
666
|
+
protoOf(ParExprContext).b20 = function (listener) {
|
|
719
667
|
if (isInterface(listener, StateExpressionListener)) {
|
|
720
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
668
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).r2n(this);
|
|
721
669
|
}
|
|
722
670
|
};
|
|
723
|
-
protoOf(ParExprContext).
|
|
671
|
+
protoOf(ParExprContext).a21 = function (visitor) {
|
|
724
672
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
725
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
673
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).b2m(this);
|
|
726
674
|
} else {
|
|
727
|
-
return ensureNotNull(visitor.
|
|
675
|
+
return ensureNotNull(visitor.i21(this));
|
|
728
676
|
}
|
|
729
677
|
};
|
|
730
678
|
function ParExprContext() {
|
|
731
|
-
this.
|
|
679
|
+
this.g2q_1 = null;
|
|
732
680
|
}
|
|
733
|
-
protoOf(BooleanAtomContext).
|
|
681
|
+
protoOf(BooleanAtomContext).z1z = function (listener) {
|
|
734
682
|
if (isInterface(listener, StateExpressionListener)) {
|
|
735
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
683
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).s2n(this);
|
|
736
684
|
}
|
|
737
685
|
};
|
|
738
|
-
protoOf(BooleanAtomContext).
|
|
686
|
+
protoOf(BooleanAtomContext).b20 = function (listener) {
|
|
739
687
|
if (isInterface(listener, StateExpressionListener)) {
|
|
740
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
688
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).t2n(this);
|
|
741
689
|
}
|
|
742
690
|
};
|
|
743
|
-
protoOf(BooleanAtomContext).
|
|
691
|
+
protoOf(BooleanAtomContext).a21 = function (visitor) {
|
|
744
692
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
745
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
693
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).c2m(this);
|
|
746
694
|
} else {
|
|
747
|
-
return ensureNotNull(visitor.
|
|
695
|
+
return ensureNotNull(visitor.i21(this));
|
|
748
696
|
}
|
|
749
697
|
};
|
|
750
698
|
function BooleanAtomContext() {
|
|
751
|
-
this.
|
|
699
|
+
this.o2q_1 = null;
|
|
752
700
|
}
|
|
753
|
-
protoOf(EqExprContext).
|
|
701
|
+
protoOf(EqExprContext).z1z = function (listener) {
|
|
754
702
|
if (isInterface(listener, StateExpressionListener)) {
|
|
755
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
703
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).u2n(this);
|
|
756
704
|
}
|
|
757
705
|
};
|
|
758
|
-
protoOf(EqExprContext).
|
|
706
|
+
protoOf(EqExprContext).b20 = function (listener) {
|
|
759
707
|
if (isInterface(listener, StateExpressionListener)) {
|
|
760
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
708
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).v2n(this);
|
|
761
709
|
}
|
|
762
710
|
};
|
|
763
|
-
protoOf(EqExprContext).
|
|
711
|
+
protoOf(EqExprContext).a21 = function (visitor) {
|
|
764
712
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
765
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
713
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).d2m(this);
|
|
766
714
|
} else {
|
|
767
|
-
return ensureNotNull(visitor.
|
|
715
|
+
return ensureNotNull(visitor.i21(this));
|
|
768
716
|
}
|
|
769
717
|
};
|
|
770
718
|
function EqExprContext() {
|
|
771
|
-
this.
|
|
772
|
-
this.
|
|
773
|
-
this.
|
|
719
|
+
this.w2q_1 = null;
|
|
720
|
+
this.x2q_1 = null;
|
|
721
|
+
this.y2q_1 = null;
|
|
774
722
|
}
|
|
775
|
-
protoOf(NotExprContext).
|
|
723
|
+
protoOf(NotExprContext).z1z = function (listener) {
|
|
776
724
|
if (isInterface(listener, StateExpressionListener)) {
|
|
777
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
725
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).w2n(this);
|
|
778
726
|
}
|
|
779
727
|
};
|
|
780
|
-
protoOf(NotExprContext).
|
|
728
|
+
protoOf(NotExprContext).b20 = function (listener) {
|
|
781
729
|
if (isInterface(listener, StateExpressionListener)) {
|
|
782
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
730
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).x2n(this);
|
|
783
731
|
}
|
|
784
732
|
};
|
|
785
|
-
protoOf(NotExprContext).
|
|
733
|
+
protoOf(NotExprContext).a21 = function (visitor) {
|
|
786
734
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
787
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
735
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).e2m(this);
|
|
788
736
|
} else {
|
|
789
|
-
return ensureNotNull(visitor.
|
|
737
|
+
return ensureNotNull(visitor.i21(this));
|
|
790
738
|
}
|
|
791
739
|
};
|
|
792
740
|
function NotExprContext() {
|
|
793
|
-
this.
|
|
741
|
+
this.g2r_1 = null;
|
|
794
742
|
}
|
|
795
|
-
protoOf(IsSetFuncContext).
|
|
743
|
+
protoOf(IsSetFuncContext).z1z = function (listener) {
|
|
796
744
|
if (isInterface(listener, StateExpressionListener)) {
|
|
797
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
745
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).y2n(this);
|
|
798
746
|
}
|
|
799
747
|
};
|
|
800
|
-
protoOf(IsSetFuncContext).
|
|
748
|
+
protoOf(IsSetFuncContext).b20 = function (listener) {
|
|
801
749
|
if (isInterface(listener, StateExpressionListener)) {
|
|
802
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
750
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).z2n(this);
|
|
803
751
|
}
|
|
804
752
|
};
|
|
805
|
-
protoOf(IsSetFuncContext).
|
|
753
|
+
protoOf(IsSetFuncContext).a21 = function (visitor) {
|
|
806
754
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
807
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
755
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).f2m(this);
|
|
808
756
|
} else {
|
|
809
|
-
return ensureNotNull(visitor.
|
|
757
|
+
return ensureNotNull(visitor.i21(this));
|
|
810
758
|
}
|
|
811
759
|
};
|
|
812
760
|
function IsSetFuncContext() {
|
|
813
|
-
this.
|
|
761
|
+
this.o2r_1 = null;
|
|
814
762
|
}
|
|
815
|
-
protoOf(OrExprContext).
|
|
763
|
+
protoOf(OrExprContext).z1z = function (listener) {
|
|
816
764
|
if (isInterface(listener, StateExpressionListener)) {
|
|
817
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
765
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).a2o(this);
|
|
818
766
|
}
|
|
819
767
|
};
|
|
820
|
-
protoOf(OrExprContext).
|
|
768
|
+
protoOf(OrExprContext).b20 = function (listener) {
|
|
821
769
|
if (isInterface(listener, StateExpressionListener)) {
|
|
822
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
770
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).b2o(this);
|
|
823
771
|
}
|
|
824
772
|
};
|
|
825
|
-
protoOf(OrExprContext).
|
|
773
|
+
protoOf(OrExprContext).a21 = function (visitor) {
|
|
826
774
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
827
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
775
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).g2m(this);
|
|
828
776
|
} else {
|
|
829
|
-
return ensureNotNull(visitor.
|
|
777
|
+
return ensureNotNull(visitor.i21(this));
|
|
830
778
|
}
|
|
831
779
|
};
|
|
832
780
|
function OrExprContext() {
|
|
833
|
-
this.
|
|
834
|
-
this.
|
|
781
|
+
this.w2r_1 = null;
|
|
782
|
+
this.x2r_1 = null;
|
|
835
783
|
}
|
|
836
|
-
protoOf(AndExprContext).
|
|
784
|
+
protoOf(AndExprContext).z1z = function (listener) {
|
|
837
785
|
if (isInterface(listener, StateExpressionListener)) {
|
|
838
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
786
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).c2o(this);
|
|
839
787
|
}
|
|
840
788
|
};
|
|
841
|
-
protoOf(AndExprContext).
|
|
789
|
+
protoOf(AndExprContext).b20 = function (listener) {
|
|
842
790
|
if (isInterface(listener, StateExpressionListener)) {
|
|
843
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
791
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).d2o(this);
|
|
844
792
|
}
|
|
845
793
|
};
|
|
846
|
-
protoOf(AndExprContext).
|
|
794
|
+
protoOf(AndExprContext).a21 = function (visitor) {
|
|
847
795
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
848
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
796
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).h2m(this);
|
|
849
797
|
} else {
|
|
850
|
-
return ensureNotNull(visitor.
|
|
798
|
+
return ensureNotNull(visitor.i21(this));
|
|
851
799
|
}
|
|
852
800
|
};
|
|
853
801
|
function AndExprContext() {
|
|
854
|
-
this.
|
|
855
|
-
this.
|
|
802
|
+
this.f2s_1 = null;
|
|
803
|
+
this.g2s_1 = null;
|
|
856
804
|
}
|
|
857
805
|
function booleanExpr($this, _p) {
|
|
858
|
-
var _parentctx = $this.
|
|
859
|
-
var _parentState = $this.
|
|
860
|
-
var _localctx = BooleanExprContext_init_$Create$($this.
|
|
806
|
+
var _parentctx = $this.q1o_1;
|
|
807
|
+
var _parentState = $this.a1t_1;
|
|
808
|
+
var _localctx = BooleanExprContext_init_$Create$($this.q1o_1, _parentState);
|
|
861
809
|
var _prevctx = _localctx;
|
|
862
810
|
var _startState = 0;
|
|
863
|
-
$this.
|
|
811
|
+
$this.r20(_localctx, 0, Rules_RULE_booleanExpr_getInstance().f2p_1, _p);
|
|
864
812
|
var _la;
|
|
865
813
|
try {
|
|
866
814
|
var _alt;
|
|
867
|
-
$this.
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
case 4:
|
|
936
|
-
{
|
|
937
|
-
_localctx = EqExprContext_init_$Create$(_localctx);
|
|
938
|
-
$this.n1h_1 = _localctx;
|
|
939
|
-
_prevctx = _localctx;
|
|
940
|
-
$this.x1l_1 = 14;
|
|
941
|
-
var tmp_6 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
|
|
942
|
-
var tmp_7 = $this.r1s($this.h2m_1);
|
|
943
|
-
tmp_6.t2j_1 = isInterface(tmp_7, Token) ? tmp_7 : THROW_CCE();
|
|
944
|
-
$this.x1l_1 = 15;
|
|
945
|
-
(_localctx instanceof EqExprContext ? _localctx : THROW_CCE()).u2j_1 = ensureNotNull($this.l1h_1).e1k(1);
|
|
946
|
-
_la = ensureNotNull($this.l1h_1).r1j(1);
|
|
947
|
-
if (!(_la === $this.q2l_1 ? true : _la === $this.r2l_1)) {
|
|
948
|
-
var tmp_8 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
|
|
949
|
-
var tmp_9 = $this.k1h_1.d1i($this);
|
|
950
|
-
tmp_8.u2j_1 = isInterface(tmp_9, Token) ? tmp_9 : THROW_CCE();
|
|
951
|
-
} else {
|
|
952
|
-
if (ensureNotNull($this.l1h_1).r1j(1) === Tokens_EOF_getInstance().z2h_1)
|
|
953
|
-
$this.r1h_1 = true;
|
|
954
|
-
$this.k1h_1.n1i($this);
|
|
955
|
-
$this.p1m();
|
|
956
|
-
}
|
|
957
|
-
$this.x1l_1 = 16;
|
|
958
|
-
var tmp_10 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
|
|
959
|
-
var tmp_11 = $this.r1s($this.g2m_1);
|
|
960
|
-
tmp_10.v2j_1 = isInterface(tmp_11, Token) ? tmp_11 : THROW_CCE();
|
|
961
|
-
}
|
|
815
|
+
$this.o20(_localctx, 1);
|
|
816
|
+
$this.a1t_1 = 22;
|
|
817
|
+
$this.n1o_1.h1p($this);
|
|
818
|
+
switch (ensureNotNull($this.z1s_1).t2e(ensureNotNull($this.o1o_1), 0, $this.q1o_1)) {
|
|
819
|
+
case 1:
|
|
820
|
+
_localctx = ParExprContext_init_$Create$(_localctx);
|
|
821
|
+
$this.q1o_1 = _localctx;
|
|
822
|
+
_prevctx = _localctx;
|
|
823
|
+
$this.a1t_1 = 5;
|
|
824
|
+
var tmp = $this.u1z($this.c2t_1);
|
|
825
|
+
if (!isInterface(tmp, Token))
|
|
826
|
+
THROW_CCE();
|
|
827
|
+
$this.a1t_1 = 6;
|
|
828
|
+
(_localctx instanceof ParExprContext ? _localctx : THROW_CCE()).g2q_1 = booleanExpr($this, 0);
|
|
829
|
+
$this.a1t_1 = 7;
|
|
830
|
+
var tmp_0 = $this.u1z($this.d2t_1);
|
|
831
|
+
if (!isInterface(tmp_0, Token))
|
|
832
|
+
THROW_CCE();
|
|
833
|
+
break;
|
|
834
|
+
case 2:
|
|
835
|
+
_localctx = NotExprContext_init_$Create$(_localctx);
|
|
836
|
+
$this.q1o_1 = _localctx;
|
|
837
|
+
_prevctx = _localctx;
|
|
838
|
+
$this.a1t_1 = 9;
|
|
839
|
+
var tmp_1 = $this.u1z($this.x2s_1);
|
|
840
|
+
if (!isInterface(tmp_1, Token))
|
|
841
|
+
THROW_CCE();
|
|
842
|
+
$this.a1t_1 = 10;
|
|
843
|
+
(_localctx instanceof NotExprContext ? _localctx : THROW_CCE()).g2r_1 = booleanExpr($this, 7);
|
|
844
|
+
break;
|
|
845
|
+
case 3:
|
|
846
|
+
_localctx = IsSetFuncContext_init_$Create$(_localctx);
|
|
847
|
+
$this.q1o_1 = _localctx;
|
|
848
|
+
_prevctx = _localctx;
|
|
849
|
+
$this.a1t_1 = 11;
|
|
850
|
+
var tmp_2 = $this.u1z($this.g2t_1);
|
|
851
|
+
if (!isInterface(tmp_2, Token))
|
|
852
|
+
THROW_CCE();
|
|
853
|
+
$this.a1t_1 = 12;
|
|
854
|
+
var tmp_3 = _localctx instanceof IsSetFuncContext ? _localctx : THROW_CCE();
|
|
855
|
+
var tmp_4 = $this.u1z($this.k2t_1);
|
|
856
|
+
tmp_3.o2r_1 = isInterface(tmp_4, Token) ? tmp_4 : THROW_CCE();
|
|
857
|
+
$this.a1t_1 = 13;
|
|
858
|
+
var tmp_5 = $this.u1z($this.d2t_1);
|
|
859
|
+
if (!isInterface(tmp_5, Token))
|
|
860
|
+
THROW_CCE();
|
|
861
|
+
break;
|
|
862
|
+
case 4:
|
|
863
|
+
_localctx = EqExprContext_init_$Create$(_localctx);
|
|
864
|
+
$this.q1o_1 = _localctx;
|
|
865
|
+
_prevctx = _localctx;
|
|
866
|
+
$this.a1t_1 = 14;
|
|
867
|
+
var tmp_6 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
|
|
868
|
+
var tmp_7 = $this.u1z($this.k2t_1);
|
|
869
|
+
tmp_6.w2q_1 = isInterface(tmp_7, Token) ? tmp_7 : THROW_CCE();
|
|
870
|
+
$this.a1t_1 = 15;
|
|
871
|
+
(_localctx instanceof EqExprContext ? _localctx : THROW_CCE()).x2q_1 = ensureNotNull($this.o1o_1).h1r(1);
|
|
872
|
+
_la = ensureNotNull($this.o1o_1).u1q(1);
|
|
873
|
+
if (!(_la === $this.t2s_1 ? true : _la === $this.u2s_1)) {
|
|
874
|
+
var tmp_8 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
|
|
875
|
+
var tmp_9 = $this.n1o_1.g1p($this);
|
|
876
|
+
tmp_8.x2q_1 = isInterface(tmp_9, Token) ? tmp_9 : THROW_CCE();
|
|
877
|
+
} else {
|
|
878
|
+
if (ensureNotNull($this.o1o_1).u1q(1) === Tokens_EOF_getInstance().c2p_1)
|
|
879
|
+
$this.u1o_1 = true;
|
|
880
|
+
$this.n1o_1.q1p($this);
|
|
881
|
+
$this.s1t();
|
|
882
|
+
}
|
|
962
883
|
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
884
|
+
$this.a1t_1 = 16;
|
|
885
|
+
var tmp_10 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
|
|
886
|
+
var tmp_11 = $this.u1z($this.j2t_1);
|
|
887
|
+
tmp_10.y2q_1 = isInterface(tmp_11, Token) ? tmp_11 : THROW_CCE();
|
|
888
|
+
break;
|
|
889
|
+
case 5:
|
|
890
|
+
_localctx = IntCmpExprContext_init_$Create$(_localctx);
|
|
891
|
+
$this.q1o_1 = _localctx;
|
|
892
|
+
_prevctx = _localctx;
|
|
893
|
+
$this.a1t_1 = 17;
|
|
894
|
+
(_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).w2p_1 = $this.l2t();
|
|
895
|
+
$this.a1t_1 = 18;
|
|
896
|
+
(_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).x2p_1 = ensureNotNull($this.o1o_1).h1r(1);
|
|
897
|
+
_la = ensureNotNull($this.o1o_1).u1q(1);
|
|
898
|
+
if (!((_la & -64) === 0 ? !(new Long(1, 0)).re(_la).w6((new Long(1, 0)).re($this.t2s_1).te((new Long(1, 0)).re($this.u2s_1)).te((new Long(1, 0)).re($this.y2s_1)).te((new Long(1, 0)).re($this.z2s_1)).te((new Long(1, 0)).re($this.a2t_1)).te((new Long(1, 0)).re($this.b2t_1))).equals(new Long(0, 0)) : false)) {
|
|
899
|
+
var tmp_12 = _localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE();
|
|
900
|
+
var tmp_13 = $this.n1o_1.g1p($this);
|
|
901
|
+
tmp_12.x2p_1 = isInterface(tmp_13, Token) ? tmp_13 : THROW_CCE();
|
|
902
|
+
} else {
|
|
903
|
+
if (ensureNotNull($this.o1o_1).u1q(1) === Tokens_EOF_getInstance().c2p_1)
|
|
904
|
+
$this.u1o_1 = true;
|
|
905
|
+
$this.n1o_1.q1p($this);
|
|
906
|
+
$this.s1t();
|
|
907
|
+
}
|
|
987
908
|
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
909
|
+
$this.a1t_1 = 19;
|
|
910
|
+
(_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).y2p_1 = $this.l2t();
|
|
911
|
+
break;
|
|
912
|
+
case 6:
|
|
913
|
+
_localctx = BooleanAtomContext_init_$Create$(_localctx);
|
|
914
|
+
$this.q1o_1 = _localctx;
|
|
915
|
+
_prevctx = _localctx;
|
|
916
|
+
$this.a1t_1 = 21;
|
|
917
|
+
(_localctx instanceof BooleanAtomContext ? _localctx : THROW_CCE()).o2q_1 = ensureNotNull($this.o1o_1).h1r(1);
|
|
918
|
+
_la = ensureNotNull($this.o1o_1).u1q(1);
|
|
919
|
+
if (!(_la === $this.e2t_1 ? true : _la === $this.f2t_1)) {
|
|
920
|
+
var tmp_14 = _localctx instanceof BooleanAtomContext ? _localctx : THROW_CCE();
|
|
921
|
+
var tmp_15 = $this.n1o_1.g1p($this);
|
|
922
|
+
tmp_14.o2q_1 = isInterface(tmp_15, Token) ? tmp_15 : THROW_CCE();
|
|
923
|
+
} else {
|
|
924
|
+
if (ensureNotNull($this.o1o_1).u1q(1) === Tokens_EOF_getInstance().c2p_1)
|
|
925
|
+
$this.u1o_1 = true;
|
|
926
|
+
$this.n1o_1.q1p($this);
|
|
927
|
+
$this.s1t();
|
|
928
|
+
}
|
|
1008
929
|
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
$this.x1l_1 = 28;
|
|
1051
|
-
var tmp_17 = $this.r1s($this.t2l_1);
|
|
1052
|
-
if (isInterface(tmp_17, Token))
|
|
1053
|
-
tmp_17;
|
|
1054
|
-
else
|
|
1055
|
-
THROW_CCE();
|
|
1056
|
-
$this.x1l_1 = 29;
|
|
1057
|
-
(_localctx instanceof OrExprContext ? _localctx : THROW_CCE()).u2k_1 = booleanExpr($this, 6);
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
}
|
|
930
|
+
break;
|
|
931
|
+
}
|
|
932
|
+
ensureNotNull($this.q1o_1).a1p_1 = ensureNotNull($this.o1o_1).h1r(-1);
|
|
933
|
+
$this.a1t_1 = 32;
|
|
934
|
+
$this.n1o_1.h1p($this);
|
|
935
|
+
_alt = ensureNotNull($this.z1s_1).t2e(ensureNotNull($this.o1o_1), 2, $this.q1o_1);
|
|
936
|
+
while (!(_alt === 2) ? !(_alt === Companion_getInstance().w21_1) : false) {
|
|
937
|
+
if (_alt === 1) {
|
|
938
|
+
if (!($this.s1o_1 == null)) {
|
|
939
|
+
$this.a20();
|
|
940
|
+
}
|
|
941
|
+
_prevctx = _localctx;
|
|
942
|
+
$this.a1t_1 = 30;
|
|
943
|
+
$this.n1o_1.h1p($this);
|
|
944
|
+
var tmp1_subject = ensureNotNull($this.z1s_1).t2e(ensureNotNull($this.o1o_1), 1, $this.q1o_1);
|
|
945
|
+
if (tmp1_subject === 1) {
|
|
946
|
+
_localctx = AndExprContext_init_$Create$(BooleanExprContext_init_$Create$(_parentctx, _parentState));
|
|
947
|
+
(_localctx instanceof AndExprContext ? _localctx : THROW_CCE()).f2s_1 = _prevctx;
|
|
948
|
+
$this.s20(_localctx, _startState, Rules_RULE_booleanExpr_getInstance().f2p_1);
|
|
949
|
+
$this.a1t_1 = 24;
|
|
950
|
+
if (!$this.e1z(ensureNotNull($this.q1o_1), 6))
|
|
951
|
+
throw new FailedPredicateException($this, 'precpred(context!!, 6)');
|
|
952
|
+
$this.a1t_1 = 25;
|
|
953
|
+
var tmp_16 = $this.u1z($this.v2s_1);
|
|
954
|
+
if (!isInterface(tmp_16, Token))
|
|
955
|
+
THROW_CCE();
|
|
956
|
+
$this.a1t_1 = 26;
|
|
957
|
+
(_localctx instanceof AndExprContext ? _localctx : THROW_CCE()).g2s_1 = booleanExpr($this, 7);
|
|
958
|
+
} else if (tmp1_subject === 2) {
|
|
959
|
+
_localctx = OrExprContext_init_$Create$(BooleanExprContext_init_$Create$(_parentctx, _parentState));
|
|
960
|
+
(_localctx instanceof OrExprContext ? _localctx : THROW_CCE()).w2r_1 = _prevctx;
|
|
961
|
+
$this.s20(_localctx, _startState, Rules_RULE_booleanExpr_getInstance().f2p_1);
|
|
962
|
+
$this.a1t_1 = 27;
|
|
963
|
+
if (!$this.e1z(ensureNotNull($this.q1o_1), 5))
|
|
964
|
+
throw new FailedPredicateException($this, 'precpred(context!!, 5)');
|
|
965
|
+
$this.a1t_1 = 28;
|
|
966
|
+
var tmp_17 = $this.u1z($this.w2s_1);
|
|
967
|
+
if (!isInterface(tmp_17, Token))
|
|
968
|
+
THROW_CCE();
|
|
969
|
+
$this.a1t_1 = 29;
|
|
970
|
+
(_localctx instanceof OrExprContext ? _localctx : THROW_CCE()).x2r_1 = booleanExpr($this, 6);
|
|
1061
971
|
}
|
|
1062
|
-
$this.x1l_1 = 34;
|
|
1063
|
-
$this.k1h_1.e1i($this);
|
|
1064
|
-
_alt = ensureNotNull($this.w1l_1).q27(ensureNotNull($this.l1h_1), 2, $this.n1h_1);
|
|
1065
972
|
}
|
|
973
|
+
$this.a1t_1 = 34;
|
|
974
|
+
$this.n1o_1.h1p($this);
|
|
975
|
+
_alt = ensureNotNull($this.z1s_1).t2e(ensureNotNull($this.o1o_1), 2, $this.q1o_1);
|
|
1066
976
|
}
|
|
1067
977
|
} catch ($p) {
|
|
1068
978
|
if ($p instanceof RecognitionException) {
|
|
1069
979
|
var re = $p;
|
|
1070
|
-
_localctx.
|
|
1071
|
-
$this.
|
|
1072
|
-
$this.
|
|
980
|
+
_localctx.b1p_1 = re;
|
|
981
|
+
$this.n1o_1.r1p($this, re);
|
|
982
|
+
$this.n1o_1.i1o($this, re);
|
|
1073
983
|
} else {
|
|
1074
984
|
throw $p;
|
|
1075
985
|
}
|
|
1076
986
|
}
|
|
1077
987
|
finally {
|
|
1078
|
-
$this.
|
|
988
|
+
$this.u20(_parentctx);
|
|
1079
989
|
}
|
|
1080
990
|
return _localctx;
|
|
1081
991
|
}
|
|
1082
|
-
protoOf(IntExprContext).
|
|
1083
|
-
return Rules_RULE_intExpr_getInstance().
|
|
992
|
+
protoOf(IntExprContext).t1v = function () {
|
|
993
|
+
return Rules_RULE_intExpr_getInstance().f2p_1;
|
|
1084
994
|
};
|
|
1085
|
-
protoOf(IntExprContext).
|
|
1086
|
-
protoOf(ParserRuleContext).
|
|
995
|
+
protoOf(IntExprContext).z2o = function (ctx) {
|
|
996
|
+
protoOf(ParserRuleContext).w20.call(this, ctx);
|
|
1087
997
|
};
|
|
1088
998
|
function IntExprContext() {
|
|
1089
999
|
}
|
|
1090
|
-
protoOf(IntAtomContext).
|
|
1000
|
+
protoOf(IntAtomContext).z1z = function (listener) {
|
|
1091
1001
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1092
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1002
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).i2o(this);
|
|
1093
1003
|
}
|
|
1094
1004
|
};
|
|
1095
|
-
protoOf(IntAtomContext).
|
|
1005
|
+
protoOf(IntAtomContext).b20 = function (listener) {
|
|
1096
1006
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1097
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1007
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).j2o(this);
|
|
1098
1008
|
}
|
|
1099
1009
|
};
|
|
1100
|
-
protoOf(IntAtomContext).
|
|
1010
|
+
protoOf(IntAtomContext).a21 = function (visitor) {
|
|
1101
1011
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
1102
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
1012
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).k2m(this);
|
|
1103
1013
|
} else {
|
|
1104
|
-
return ensureNotNull(visitor.
|
|
1014
|
+
return ensureNotNull(visitor.i21(this));
|
|
1105
1015
|
}
|
|
1106
1016
|
};
|
|
1107
1017
|
function IntAtomContext() {
|
|
1108
|
-
this.
|
|
1018
|
+
this.t2t_1 = null;
|
|
1109
1019
|
}
|
|
1110
|
-
protoOf(ParIntExprContext).
|
|
1020
|
+
protoOf(ParIntExprContext).z1z = function (listener) {
|
|
1111
1021
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1112
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1022
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).e2o(this);
|
|
1113
1023
|
}
|
|
1114
1024
|
};
|
|
1115
|
-
protoOf(ParIntExprContext).
|
|
1025
|
+
protoOf(ParIntExprContext).b20 = function (listener) {
|
|
1116
1026
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1117
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1027
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).f2o(this);
|
|
1118
1028
|
}
|
|
1119
1029
|
};
|
|
1120
|
-
protoOf(ParIntExprContext).
|
|
1030
|
+
protoOf(ParIntExprContext).a21 = function (visitor) {
|
|
1121
1031
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
1122
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
1032
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).i2m(this);
|
|
1123
1033
|
} else {
|
|
1124
|
-
return ensureNotNull(visitor.
|
|
1034
|
+
return ensureNotNull(visitor.i21(this));
|
|
1125
1035
|
}
|
|
1126
1036
|
};
|
|
1127
1037
|
function ParIntExprContext() {
|
|
1128
|
-
this.
|
|
1038
|
+
this.b2u_1 = null;
|
|
1129
1039
|
}
|
|
1130
|
-
protoOf(ValuesFuncContext).
|
|
1040
|
+
protoOf(ValuesFuncContext).z1z = function (listener) {
|
|
1131
1041
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1132
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1042
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).g2o(this);
|
|
1133
1043
|
}
|
|
1134
1044
|
};
|
|
1135
|
-
protoOf(ValuesFuncContext).
|
|
1045
|
+
protoOf(ValuesFuncContext).b20 = function (listener) {
|
|
1136
1046
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1137
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1047
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).h2o(this);
|
|
1138
1048
|
}
|
|
1139
1049
|
};
|
|
1140
|
-
protoOf(ValuesFuncContext).
|
|
1050
|
+
protoOf(ValuesFuncContext).a21 = function (visitor) {
|
|
1141
1051
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
1142
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
1052
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).j2m(this);
|
|
1143
1053
|
} else {
|
|
1144
|
-
return ensureNotNull(visitor.
|
|
1054
|
+
return ensureNotNull(visitor.i21(this));
|
|
1145
1055
|
}
|
|
1146
1056
|
};
|
|
1147
1057
|
function ValuesFuncContext() {
|
|
1148
|
-
this.
|
|
1058
|
+
this.j2u_1 = null;
|
|
1149
1059
|
}
|
|
1150
1060
|
function booleanExpr_sempred($this, _localctx, predIndex) {
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
return $this.b1s(ensureNotNull($this.n1h_1), 5);
|
|
1061
|
+
if (predIndex === 0)
|
|
1062
|
+
return $this.e1z(ensureNotNull($this.q1o_1), 6);
|
|
1063
|
+
else if (predIndex === 1)
|
|
1064
|
+
return $this.e1z(ensureNotNull($this.q1o_1), 5);
|
|
1156
1065
|
return true;
|
|
1157
1066
|
}
|
|
1158
1067
|
function Tokens_EOF_getInstance() {
|
|
@@ -1242,114 +1151,99 @@
|
|
|
1242
1151
|
function StateExpressionParser(input) {
|
|
1243
1152
|
Companion_getInstance_2();
|
|
1244
1153
|
Parser.call(this, input);
|
|
1245
|
-
this.
|
|
1246
|
-
this.
|
|
1247
|
-
this.
|
|
1248
|
-
this.
|
|
1249
|
-
this.
|
|
1250
|
-
this.
|
|
1251
|
-
this.
|
|
1252
|
-
this.
|
|
1253
|
-
this.
|
|
1254
|
-
this.
|
|
1255
|
-
this.
|
|
1256
|
-
this.
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1259
|
-
this.
|
|
1260
|
-
this.
|
|
1261
|
-
this.
|
|
1262
|
-
this.
|
|
1263
|
-
this.
|
|
1264
|
-
}
|
|
1265
|
-
protoOf(StateExpressionParser).
|
|
1266
|
-
return Companion_getInstance_2().
|
|
1267
|
-
};
|
|
1268
|
-
protoOf(StateExpressionParser).
|
|
1269
|
-
return Companion_getInstance_2().
|
|
1270
|
-
};
|
|
1271
|
-
protoOf(StateExpressionParser).
|
|
1272
|
-
return Companion_getInstance_2().
|
|
1273
|
-
};
|
|
1274
|
-
protoOf(StateExpressionParser).
|
|
1154
|
+
this.t2s_1 = Tokens_EQ_getInstance().c2p_1;
|
|
1155
|
+
this.u2s_1 = Tokens_NEQ_getInstance().c2p_1;
|
|
1156
|
+
this.v2s_1 = Tokens_AND_getInstance().c2p_1;
|
|
1157
|
+
this.w2s_1 = Tokens_OR_getInstance().c2p_1;
|
|
1158
|
+
this.x2s_1 = Tokens_NOT_getInstance().c2p_1;
|
|
1159
|
+
this.y2s_1 = Tokens_GTE_getInstance().c2p_1;
|
|
1160
|
+
this.z2s_1 = Tokens_GT_getInstance().c2p_1;
|
|
1161
|
+
this.a2t_1 = Tokens_LTE_getInstance().c2p_1;
|
|
1162
|
+
this.b2t_1 = Tokens_LT_getInstance().c2p_1;
|
|
1163
|
+
this.c2t_1 = Tokens_OPAR_getInstance().c2p_1;
|
|
1164
|
+
this.d2t_1 = Tokens_CPAR_getInstance().c2p_1;
|
|
1165
|
+
this.e2t_1 = Tokens_TRUE_getInstance().c2p_1;
|
|
1166
|
+
this.f2t_1 = Tokens_FALSE_getInstance().c2p_1;
|
|
1167
|
+
this.g2t_1 = Tokens_FUNC_ISSET_getInstance().c2p_1;
|
|
1168
|
+
this.h2t_1 = Tokens_FUNC_VALUES_getInstance().c2p_1;
|
|
1169
|
+
this.i2t_1 = Tokens_INT_getInstance().c2p_1;
|
|
1170
|
+
this.j2t_1 = Tokens_STRING_getInstance().c2p_1;
|
|
1171
|
+
this.k2t_1 = Tokens_VAR_getInstance().c2p_1;
|
|
1172
|
+
this.z1s_1 = new ParserATNSimulator(this, Companion_getInstance_2().o2p_1, Companion_getInstance_2().g2p_1, Companion_getInstance_2().h2p_1);
|
|
1173
|
+
}
|
|
1174
|
+
protoOf(StateExpressionParser).s1v = function () {
|
|
1175
|
+
return Companion_getInstance_2().i2p_1;
|
|
1176
|
+
};
|
|
1177
|
+
protoOf(StateExpressionParser).j1u = function () {
|
|
1178
|
+
return Companion_getInstance_2().o2p_1;
|
|
1179
|
+
};
|
|
1180
|
+
protoOf(StateExpressionParser).c1t = function () {
|
|
1181
|
+
return Companion_getInstance_2().l2p_1;
|
|
1182
|
+
};
|
|
1183
|
+
protoOf(StateExpressionParser).k2u = function () {
|
|
1275
1184
|
return booleanExpr(this, 0);
|
|
1276
1185
|
};
|
|
1277
|
-
protoOf(StateExpressionParser).
|
|
1278
|
-
var _localctx = IntExprContext_init_$Create$(this.
|
|
1279
|
-
this.
|
|
1186
|
+
protoOf(StateExpressionParser).l2t = function () {
|
|
1187
|
+
var _localctx = IntExprContext_init_$Create$(this.q1o_1, this.a1t_1);
|
|
1188
|
+
this.m20(_localctx, 2, Rules_RULE_intExpr_getInstance().f2p_1);
|
|
1280
1189
|
try {
|
|
1281
|
-
this.
|
|
1282
|
-
this.
|
|
1283
|
-
var tmp0_subject = ensureNotNull(this.
|
|
1284
|
-
if (tmp0_subject === this.
|
|
1190
|
+
this.a1t_1 = 43;
|
|
1191
|
+
this.n1o_1.h1p(this);
|
|
1192
|
+
var tmp0_subject = ensureNotNull(this.o1o_1).u1q(1);
|
|
1193
|
+
if (tmp0_subject === this.c2t_1) {
|
|
1285
1194
|
_localctx = ParIntExprContext_init_$Create$(_localctx);
|
|
1286
|
-
this.
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
if (isInterface(tmp_0, Token))
|
|
1299
|
-
tmp_0;
|
|
1300
|
-
else
|
|
1301
|
-
THROW_CCE();
|
|
1302
|
-
}
|
|
1303
|
-
} else if (tmp0_subject === this.e2m_1) {
|
|
1195
|
+
this.o20(_localctx, 1);
|
|
1196
|
+
this.a1t_1 = 35;
|
|
1197
|
+
var tmp = this.u1z(this.c2t_1);
|
|
1198
|
+
if (!isInterface(tmp, Token))
|
|
1199
|
+
THROW_CCE();
|
|
1200
|
+
this.a1t_1 = 36;
|
|
1201
|
+
(_localctx instanceof ParIntExprContext ? _localctx : THROW_CCE()).b2u_1 = this.l2t();
|
|
1202
|
+
this.a1t_1 = 37;
|
|
1203
|
+
var tmp_0 = this.u1z(this.d2t_1);
|
|
1204
|
+
if (!isInterface(tmp_0, Token))
|
|
1205
|
+
THROW_CCE();
|
|
1206
|
+
} else if (tmp0_subject === this.h2t_1) {
|
|
1304
1207
|
_localctx = ValuesFuncContext_init_$Create$(_localctx);
|
|
1305
|
-
this.
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
if (isInterface(tmp_4, Token))
|
|
1320
|
-
tmp_4;
|
|
1321
|
-
else
|
|
1322
|
-
THROW_CCE();
|
|
1323
|
-
}
|
|
1324
|
-
} else if (tmp0_subject === this.f2m_1) {
|
|
1208
|
+
this.o20(_localctx, 2);
|
|
1209
|
+
this.a1t_1 = 39;
|
|
1210
|
+
var tmp_1 = this.u1z(this.h2t_1);
|
|
1211
|
+
if (!isInterface(tmp_1, Token))
|
|
1212
|
+
THROW_CCE();
|
|
1213
|
+
this.a1t_1 = 40;
|
|
1214
|
+
var tmp_2 = _localctx instanceof ValuesFuncContext ? _localctx : THROW_CCE();
|
|
1215
|
+
var tmp_3 = this.u1z(this.k2t_1);
|
|
1216
|
+
tmp_2.j2u_1 = isInterface(tmp_3, Token) ? tmp_3 : THROW_CCE();
|
|
1217
|
+
this.a1t_1 = 41;
|
|
1218
|
+
var tmp_4 = this.u1z(this.d2t_1);
|
|
1219
|
+
if (!isInterface(tmp_4, Token))
|
|
1220
|
+
THROW_CCE();
|
|
1221
|
+
} else if (tmp0_subject === this.i2t_1) {
|
|
1325
1222
|
_localctx = IntAtomContext_init_$Create$(_localctx);
|
|
1326
|
-
this.
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
tmp_5.q2m_1 = isInterface(tmp_6, Token) ? tmp_6 : THROW_CCE();
|
|
1332
|
-
}
|
|
1223
|
+
this.o20(_localctx, 3);
|
|
1224
|
+
this.a1t_1 = 42;
|
|
1225
|
+
var tmp_5 = _localctx instanceof IntAtomContext ? _localctx : THROW_CCE();
|
|
1226
|
+
var tmp_6 = this.u1z(this.i2t_1);
|
|
1227
|
+
tmp_5.t2t_1 = isInterface(tmp_6, Token) ? tmp_6 : THROW_CCE();
|
|
1333
1228
|
} else
|
|
1334
1229
|
throw new NoViableAltException(this);
|
|
1335
1230
|
} catch ($p) {
|
|
1336
1231
|
if ($p instanceof RecognitionException) {
|
|
1337
1232
|
var re = $p;
|
|
1338
|
-
_localctx.
|
|
1339
|
-
this.
|
|
1340
|
-
this.
|
|
1233
|
+
_localctx.b1p_1 = re;
|
|
1234
|
+
this.n1o_1.r1p(this, re);
|
|
1235
|
+
this.n1o_1.i1o(this, re);
|
|
1341
1236
|
} else {
|
|
1342
1237
|
throw $p;
|
|
1343
1238
|
}
|
|
1344
1239
|
}
|
|
1345
1240
|
finally {
|
|
1346
|
-
this.
|
|
1241
|
+
this.n20();
|
|
1347
1242
|
}
|
|
1348
1243
|
return _localctx;
|
|
1349
1244
|
};
|
|
1350
|
-
protoOf(StateExpressionParser).
|
|
1351
|
-
|
|
1352
|
-
if (tmp0_subject === 0) {
|
|
1245
|
+
protoOf(StateExpressionParser).d1z = function (_localctx, ruleIndex, predIndex) {
|
|
1246
|
+
if (ruleIndex === 0) {
|
|
1353
1247
|
return booleanExpr_sempred(this, _localctx instanceof BooleanExprContext ? _localctx : THROW_CCE(), predIndex);
|
|
1354
1248
|
}
|
|
1355
1249
|
return true;
|
|
@@ -1357,60 +1251,51 @@
|
|
|
1357
1251
|
function StateExpressionVisitor() {
|
|
1358
1252
|
}
|
|
1359
1253
|
function Expression(expr) {
|
|
1360
|
-
this.
|
|
1254
|
+
this.l2u_1 = expr;
|
|
1361
1255
|
}
|
|
1362
|
-
protoOf(Expression).
|
|
1363
|
-
return !(this.
|
|
1256
|
+
protoOf(Expression).m2u = function () {
|
|
1257
|
+
return !(this.l2u_1 == null);
|
|
1364
1258
|
};
|
|
1365
|
-
protoOf(Expression).
|
|
1366
|
-
var tmp$ret$2;
|
|
1259
|
+
protoOf(Expression).n2u = function (state) {
|
|
1367
1260
|
// Inline function 'kotlin.checkNotNull' call
|
|
1368
|
-
var tmp0_checkNotNull = this.
|
|
1261
|
+
var tmp0_checkNotNull = this.l2u_1;
|
|
1369
1262
|
// Inline function 'kotlin.contracts.contract' call
|
|
1370
1263
|
var tmp$ret$1;
|
|
1371
1264
|
$l$block: {
|
|
1372
1265
|
// Inline function 'kotlin.checkNotNull' call
|
|
1373
1266
|
// Inline function 'kotlin.contracts.contract' call
|
|
1374
1267
|
if (tmp0_checkNotNull == null) {
|
|
1375
|
-
var tmp$ret$0;
|
|
1376
1268
|
// Inline function 'kotlin.checkNotNull.<anonymous>' call
|
|
1377
|
-
|
|
1378
|
-
var message = tmp$ret$0;
|
|
1269
|
+
var message = 'Required value was null.';
|
|
1379
1270
|
throw IllegalStateException_init_$Create$(toString(message));
|
|
1380
1271
|
} else {
|
|
1381
1272
|
tmp$ret$1 = tmp0_checkNotNull;
|
|
1382
1273
|
break $l$block;
|
|
1383
1274
|
}
|
|
1384
1275
|
}
|
|
1385
|
-
|
|
1386
|
-
return tmp$ret$2.x1t((new StateExpressionEvaluator(state)).m2n_1);
|
|
1276
|
+
return tmp$ret$1.a21((new StateExpressionEvaluator(state)).p2u_1);
|
|
1387
1277
|
};
|
|
1388
|
-
protoOf(Expression).
|
|
1389
|
-
var tmp$ret$0;
|
|
1278
|
+
protoOf(Expression).r2u = function () {
|
|
1390
1279
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1391
|
-
var tmp0_safe_receiver = this.
|
|
1280
|
+
var tmp0_safe_receiver = this.l2u_1;
|
|
1392
1281
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : vars(tmp0_safe_receiver);
|
|
1393
|
-
var
|
|
1394
|
-
|
|
1395
|
-
tmp$ret$0 = tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
1396
|
-
return tmp$ret$0;
|
|
1282
|
+
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : toSet(tmp1_safe_receiver);
|
|
1283
|
+
return tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
1397
1284
|
};
|
|
1398
1285
|
function toExpressionOrNull(_this__u8e3s4) {
|
|
1399
1286
|
var tmp;
|
|
1400
|
-
var tmp$ret$0;
|
|
1401
1287
|
// Inline function 'kotlin.text.isNullOrBlank' call
|
|
1402
1288
|
// Inline function 'kotlin.contracts.contract' call
|
|
1403
|
-
|
|
1404
|
-
if (tmp$ret$0) {
|
|
1289
|
+
if (_this__u8e3s4 == null ? true : isBlank(_this__u8e3s4)) {
|
|
1405
1290
|
tmp = null;
|
|
1406
1291
|
} else {
|
|
1407
1292
|
var tmp_0;
|
|
1408
1293
|
try {
|
|
1409
|
-
var tokens = new CommonTokenStream(new StateExpressionLexer(CharStreams_getInstance().
|
|
1294
|
+
var tokens = new CommonTokenStream(new StateExpressionLexer(CharStreams_getInstance().a1o(_this__u8e3s4)));
|
|
1410
1295
|
var parser = new StateExpressionParser(tokens);
|
|
1411
|
-
parser.
|
|
1412
|
-
var expr = parser.
|
|
1413
|
-
tmp_0 = tokens.k(tokens.
|
|
1296
|
+
parser.n1o_1 = new BailErrorStrategy();
|
|
1297
|
+
var expr = parser.k2u();
|
|
1298
|
+
tmp_0 = tokens.k(tokens.m1q()).z1q() === Companion_getInstance_0().d1r_1 ? expr : null;
|
|
1414
1299
|
} catch ($p) {
|
|
1415
1300
|
var tmp_1;
|
|
1416
1301
|
if ($p instanceof ParseCancellationException) {
|
|
@@ -1426,164 +1311,139 @@
|
|
|
1426
1311
|
return tmp;
|
|
1427
1312
|
}
|
|
1428
1313
|
function vars(_this__u8e3s4) {
|
|
1429
|
-
var tmp$ret$5;
|
|
1430
1314
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1431
|
-
var tmp$ret$0;
|
|
1432
1315
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1433
|
-
var
|
|
1434
|
-
var
|
|
1435
|
-
tmp$ret$0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1436
|
-
var tmp2_flatMap = tmp$ret$0;
|
|
1437
|
-
var tmp$ret$4;
|
|
1316
|
+
var tmp0_elvis_lhs = _this__u8e3s4.y1o_1;
|
|
1317
|
+
var tmp1_flatMap = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1438
1318
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1439
|
-
var
|
|
1440
|
-
var tmp0_iterator =
|
|
1319
|
+
var tmp0_flatMapTo = ArrayList_init_$Create$_0();
|
|
1320
|
+
var tmp0_iterator = tmp1_flatMap.f();
|
|
1441
1321
|
while (tmp0_iterator.g()) {
|
|
1442
1322
|
var element = tmp0_iterator.h();
|
|
1443
|
-
var tmp$ret$3;
|
|
1444
1323
|
// Inline function 'org.cru.godtools.shared.tool.parser.expressions.vars.<anonymous>' call
|
|
1445
|
-
var tmp0_subject = element;
|
|
1446
1324
|
var tmp;
|
|
1447
|
-
if (isInterface(
|
|
1448
|
-
var tmp1_safe_receiver = element.
|
|
1325
|
+
if (isInterface(element, TerminalNode)) {
|
|
1326
|
+
var tmp1_safe_receiver = element.n2l();
|
|
1449
1327
|
var tmp_0;
|
|
1450
1328
|
if (tmp1_safe_receiver == null) {
|
|
1451
1329
|
tmp_0 = null;
|
|
1452
1330
|
} else {
|
|
1453
|
-
var tmp$ret$2;
|
|
1454
1331
|
// Inline function 'kotlin.takeIf' call
|
|
1455
1332
|
// Inline function 'kotlin.contracts.contract' call
|
|
1456
1333
|
var tmp_1;
|
|
1457
|
-
var tmp$ret$1;
|
|
1458
1334
|
// Inline function 'org.cru.godtools.shared.tool.parser.expressions.vars.<anonymous>.<anonymous>' call
|
|
1459
|
-
|
|
1460
|
-
if (tmp$ret$1) {
|
|
1335
|
+
if (tmp1_safe_receiver.z1q() === Tokens_VAR_getInstance().c2p_1) {
|
|
1461
1336
|
tmp_1 = tmp1_safe_receiver;
|
|
1462
1337
|
} else {
|
|
1463
1338
|
tmp_1 = null;
|
|
1464
1339
|
}
|
|
1465
|
-
|
|
1466
|
-
tmp_0 = tmp$ret$2;
|
|
1340
|
+
tmp_0 = tmp_1;
|
|
1467
1341
|
}
|
|
1468
1342
|
var tmp2_safe_receiver = tmp_0;
|
|
1469
|
-
tmp = listOfNotNull(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1343
|
+
tmp = listOfNotNull(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.q1r());
|
|
1470
1344
|
} else {
|
|
1471
|
-
if (
|
|
1345
|
+
if (element instanceof ParserRuleContext) {
|
|
1472
1346
|
tmp = vars(element);
|
|
1473
1347
|
} else {
|
|
1474
1348
|
tmp = emptyList();
|
|
1475
1349
|
}
|
|
1476
1350
|
}
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
addAll(tmp1_flatMapTo, list);
|
|
1351
|
+
var list = tmp;
|
|
1352
|
+
addAll(tmp0_flatMapTo, list);
|
|
1480
1353
|
}
|
|
1481
|
-
|
|
1482
|
-
tmp$ret$5 = tmp$ret$4;
|
|
1483
|
-
return tmp$ret$5;
|
|
1354
|
+
return tmp0_flatMapTo;
|
|
1484
1355
|
}
|
|
1485
1356
|
function StateExpressionEvaluator$booleanExpr$1(this$0) {
|
|
1486
|
-
this.
|
|
1357
|
+
this.s2u_1 = this$0;
|
|
1487
1358
|
StateExpressionBaseVisitor.call(this);
|
|
1488
1359
|
}
|
|
1489
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1490
|
-
return ensureNotNull(ctx.
|
|
1360
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).b2m = function (ctx) {
|
|
1361
|
+
return ensureNotNull(ctx.g2q_1).a21(this);
|
|
1491
1362
|
};
|
|
1492
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1493
|
-
return !ensureNotNull(ctx.
|
|
1363
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).e2m = function (ctx) {
|
|
1364
|
+
return !ensureNotNull(ctx.g2r_1).a21(this);
|
|
1494
1365
|
};
|
|
1495
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1496
|
-
return ensureNotNull(ctx.
|
|
1366
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).g2m = function (ctx) {
|
|
1367
|
+
return ensureNotNull(ctx.w2r_1).a21(this) ? true : ensureNotNull(ctx.x2r_1).a21(this);
|
|
1497
1368
|
};
|
|
1498
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1499
|
-
return ensureNotNull(ctx.
|
|
1369
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).h2m = function (ctx) {
|
|
1370
|
+
return ensureNotNull(ctx.f2s_1).a21(this) ? ensureNotNull(ctx.g2s_1).a21(this) : false;
|
|
1500
1371
|
};
|
|
1501
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1502
|
-
var tmp0_subject = ensureNotNull(ctx.
|
|
1372
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).c2m = function (ctx) {
|
|
1373
|
+
var tmp0_subject = ensureNotNull(ctx.o2q_1).z1q();
|
|
1503
1374
|
var tmp;
|
|
1504
|
-
if (tmp0_subject === Tokens_TRUE_getInstance().
|
|
1375
|
+
if (tmp0_subject === Tokens_TRUE_getInstance().c2p_1) {
|
|
1505
1376
|
tmp = true;
|
|
1506
|
-
} else if (tmp0_subject === Tokens_FALSE_getInstance().
|
|
1377
|
+
} else if (tmp0_subject === Tokens_FALSE_getInstance().c2p_1) {
|
|
1507
1378
|
tmp = false;
|
|
1508
1379
|
} else {
|
|
1509
1380
|
throw IllegalStateException_init_$Create$_0();
|
|
1510
1381
|
}
|
|
1511
1382
|
return tmp;
|
|
1512
1383
|
};
|
|
1513
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1514
|
-
var varName = ensureNotNull(ensureNotNull(ctx.
|
|
1515
|
-
var tmp$ret$3;
|
|
1384
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).d2m = function (ctx) {
|
|
1385
|
+
var varName = ensureNotNull(ensureNotNull(ctx.w2q_1).q1r());
|
|
1516
1386
|
// Inline function 'kotlin.run' call
|
|
1517
|
-
var tmp0_run = ensureNotNull(ensureNotNull(ctx.
|
|
1387
|
+
var tmp0_run = ensureNotNull(ensureNotNull(ctx.y2q_1).q1r());
|
|
1518
1388
|
// Inline function 'kotlin.contracts.contract' call
|
|
1519
|
-
var tmp$ret$2;
|
|
1520
1389
|
// Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.<no name provided>.visitEqExpr.<anonymous>' call
|
|
1521
|
-
var tmp$ret$1;
|
|
1522
1390
|
// Inline function 'kotlin.text.substring' call
|
|
1523
1391
|
var tmp0_substring = tmp0_run.length - 1 | 0;
|
|
1524
|
-
var tmp$ret$0;
|
|
1525
1392
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
tmp$ret$2 = tmp$ret$1;
|
|
1529
|
-
tmp$ret$3 = tmp$ret$2;
|
|
1530
|
-
var value = tmp$ret$3;
|
|
1531
|
-
var tmp0_subject = ensureNotNull(ctx.u2j_1).w1j();
|
|
1393
|
+
var value = tmp0_run.substring(1, tmp0_substring);
|
|
1394
|
+
var tmp0_subject = ensureNotNull(ctx.x2q_1).z1q();
|
|
1532
1395
|
var tmp;
|
|
1533
|
-
if (tmp0_subject === Tokens_EQ_getInstance().
|
|
1534
|
-
tmp = this.
|
|
1535
|
-
} else if (tmp0_subject === Tokens_NEQ_getInstance().
|
|
1536
|
-
tmp = !this.
|
|
1396
|
+
if (tmp0_subject === Tokens_EQ_getInstance().c2p_1) {
|
|
1397
|
+
tmp = this.s2u_1.o2u_1.s1g(varName).y(value);
|
|
1398
|
+
} else if (tmp0_subject === Tokens_NEQ_getInstance().c2p_1) {
|
|
1399
|
+
tmp = !this.s2u_1.o2u_1.s1g(varName).y(value);
|
|
1537
1400
|
} else {
|
|
1538
1401
|
throw IllegalStateException_init_$Create$_0();
|
|
1539
1402
|
}
|
|
1540
1403
|
return tmp;
|
|
1541
1404
|
};
|
|
1542
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1543
|
-
var left = ensureNotNull(ctx.
|
|
1544
|
-
var right = ensureNotNull(ctx.
|
|
1545
|
-
var tmp0_subject = ensureNotNull(ctx.
|
|
1405
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).a2m = function (ctx) {
|
|
1406
|
+
var left = ensureNotNull(ctx.w2p_1).a21(this.s2u_1.q2u_1);
|
|
1407
|
+
var right = ensureNotNull(ctx.y2p_1).a21(this.s2u_1.q2u_1);
|
|
1408
|
+
var tmp0_subject = ensureNotNull(ctx.x2p_1).z1q();
|
|
1546
1409
|
var tmp;
|
|
1547
|
-
if (tmp0_subject === Tokens_EQ_getInstance().
|
|
1410
|
+
if (tmp0_subject === Tokens_EQ_getInstance().c2p_1) {
|
|
1548
1411
|
tmp = left === right;
|
|
1549
|
-
} else if (tmp0_subject === Tokens_NEQ_getInstance().
|
|
1412
|
+
} else if (tmp0_subject === Tokens_NEQ_getInstance().c2p_1) {
|
|
1550
1413
|
tmp = !(left === right);
|
|
1551
|
-
} else if (tmp0_subject === Tokens_GT_getInstance().
|
|
1414
|
+
} else if (tmp0_subject === Tokens_GT_getInstance().c2p_1) {
|
|
1552
1415
|
tmp = left > right;
|
|
1553
|
-
} else if (tmp0_subject === Tokens_GTE_getInstance().
|
|
1416
|
+
} else if (tmp0_subject === Tokens_GTE_getInstance().c2p_1) {
|
|
1554
1417
|
tmp = left >= right;
|
|
1555
|
-
} else if (tmp0_subject === Tokens_LT_getInstance().
|
|
1418
|
+
} else if (tmp0_subject === Tokens_LT_getInstance().c2p_1) {
|
|
1556
1419
|
tmp = left < right;
|
|
1557
|
-
} else if (tmp0_subject === Tokens_LTE_getInstance().
|
|
1420
|
+
} else if (tmp0_subject === Tokens_LTE_getInstance().c2p_1) {
|
|
1558
1421
|
tmp = left <= right;
|
|
1559
1422
|
} else {
|
|
1560
1423
|
throw IllegalStateException_init_$Create$_0();
|
|
1561
1424
|
}
|
|
1562
1425
|
return tmp;
|
|
1563
1426
|
};
|
|
1564
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1565
|
-
var tmp$ret$0;
|
|
1427
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).f2m = function (ctx) {
|
|
1566
1428
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1567
|
-
|
|
1568
|
-
tmp$ret$0 = !tmp0_isNotEmpty.m();
|
|
1569
|
-
return tmp$ret$0;
|
|
1429
|
+
return !this.s2u_1.o2u_1.s1g(ensureNotNull(ensureNotNull(ctx.o2r_1).q1r())).m();
|
|
1570
1430
|
};
|
|
1571
1431
|
function StateExpressionEvaluator$intExpr$1(this$0) {
|
|
1572
|
-
this.
|
|
1432
|
+
this.t2u_1 = this$0;
|
|
1573
1433
|
StateExpressionBaseVisitor.call(this);
|
|
1574
1434
|
}
|
|
1575
|
-
protoOf(StateExpressionEvaluator$intExpr$1).
|
|
1576
|
-
return toInt(ensureNotNull(ensureNotNull(ctx.
|
|
1435
|
+
protoOf(StateExpressionEvaluator$intExpr$1).k2m = function (ctx) {
|
|
1436
|
+
return toInt(ensureNotNull(ensureNotNull(ctx.t2t_1).q1r()));
|
|
1577
1437
|
};
|
|
1578
|
-
protoOf(StateExpressionEvaluator$intExpr$1).
|
|
1579
|
-
return this.
|
|
1438
|
+
protoOf(StateExpressionEvaluator$intExpr$1).j2m = function (ctx) {
|
|
1439
|
+
return this.t2u_1.o2u_1.s1g(ensureNotNull(ensureNotNull(ctx.j2u_1).q1r())).i();
|
|
1580
1440
|
};
|
|
1581
1441
|
function StateExpressionEvaluator(state) {
|
|
1582
|
-
this.
|
|
1442
|
+
this.o2u_1 = state;
|
|
1583
1443
|
var tmp = this;
|
|
1584
|
-
tmp.
|
|
1444
|
+
tmp.p2u_1 = new StateExpressionEvaluator$booleanExpr$1(this);
|
|
1585
1445
|
var tmp_0 = this;
|
|
1586
|
-
tmp_0.
|
|
1446
|
+
tmp_0.q2u_1 = new StateExpressionEvaluator$intExpr$1(this);
|
|
1587
1447
|
}
|
|
1588
1448
|
//region block: exports
|
|
1589
1449
|
_.$_$ = _.$_$ || {};
|
|
@@ -1592,4 +1452,4 @@
|
|
|
1592
1452
|
return _;
|
|
1593
1453
|
}));
|
|
1594
1454
|
|
|
1595
|
-
//# sourceMappingURL=kotlin-mpp-godtools-tool-parser-parser-expressions.js.map
|
|
1455
|
+
//# sourceMappingURL=kotlin-mpp-godtools-tool-parser-module-parser-expressions.js.map
|