@cruglobal/godtools-shared 0.9.3-SNAPSHOT.1443 → 0.9.3-SNAPSHOT.1444
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/Napier-napier-js-ir.js +26 -26
- package/antlr-kotlin-antlr-kotlin-runtime-js-ir.js +2881 -2881
- package/colormath-root-colormath.js +622 -622
- package/fluid-locale.js +125 -125
- package/kotlin-kotlin-stdlib.js +3 -3
- package/kotlin-kotlin-stdlib.js.map +1 -1
- package/{kotlin-kotlinx-atomicfu-runtime-js-ir.js → kotlin-kotlinx-atomicfu-runtime.js} +2 -2
- package/kotlin-mpp-godtools-tool-parser-module-parser-expressions.js +393 -393
- package/kotlin-mpp-godtools-tool-parser-module-parser.js +1888 -1888
- package/kotlin-mpp-godtools-tool-parser-module-state.js +105 -105
- package/kotlin-mpp-godtools-tool-parser-module-state.js.map +1 -1
- package/{88b0986a7186d029-atomicfu-js-ir.js → kotlinx-atomicfu.js} +3 -3
- package/kotlinx-atomicfu.js.map +1 -0
- package/{kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js → kotlinx-coroutines-core.js} +307 -288
- package/kotlinx-coroutines-core.js.map +1 -0
- package/package.json +1 -1
- package/88b0986a7186d029-atomicfu-js-ir.js.map +0 -1
- package/kotlinx.coroutines-kotlinx-coroutines-core-js-ir.js.map +0 -1
- /package/{kotlin-kotlinx-atomicfu-runtime-js-ir.js.map → kotlin-kotlinx-atomicfu-runtime.js.map} +0 -0
|
@@ -104,38 +104,38 @@
|
|
|
104
104
|
function StateExpressionBaseVisitor() {
|
|
105
105
|
AbstractParseTreeVisitor.call(this);
|
|
106
106
|
}
|
|
107
|
-
protoOf(StateExpressionBaseVisitor).t2n = function (ctx) {
|
|
108
|
-
return ensureNotNull(ensureNotNull(this).b23(ctx));
|
|
109
|
-
};
|
|
110
107
|
protoOf(StateExpressionBaseVisitor).u2n = function (ctx) {
|
|
111
|
-
return ensureNotNull(ensureNotNull(this).
|
|
108
|
+
return ensureNotNull(ensureNotNull(this).c23(ctx));
|
|
112
109
|
};
|
|
113
110
|
protoOf(StateExpressionBaseVisitor).v2n = function (ctx) {
|
|
114
|
-
return ensureNotNull(ensureNotNull(this).
|
|
111
|
+
return ensureNotNull(ensureNotNull(this).c23(ctx));
|
|
115
112
|
};
|
|
116
113
|
protoOf(StateExpressionBaseVisitor).w2n = function (ctx) {
|
|
117
|
-
return ensureNotNull(ensureNotNull(this).
|
|
114
|
+
return ensureNotNull(ensureNotNull(this).c23(ctx));
|
|
118
115
|
};
|
|
119
116
|
protoOf(StateExpressionBaseVisitor).x2n = function (ctx) {
|
|
120
|
-
return ensureNotNull(ensureNotNull(this).
|
|
117
|
+
return ensureNotNull(ensureNotNull(this).c23(ctx));
|
|
121
118
|
};
|
|
122
119
|
protoOf(StateExpressionBaseVisitor).y2n = function (ctx) {
|
|
123
|
-
return ensureNotNull(ensureNotNull(this).
|
|
120
|
+
return ensureNotNull(ensureNotNull(this).c23(ctx));
|
|
124
121
|
};
|
|
125
122
|
protoOf(StateExpressionBaseVisitor).z2n = function (ctx) {
|
|
126
|
-
return ensureNotNull(ensureNotNull(this).
|
|
123
|
+
return ensureNotNull(ensureNotNull(this).c23(ctx));
|
|
127
124
|
};
|
|
128
125
|
protoOf(StateExpressionBaseVisitor).a2o = function (ctx) {
|
|
129
|
-
return ensureNotNull(ensureNotNull(this).
|
|
126
|
+
return ensureNotNull(ensureNotNull(this).c23(ctx));
|
|
130
127
|
};
|
|
131
128
|
protoOf(StateExpressionBaseVisitor).b2o = function (ctx) {
|
|
132
|
-
return ensureNotNull(ensureNotNull(this).
|
|
129
|
+
return ensureNotNull(ensureNotNull(this).c23(ctx));
|
|
133
130
|
};
|
|
134
131
|
protoOf(StateExpressionBaseVisitor).c2o = function (ctx) {
|
|
135
|
-
return ensureNotNull(ensureNotNull(this).
|
|
132
|
+
return ensureNotNull(ensureNotNull(this).c23(ctx));
|
|
136
133
|
};
|
|
137
134
|
protoOf(StateExpressionBaseVisitor).d2o = function (ctx) {
|
|
138
|
-
return ensureNotNull(ensureNotNull(this).
|
|
135
|
+
return ensureNotNull(ensureNotNull(this).c23(ctx));
|
|
136
|
+
};
|
|
137
|
+
protoOf(StateExpressionBaseVisitor).e2o = function (ctx) {
|
|
138
|
+
return ensureNotNull(ensureNotNull(this).c23(ctx));
|
|
139
139
|
};
|
|
140
140
|
var Channels_DEFAULT_TOKEN_CHANNEL_instance;
|
|
141
141
|
var Channels_HIDDEN_instance;
|
|
@@ -197,27 +197,27 @@
|
|
|
197
197
|
}
|
|
198
198
|
function Companion() {
|
|
199
199
|
Companion_instance_0 = this;
|
|
200
|
-
this.
|
|
201
|
-
this.
|
|
202
|
-
this.
|
|
200
|
+
this.g2o_1 = new PredictionContextCache();
|
|
201
|
+
this.h2o_1 = listOf([null, "'=='", "'!='", "'&&'", "'||'", "'!'", "'>='", "'>'", "'<='", "'<'", "'('", "')'", "'true'", "'false'"]);
|
|
202
|
+
this.i2o_1 = listOf([null, 'EQ', 'NEQ', 'AND', 'OR', 'NOT', 'GTE', 'GT', 'LTE', 'LT', 'OPAR', 'CPAR', 'TRUE', 'FALSE', 'FUNC_ISSET', 'FUNC_VALUES', 'INT', 'STRING', 'VAR']);
|
|
203
203
|
var tmp = this;
|
|
204
204
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
205
|
-
var this_0 = this.
|
|
205
|
+
var this_0 = this.h2o_1;
|
|
206
206
|
var tmp_0 = copyToArray(this_0);
|
|
207
207
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
208
|
-
var this_1 = this.
|
|
208
|
+
var this_1 = this.i2o_1;
|
|
209
209
|
var tmp$ret$1 = copyToArray(this_1);
|
|
210
|
-
tmp.
|
|
210
|
+
tmp.j2o_1 = new VocabularyImpl(tmp_0, tmp$ret$1);
|
|
211
211
|
var tmp_1 = this;
|
|
212
212
|
var tmp_2 = 0;
|
|
213
|
-
var tmp_3 = this.
|
|
213
|
+
var tmp_3 = this.i2o_1.l();
|
|
214
214
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
215
215
|
var tmp_4 = fillArrayVal(Array(tmp_3), null);
|
|
216
216
|
while (tmp_2 < tmp_3) {
|
|
217
217
|
var tmp_5 = tmp_2;
|
|
218
|
-
var el = Companion_getInstance_0().
|
|
218
|
+
var el = Companion_getInstance_0().j2o_1.o23(tmp_5);
|
|
219
219
|
if (el == null) {
|
|
220
|
-
el = Companion_getInstance_0().
|
|
220
|
+
el = Companion_getInstance_0().j2o_1.p23(tmp_5);
|
|
221
221
|
}
|
|
222
222
|
if (el == null) {
|
|
223
223
|
el = '<INVALID>';
|
|
@@ -225,20 +225,20 @@
|
|
|
225
225
|
tmp_4[tmp_5] = el;
|
|
226
226
|
tmp_2 = tmp_2 + 1 | 0;
|
|
227
227
|
}
|
|
228
|
-
tmp_1.
|
|
229
|
-
this.
|
|
230
|
-
this.
|
|
228
|
+
tmp_1.k2o_1 = tmp_4;
|
|
229
|
+
this.l2o_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.m2o_1 = (new ATNDeserializer()).z27(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"));
|
|
231
231
|
var tmp_6 = this;
|
|
232
232
|
var tmp_7 = 0;
|
|
233
|
-
var tmp_8 = this.
|
|
233
|
+
var tmp_8 = this.m2o_1.r23();
|
|
234
234
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
235
235
|
var tmp_9 = fillArrayVal(Array(tmp_8), null);
|
|
236
236
|
while (tmp_7 < tmp_8) {
|
|
237
237
|
var tmp_10 = tmp_7;
|
|
238
|
-
tmp_9[tmp_10] = new DFA(ensureNotNull(Companion_getInstance_0().
|
|
238
|
+
tmp_9[tmp_10] = new DFA(ensureNotNull(Companion_getInstance_0().m2o_1.f24(tmp_10)), tmp_10);
|
|
239
239
|
tmp_7 = tmp_7 + 1 | 0;
|
|
240
240
|
}
|
|
241
|
-
tmp_6.
|
|
241
|
+
tmp_6.f2o_1 = tmp_9;
|
|
242
242
|
}
|
|
243
243
|
var Companion_instance_0;
|
|
244
244
|
function Companion_getInstance_0() {
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
}
|
|
249
249
|
function Channels(name, ordinal, id) {
|
|
250
250
|
Enum.call(this, name, ordinal);
|
|
251
|
-
this.
|
|
251
|
+
this.p2o_1 = id;
|
|
252
252
|
}
|
|
253
253
|
function Rules(name, ordinal) {
|
|
254
254
|
Enum.call(this, name, ordinal);
|
|
@@ -336,7 +336,7 @@
|
|
|
336
336
|
function StateExpressionLexer(input) {
|
|
337
337
|
Companion_getInstance_0();
|
|
338
338
|
Lexer_init_$Init$(input, this);
|
|
339
|
-
this.
|
|
339
|
+
this.g2p_1 = input;
|
|
340
340
|
var tmp = this;
|
|
341
341
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
342
342
|
// Inline function 'kotlin.collections.map' call
|
|
@@ -351,13 +351,13 @@
|
|
|
351
351
|
var tmp$ret$0 = item.z8_1;
|
|
352
352
|
destination.p(tmp$ret$0);
|
|
353
353
|
}
|
|
354
|
-
tmp.
|
|
354
|
+
tmp.h2p_1 = copyToArray(destination);
|
|
355
355
|
var tmp_0 = this;
|
|
356
|
-
var tmp_1 = Companion_getInstance_0().
|
|
357
|
-
var tmp_2 = Companion_getInstance_0().
|
|
358
|
-
tmp_0.
|
|
356
|
+
var tmp_1 = Companion_getInstance_0().m2o_1;
|
|
357
|
+
var tmp_2 = Companion_getInstance_0().f2o_1;
|
|
358
|
+
tmp_0.t1u_1 = new LexerATNSimulator(this, tmp_1, isArray(tmp_2) ? tmp_2 : THROW_CCE(), Companion_getInstance_0().g2o_1);
|
|
359
359
|
}
|
|
360
|
-
protoOf(StateExpressionLexer).
|
|
360
|
+
protoOf(StateExpressionLexer).m1x = function () {
|
|
361
361
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
362
362
|
// Inline function 'kotlin.collections.map' call
|
|
363
363
|
var this_0 = values_0();
|
|
@@ -374,11 +374,11 @@
|
|
|
374
374
|
}
|
|
375
375
|
return copyToArray(destination);
|
|
376
376
|
};
|
|
377
|
-
protoOf(StateExpressionLexer).
|
|
378
|
-
return Companion_getInstance_0().
|
|
377
|
+
protoOf(StateExpressionLexer).d1w = function () {
|
|
378
|
+
return Companion_getInstance_0().m2o_1;
|
|
379
379
|
};
|
|
380
|
-
protoOf(StateExpressionLexer).
|
|
381
|
-
return Companion_getInstance_0().
|
|
380
|
+
protoOf(StateExpressionLexer).w1u = function () {
|
|
381
|
+
return Companion_getInstance_0().j2o_1;
|
|
382
382
|
};
|
|
383
383
|
function StateExpressionListener() {
|
|
384
384
|
}
|
|
@@ -455,7 +455,7 @@
|
|
|
455
455
|
function IntCmpExprContext_init_$Init$(ctx, $this) {
|
|
456
456
|
BooleanExprContext_init_$Init$_0($this);
|
|
457
457
|
IntCmpExprContext.call($this);
|
|
458
|
-
$this.
|
|
458
|
+
$this.l2q(ctx);
|
|
459
459
|
return $this;
|
|
460
460
|
}
|
|
461
461
|
function IntCmpExprContext_init_$Create$(ctx) {
|
|
@@ -464,7 +464,7 @@
|
|
|
464
464
|
function ParExprContext_init_$Init$(ctx, $this) {
|
|
465
465
|
BooleanExprContext_init_$Init$_0($this);
|
|
466
466
|
ParExprContext.call($this);
|
|
467
|
-
$this.
|
|
467
|
+
$this.l2q(ctx);
|
|
468
468
|
return $this;
|
|
469
469
|
}
|
|
470
470
|
function ParExprContext_init_$Create$(ctx) {
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
function BooleanAtomContext_init_$Init$(ctx, $this) {
|
|
474
474
|
BooleanExprContext_init_$Init$_0($this);
|
|
475
475
|
BooleanAtomContext.call($this);
|
|
476
|
-
$this.
|
|
476
|
+
$this.l2q(ctx);
|
|
477
477
|
return $this;
|
|
478
478
|
}
|
|
479
479
|
function BooleanAtomContext_init_$Create$(ctx) {
|
|
@@ -482,7 +482,7 @@
|
|
|
482
482
|
function EqExprContext_init_$Init$(ctx, $this) {
|
|
483
483
|
BooleanExprContext_init_$Init$_0($this);
|
|
484
484
|
EqExprContext.call($this);
|
|
485
|
-
$this.
|
|
485
|
+
$this.l2q(ctx);
|
|
486
486
|
return $this;
|
|
487
487
|
}
|
|
488
488
|
function EqExprContext_init_$Create$(ctx) {
|
|
@@ -491,7 +491,7 @@
|
|
|
491
491
|
function NotExprContext_init_$Init$(ctx, $this) {
|
|
492
492
|
BooleanExprContext_init_$Init$_0($this);
|
|
493
493
|
NotExprContext.call($this);
|
|
494
|
-
$this.
|
|
494
|
+
$this.l2q(ctx);
|
|
495
495
|
return $this;
|
|
496
496
|
}
|
|
497
497
|
function NotExprContext_init_$Create$(ctx) {
|
|
@@ -500,7 +500,7 @@
|
|
|
500
500
|
function IsSetFuncContext_init_$Init$(ctx, $this) {
|
|
501
501
|
BooleanExprContext_init_$Init$_0($this);
|
|
502
502
|
IsSetFuncContext.call($this);
|
|
503
|
-
$this.
|
|
503
|
+
$this.l2q(ctx);
|
|
504
504
|
return $this;
|
|
505
505
|
}
|
|
506
506
|
function IsSetFuncContext_init_$Create$(ctx) {
|
|
@@ -509,7 +509,7 @@
|
|
|
509
509
|
function OrExprContext_init_$Init$(ctx, $this) {
|
|
510
510
|
BooleanExprContext_init_$Init$_0($this);
|
|
511
511
|
OrExprContext.call($this);
|
|
512
|
-
$this.
|
|
512
|
+
$this.l2q(ctx);
|
|
513
513
|
return $this;
|
|
514
514
|
}
|
|
515
515
|
function OrExprContext_init_$Create$(ctx) {
|
|
@@ -518,7 +518,7 @@
|
|
|
518
518
|
function AndExprContext_init_$Init$(ctx, $this) {
|
|
519
519
|
BooleanExprContext_init_$Init$_0($this);
|
|
520
520
|
AndExprContext.call($this);
|
|
521
|
-
$this.
|
|
521
|
+
$this.l2q(ctx);
|
|
522
522
|
return $this;
|
|
523
523
|
}
|
|
524
524
|
function AndExprContext_init_$Create$(ctx) {
|
|
@@ -543,7 +543,7 @@
|
|
|
543
543
|
function IntAtomContext_init_$Init$(ctx, $this) {
|
|
544
544
|
IntExprContext_init_$Init$_0($this);
|
|
545
545
|
IntAtomContext.call($this);
|
|
546
|
-
$this.
|
|
546
|
+
$this.t2q(ctx);
|
|
547
547
|
return $this;
|
|
548
548
|
}
|
|
549
549
|
function IntAtomContext_init_$Create$(ctx) {
|
|
@@ -552,7 +552,7 @@
|
|
|
552
552
|
function ParIntExprContext_init_$Init$(ctx, $this) {
|
|
553
553
|
IntExprContext_init_$Init$_0($this);
|
|
554
554
|
ParIntExprContext.call($this);
|
|
555
|
-
$this.
|
|
555
|
+
$this.t2q(ctx);
|
|
556
556
|
return $this;
|
|
557
557
|
}
|
|
558
558
|
function ParIntExprContext_init_$Create$(ctx) {
|
|
@@ -561,7 +561,7 @@
|
|
|
561
561
|
function ValuesFuncContext_init_$Init$(ctx, $this) {
|
|
562
562
|
IntExprContext_init_$Init$_0($this);
|
|
563
563
|
ValuesFuncContext.call($this);
|
|
564
|
-
$this.
|
|
564
|
+
$this.t2q(ctx);
|
|
565
565
|
return $this;
|
|
566
566
|
}
|
|
567
567
|
function ValuesFuncContext_init_$Create$(ctx) {
|
|
@@ -569,40 +569,40 @@
|
|
|
569
569
|
}
|
|
570
570
|
function Tokens(name, ordinal, id) {
|
|
571
571
|
Enum.call(this, name, ordinal);
|
|
572
|
-
this.
|
|
572
|
+
this.w2q_1 = id;
|
|
573
573
|
}
|
|
574
574
|
function Rules_0(name, ordinal, id) {
|
|
575
575
|
Enum.call(this, name, ordinal);
|
|
576
|
-
this.
|
|
576
|
+
this.z2q_1 = id;
|
|
577
577
|
}
|
|
578
578
|
function Companion_0() {
|
|
579
579
|
Companion_instance_1 = this;
|
|
580
|
-
this.
|
|
580
|
+
this.b2r_1 = new PredictionContextCache();
|
|
581
581
|
var tmp = this;
|
|
582
582
|
// Inline function 'kotlin.arrayOf' call
|
|
583
583
|
// Inline function 'kotlin.js.unsafeCast' call
|
|
584
584
|
// Inline function 'kotlin.js.asDynamic' call
|
|
585
|
-
tmp.
|
|
586
|
-
this.
|
|
587
|
-
this.
|
|
585
|
+
tmp.c2r_1 = ['booleanExpr', 'intExpr'];
|
|
586
|
+
this.d2r_1 = listOf([null, "'=='", "'!='", "'&&'", "'||'", "'!'", "'>='", "'>'", "'<='", "'<'", "'('", "')'", "'true'", "'false'"]);
|
|
587
|
+
this.e2r_1 = listOf([null, 'EQ', 'NEQ', 'AND', 'OR', 'NOT', 'GTE', 'GT', 'LTE', 'LT', 'OPAR', 'CPAR', 'TRUE', 'FALSE', 'FUNC_ISSET', 'FUNC_VALUES', 'INT', 'STRING', 'VAR']);
|
|
588
588
|
var tmp_0 = this;
|
|
589
589
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
590
|
-
var this_0 = this.
|
|
590
|
+
var this_0 = this.d2r_1;
|
|
591
591
|
var tmp_1 = copyToArray(this_0);
|
|
592
592
|
// Inline function 'kotlin.collections.toTypedArray' call
|
|
593
|
-
var this_1 = this.
|
|
593
|
+
var this_1 = this.e2r_1;
|
|
594
594
|
var tmp$ret$4 = copyToArray(this_1);
|
|
595
|
-
tmp_0.
|
|
595
|
+
tmp_0.f2r_1 = new VocabularyImpl(tmp_1, tmp$ret$4);
|
|
596
596
|
var tmp_2 = this;
|
|
597
597
|
var tmp_3 = 0;
|
|
598
|
-
var tmp_4 = this.
|
|
598
|
+
var tmp_4 = this.e2r_1.l();
|
|
599
599
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
600
600
|
var tmp_5 = fillArrayVal(Array(tmp_4), null);
|
|
601
601
|
while (tmp_3 < tmp_4) {
|
|
602
602
|
var tmp_6 = tmp_3;
|
|
603
|
-
var el = Companion_getInstance_1().
|
|
603
|
+
var el = Companion_getInstance_1().f2r_1.o23(tmp_6);
|
|
604
604
|
if (el == null) {
|
|
605
|
-
el = Companion_getInstance_1().
|
|
605
|
+
el = Companion_getInstance_1().f2r_1.p23(tmp_6);
|
|
606
606
|
}
|
|
607
607
|
if (el == null) {
|
|
608
608
|
el = '<INVALID>';
|
|
@@ -610,20 +610,20 @@
|
|
|
610
610
|
tmp_5[tmp_6] = el;
|
|
611
611
|
tmp_3 = tmp_3 + 1 | 0;
|
|
612
612
|
}
|
|
613
|
-
tmp_2.
|
|
614
|
-
this.
|
|
615
|
-
this.
|
|
613
|
+
tmp_2.g2r_1 = tmp_5;
|
|
614
|
+
this.h2r_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 "-';
|
|
615
|
+
this.i2r_1 = (new ATNDeserializer()).z27(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 "-'));
|
|
616
616
|
var tmp_7 = this;
|
|
617
617
|
var tmp_8 = 0;
|
|
618
|
-
var tmp_9 = this.
|
|
618
|
+
var tmp_9 = this.i2r_1.r23();
|
|
619
619
|
// Inline function 'kotlin.arrayOfNulls' call
|
|
620
620
|
var tmp_10 = fillArrayVal(Array(tmp_9), null);
|
|
621
621
|
while (tmp_8 < tmp_9) {
|
|
622
622
|
var tmp_11 = tmp_8;
|
|
623
|
-
tmp_10[tmp_11] = new DFA(ensureNotNull(Companion_getInstance_1().
|
|
623
|
+
tmp_10[tmp_11] = new DFA(ensureNotNull(Companion_getInstance_1().i2r_1.f24(tmp_11)), tmp_11);
|
|
624
624
|
tmp_8 = tmp_8 + 1 | 0;
|
|
625
625
|
}
|
|
626
|
-
tmp_7.
|
|
626
|
+
tmp_7.a2r_1 = tmp_10;
|
|
627
627
|
}
|
|
628
628
|
var Companion_instance_1;
|
|
629
629
|
function Companion_getInstance_1() {
|
|
@@ -631,440 +631,440 @@
|
|
|
631
631
|
new Companion_0();
|
|
632
632
|
return Companion_instance_1;
|
|
633
633
|
}
|
|
634
|
-
protoOf(BooleanExprContext).
|
|
635
|
-
return Rules_RULE_booleanExpr_getInstance().
|
|
634
|
+
protoOf(BooleanExprContext).n1x = function () {
|
|
635
|
+
return Rules_RULE_booleanExpr_getInstance().z2q_1;
|
|
636
636
|
};
|
|
637
|
-
protoOf(BooleanExprContext).
|
|
638
|
-
protoOf(ParserRuleContext).
|
|
637
|
+
protoOf(BooleanExprContext).l2q = function (ctx) {
|
|
638
|
+
protoOf(ParserRuleContext).q22.call(this, ctx);
|
|
639
639
|
};
|
|
640
640
|
function BooleanExprContext() {
|
|
641
641
|
}
|
|
642
|
-
protoOf(IntCmpExprContext).
|
|
642
|
+
protoOf(IntCmpExprContext).t21 = function (listener) {
|
|
643
643
|
if (isInterface(listener, StateExpressionListener)) {
|
|
644
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
644
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).i2p(this);
|
|
645
645
|
}
|
|
646
646
|
};
|
|
647
|
-
protoOf(IntCmpExprContext).
|
|
647
|
+
protoOf(IntCmpExprContext).v21 = function (listener) {
|
|
648
648
|
if (isInterface(listener, StateExpressionListener)) {
|
|
649
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
649
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).j2p(this);
|
|
650
650
|
}
|
|
651
651
|
};
|
|
652
|
-
protoOf(IntCmpExprContext).
|
|
652
|
+
protoOf(IntCmpExprContext).u22 = function (visitor) {
|
|
653
653
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
654
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
654
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).u2n(this);
|
|
655
655
|
} else {
|
|
656
|
-
return ensureNotNull(visitor.
|
|
656
|
+
return ensureNotNull(visitor.c23(this));
|
|
657
657
|
}
|
|
658
658
|
};
|
|
659
659
|
function IntCmpExprContext() {
|
|
660
|
-
this.p2r_1 = null;
|
|
661
660
|
this.q2r_1 = null;
|
|
662
661
|
this.r2r_1 = null;
|
|
662
|
+
this.s2r_1 = null;
|
|
663
663
|
}
|
|
664
|
-
protoOf(ParExprContext).
|
|
664
|
+
protoOf(ParExprContext).t21 = function (listener) {
|
|
665
665
|
if (isInterface(listener, StateExpressionListener)) {
|
|
666
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
666
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).k2p(this);
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
|
-
protoOf(ParExprContext).
|
|
669
|
+
protoOf(ParExprContext).v21 = function (listener) {
|
|
670
670
|
if (isInterface(listener, StateExpressionListener)) {
|
|
671
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
671
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).l2p(this);
|
|
672
672
|
}
|
|
673
673
|
};
|
|
674
|
-
protoOf(ParExprContext).
|
|
674
|
+
protoOf(ParExprContext).u22 = function (visitor) {
|
|
675
675
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
676
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
676
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).v2n(this);
|
|
677
677
|
} else {
|
|
678
|
-
return ensureNotNull(visitor.
|
|
678
|
+
return ensureNotNull(visitor.c23(this));
|
|
679
679
|
}
|
|
680
680
|
};
|
|
681
681
|
function ParExprContext() {
|
|
682
|
-
this.
|
|
682
|
+
this.a2s_1 = null;
|
|
683
683
|
}
|
|
684
|
-
protoOf(BooleanAtomContext).
|
|
684
|
+
protoOf(BooleanAtomContext).t21 = function (listener) {
|
|
685
685
|
if (isInterface(listener, StateExpressionListener)) {
|
|
686
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
686
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).m2p(this);
|
|
687
687
|
}
|
|
688
688
|
};
|
|
689
|
-
protoOf(BooleanAtomContext).
|
|
689
|
+
protoOf(BooleanAtomContext).v21 = function (listener) {
|
|
690
690
|
if (isInterface(listener, StateExpressionListener)) {
|
|
691
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
691
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).n2p(this);
|
|
692
692
|
}
|
|
693
693
|
};
|
|
694
|
-
protoOf(BooleanAtomContext).
|
|
694
|
+
protoOf(BooleanAtomContext).u22 = function (visitor) {
|
|
695
695
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
696
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
696
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).w2n(this);
|
|
697
697
|
} else {
|
|
698
|
-
return ensureNotNull(visitor.
|
|
698
|
+
return ensureNotNull(visitor.c23(this));
|
|
699
699
|
}
|
|
700
700
|
};
|
|
701
701
|
function BooleanAtomContext() {
|
|
702
|
-
this.
|
|
702
|
+
this.i2s_1 = null;
|
|
703
703
|
}
|
|
704
|
-
protoOf(EqExprContext).
|
|
704
|
+
protoOf(EqExprContext).t21 = function (listener) {
|
|
705
705
|
if (isInterface(listener, StateExpressionListener)) {
|
|
706
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
706
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).o2p(this);
|
|
707
707
|
}
|
|
708
708
|
};
|
|
709
|
-
protoOf(EqExprContext).
|
|
709
|
+
protoOf(EqExprContext).v21 = function (listener) {
|
|
710
710
|
if (isInterface(listener, StateExpressionListener)) {
|
|
711
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
711
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).p2p(this);
|
|
712
712
|
}
|
|
713
713
|
};
|
|
714
|
-
protoOf(EqExprContext).
|
|
714
|
+
protoOf(EqExprContext).u22 = function (visitor) {
|
|
715
715
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
716
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
716
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).x2n(this);
|
|
717
717
|
} else {
|
|
718
|
-
return ensureNotNull(visitor.
|
|
718
|
+
return ensureNotNull(visitor.c23(this));
|
|
719
719
|
}
|
|
720
720
|
};
|
|
721
721
|
function EqExprContext() {
|
|
722
|
-
this.p2s_1 = null;
|
|
723
722
|
this.q2s_1 = null;
|
|
724
723
|
this.r2s_1 = null;
|
|
724
|
+
this.s2s_1 = null;
|
|
725
725
|
}
|
|
726
|
-
protoOf(NotExprContext).
|
|
726
|
+
protoOf(NotExprContext).t21 = function (listener) {
|
|
727
727
|
if (isInterface(listener, StateExpressionListener)) {
|
|
728
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
728
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).q2p(this);
|
|
729
729
|
}
|
|
730
730
|
};
|
|
731
|
-
protoOf(NotExprContext).
|
|
731
|
+
protoOf(NotExprContext).v21 = function (listener) {
|
|
732
732
|
if (isInterface(listener, StateExpressionListener)) {
|
|
733
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
733
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).r2p(this);
|
|
734
734
|
}
|
|
735
735
|
};
|
|
736
|
-
protoOf(NotExprContext).
|
|
736
|
+
protoOf(NotExprContext).u22 = function (visitor) {
|
|
737
737
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
738
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
738
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).y2n(this);
|
|
739
739
|
} else {
|
|
740
|
-
return ensureNotNull(visitor.
|
|
740
|
+
return ensureNotNull(visitor.c23(this));
|
|
741
741
|
}
|
|
742
742
|
};
|
|
743
743
|
function NotExprContext() {
|
|
744
|
-
this.
|
|
744
|
+
this.a2t_1 = null;
|
|
745
745
|
}
|
|
746
|
-
protoOf(IsSetFuncContext).
|
|
746
|
+
protoOf(IsSetFuncContext).t21 = function (listener) {
|
|
747
747
|
if (isInterface(listener, StateExpressionListener)) {
|
|
748
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
748
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).s2p(this);
|
|
749
749
|
}
|
|
750
750
|
};
|
|
751
|
-
protoOf(IsSetFuncContext).
|
|
751
|
+
protoOf(IsSetFuncContext).v21 = function (listener) {
|
|
752
752
|
if (isInterface(listener, StateExpressionListener)) {
|
|
753
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
753
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).t2p(this);
|
|
754
754
|
}
|
|
755
755
|
};
|
|
756
|
-
protoOf(IsSetFuncContext).
|
|
756
|
+
protoOf(IsSetFuncContext).u22 = function (visitor) {
|
|
757
757
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
758
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
758
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).z2n(this);
|
|
759
759
|
} else {
|
|
760
|
-
return ensureNotNull(visitor.
|
|
760
|
+
return ensureNotNull(visitor.c23(this));
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
763
|
function IsSetFuncContext() {
|
|
764
|
-
this.
|
|
764
|
+
this.i2t_1 = null;
|
|
765
765
|
}
|
|
766
|
-
protoOf(OrExprContext).
|
|
766
|
+
protoOf(OrExprContext).t21 = function (listener) {
|
|
767
767
|
if (isInterface(listener, StateExpressionListener)) {
|
|
768
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
768
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).u2p(this);
|
|
769
769
|
}
|
|
770
770
|
};
|
|
771
|
-
protoOf(OrExprContext).
|
|
771
|
+
protoOf(OrExprContext).v21 = function (listener) {
|
|
772
772
|
if (isInterface(listener, StateExpressionListener)) {
|
|
773
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
773
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).v2p(this);
|
|
774
774
|
}
|
|
775
775
|
};
|
|
776
|
-
protoOf(OrExprContext).
|
|
776
|
+
protoOf(OrExprContext).u22 = function (visitor) {
|
|
777
777
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
778
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
778
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).a2o(this);
|
|
779
779
|
} else {
|
|
780
|
-
return ensureNotNull(visitor.
|
|
780
|
+
return ensureNotNull(visitor.c23(this));
|
|
781
781
|
}
|
|
782
782
|
};
|
|
783
783
|
function OrExprContext() {
|
|
784
|
-
this.p2t_1 = null;
|
|
785
784
|
this.q2t_1 = null;
|
|
785
|
+
this.r2t_1 = null;
|
|
786
786
|
}
|
|
787
|
-
protoOf(AndExprContext).
|
|
787
|
+
protoOf(AndExprContext).t21 = function (listener) {
|
|
788
788
|
if (isInterface(listener, StateExpressionListener)) {
|
|
789
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
789
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).w2p(this);
|
|
790
790
|
}
|
|
791
791
|
};
|
|
792
|
-
protoOf(AndExprContext).
|
|
792
|
+
protoOf(AndExprContext).v21 = function (listener) {
|
|
793
793
|
if (isInterface(listener, StateExpressionListener)) {
|
|
794
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
794
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).x2p(this);
|
|
795
795
|
}
|
|
796
796
|
};
|
|
797
|
-
protoOf(AndExprContext).
|
|
797
|
+
protoOf(AndExprContext).u22 = function (visitor) {
|
|
798
798
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
799
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
799
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).b2o(this);
|
|
800
800
|
} else {
|
|
801
|
-
return ensureNotNull(visitor.
|
|
801
|
+
return ensureNotNull(visitor.c23(this));
|
|
802
802
|
}
|
|
803
803
|
};
|
|
804
804
|
function AndExprContext() {
|
|
805
|
-
this.y2t_1 = null;
|
|
806
805
|
this.z2t_1 = null;
|
|
806
|
+
this.a2u_1 = null;
|
|
807
807
|
}
|
|
808
808
|
function booleanExpr($this, _p) {
|
|
809
|
-
var _parentctx = $this.
|
|
810
|
-
var _parentState = $this.
|
|
811
|
-
var _localctx = BooleanExprContext_init_$Create$($this.
|
|
809
|
+
var _parentctx = $this.k1q_1;
|
|
810
|
+
var _parentState = $this.u1u_1;
|
|
811
|
+
var _localctx = BooleanExprContext_init_$Create$($this.k1q_1, _parentState);
|
|
812
812
|
var _prevctx = _localctx;
|
|
813
813
|
var _startState = 0;
|
|
814
|
-
$this.
|
|
814
|
+
$this.l22(_localctx, 0, Rules_RULE_booleanExpr_getInstance().z2q_1, _p);
|
|
815
815
|
var _la;
|
|
816
816
|
try {
|
|
817
817
|
var _alt;
|
|
818
|
-
$this.
|
|
819
|
-
$this.
|
|
820
|
-
$this.
|
|
821
|
-
switch (ensureNotNull($this.
|
|
818
|
+
$this.i22(_localctx, 1);
|
|
819
|
+
$this.u1u_1 = 22;
|
|
820
|
+
$this.h1q_1.b1r($this);
|
|
821
|
+
switch (ensureNotNull($this.t1u_1).n2g(ensureNotNull($this.i1q_1), 0, $this.k1q_1)) {
|
|
822
822
|
case 1:
|
|
823
823
|
_localctx = ParExprContext_init_$Create$(_localctx);
|
|
824
|
-
$this.
|
|
824
|
+
$this.k1q_1 = _localctx;
|
|
825
825
|
_prevctx = _localctx;
|
|
826
|
-
$this.
|
|
827
|
-
var tmp = $this.
|
|
826
|
+
$this.u1u_1 = 5;
|
|
827
|
+
var tmp = $this.o21($this.w2u_1);
|
|
828
828
|
if (!isInterface(tmp, Token))
|
|
829
829
|
THROW_CCE();
|
|
830
|
-
$this.
|
|
831
|
-
(_localctx instanceof ParExprContext ? _localctx : THROW_CCE()).
|
|
832
|
-
$this.
|
|
833
|
-
var tmp_0 = $this.
|
|
830
|
+
$this.u1u_1 = 6;
|
|
831
|
+
(_localctx instanceof ParExprContext ? _localctx : THROW_CCE()).a2s_1 = booleanExpr($this, 0);
|
|
832
|
+
$this.u1u_1 = 7;
|
|
833
|
+
var tmp_0 = $this.o21($this.x2u_1);
|
|
834
834
|
if (!isInterface(tmp_0, Token))
|
|
835
835
|
THROW_CCE();
|
|
836
836
|
break;
|
|
837
837
|
case 2:
|
|
838
838
|
_localctx = NotExprContext_init_$Create$(_localctx);
|
|
839
|
-
$this.
|
|
839
|
+
$this.k1q_1 = _localctx;
|
|
840
840
|
_prevctx = _localctx;
|
|
841
|
-
$this.
|
|
842
|
-
var tmp_1 = $this.
|
|
841
|
+
$this.u1u_1 = 9;
|
|
842
|
+
var tmp_1 = $this.o21($this.r2u_1);
|
|
843
843
|
if (!isInterface(tmp_1, Token))
|
|
844
844
|
THROW_CCE();
|
|
845
|
-
$this.
|
|
846
|
-
(_localctx instanceof NotExprContext ? _localctx : THROW_CCE()).
|
|
845
|
+
$this.u1u_1 = 10;
|
|
846
|
+
(_localctx instanceof NotExprContext ? _localctx : THROW_CCE()).a2t_1 = booleanExpr($this, 7);
|
|
847
847
|
break;
|
|
848
848
|
case 3:
|
|
849
849
|
_localctx = IsSetFuncContext_init_$Create$(_localctx);
|
|
850
|
-
$this.
|
|
850
|
+
$this.k1q_1 = _localctx;
|
|
851
851
|
_prevctx = _localctx;
|
|
852
|
-
$this.
|
|
853
|
-
var tmp_2 = $this.
|
|
852
|
+
$this.u1u_1 = 11;
|
|
853
|
+
var tmp_2 = $this.o21($this.a2v_1);
|
|
854
854
|
if (!isInterface(tmp_2, Token))
|
|
855
855
|
THROW_CCE();
|
|
856
|
-
$this.
|
|
856
|
+
$this.u1u_1 = 12;
|
|
857
857
|
var tmp_3 = _localctx instanceof IsSetFuncContext ? _localctx : THROW_CCE();
|
|
858
|
-
var tmp_4 = $this.
|
|
859
|
-
tmp_3.
|
|
860
|
-
$this.
|
|
861
|
-
var tmp_5 = $this.
|
|
858
|
+
var tmp_4 = $this.o21($this.e2v_1);
|
|
859
|
+
tmp_3.i2t_1 = isInterface(tmp_4, Token) ? tmp_4 : THROW_CCE();
|
|
860
|
+
$this.u1u_1 = 13;
|
|
861
|
+
var tmp_5 = $this.o21($this.x2u_1);
|
|
862
862
|
if (!isInterface(tmp_5, Token))
|
|
863
863
|
THROW_CCE();
|
|
864
864
|
break;
|
|
865
865
|
case 4:
|
|
866
866
|
_localctx = EqExprContext_init_$Create$(_localctx);
|
|
867
|
-
$this.
|
|
867
|
+
$this.k1q_1 = _localctx;
|
|
868
868
|
_prevctx = _localctx;
|
|
869
|
-
$this.
|
|
869
|
+
$this.u1u_1 = 14;
|
|
870
870
|
var tmp_6 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
|
|
871
|
-
var tmp_7 = $this.
|
|
872
|
-
tmp_6.
|
|
873
|
-
$this.
|
|
874
|
-
(_localctx instanceof EqExprContext ? _localctx : THROW_CCE()).
|
|
875
|
-
_la = ensureNotNull($this.
|
|
876
|
-
if (!(_la === $this.
|
|
871
|
+
var tmp_7 = $this.o21($this.e2v_1);
|
|
872
|
+
tmp_6.q2s_1 = isInterface(tmp_7, Token) ? tmp_7 : THROW_CCE();
|
|
873
|
+
$this.u1u_1 = 15;
|
|
874
|
+
(_localctx instanceof EqExprContext ? _localctx : THROW_CCE()).r2s_1 = ensureNotNull($this.i1q_1).b1t(1);
|
|
875
|
+
_la = ensureNotNull($this.i1q_1).o1s(1);
|
|
876
|
+
if (!(_la === $this.n2u_1 ? true : _la === $this.o2u_1)) {
|
|
877
877
|
var tmp_8 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
|
|
878
|
-
var tmp_9 = $this.
|
|
879
|
-
tmp_8.
|
|
878
|
+
var tmp_9 = $this.h1q_1.a1r($this);
|
|
879
|
+
tmp_8.r2s_1 = isInterface(tmp_9, Token) ? tmp_9 : THROW_CCE();
|
|
880
880
|
} else {
|
|
881
|
-
if (ensureNotNull($this.
|
|
882
|
-
$this.
|
|
883
|
-
$this.
|
|
884
|
-
$this.
|
|
881
|
+
if (ensureNotNull($this.i1q_1).o1s(1) === Tokens_EOF_getInstance().w2q_1)
|
|
882
|
+
$this.o1q_1 = true;
|
|
883
|
+
$this.h1q_1.k1r($this);
|
|
884
|
+
$this.m1v();
|
|
885
885
|
}
|
|
886
886
|
|
|
887
|
-
$this.
|
|
887
|
+
$this.u1u_1 = 16;
|
|
888
888
|
var tmp_10 = _localctx instanceof EqExprContext ? _localctx : THROW_CCE();
|
|
889
|
-
var tmp_11 = $this.
|
|
890
|
-
tmp_10.
|
|
889
|
+
var tmp_11 = $this.o21($this.d2v_1);
|
|
890
|
+
tmp_10.s2s_1 = isInterface(tmp_11, Token) ? tmp_11 : THROW_CCE();
|
|
891
891
|
break;
|
|
892
892
|
case 5:
|
|
893
893
|
_localctx = IntCmpExprContext_init_$Create$(_localctx);
|
|
894
|
-
$this.
|
|
894
|
+
$this.k1q_1 = _localctx;
|
|
895
895
|
_prevctx = _localctx;
|
|
896
|
-
$this.
|
|
897
|
-
(_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).
|
|
898
|
-
$this.
|
|
899
|
-
(_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).
|
|
900
|
-
_la = ensureNotNull($this.
|
|
901
|
-
if (!((_la & -64) === 0 ? !(new Long(1, 0)).fb(_la).hb((new Long(1, 0)).fb($this.
|
|
896
|
+
$this.u1u_1 = 17;
|
|
897
|
+
(_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).q2r_1 = $this.f2v();
|
|
898
|
+
$this.u1u_1 = 18;
|
|
899
|
+
(_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).r2r_1 = ensureNotNull($this.i1q_1).b1t(1);
|
|
900
|
+
_la = ensureNotNull($this.i1q_1).o1s(1);
|
|
901
|
+
if (!((_la & -64) === 0 ? !(new Long(1, 0)).fb(_la).hb((new Long(1, 0)).fb($this.n2u_1).ib((new Long(1, 0)).fb($this.o2u_1)).ib((new Long(1, 0)).fb($this.s2u_1)).ib((new Long(1, 0)).fb($this.t2u_1)).ib((new Long(1, 0)).fb($this.u2u_1)).ib((new Long(1, 0)).fb($this.v2u_1))).equals(new Long(0, 0)) : false)) {
|
|
902
902
|
var tmp_12 = _localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE();
|
|
903
|
-
var tmp_13 = $this.
|
|
904
|
-
tmp_12.
|
|
903
|
+
var tmp_13 = $this.h1q_1.a1r($this);
|
|
904
|
+
tmp_12.r2r_1 = isInterface(tmp_13, Token) ? tmp_13 : THROW_CCE();
|
|
905
905
|
} else {
|
|
906
|
-
if (ensureNotNull($this.
|
|
907
|
-
$this.
|
|
908
|
-
$this.
|
|
909
|
-
$this.
|
|
906
|
+
if (ensureNotNull($this.i1q_1).o1s(1) === Tokens_EOF_getInstance().w2q_1)
|
|
907
|
+
$this.o1q_1 = true;
|
|
908
|
+
$this.h1q_1.k1r($this);
|
|
909
|
+
$this.m1v();
|
|
910
910
|
}
|
|
911
911
|
|
|
912
|
-
$this.
|
|
913
|
-
(_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).
|
|
912
|
+
$this.u1u_1 = 19;
|
|
913
|
+
(_localctx instanceof IntCmpExprContext ? _localctx : THROW_CCE()).s2r_1 = $this.f2v();
|
|
914
914
|
break;
|
|
915
915
|
case 6:
|
|
916
916
|
_localctx = BooleanAtomContext_init_$Create$(_localctx);
|
|
917
|
-
$this.
|
|
917
|
+
$this.k1q_1 = _localctx;
|
|
918
918
|
_prevctx = _localctx;
|
|
919
|
-
$this.
|
|
920
|
-
(_localctx instanceof BooleanAtomContext ? _localctx : THROW_CCE()).
|
|
921
|
-
_la = ensureNotNull($this.
|
|
922
|
-
if (!(_la === $this.
|
|
919
|
+
$this.u1u_1 = 21;
|
|
920
|
+
(_localctx instanceof BooleanAtomContext ? _localctx : THROW_CCE()).i2s_1 = ensureNotNull($this.i1q_1).b1t(1);
|
|
921
|
+
_la = ensureNotNull($this.i1q_1).o1s(1);
|
|
922
|
+
if (!(_la === $this.y2u_1 ? true : _la === $this.z2u_1)) {
|
|
923
923
|
var tmp_14 = _localctx instanceof BooleanAtomContext ? _localctx : THROW_CCE();
|
|
924
|
-
var tmp_15 = $this.
|
|
925
|
-
tmp_14.
|
|
924
|
+
var tmp_15 = $this.h1q_1.a1r($this);
|
|
925
|
+
tmp_14.i2s_1 = isInterface(tmp_15, Token) ? tmp_15 : THROW_CCE();
|
|
926
926
|
} else {
|
|
927
|
-
if (ensureNotNull($this.
|
|
928
|
-
$this.
|
|
929
|
-
$this.
|
|
930
|
-
$this.
|
|
927
|
+
if (ensureNotNull($this.i1q_1).o1s(1) === Tokens_EOF_getInstance().w2q_1)
|
|
928
|
+
$this.o1q_1 = true;
|
|
929
|
+
$this.h1q_1.k1r($this);
|
|
930
|
+
$this.m1v();
|
|
931
931
|
}
|
|
932
932
|
|
|
933
933
|
break;
|
|
934
934
|
}
|
|
935
|
-
ensureNotNull($this.
|
|
936
|
-
$this.
|
|
937
|
-
$this.
|
|
938
|
-
_alt = ensureNotNull($this.
|
|
939
|
-
while (!(_alt === 2) ? !(_alt === Companion_instance.
|
|
935
|
+
ensureNotNull($this.k1q_1).u1q_1 = ensureNotNull($this.i1q_1).b1t(-1);
|
|
936
|
+
$this.u1u_1 = 32;
|
|
937
|
+
$this.h1q_1.b1r($this);
|
|
938
|
+
_alt = ensureNotNull($this.t1u_1).n2g(ensureNotNull($this.i1q_1), 2, $this.k1q_1);
|
|
939
|
+
while (!(_alt === 2) ? !(_alt === Companion_instance.q23_1) : false) {
|
|
940
940
|
if (_alt === 1) {
|
|
941
|
-
if (!($this.
|
|
942
|
-
$this.
|
|
941
|
+
if (!($this.m1q_1 == null)) {
|
|
942
|
+
$this.u21();
|
|
943
943
|
}
|
|
944
944
|
_prevctx = _localctx;
|
|
945
|
-
$this.
|
|
946
|
-
$this.
|
|
947
|
-
var tmp1_subject = ensureNotNull($this.
|
|
945
|
+
$this.u1u_1 = 30;
|
|
946
|
+
$this.h1q_1.b1r($this);
|
|
947
|
+
var tmp1_subject = ensureNotNull($this.t1u_1).n2g(ensureNotNull($this.i1q_1), 1, $this.k1q_1);
|
|
948
948
|
if (tmp1_subject === 1) {
|
|
949
949
|
_localctx = AndExprContext_init_$Create$(BooleanExprContext_init_$Create$(_parentctx, _parentState));
|
|
950
|
-
(_localctx instanceof AndExprContext ? _localctx : THROW_CCE()).
|
|
951
|
-
$this.
|
|
952
|
-
$this.
|
|
953
|
-
if (!$this.
|
|
950
|
+
(_localctx instanceof AndExprContext ? _localctx : THROW_CCE()).z2t_1 = _prevctx;
|
|
951
|
+
$this.m22(_localctx, _startState, Rules_RULE_booleanExpr_getInstance().z2q_1);
|
|
952
|
+
$this.u1u_1 = 24;
|
|
953
|
+
if (!$this.y20(ensureNotNull($this.k1q_1), 6))
|
|
954
954
|
throw new FailedPredicateException($this, 'precpred(context!!, 6)');
|
|
955
|
-
$this.
|
|
956
|
-
var tmp_16 = $this.
|
|
955
|
+
$this.u1u_1 = 25;
|
|
956
|
+
var tmp_16 = $this.o21($this.p2u_1);
|
|
957
957
|
if (!isInterface(tmp_16, Token))
|
|
958
958
|
THROW_CCE();
|
|
959
|
-
$this.
|
|
960
|
-
(_localctx instanceof AndExprContext ? _localctx : THROW_CCE()).
|
|
959
|
+
$this.u1u_1 = 26;
|
|
960
|
+
(_localctx instanceof AndExprContext ? _localctx : THROW_CCE()).a2u_1 = booleanExpr($this, 7);
|
|
961
961
|
} else if (tmp1_subject === 2) {
|
|
962
962
|
_localctx = OrExprContext_init_$Create$(BooleanExprContext_init_$Create$(_parentctx, _parentState));
|
|
963
|
-
(_localctx instanceof OrExprContext ? _localctx : THROW_CCE()).
|
|
964
|
-
$this.
|
|
965
|
-
$this.
|
|
966
|
-
if (!$this.
|
|
963
|
+
(_localctx instanceof OrExprContext ? _localctx : THROW_CCE()).q2t_1 = _prevctx;
|
|
964
|
+
$this.m22(_localctx, _startState, Rules_RULE_booleanExpr_getInstance().z2q_1);
|
|
965
|
+
$this.u1u_1 = 27;
|
|
966
|
+
if (!$this.y20(ensureNotNull($this.k1q_1), 5))
|
|
967
967
|
throw new FailedPredicateException($this, 'precpred(context!!, 5)');
|
|
968
|
-
$this.
|
|
969
|
-
var tmp_17 = $this.
|
|
968
|
+
$this.u1u_1 = 28;
|
|
969
|
+
var tmp_17 = $this.o21($this.q2u_1);
|
|
970
970
|
if (!isInterface(tmp_17, Token))
|
|
971
971
|
THROW_CCE();
|
|
972
|
-
$this.
|
|
973
|
-
(_localctx instanceof OrExprContext ? _localctx : THROW_CCE()).
|
|
972
|
+
$this.u1u_1 = 29;
|
|
973
|
+
(_localctx instanceof OrExprContext ? _localctx : THROW_CCE()).r2t_1 = booleanExpr($this, 6);
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
|
-
$this.
|
|
977
|
-
$this.
|
|
978
|
-
_alt = ensureNotNull($this.
|
|
976
|
+
$this.u1u_1 = 34;
|
|
977
|
+
$this.h1q_1.b1r($this);
|
|
978
|
+
_alt = ensureNotNull($this.t1u_1).n2g(ensureNotNull($this.i1q_1), 2, $this.k1q_1);
|
|
979
979
|
}
|
|
980
980
|
} catch ($p) {
|
|
981
981
|
if ($p instanceof RecognitionException) {
|
|
982
982
|
var re = $p;
|
|
983
|
-
_localctx.
|
|
984
|
-
$this.
|
|
985
|
-
$this.
|
|
983
|
+
_localctx.v1q_1 = re;
|
|
984
|
+
$this.h1q_1.l1r($this, re);
|
|
985
|
+
$this.h1q_1.c1q($this, re);
|
|
986
986
|
} else {
|
|
987
987
|
throw $p;
|
|
988
988
|
}
|
|
989
989
|
}
|
|
990
990
|
finally {
|
|
991
|
-
$this.
|
|
991
|
+
$this.o22(_parentctx);
|
|
992
992
|
}
|
|
993
993
|
return _localctx;
|
|
994
994
|
}
|
|
995
|
-
protoOf(IntExprContext).
|
|
996
|
-
return Rules_RULE_intExpr_getInstance().
|
|
995
|
+
protoOf(IntExprContext).n1x = function () {
|
|
996
|
+
return Rules_RULE_intExpr_getInstance().z2q_1;
|
|
997
997
|
};
|
|
998
|
-
protoOf(IntExprContext).
|
|
999
|
-
protoOf(ParserRuleContext).
|
|
998
|
+
protoOf(IntExprContext).t2q = function (ctx) {
|
|
999
|
+
protoOf(ParserRuleContext).q22.call(this, ctx);
|
|
1000
1000
|
};
|
|
1001
1001
|
function IntExprContext() {
|
|
1002
1002
|
}
|
|
1003
|
-
protoOf(IntAtomContext).
|
|
1003
|
+
protoOf(IntAtomContext).t21 = function (listener) {
|
|
1004
1004
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1005
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1005
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).c2q(this);
|
|
1006
1006
|
}
|
|
1007
1007
|
};
|
|
1008
|
-
protoOf(IntAtomContext).
|
|
1008
|
+
protoOf(IntAtomContext).v21 = function (listener) {
|
|
1009
1009
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1010
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1010
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).d2q(this);
|
|
1011
1011
|
}
|
|
1012
1012
|
};
|
|
1013
|
-
protoOf(IntAtomContext).
|
|
1013
|
+
protoOf(IntAtomContext).u22 = function (visitor) {
|
|
1014
1014
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
1015
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
1015
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).e2o(this);
|
|
1016
1016
|
} else {
|
|
1017
|
-
return ensureNotNull(visitor.
|
|
1017
|
+
return ensureNotNull(visitor.c23(this));
|
|
1018
1018
|
}
|
|
1019
1019
|
};
|
|
1020
1020
|
function IntAtomContext() {
|
|
1021
|
-
this.
|
|
1021
|
+
this.n2v_1 = null;
|
|
1022
1022
|
}
|
|
1023
|
-
protoOf(ParIntExprContext).
|
|
1023
|
+
protoOf(ParIntExprContext).t21 = function (listener) {
|
|
1024
1024
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1025
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1025
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).y2p(this);
|
|
1026
1026
|
}
|
|
1027
1027
|
};
|
|
1028
|
-
protoOf(ParIntExprContext).
|
|
1028
|
+
protoOf(ParIntExprContext).v21 = function (listener) {
|
|
1029
1029
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1030
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1030
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).z2p(this);
|
|
1031
1031
|
}
|
|
1032
1032
|
};
|
|
1033
|
-
protoOf(ParIntExprContext).
|
|
1033
|
+
protoOf(ParIntExprContext).u22 = function (visitor) {
|
|
1034
1034
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
1035
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
1035
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).c2o(this);
|
|
1036
1036
|
} else {
|
|
1037
|
-
return ensureNotNull(visitor.
|
|
1037
|
+
return ensureNotNull(visitor.c23(this));
|
|
1038
1038
|
}
|
|
1039
1039
|
};
|
|
1040
1040
|
function ParIntExprContext() {
|
|
1041
|
-
this.
|
|
1041
|
+
this.v2v_1 = null;
|
|
1042
1042
|
}
|
|
1043
|
-
protoOf(ValuesFuncContext).
|
|
1043
|
+
protoOf(ValuesFuncContext).t21 = function (listener) {
|
|
1044
1044
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1045
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1045
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).a2q(this);
|
|
1046
1046
|
}
|
|
1047
1047
|
};
|
|
1048
|
-
protoOf(ValuesFuncContext).
|
|
1048
|
+
protoOf(ValuesFuncContext).v21 = function (listener) {
|
|
1049
1049
|
if (isInterface(listener, StateExpressionListener)) {
|
|
1050
|
-
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).
|
|
1050
|
+
(isInterface(listener, StateExpressionListener) ? listener : THROW_CCE()).b2q(this);
|
|
1051
1051
|
}
|
|
1052
1052
|
};
|
|
1053
|
-
protoOf(ValuesFuncContext).
|
|
1053
|
+
protoOf(ValuesFuncContext).u22 = function (visitor) {
|
|
1054
1054
|
if (isInterface(visitor, StateExpressionVisitor)) {
|
|
1055
|
-
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).
|
|
1055
|
+
return (isInterface(visitor, StateExpressionVisitor) ? visitor : THROW_CCE()).d2o(this);
|
|
1056
1056
|
} else {
|
|
1057
|
-
return ensureNotNull(visitor.
|
|
1057
|
+
return ensureNotNull(visitor.c23(this));
|
|
1058
1058
|
}
|
|
1059
1059
|
};
|
|
1060
1060
|
function ValuesFuncContext() {
|
|
1061
|
-
this.
|
|
1061
|
+
this.d2w_1 = null;
|
|
1062
1062
|
}
|
|
1063
1063
|
function booleanExpr_sempred($this, _localctx, predIndex) {
|
|
1064
1064
|
if (predIndex === 0)
|
|
1065
|
-
return $this.
|
|
1065
|
+
return $this.y20(ensureNotNull($this.k1q_1), 6);
|
|
1066
1066
|
else if (predIndex === 1)
|
|
1067
|
-
return $this.
|
|
1067
|
+
return $this.y20(ensureNotNull($this.k1q_1), 5);
|
|
1068
1068
|
return true;
|
|
1069
1069
|
}
|
|
1070
1070
|
function Tokens_EOF_getInstance() {
|
|
@@ -1154,98 +1154,98 @@
|
|
|
1154
1154
|
function StateExpressionParser(input) {
|
|
1155
1155
|
Companion_getInstance_1();
|
|
1156
1156
|
Parser.call(this, input);
|
|
1157
|
-
this.
|
|
1158
|
-
this.
|
|
1159
|
-
this.
|
|
1160
|
-
this.
|
|
1161
|
-
this.
|
|
1162
|
-
this.
|
|
1163
|
-
this.
|
|
1164
|
-
this.
|
|
1165
|
-
this.
|
|
1166
|
-
this.
|
|
1167
|
-
this.
|
|
1168
|
-
this.
|
|
1169
|
-
this.
|
|
1170
|
-
this.
|
|
1171
|
-
this.
|
|
1172
|
-
this.
|
|
1173
|
-
this.
|
|
1174
|
-
this.
|
|
1175
|
-
this.
|
|
1176
|
-
}
|
|
1177
|
-
protoOf(StateExpressionParser).
|
|
1178
|
-
return Companion_getInstance_1().
|
|
1179
|
-
};
|
|
1180
|
-
protoOf(StateExpressionParser).
|
|
1181
|
-
return Companion_getInstance_1().
|
|
1182
|
-
};
|
|
1183
|
-
protoOf(StateExpressionParser).
|
|
1184
|
-
return Companion_getInstance_1().
|
|
1185
|
-
};
|
|
1186
|
-
protoOf(StateExpressionParser).
|
|
1157
|
+
this.n2u_1 = Tokens_EQ_getInstance().w2q_1;
|
|
1158
|
+
this.o2u_1 = Tokens_NEQ_getInstance().w2q_1;
|
|
1159
|
+
this.p2u_1 = Tokens_AND_getInstance().w2q_1;
|
|
1160
|
+
this.q2u_1 = Tokens_OR_getInstance().w2q_1;
|
|
1161
|
+
this.r2u_1 = Tokens_NOT_getInstance().w2q_1;
|
|
1162
|
+
this.s2u_1 = Tokens_GTE_getInstance().w2q_1;
|
|
1163
|
+
this.t2u_1 = Tokens_GT_getInstance().w2q_1;
|
|
1164
|
+
this.u2u_1 = Tokens_LTE_getInstance().w2q_1;
|
|
1165
|
+
this.v2u_1 = Tokens_LT_getInstance().w2q_1;
|
|
1166
|
+
this.w2u_1 = Tokens_OPAR_getInstance().w2q_1;
|
|
1167
|
+
this.x2u_1 = Tokens_CPAR_getInstance().w2q_1;
|
|
1168
|
+
this.y2u_1 = Tokens_TRUE_getInstance().w2q_1;
|
|
1169
|
+
this.z2u_1 = Tokens_FALSE_getInstance().w2q_1;
|
|
1170
|
+
this.a2v_1 = Tokens_FUNC_ISSET_getInstance().w2q_1;
|
|
1171
|
+
this.b2v_1 = Tokens_FUNC_VALUES_getInstance().w2q_1;
|
|
1172
|
+
this.c2v_1 = Tokens_INT_getInstance().w2q_1;
|
|
1173
|
+
this.d2v_1 = Tokens_STRING_getInstance().w2q_1;
|
|
1174
|
+
this.e2v_1 = Tokens_VAR_getInstance().w2q_1;
|
|
1175
|
+
this.t1u_1 = new ParserATNSimulator(this, Companion_getInstance_1().i2r_1, Companion_getInstance_1().a2r_1, Companion_getInstance_1().b2r_1);
|
|
1176
|
+
}
|
|
1177
|
+
protoOf(StateExpressionParser).m1x = function () {
|
|
1178
|
+
return Companion_getInstance_1().c2r_1;
|
|
1179
|
+
};
|
|
1180
|
+
protoOf(StateExpressionParser).d1w = function () {
|
|
1181
|
+
return Companion_getInstance_1().i2r_1;
|
|
1182
|
+
};
|
|
1183
|
+
protoOf(StateExpressionParser).w1u = function () {
|
|
1184
|
+
return Companion_getInstance_1().f2r_1;
|
|
1185
|
+
};
|
|
1186
|
+
protoOf(StateExpressionParser).e2w = function () {
|
|
1187
1187
|
return booleanExpr(this, 0);
|
|
1188
1188
|
};
|
|
1189
|
-
protoOf(StateExpressionParser).
|
|
1190
|
-
var _localctx = IntExprContext_init_$Create$(this.
|
|
1191
|
-
this.
|
|
1189
|
+
protoOf(StateExpressionParser).f2v = function () {
|
|
1190
|
+
var _localctx = IntExprContext_init_$Create$(this.k1q_1, this.u1u_1);
|
|
1191
|
+
this.g22(_localctx, 2, Rules_RULE_intExpr_getInstance().z2q_1);
|
|
1192
1192
|
try {
|
|
1193
|
-
this.
|
|
1194
|
-
this.
|
|
1195
|
-
var tmp0_subject = ensureNotNull(this.
|
|
1196
|
-
if (tmp0_subject === this.
|
|
1193
|
+
this.u1u_1 = 43;
|
|
1194
|
+
this.h1q_1.b1r(this);
|
|
1195
|
+
var tmp0_subject = ensureNotNull(this.i1q_1).o1s(1);
|
|
1196
|
+
if (tmp0_subject === this.w2u_1) {
|
|
1197
1197
|
_localctx = ParIntExprContext_init_$Create$(_localctx);
|
|
1198
|
-
this.
|
|
1199
|
-
this.
|
|
1200
|
-
var tmp = this.
|
|
1198
|
+
this.i22(_localctx, 1);
|
|
1199
|
+
this.u1u_1 = 35;
|
|
1200
|
+
var tmp = this.o21(this.w2u_1);
|
|
1201
1201
|
if (!isInterface(tmp, Token))
|
|
1202
1202
|
THROW_CCE();
|
|
1203
|
-
this.
|
|
1204
|
-
(_localctx instanceof ParIntExprContext ? _localctx : THROW_CCE()).
|
|
1205
|
-
this.
|
|
1206
|
-
var tmp_0 = this.
|
|
1203
|
+
this.u1u_1 = 36;
|
|
1204
|
+
(_localctx instanceof ParIntExprContext ? _localctx : THROW_CCE()).v2v_1 = this.f2v();
|
|
1205
|
+
this.u1u_1 = 37;
|
|
1206
|
+
var tmp_0 = this.o21(this.x2u_1);
|
|
1207
1207
|
if (!isInterface(tmp_0, Token))
|
|
1208
1208
|
THROW_CCE();
|
|
1209
|
-
} else if (tmp0_subject === this.
|
|
1209
|
+
} else if (tmp0_subject === this.b2v_1) {
|
|
1210
1210
|
_localctx = ValuesFuncContext_init_$Create$(_localctx);
|
|
1211
|
-
this.
|
|
1212
|
-
this.
|
|
1213
|
-
var tmp_1 = this.
|
|
1211
|
+
this.i22(_localctx, 2);
|
|
1212
|
+
this.u1u_1 = 39;
|
|
1213
|
+
var tmp_1 = this.o21(this.b2v_1);
|
|
1214
1214
|
if (!isInterface(tmp_1, Token))
|
|
1215
1215
|
THROW_CCE();
|
|
1216
|
-
this.
|
|
1216
|
+
this.u1u_1 = 40;
|
|
1217
1217
|
var tmp_2 = _localctx instanceof ValuesFuncContext ? _localctx : THROW_CCE();
|
|
1218
|
-
var tmp_3 = this.
|
|
1219
|
-
tmp_2.
|
|
1220
|
-
this.
|
|
1221
|
-
var tmp_4 = this.
|
|
1218
|
+
var tmp_3 = this.o21(this.e2v_1);
|
|
1219
|
+
tmp_2.d2w_1 = isInterface(tmp_3, Token) ? tmp_3 : THROW_CCE();
|
|
1220
|
+
this.u1u_1 = 41;
|
|
1221
|
+
var tmp_4 = this.o21(this.x2u_1);
|
|
1222
1222
|
if (!isInterface(tmp_4, Token))
|
|
1223
1223
|
THROW_CCE();
|
|
1224
|
-
} else if (tmp0_subject === this.
|
|
1224
|
+
} else if (tmp0_subject === this.c2v_1) {
|
|
1225
1225
|
_localctx = IntAtomContext_init_$Create$(_localctx);
|
|
1226
|
-
this.
|
|
1227
|
-
this.
|
|
1226
|
+
this.i22(_localctx, 3);
|
|
1227
|
+
this.u1u_1 = 42;
|
|
1228
1228
|
var tmp_5 = _localctx instanceof IntAtomContext ? _localctx : THROW_CCE();
|
|
1229
|
-
var tmp_6 = this.
|
|
1230
|
-
tmp_5.
|
|
1229
|
+
var tmp_6 = this.o21(this.c2v_1);
|
|
1230
|
+
tmp_5.n2v_1 = isInterface(tmp_6, Token) ? tmp_6 : THROW_CCE();
|
|
1231
1231
|
} else
|
|
1232
1232
|
throw new NoViableAltException(this);
|
|
1233
1233
|
} catch ($p) {
|
|
1234
1234
|
if ($p instanceof RecognitionException) {
|
|
1235
1235
|
var re = $p;
|
|
1236
|
-
_localctx.
|
|
1237
|
-
this.
|
|
1238
|
-
this.
|
|
1236
|
+
_localctx.v1q_1 = re;
|
|
1237
|
+
this.h1q_1.l1r(this, re);
|
|
1238
|
+
this.h1q_1.c1q(this, re);
|
|
1239
1239
|
} else {
|
|
1240
1240
|
throw $p;
|
|
1241
1241
|
}
|
|
1242
1242
|
}
|
|
1243
1243
|
finally {
|
|
1244
|
-
this.
|
|
1244
|
+
this.h22();
|
|
1245
1245
|
}
|
|
1246
1246
|
return _localctx;
|
|
1247
1247
|
};
|
|
1248
|
-
protoOf(StateExpressionParser).
|
|
1248
|
+
protoOf(StateExpressionParser).x20 = function (_localctx, ruleIndex, predIndex) {
|
|
1249
1249
|
if (ruleIndex === 0) {
|
|
1250
1250
|
return booleanExpr_sempred(this, _localctx instanceof BooleanExprContext ? _localctx : THROW_CCE(), predIndex);
|
|
1251
1251
|
}
|
|
@@ -1254,15 +1254,15 @@
|
|
|
1254
1254
|
function StateExpressionVisitor() {
|
|
1255
1255
|
}
|
|
1256
1256
|
function Expression(expr, raw) {
|
|
1257
|
-
this.
|
|
1258
|
-
this.
|
|
1257
|
+
this.f2w_1 = expr;
|
|
1258
|
+
this.g2w_1 = raw;
|
|
1259
1259
|
}
|
|
1260
|
-
protoOf(Expression).
|
|
1261
|
-
return !(this.
|
|
1260
|
+
protoOf(Expression).h2w = function () {
|
|
1261
|
+
return !(this.f2w_1 == null);
|
|
1262
1262
|
};
|
|
1263
|
-
protoOf(Expression).
|
|
1263
|
+
protoOf(Expression).i2w = function (state) {
|
|
1264
1264
|
// Inline function 'kotlin.checkNotNull' call
|
|
1265
|
-
var value = this.
|
|
1265
|
+
var value = this.f2w_1;
|
|
1266
1266
|
// Inline function 'kotlin.contracts.contract' call
|
|
1267
1267
|
var tmp$ret$1;
|
|
1268
1268
|
$l$block: {
|
|
@@ -1277,11 +1277,11 @@
|
|
|
1277
1277
|
break $l$block;
|
|
1278
1278
|
}
|
|
1279
1279
|
}
|
|
1280
|
-
return tmp$ret$1.
|
|
1280
|
+
return tmp$ret$1.u22((new StateExpressionEvaluator(state)).k2w_1);
|
|
1281
1281
|
};
|
|
1282
|
-
protoOf(Expression).
|
|
1282
|
+
protoOf(Expression).m2w = function () {
|
|
1283
1283
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1284
|
-
var tmp0_safe_receiver = this.
|
|
1284
|
+
var tmp0_safe_receiver = this.f2w_1;
|
|
1285
1285
|
var tmp1_safe_receiver = tmp0_safe_receiver == null ? null : vars(tmp0_safe_receiver);
|
|
1286
1286
|
var tmp0_elvis_lhs = tmp1_safe_receiver == null ? null : toSet(tmp1_safe_receiver);
|
|
1287
1287
|
return tmp0_elvis_lhs == null ? emptySet() : tmp0_elvis_lhs;
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
if (!(other instanceof Expression)) {
|
|
1298
1298
|
tmp = false;
|
|
1299
1299
|
} else {
|
|
1300
|
-
if (!(this.
|
|
1300
|
+
if (!(this.g2w_1 === other.g2w_1)) {
|
|
1301
1301
|
tmp = false;
|
|
1302
1302
|
} else {
|
|
1303
1303
|
tmp = true;
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
return tmp;
|
|
1309
1309
|
};
|
|
1310
1310
|
protoOf(Expression).hashCode = function () {
|
|
1311
|
-
return getStringHashCode(this.
|
|
1311
|
+
return getStringHashCode(this.g2w_1);
|
|
1312
1312
|
};
|
|
1313
1313
|
function toExpressionOrNull(_this__u8e3s4) {
|
|
1314
1314
|
var tmp;
|
|
@@ -1319,11 +1319,11 @@
|
|
|
1319
1319
|
} else {
|
|
1320
1320
|
var tmp_0;
|
|
1321
1321
|
try {
|
|
1322
|
-
var tokens = new CommonTokenStream(new StateExpressionLexer(CharStreams_getInstance().
|
|
1322
|
+
var tokens = new CommonTokenStream(new StateExpressionLexer(CharStreams_getInstance().u1p(_this__u8e3s4)));
|
|
1323
1323
|
var parser = new StateExpressionParser(tokens);
|
|
1324
|
-
parser.
|
|
1325
|
-
var expr = parser.
|
|
1326
|
-
tmp_0 = tokens.b1(tokens.
|
|
1324
|
+
parser.h1q_1 = new BailErrorStrategy();
|
|
1325
|
+
var expr = parser.e2w();
|
|
1326
|
+
tmp_0 = tokens.b1(tokens.g1s()).t1s() === Companion_getInstance().x1s_1 ? expr : null;
|
|
1327
1327
|
} catch ($p) {
|
|
1328
1328
|
var tmp_1;
|
|
1329
1329
|
if ($p instanceof ParseCancellationException) {
|
|
@@ -1342,7 +1342,7 @@
|
|
|
1342
1342
|
function vars(_this__u8e3s4) {
|
|
1343
1343
|
// Inline function 'kotlin.collections.flatMap' call
|
|
1344
1344
|
// Inline function 'kotlin.collections.orEmpty' call
|
|
1345
|
-
var tmp0_elvis_lhs = _this__u8e3s4.
|
|
1345
|
+
var tmp0_elvis_lhs = _this__u8e3s4.s1q_1;
|
|
1346
1346
|
// Inline function 'kotlin.collections.flatMapTo' call
|
|
1347
1347
|
var this_0 = tmp0_elvis_lhs == null ? emptyList() : tmp0_elvis_lhs;
|
|
1348
1348
|
var destination = ArrayList_init_$Create$_0();
|
|
@@ -1352,7 +1352,7 @@
|
|
|
1352
1352
|
// Inline function 'org.cru.godtools.shared.tool.parser.expressions.vars.<anonymous>' call
|
|
1353
1353
|
var tmp;
|
|
1354
1354
|
if (isInterface(element, TerminalNode)) {
|
|
1355
|
-
var tmp1_safe_receiver = element.
|
|
1355
|
+
var tmp1_safe_receiver = element.d2n();
|
|
1356
1356
|
var tmp_0;
|
|
1357
1357
|
if (tmp1_safe_receiver == null) {
|
|
1358
1358
|
tmp_0 = null;
|
|
@@ -1361,7 +1361,7 @@
|
|
|
1361
1361
|
// Inline function 'kotlin.contracts.contract' call
|
|
1362
1362
|
var tmp_1;
|
|
1363
1363
|
// Inline function 'org.cru.godtools.shared.tool.parser.expressions.vars.<anonymous>.<anonymous>' call
|
|
1364
|
-
if (tmp1_safe_receiver.
|
|
1364
|
+
if (tmp1_safe_receiver.t1s() === Tokens_VAR_getInstance().w2q_1) {
|
|
1365
1365
|
tmp_1 = tmp1_safe_receiver;
|
|
1366
1366
|
} else {
|
|
1367
1367
|
tmp_1 = null;
|
|
@@ -1369,7 +1369,7 @@
|
|
|
1369
1369
|
tmp_0 = tmp_1;
|
|
1370
1370
|
}
|
|
1371
1371
|
var tmp2_safe_receiver = tmp_0;
|
|
1372
|
-
tmp = listOfNotNull(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.
|
|
1372
|
+
tmp = listOfNotNull(tmp2_safe_receiver == null ? null : tmp2_safe_receiver.k1t());
|
|
1373
1373
|
} else {
|
|
1374
1374
|
if (element instanceof ParserRuleContext) {
|
|
1375
1375
|
tmp = vars(element);
|
|
@@ -1383,96 +1383,96 @@
|
|
|
1383
1383
|
return destination;
|
|
1384
1384
|
}
|
|
1385
1385
|
function StateExpressionEvaluator$booleanExpr$1(this$0) {
|
|
1386
|
-
this.
|
|
1386
|
+
this.n2w_1 = this$0;
|
|
1387
1387
|
StateExpressionBaseVisitor.call(this);
|
|
1388
1388
|
}
|
|
1389
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1390
|
-
return ensureNotNull(ctx.
|
|
1391
|
-
};
|
|
1392
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).x2n = function (ctx) {
|
|
1393
|
-
return !ensureNotNull(ctx.z2s_1).t22(this);
|
|
1389
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).v2n = function (ctx) {
|
|
1390
|
+
return ensureNotNull(ctx.a2s_1).u22(this);
|
|
1394
1391
|
};
|
|
1395
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1396
|
-
return ensureNotNull(ctx.
|
|
1392
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).y2n = function (ctx) {
|
|
1393
|
+
return !ensureNotNull(ctx.a2t_1).u22(this);
|
|
1397
1394
|
};
|
|
1398
1395
|
protoOf(StateExpressionEvaluator$booleanExpr$1).a2o = function (ctx) {
|
|
1399
|
-
return ensureNotNull(ctx.
|
|
1396
|
+
return ensureNotNull(ctx.q2t_1).u22(this) ? true : ensureNotNull(ctx.r2t_1).u22(this);
|
|
1400
1397
|
};
|
|
1401
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1402
|
-
|
|
1398
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).b2o = function (ctx) {
|
|
1399
|
+
return ensureNotNull(ctx.z2t_1).u22(this) ? ensureNotNull(ctx.a2u_1).u22(this) : false;
|
|
1400
|
+
};
|
|
1401
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).w2n = function (ctx) {
|
|
1402
|
+
var tmp0_subject = ensureNotNull(ctx.i2s_1).t1s();
|
|
1403
1403
|
var tmp;
|
|
1404
|
-
if (tmp0_subject === Tokens_TRUE_getInstance().
|
|
1404
|
+
if (tmp0_subject === Tokens_TRUE_getInstance().w2q_1) {
|
|
1405
1405
|
tmp = true;
|
|
1406
|
-
} else if (tmp0_subject === Tokens_FALSE_getInstance().
|
|
1406
|
+
} else if (tmp0_subject === Tokens_FALSE_getInstance().w2q_1) {
|
|
1407
1407
|
tmp = false;
|
|
1408
1408
|
} else {
|
|
1409
1409
|
throw IllegalStateException_init_$Create$_0();
|
|
1410
1410
|
}
|
|
1411
1411
|
return tmp;
|
|
1412
1412
|
};
|
|
1413
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1414
|
-
var varName = ensureNotNull(ensureNotNull(ctx.
|
|
1413
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).x2n = function (ctx) {
|
|
1414
|
+
var varName = ensureNotNull(ensureNotNull(ctx.q2s_1).k1t());
|
|
1415
1415
|
// Inline function 'kotlin.run' call
|
|
1416
1416
|
// Inline function 'kotlin.contracts.contract' call
|
|
1417
1417
|
// Inline function 'org.cru.godtools.shared.tool.parser.expressions.grammar.<no name provided>.visitEqExpr.<anonymous>' call
|
|
1418
|
-
var $this$run = ensureNotNull(ensureNotNull(ctx.
|
|
1418
|
+
var $this$run = ensureNotNull(ensureNotNull(ctx.s2s_1).k1t());
|
|
1419
1419
|
// Inline function 'kotlin.text.substring' call
|
|
1420
1420
|
var endIndex = $this$run.length - 1 | 0;
|
|
1421
1421
|
// Inline function 'kotlin.js.asDynamic' call
|
|
1422
1422
|
var value = $this$run.substring(1, endIndex);
|
|
1423
|
-
var tmp0_subject = ensureNotNull(ctx.
|
|
1423
|
+
var tmp0_subject = ensureNotNull(ctx.r2s_1).t1s();
|
|
1424
1424
|
var tmp;
|
|
1425
|
-
if (tmp0_subject === Tokens_EQ_getInstance().
|
|
1426
|
-
tmp = this.
|
|
1427
|
-
} else if (tmp0_subject === Tokens_NEQ_getInstance().
|
|
1428
|
-
tmp = !this.
|
|
1425
|
+
if (tmp0_subject === Tokens_EQ_getInstance().w2q_1) {
|
|
1426
|
+
tmp = this.n2w_1.j2w_1.l1i(varName).v(value);
|
|
1427
|
+
} else if (tmp0_subject === Tokens_NEQ_getInstance().w2q_1) {
|
|
1428
|
+
tmp = !this.n2w_1.j2w_1.l1i(varName).v(value);
|
|
1429
1429
|
} else {
|
|
1430
1430
|
throw IllegalStateException_init_$Create$_0();
|
|
1431
1431
|
}
|
|
1432
1432
|
return tmp;
|
|
1433
1433
|
};
|
|
1434
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1435
|
-
var left = ensureNotNull(ctx.
|
|
1436
|
-
var right = ensureNotNull(ctx.
|
|
1437
|
-
var tmp0_subject = ensureNotNull(ctx.
|
|
1434
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).u2n = function (ctx) {
|
|
1435
|
+
var left = ensureNotNull(ctx.q2r_1).u22(this.n2w_1.l2w_1);
|
|
1436
|
+
var right = ensureNotNull(ctx.s2r_1).u22(this.n2w_1.l2w_1);
|
|
1437
|
+
var tmp0_subject = ensureNotNull(ctx.r2r_1).t1s();
|
|
1438
1438
|
var tmp;
|
|
1439
|
-
if (tmp0_subject === Tokens_EQ_getInstance().
|
|
1439
|
+
if (tmp0_subject === Tokens_EQ_getInstance().w2q_1) {
|
|
1440
1440
|
tmp = left === right;
|
|
1441
|
-
} else if (tmp0_subject === Tokens_NEQ_getInstance().
|
|
1441
|
+
} else if (tmp0_subject === Tokens_NEQ_getInstance().w2q_1) {
|
|
1442
1442
|
tmp = !(left === right);
|
|
1443
|
-
} else if (tmp0_subject === Tokens_GT_getInstance().
|
|
1443
|
+
} else if (tmp0_subject === Tokens_GT_getInstance().w2q_1) {
|
|
1444
1444
|
tmp = left > right;
|
|
1445
|
-
} else if (tmp0_subject === Tokens_GTE_getInstance().
|
|
1445
|
+
} else if (tmp0_subject === Tokens_GTE_getInstance().w2q_1) {
|
|
1446
1446
|
tmp = left >= right;
|
|
1447
|
-
} else if (tmp0_subject === Tokens_LT_getInstance().
|
|
1447
|
+
} else if (tmp0_subject === Tokens_LT_getInstance().w2q_1) {
|
|
1448
1448
|
tmp = left < right;
|
|
1449
|
-
} else if (tmp0_subject === Tokens_LTE_getInstance().
|
|
1449
|
+
} else if (tmp0_subject === Tokens_LTE_getInstance().w2q_1) {
|
|
1450
1450
|
tmp = left <= right;
|
|
1451
1451
|
} else {
|
|
1452
1452
|
throw IllegalStateException_init_$Create$_0();
|
|
1453
1453
|
}
|
|
1454
1454
|
return tmp;
|
|
1455
1455
|
};
|
|
1456
|
-
protoOf(StateExpressionEvaluator$booleanExpr$1).
|
|
1456
|
+
protoOf(StateExpressionEvaluator$booleanExpr$1).z2n = function (ctx) {
|
|
1457
1457
|
// Inline function 'kotlin.collections.isNotEmpty' call
|
|
1458
|
-
return !this.
|
|
1458
|
+
return !this.n2w_1.j2w_1.l1i(ensureNotNull(ensureNotNull(ctx.i2t_1).k1t())).x();
|
|
1459
1459
|
};
|
|
1460
1460
|
function StateExpressionEvaluator$intExpr$1(this$0) {
|
|
1461
|
-
this.
|
|
1461
|
+
this.o2w_1 = this$0;
|
|
1462
1462
|
StateExpressionBaseVisitor.call(this);
|
|
1463
1463
|
}
|
|
1464
|
-
protoOf(StateExpressionEvaluator$intExpr$1).
|
|
1465
|
-
return toInt(ensureNotNull(ensureNotNull(ctx.
|
|
1464
|
+
protoOf(StateExpressionEvaluator$intExpr$1).e2o = function (ctx) {
|
|
1465
|
+
return toInt(ensureNotNull(ensureNotNull(ctx.n2v_1).k1t()));
|
|
1466
1466
|
};
|
|
1467
|
-
protoOf(StateExpressionEvaluator$intExpr$1).
|
|
1468
|
-
return this.
|
|
1467
|
+
protoOf(StateExpressionEvaluator$intExpr$1).d2o = function (ctx) {
|
|
1468
|
+
return this.o2w_1.j2w_1.l1i(ensureNotNull(ensureNotNull(ctx.d2w_1).k1t())).l();
|
|
1469
1469
|
};
|
|
1470
1470
|
function StateExpressionEvaluator(state) {
|
|
1471
|
-
this.
|
|
1471
|
+
this.j2w_1 = state;
|
|
1472
1472
|
var tmp = this;
|
|
1473
|
-
tmp.
|
|
1473
|
+
tmp.k2w_1 = new StateExpressionEvaluator$booleanExpr$1(this);
|
|
1474
1474
|
var tmp_0 = this;
|
|
1475
|
-
tmp_0.
|
|
1475
|
+
tmp_0.l2w_1 = new StateExpressionEvaluator$intExpr$1(this);
|
|
1476
1476
|
}
|
|
1477
1477
|
//region block: exports
|
|
1478
1478
|
_.$_$ = _.$_$ || {};
|