@kontur.candy/generator 4.276.4 → 4.277.0-fs-7292-normalization-fixes.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +566 -425
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -112386,6 +112386,10 @@ class KCLangRuntimeUtils {
|
|
|
112386
112386
|
return str.substring(start, end);
|
|
112387
112387
|
}
|
|
112388
112388
|
|
|
112389
|
+
dateNow() {
|
|
112390
|
+
return new Date().toLocaleString("en-GB").replace(",", "");
|
|
112391
|
+
}
|
|
112392
|
+
|
|
112389
112393
|
}
|
|
112390
112394
|
KCLangRuntimeUtils.kcLangUtilsName = "kcLangUtils";
|
|
112391
112395
|
|
|
@@ -115008,7 +115012,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
115008
115012
|
/* harmony export */ "substringKCLangFunction": () => (/* binding */ substringKCLangFunction),
|
|
115009
115013
|
/* harmony export */ "groupSumKCLangFunction": () => (/* binding */ groupSumKCLangFunction),
|
|
115010
115014
|
/* harmony export */ "concatKCLangFunction": () => (/* binding */ concatKCLangFunction),
|
|
115011
|
-
/* harmony export */ "newlineKCLangFunction": () => (/* binding */ newlineKCLangFunction)
|
|
115015
|
+
/* harmony export */ "newlineKCLangFunction": () => (/* binding */ newlineKCLangFunction),
|
|
115016
|
+
/* harmony export */ "dateNowKCLangFunction": () => (/* binding */ dateNowKCLangFunction)
|
|
115012
115017
|
/* harmony export */ });
|
|
115013
115018
|
class ArgumentValidationError {
|
|
115014
115019
|
constructor(validationMessage) {
|
|
@@ -115302,6 +115307,17 @@ const newlineKCLangFunction = params => {
|
|
|
115302
115307
|
type: "newline"
|
|
115303
115308
|
};
|
|
115304
115309
|
};
|
|
115310
|
+
const dateNowKCLangFunction = params => {
|
|
115311
|
+
const errors = Array.from(validateParams(params, 0, 0));
|
|
115312
|
+
|
|
115313
|
+
if (errors.length > 0) {
|
|
115314
|
+
return new FunctionValidationErrorCollection(errors);
|
|
115315
|
+
}
|
|
115316
|
+
|
|
115317
|
+
return {
|
|
115318
|
+
type: "dateNow"
|
|
115319
|
+
};
|
|
115320
|
+
};
|
|
115305
115321
|
|
|
115306
115322
|
/***/ }),
|
|
115307
115323
|
|
|
@@ -115341,7 +115357,8 @@ const getKCLangGlobalFunctionBuilders = () => ({
|
|
|
115341
115357
|
count: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.countKCLangFunction],
|
|
115342
115358
|
groupSum: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.groupSumKCLangFunction],
|
|
115343
115359
|
concat: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.concatKCLangFunction],
|
|
115344
|
-
newline: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.newlineKCLangFunction]
|
|
115360
|
+
newline: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.newlineKCLangFunction],
|
|
115361
|
+
dateNow: [_KCLangAntlrFunctions__WEBPACK_IMPORTED_MODULE_2__.dateNowKCLangFunction]
|
|
115345
115362
|
});
|
|
115346
115363
|
|
|
115347
115364
|
class ErrorListener {
|
|
@@ -116159,7 +116176,7 @@ KCLangLexer.ruleNames = ["GOUP", "PROPERTIES", "DECIMAL", "FRACTION", "STRINGTYP
|
|
|
116159
116176
|
KCLangLexer._LITERAL_NAMES = [undefined, undefined, "'getProperty'", "'decimal'", "'fraction'", "'string'", "'date'", "'%'", "'*'", "' / '", "'+'", "'-'", "'==='", "'>'", "'>='", "'<'", "'<='", "'=='", "'!='", "'='", "'as'", "'#'", "'var'", "'in'", "' : '", "':'", "','", "'.'", "'@'", "'$'", undefined, undefined, undefined, "'('", "')'", "'['", "']'", "'{'", "'}'", "'/'", "'if'", "'else'", "'Error'", "'Warning'", "'check'", "'with'", "';'", "'?'"];
|
|
116160
116177
|
KCLangLexer._SYMBOLIC_NAMES = [undefined, "GOUP", "PROPERTIES", "DECIMAL", "FRACTION", "STRINGTYPE", "DATE", "PERCENT", "MUL", "DIV", "PLUS", "MIN", "TEQ", "GT", "GE", "LT", "LE", "EQ", "NEQ", "EQUAL", "AS", "HASH", "VAR", "IN", "COLON1", "COLON", "COMMA", "DOT", "AT", "DOLLAR", "AND", "OR", "NOT", "LPAREN", "RPAREN", "LBRACKET", "RBRACKET", "LBRACE", "RBRACE", "SLASH", "IF", "ELSE", "ERROR", "WARNING", "CHECK", "WITH", "SEMICOLON", "QUESTIONMARK", "CONSTSTRINGWITHQUOTES", "CONSTSTRINGWITHSINGLEQUOTES", "CONSTSTRINGWITHDOUBLEQUOTES", "NAME", "PATHTOKEN", "NUMBER", "STRING", "SPACE", "BlockComment", "LineComment"];
|
|
116161
116178
|
KCLangLexer.VOCABULARY = new antlr4ts_VocabularyImpl__WEBPACK_IMPORTED_MODULE_3__.VocabularyImpl(KCLangLexer._LITERAL_NAMES, KCLangLexer._SYMBOLIC_NAMES, []);
|
|
116162
|
-
KCLangLexer._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x02;\u01B2\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\v\t\v\x04\f\t\f\x04\r" + "\t\r\x04\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10\x04\x11\t\x11\x04\x12\t" + "\x12\x04\x13\t\x13\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17\t" + "\x17\x04\x18\t\x18\x04\x19\t\x19\x04\x1A\t\x1A\x04\x1B\t\x1B\x04\x1C\t" + '\x1C\x04\x1D\t\x1D\x04\x1E\t\x1E\x04\x1F\t\x1F\x04 \t \x04!\t!\x04"\t' + "\"\x04#\t#\x04$\t$\x04%\t%\x04&\t&\x04'\t'\x04(\t(\x04)\t)\x04*\t*\x04" + "+\t+\x04,\t,\x04-\t-\x04.\t.\x04/\t/\x040\t0\x041\t1\x042\t2\x043\t3\x04" + "4\t4\x045\t5\x046\t6\x047\t7\x048\t8\x049\t9\x04:\t:\x04;\t;\x04<\t<\x04" + "=\t=\x04>\t>\x04?\t?\x04@\t@\x04A\tA\x04B\tB\x03\x02\x03\x02\x03\x02\x03" + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03" + "\x03\x03\x03\x03\x03\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03" + "\x04\x03\x04\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03" + "\x05\x03\x05\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06\x03" + "\x07\x03\x07\x03\x07\x03\x07\x03\x07\x03\b\x03\b\x03\t\x03\t\x03\n\x03" + "\n\x03\n\x03\n\x03\v\x03\v\x03\f\x03\f\x03\r\x03\r\x03\r\x03\r\x03\x0E" + "\x03\x0E\x03\x0F\x03\x0F\x03\x0F\x03\x10\x03\x10\x03\x11\x03\x11\x03\x11" + "\x03\x12\x03\x12\x03\x12\x03\x13\x03\x13\x03\x13\x03\x14\x03\x14\x03\x15" + "\x03\x15\x03\x15\x03\x16\x03\x16\x03\x17\x03\x17\x03\x17\x03\x17\x03\x18" + "\x03\x18\x03\x18\x03\x19\x03\x19\x03\x19\x03\x19\x03\x1A\x03\x1A\x03\x1B" + "\x03\x1B\x03\x1C\x03\x1C\x03\x1D\x03\x1D\x03\x1E\x03\x1E\x03\x1F\x03\x1F" + "\x03\x1F\x03\x1F\x03\x1F\x05\x1F\xF3\n\x1F\x03 \x03 \x03 \x03 \x05 \xF9" + '\n \x03!\x03!\x03!\x03!\x05!\xFF\n!\x03"\x03"\x03#\x03#\x03$\x03$\x03' + "%\x03%\x03&\x03&\x03'\x03'\x03(\x03(\x03)\x03)\x03)\x03*\x03*\x03*\x03" + "*\x03*\x03+\x03+\x03+\x03+\x03+\x03+\x03,\x03,\x03,\x03,\x03,\x03,\x03" + ",\x03,\x03-\x03-\x03-\x03-\x03-\x03-\x03.\x03.\x03.\x03.\x03.\x03/\x03" + "/\x030\x030\x031\x031\x051\u0136\n1\x032\x032\x032\x032\x033\x033\x03" + "3\x033\x034\x034\x035\x035\x036\x076\u0145\n6\f6\x0E6\u0148\v6\x037\x07" + "7\u014B\n7\f7\x0E7\u014E\v7\x038\x038\x039\x039\x039\x039\x03:\x03:\x07" + ":\u0158\n:\f:\x0E:\u015B\v:\x03:\x03:\x03;\x03;\x07;\u0161\n;\f;\x0E;" + "\u0164\v;\x03;\x03;\x03<\x05<\u0169\n<\x03<\x03<\x07<\u016D\n<\f<\x0E" + "<\u0170\v<\x03=\x03=\x05=\u0174\n=\x03=\x05=\u0177\n=\x03>\x07>\u017A" + "\n>\f>\x0E>\u017D\v>\x03>\x06>\u0180\n>\r>\x0E>\u0181\x03>\x05>\u0185" + "\n>\x03>\x07>\u0188\n>\f>\x0E>\u018B\v>\x03?\x03?\x07?\u018F\n?\f?\x0E" + "?\u0192\v?\x03?\x03?\x03@\x03@\x03@\x03@\x03A\x03A\x03A\x03A\x07A\u019E" + "\nA\fA\x0EA\u01A1\vA\x03A\x03A\x03A\x03A\x03A\x03B\x03B\x03B\x03B\x07" + "B\u01AC\nB\fB\x0EB\u01AF\vB\x03B\x03B\x04\u0190\u019F\x02\x02C\x03\x02" + "\x03\x05\x02\x04\x07\x02\x05\t\x02\x06\v\x02\x07\r\x02\b\x0F\x02\t\x11" + "\x02\n\x13\x02\v\x15\x02\f\x17\x02\r\x19\x02\x0E\x1B\x02\x0F\x1D\x02\x10" + "\x1F\x02\x11!\x02\x12#\x02\x13%\x02\x14'\x02\x15)\x02\x16+\x02\x17-\x02" + "\x18/\x02\x191\x02\x1A3\x02\x1B5\x02\x1C7\x02\x1D9\x02\x1E;\x02\x1F=\x02" + " ?\x02!A\x02\"C\x02#E\x02$G\x02%I\x02&K\x02'M\x02(O\x02)Q\x02*S\x02+" + "U\x02,W\x02-Y\x02.[\x02/]\x020_\x021a\x022c\x023e\x024g\x02\x02i\x02\x02" + "k\x02\x02m\x02\x02o\x02\x02q\x02\x02s\x02\x02u\x02\x02w\x025y\x026{\x02" + "7}\x028\x7F\x029\x81\x02:\x83\x02;\x03\x02\x0F\x03\x02))\x03\x02$$\x03" + "\x02]]\x03\x02__\x03\x02}}\x03\x02\x7F\x7F\x04\x02&&BB\x07\x02C\\c|\u0403" + "\u0403\u0412\u0451\u0453\u0453\n\x02/02;C\\aac|\u0403\u0403\u0412\u0451" + '\u0453\u0453\x03\x022;\x03\x0200\x05\x02\v\f\x0F\x0F""\x04\x02\f\f\x0F' + "\x0F\x02\u01BC\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\v\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\x02'\x03\x02\x02\x02\x02)\x03\x02\x02\x02\x02+\x03\x02\x02\x02\x02" + "-\x03\x02\x02\x02\x02/\x03\x02\x02\x02\x021\x03\x02\x02\x02\x023\x03\x02" + "\x02\x02\x025\x03\x02\x02\x02\x027\x03\x02\x02\x02\x029\x03\x02\x02\x02" + "\x02;\x03\x02\x02\x02\x02=\x03\x02\x02\x02\x02?\x03\x02\x02\x02\x02A\x03" + "\x02\x02\x02\x02C\x03\x02\x02\x02\x02E\x03\x02\x02\x02\x02G\x03\x02\x02" + "\x02\x02I\x03\x02\x02\x02\x02K\x03\x02\x02\x02\x02M\x03\x02\x02\x02\x02" + "O\x03\x02\x02\x02\x02Q\x03\x02\x02\x02\x02S\x03\x02\x02\x02\x02U\x03\x02" + "\x02\x02\x02W\x03\x02\x02\x02\x02Y\x03\x02\x02\x02\x02[\x03\x02\x02\x02" + "\x02]\x03\x02\x02\x02\x02_\x03\x02\x02\x02\x02a\x03\x02\x02\x02\x02c\x03" + "\x02\x02\x02\x02e\x03\x02\x02\x02\x02w\x03\x02\x02\x02\x02y\x03\x02\x02" + "\x02\x02{\x03\x02\x02\x02\x02}\x03\x02\x02\x02\x02\x7F\x03\x02\x02\x02" + "\x02\x81\x03\x02\x02\x02\x02\x83\x03\x02\x02\x02\x03\x85\x03\x02\x02\x02" + "\x05\x88\x03\x02\x02\x02\x07\x94\x03\x02\x02\x02\t\x9C\x03\x02\x02\x02" + "\v\xA5\x03\x02\x02\x02\r\xAC\x03\x02\x02\x02\x0F\xB1\x03\x02\x02\x02\x11" + "\xB3\x03\x02\x02\x02\x13\xB5\x03\x02\x02\x02\x15\xB9\x03\x02\x02\x02\x17" + "\xBB\x03\x02\x02\x02\x19\xBD\x03\x02\x02\x02\x1B\xC1\x03\x02\x02\x02\x1D" + "\xC3\x03\x02\x02\x02\x1F\xC6\x03\x02\x02\x02!\xC8\x03\x02\x02\x02#\xCB" + "\x03\x02\x02\x02%\xCE\x03\x02\x02\x02'\xD1\x03\x02\x02\x02)\xD3\x03\x02" + "\x02\x02+\xD6\x03\x02\x02\x02-\xD8\x03\x02\x02\x02/\xDC\x03\x02\x02\x02" + "1\xDF\x03\x02\x02\x023\xE3\x03\x02\x02\x025\xE5\x03\x02\x02\x027\xE7\x03" + "\x02\x02\x029\xE9\x03\x02\x02\x02;\xEB\x03\x02\x02\x02=\xF2\x03\x02\x02" + "\x02?\xF8\x03\x02\x02\x02A\xFE\x03\x02\x02\x02C\u0100\x03\x02\x02\x02" + "E\u0102\x03\x02\x02\x02G\u0104\x03\x02\x02\x02I\u0106\x03\x02\x02\x02" + "K\u0108\x03\x02\x02\x02M\u010A\x03\x02\x02\x02O\u010C\x03\x02\x02\x02" + "Q\u010E\x03\x02\x02\x02S\u0111\x03\x02\x02\x02U\u0116\x03\x02\x02\x02" + "W\u011C\x03\x02\x02\x02Y\u0124\x03\x02\x02\x02[\u012A\x03\x02\x02\x02" + "]\u012F\x03\x02\x02\x02_\u0131\x03\x02\x02\x02a\u0135\x03\x02\x02\x02" + "c\u0137\x03\x02\x02\x02e\u013B\x03\x02\x02\x02g\u013F\x03\x02\x02\x02" + "i\u0141\x03\x02\x02\x02k\u0146\x03\x02\x02\x02m\u014C\x03\x02\x02\x02" + "o\u014F\x03\x02\x02\x02q\u0151\x03\x02\x02\x02s\u0155\x03\x02\x02\x02" + "u\u015E\x03\x02\x02\x02w\u0168\x03\x02\x02\x02y\u0171\x03\x02\x02\x02" + "{\u017B\x03\x02\x02\x02}\u018C\x03\x02\x02\x02\x7F\u0195\x03\x02\x02\x02" + "\x81\u0199\x03\x02\x02\x02\x83\u01A7\x03\x02\x02\x02\x85\x86\x057\x1C" + "\x02\x86\x87\x057\x1C\x02\x87\x04\x03\x02\x02\x02\x88\x89\x07i\x02\x02" + "\x89\x8A\x07g\x02\x02\x8A\x8B\x07v\x02\x02\x8B\x8C\x07R\x02\x02\x8C\x8D" + "\x07t\x02\x02\x8D\x8E\x07q\x02\x02\x8E\x8F\x07r\x02\x02\x8F\x90\x07g\x02" + "\x02\x90\x91\x07t\x02\x02\x91\x92\x07v\x02\x02\x92\x93\x07{\x02\x02\x93" + "\x06\x03\x02\x02\x02\x94\x95\x07f\x02\x02\x95\x96\x07g\x02\x02\x96\x97" + "\x07e\x02\x02\x97\x98\x07k\x02\x02\x98\x99\x07o\x02\x02\x99\x9A\x07c\x02" + "\x02\x9A\x9B\x07n\x02\x02\x9B\b\x03\x02\x02\x02\x9C\x9D\x07h\x02\x02\x9D" + "\x9E\x07t\x02\x02\x9E\x9F\x07c\x02\x02\x9F\xA0\x07e\x02\x02\xA0\xA1\x07" + "v\x02\x02\xA1\xA2\x07k\x02\x02\xA2\xA3\x07q\x02\x02\xA3\xA4\x07p\x02\x02" + "\xA4\n\x03\x02\x02\x02\xA5\xA6\x07u\x02\x02\xA6\xA7\x07v\x02\x02\xA7\xA8" + "\x07t\x02\x02\xA8\xA9\x07k\x02\x02\xA9\xAA\x07p\x02\x02\xAA\xAB\x07i\x02" + "\x02\xAB\f\x03\x02\x02\x02\xAC\xAD\x07f\x02\x02\xAD\xAE\x07c\x02\x02\xAE" + "\xAF\x07v\x02\x02\xAF\xB0\x07g\x02\x02\xB0\x0E\x03\x02\x02\x02\xB1\xB2" + "\x07'\x02\x02\xB2\x10\x03\x02\x02\x02\xB3\xB4\x07,\x02\x02\xB4\x12\x03" + '\x02\x02\x02\xB5\xB6\x07"\x02\x02\xB6\xB7\x071\x02\x02\xB7\xB8\x07"' + "\x02\x02\xB8\x14\x03\x02\x02\x02\xB9\xBA\x07-\x02\x02\xBA\x16\x03\x02" + "\x02\x02\xBB\xBC\x07/\x02\x02\xBC\x18\x03\x02\x02\x02\xBD\xBE\x07?\x02" + "\x02\xBE\xBF\x07?\x02\x02\xBF\xC0\x07?\x02\x02\xC0\x1A\x03\x02\x02\x02" + "\xC1\xC2\x07@\x02\x02\xC2\x1C\x03\x02\x02\x02\xC3\xC4\x07@\x02\x02\xC4" + "\xC5\x07?\x02\x02\xC5\x1E\x03\x02\x02\x02\xC6\xC7\x07>\x02\x02\xC7 \x03" + '\x02\x02\x02\xC8\xC9\x07>\x02\x02\xC9\xCA\x07?\x02\x02\xCA"\x03\x02\x02' + "\x02\xCB\xCC\x07?\x02\x02\xCC\xCD\x07?\x02\x02\xCD$\x03\x02\x02\x02\xCE" + "\xCF\x07#\x02\x02\xCF\xD0\x07?\x02\x02\xD0&\x03\x02\x02\x02\xD1\xD2\x07" + "?\x02\x02\xD2(\x03\x02\x02\x02\xD3\xD4\x07c\x02\x02\xD4\xD5\x07u\x02\x02" + "\xD5*\x03\x02\x02\x02\xD6\xD7\x07%\x02\x02\xD7,\x03\x02\x02\x02\xD8\xD9" + "\x07x\x02\x02\xD9\xDA\x07c\x02\x02\xDA\xDB\x07t\x02\x02\xDB.\x03\x02\x02" + "\x02\xDC\xDD\x07k\x02\x02\xDD\xDE\x07p\x02\x02\xDE0\x03\x02\x02\x02\xDF" + '\xE0\x07"\x02\x02\xE0\xE1\x07<\x02\x02\xE1\xE2\x07"\x02\x02\xE22\x03' + "\x02\x02\x02\xE3\xE4\x07<\x02\x02\xE44\x03\x02\x02\x02\xE5\xE6\x07.\x02" + "\x02\xE66\x03\x02\x02\x02\xE7\xE8\x070\x02\x02\xE88\x03\x02\x02\x02\xE9" + "\xEA\x07B\x02\x02\xEA:\x03\x02\x02\x02\xEB\xEC\x07&\x02\x02\xEC<\x03\x02" + "\x02\x02\xED\xEE\x07c\x02\x02\xEE\xEF\x07p\x02\x02\xEF\xF3\x07f\x02\x02" + "\xF0\xF1\x07(\x02\x02\xF1\xF3\x07(\x02\x02\xF2\xED\x03\x02\x02\x02\xF2" + "\xF0\x03\x02\x02\x02\xF3>\x03\x02\x02\x02\xF4\xF5\x07q\x02\x02\xF5\xF9" + "\x07t\x02\x02\xF6\xF7\x07~\x02\x02\xF7\xF9\x07~\x02\x02\xF8\xF4\x03\x02" + "\x02\x02\xF8\xF6\x03\x02\x02\x02\xF9@\x03\x02\x02\x02\xFA\xFB\x07p\x02" + "\x02\xFB\xFC\x07q\x02\x02\xFC\xFF\x07v\x02\x02\xFD\xFF\x07#\x02\x02\xFE" + "\xFA\x03\x02\x02\x02\xFE\xFD\x03\x02\x02\x02\xFFB\x03\x02\x02\x02\u0100" + "\u0101\x07*\x02\x02\u0101D\x03\x02\x02\x02\u0102\u0103\x07+\x02\x02\u0103" + "F\x03\x02\x02\x02\u0104\u0105\x07]\x02\x02\u0105H\x03\x02\x02\x02\u0106" + "\u0107\x07_\x02\x02\u0107J\x03\x02\x02\x02\u0108\u0109\x07}\x02\x02\u0109" + "L\x03\x02\x02\x02\u010A\u010B\x07\x7F\x02\x02\u010BN\x03\x02\x02\x02\u010C" + "\u010D\x071\x02\x02\u010DP\x03\x02\x02\x02\u010E\u010F\x07k\x02\x02\u010F" + "\u0110\x07h\x02\x02\u0110R\x03\x02\x02\x02\u0111\u0112\x07g\x02\x02\u0112" + "\u0113\x07n\x02\x02\u0113\u0114\x07u\x02\x02\u0114\u0115\x07g\x02\x02" + "\u0115T\x03\x02\x02\x02\u0116\u0117\x07G\x02\x02\u0117\u0118\x07t\x02" + "\x02\u0118\u0119\x07t\x02\x02\u0119\u011A\x07q\x02\x02\u011A\u011B\x07" + "t\x02\x02\u011BV\x03\x02\x02\x02\u011C\u011D\x07Y\x02\x02\u011D\u011E" + "\x07c\x02\x02\u011E\u011F\x07t\x02\x02\u011F\u0120\x07p\x02\x02\u0120" + "\u0121\x07k\x02\x02\u0121\u0122\x07p\x02\x02\u0122\u0123\x07i\x02\x02" + "\u0123X\x03\x02\x02\x02\u0124\u0125\x07e\x02\x02\u0125\u0126\x07j\x02" + "\x02\u0126\u0127\x07g\x02\x02\u0127\u0128\x07e\x02\x02\u0128\u0129\x07" + "m\x02\x02\u0129Z\x03\x02\x02\x02\u012A\u012B\x07y\x02\x02\u012B\u012C" + "\x07k\x02\x02\u012C\u012D\x07v\x02\x02\u012D\u012E\x07j\x02\x02\u012E" + "\\\x03\x02\x02\x02\u012F\u0130\x07=\x02\x02\u0130^\x03\x02\x02\x02\u0131" + "\u0132\x07A\x02\x02\u0132`\x03\x02\x02\x02\u0133\u0136\x05c2\x02\u0134" + "\u0136\x05e3\x02\u0135\u0133\x03\x02\x02\x02\u0135\u0134\x03\x02\x02\x02" + "\u0136b\x03\x02\x02\x02\u0137\u0138\x05g4\x02\u0138\u0139\x05k6\x02\u0139" + "\u013A\x05g4\x02\u013Ad\x03\x02\x02\x02\u013B\u013C\x05i5\x02\u013C\u013D" + "\x05m7\x02\u013D\u013E\x05i5\x02\u013Ef\x03\x02\x02\x02\u013F\u0140\x07" + ")\x02\x02\u0140h\x03\x02\x02\x02\u0141\u0142\x07$\x02\x02\u0142j\x03\x02" + "\x02\x02\u0143\u0145\n\x02\x02\x02\u0144\u0143\x03\x02\x02\x02\u0145\u0148" + "\x03\x02\x02\x02\u0146\u0144\x03\x02\x02\x02\u0146\u0147\x03\x02\x02\x02" + "\u0147l\x03\x02\x02\x02\u0148\u0146\x03\x02\x02\x02\u0149\u014B\n\x03" + "\x02\x02\u014A\u0149\x03\x02\x02\x02\u014B\u014E\x03\x02\x02\x02\u014C" + "\u014A\x03\x02\x02\x02\u014C\u014D\x03\x02\x02\x02\u014Dn\x03\x02\x02" + "\x02\u014E\u014C\x03\x02\x02\x02\u014F\u0150\x07b\x02\x02\u0150p\x03\x02" + "\x02\x02\u0151\u0152\x05o8\x02\u0152\u0153\x05o8\x02\u0153\u0154\x05o" + "8\x02\u0154r\x03\x02\x02\x02\u0155\u0159\t\x04\x02\x02\u0156\u0158\n\x05" + "\x02\x02\u0157\u0156\x03\x02\x02\x02\u0158\u015B\x03\x02\x02\x02\u0159" + "\u0157\x03\x02\x02\x02\u0159\u015A\x03\x02\x02\x02\u015A\u015C\x03\x02" + "\x02\x02\u015B\u0159\x03\x02\x02\x02\u015C\u015D\t\x05\x02\x02\u015Dt" + "\x03\x02\x02\x02\u015E\u0162\t\x06\x02\x02\u015F\u0161\n\x07\x02\x02\u0160" + "\u015F\x03\x02\x02\x02\u0161\u0164\x03\x02\x02\x02\u0162\u0160\x03\x02" + "\x02\x02\u0162\u0163\x03\x02\x02\x02\u0163\u0165\x03\x02\x02\x02\u0164" + "\u0162\x03\x02\x02\x02\u0165\u0166\t\x07\x02\x02\u0166v\x03\x02\x02\x02" + "\u0167\u0169\t\b\x02\x02\u0168\u0167\x03\x02\x02\x02\u0168\u0169\x03\x02" + "\x02\x02\u0169\u016A\x03\x02\x02\x02\u016A\u016E\t\t\x02\x02\u016B\u016D" + "\t\n\x02\x02\u016C\u016B\x03\x02\x02\x02\u016D\u0170\x03\x02\x02\x02\u016E" + "\u016C\x03\x02\x02\x02\u016E\u016F\x03\x02\x02\x02\u016Fx\x03\x02\x02" + "\x02\u0170\u016E\x03\x02\x02\x02\u0171\u0173\x05w<\x02\u0172\u0174\x05" + "s:\x02\u0173\u0172\x03\x02\x02\x02\u0173\u0174\x03\x02\x02\x02\u0174\u0176" + "\x03\x02\x02\x02\u0175\u0177\x05u;\x02\u0176\u0175\x03\x02\x02\x02\u0176" + "\u0177\x03\x02\x02\x02\u0177z\x03\x02\x02\x02\u0178\u017A\x05\x17\f\x02" + "\u0179\u0178\x03\x02\x02\x02\u017A\u017D\x03\x02\x02\x02\u017B\u0179\x03" + "\x02\x02\x02\u017B\u017C\x03\x02\x02\x02\u017C\u017F\x03\x02\x02\x02\u017D" + "\u017B\x03\x02\x02\x02\u017E\u0180\t\v\x02\x02\u017F\u017E\x03\x02\x02" + "\x02\u0180\u0181\x03\x02\x02\x02\u0181\u017F\x03\x02\x02\x02\u0181\u0182" + "\x03\x02\x02\x02\u0182\u0184\x03\x02\x02\x02\u0183\u0185\t\f\x02\x02\u0184" + "\u0183\x03\x02\x02\x02\u0184\u0185\x03\x02\x02\x02\u0185\u0189\x03\x02" + "\x02\x02\u0186\u0188\t\v\x02\x02\u0187\u0186\x03\x02\x02\x02\u0188\u018B" + "\x03\x02\x02\x02\u0189\u0187\x03\x02\x02\x02\u0189\u018A\x03\x02\x02\x02" + "\u018A|\x03\x02\x02\x02\u018B\u0189\x03\x02\x02\x02\u018C\u0190\x05q9" + "\x02\u018D\u018F\v\x02\x02\x02\u018E\u018D\x03\x02\x02\x02\u018F\u0192" + "\x03\x02\x02\x02\u0190\u0191\x03\x02\x02\x02\u0190\u018E\x03\x02\x02\x02" + "\u0191\u0193\x03\x02\x02\x02\u0192\u0190\x03\x02\x02\x02\u0193\u0194\x05" + "q9\x02\u0194~\x03\x02\x02\x02\u0195\u0196\t\r\x02\x02\u0196\u0197\x03" + "\x02\x02\x02\u0197\u0198\b@\x02\x02\u0198\x80\x03\x02\x02\x02\u0199\u019A" + "\x071\x02\x02\u019A\u019B\x07,\x02\x02\u019B\u019F\x03\x02\x02\x02\u019C" + "\u019E\v\x02\x02\x02\u019D\u019C\x03\x02\x02\x02\u019E\u01A1\x03\x02\x02" + "\x02\u019F\u01A0\x03\x02\x02\x02\u019F\u019D\x03\x02\x02\x02\u01A0\u01A2" + "\x03\x02\x02\x02\u01A1\u019F\x03\x02\x02\x02\u01A2\u01A3\x07,\x02\x02" + "\u01A3\u01A4\x071\x02\x02\u01A4\u01A5\x03\x02\x02\x02\u01A5\u01A6\bA\x02" + "\x02\u01A6\x82\x03\x02\x02\x02\u01A7\u01A8\x071\x02\x02\u01A8\u01A9\x07" + "1\x02\x02\u01A9\u01AD\x03\x02\x02\x02\u01AA\u01AC\n\x0E\x02\x02\u01AB" + "\u01AA\x03\x02\x02\x02\u01AC\u01AF\x03\x02\x02\x02\u01AD\u01AB\x03\x02" + "\x02\x02\u01AD\u01AE\x03\x02\x02\x02\u01AE\u01B0\x03\x02\x02\x02\u01AF" + "\u01AD\x03\x02\x02\x02\u01B0\u01B1\bB\x02\x02\u01B1\x84\x03\x02\x02\x02" + "\x16\x02\xF2\xF8\xFE\u0135\u0146\u014C\u0159\u0162\u0168\u016E\u0173\u0176" + "\u017B\u0181\u0184\u0189\u0190\u019F\u01AD\x03\b\x02\x02";
|
|
116179
|
+
KCLangLexer._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x02;\u01B2\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\v\t\v\x04\f\t\f\x04\r" + "\t\r\x04\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10\x04\x11\t\x11\x04\x12\t" + "\x12\x04\x13\t\x13\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17\t" + "\x17\x04\x18\t\x18\x04\x19\t\x19\x04\x1A\t\x1A\x04\x1B\t\x1B\x04\x1C\t" + "\x1C\x04\x1D\t\x1D\x04\x1E\t\x1E\x04\x1F\t\x1F\x04 \t \x04!\t!\x04\"\t" + "\"\x04#\t#\x04$\t$\x04%\t%\x04&\t&\x04\'\t\'\x04(\t(\x04)\t)\x04*\t*\x04" + "+\t+\x04,\t,\x04-\t-\x04.\t.\x04/\t/\x040\t0\x041\t1\x042\t2\x043\t3\x04" + "4\t4\x045\t5\x046\t6\x047\t7\x048\t8\x049\t9\x04:\t:\x04;\t;\x04<\t<\x04" + "=\t=\x04>\t>\x04?\t?\x04@\t@\x04A\tA\x04B\tB\x03\x02\x03\x02\x03\x02\x03" + "\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03\x03" + "\x03\x03\x03\x03\x03\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03\x04\x03" + "\x04\x03\x04\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03\x05\x03" + "\x05\x03\x05\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06\x03\x06\x03" + "\x07\x03\x07\x03\x07\x03\x07\x03\x07\x03\b\x03\b\x03\t\x03\t\x03\n\x03" + "\n\x03\n\x03\n\x03\v\x03\v\x03\f\x03\f\x03\r\x03\r\x03\r\x03\r\x03\x0E" + "\x03\x0E\x03\x0F\x03\x0F\x03\x0F\x03\x10\x03\x10\x03\x11\x03\x11\x03\x11" + "\x03\x12\x03\x12\x03\x12\x03\x13\x03\x13\x03\x13\x03\x14\x03\x14\x03\x15" + "\x03\x15\x03\x15\x03\x16\x03\x16\x03\x17\x03\x17\x03\x17\x03\x17\x03\x18" + "\x03\x18\x03\x18\x03\x19\x03\x19\x03\x19\x03\x19\x03\x1A\x03\x1A\x03\x1B" + "\x03\x1B\x03\x1C\x03\x1C\x03\x1D\x03\x1D\x03\x1E\x03\x1E\x03\x1F\x03\x1F" + "\x03\x1F\x03\x1F\x03\x1F\x05\x1F\xF3\n\x1F\x03 \x03 \x03 \x03 \x05 \xF9" + "\n \x03!\x03!\x03!\x03!\x05!\xFF\n!\x03\"\x03\"\x03#\x03#\x03$\x03$\x03" + "%\x03%\x03&\x03&\x03\'\x03\'\x03(\x03(\x03)\x03)\x03)\x03*\x03*\x03*\x03" + "*\x03*\x03+\x03+\x03+\x03+\x03+\x03+\x03,\x03,\x03,\x03,\x03,\x03,\x03" + ",\x03,\x03-\x03-\x03-\x03-\x03-\x03-\x03.\x03.\x03.\x03.\x03.\x03/\x03" + "/\x030\x030\x031\x031\x051\u0136\n1\x032\x032\x032\x032\x033\x033\x03" + "3\x033\x034\x034\x035\x035\x036\x076\u0145\n6\f6\x0E6\u0148\v6\x037\x07" + "7\u014B\n7\f7\x0E7\u014E\v7\x038\x038\x039\x039\x039\x039\x03:\x03:\x07" + ":\u0158\n:\f:\x0E:\u015B\v:\x03:\x03:\x03;\x03;\x07;\u0161\n;\f;\x0E;" + "\u0164\v;\x03;\x03;\x03<\x05<\u0169\n<\x03<\x03<\x07<\u016D\n<\f<\x0E" + "<\u0170\v<\x03=\x03=\x05=\u0174\n=\x03=\x05=\u0177\n=\x03>\x07>\u017A" + "\n>\f>\x0E>\u017D\v>\x03>\x06>\u0180\n>\r>\x0E>\u0181\x03>\x05>\u0185" + "\n>\x03>\x07>\u0188\n>\f>\x0E>\u018B\v>\x03?\x03?\x07?\u018F\n?\f?\x0E" + "?\u0192\v?\x03?\x03?\x03@\x03@\x03@\x03@\x03A\x03A\x03A\x03A\x07A\u019E" + "\nA\fA\x0EA\u01A1\vA\x03A\x03A\x03A\x03A\x03A\x03B\x03B\x03B\x03B\x07" + "B\u01AC\nB\fB\x0EB\u01AF\vB\x03B\x03B\x04\u0190\u019F\x02\x02C\x03\x02" + "\x03\x05\x02\x04\x07\x02\x05\t\x02\x06\v\x02\x07\r\x02\b\x0F\x02\t\x11" + "\x02\n\x13\x02\v\x15\x02\f\x17\x02\r\x19\x02\x0E\x1B\x02\x0F\x1D\x02\x10" + "\x1F\x02\x11!\x02\x12#\x02\x13%\x02\x14\'\x02\x15)\x02\x16+\x02\x17-\x02" + "\x18/\x02\x191\x02\x1A3\x02\x1B5\x02\x1C7\x02\x1D9\x02\x1E;\x02\x1F=\x02" + " ?\x02!A\x02\"C\x02#E\x02$G\x02%I\x02&K\x02\'M\x02(O\x02)Q\x02*S\x02+" + "U\x02,W\x02-Y\x02.[\x02/]\x020_\x021a\x022c\x023e\x024g\x02\x02i\x02\x02" + "k\x02\x02m\x02\x02o\x02\x02q\x02\x02s\x02\x02u\x02\x02w\x025y\x026{\x02" + "7}\x028\x7F\x029\x81\x02:\x83\x02;\x03\x02\x0F\x03\x02))\x03\x02$$\x03" + "\x02]]\x03\x02__\x03\x02}}\x03\x02\x7F\x7F\x04\x02&&BB\x07\x02C\\c|\u0403" + "\u0403\u0412\u0451\u0453\u0453\n\x02/02;C\\aac|\u0403\u0403\u0412\u0451" + "\u0453\u0453\x03\x022;\x03\x0200\x05\x02\v\f\x0F\x0F\"\"\x04\x02\f\f\x0F" + "\x0F\x02\u01BC\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\v\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\x02\'\x03\x02\x02\x02\x02)\x03\x02\x02\x02\x02+\x03\x02\x02\x02\x02" + "-\x03\x02\x02\x02\x02/\x03\x02\x02\x02\x021\x03\x02\x02\x02\x023\x03\x02" + "\x02\x02\x025\x03\x02\x02\x02\x027\x03\x02\x02\x02\x029\x03\x02\x02\x02" + "\x02;\x03\x02\x02\x02\x02=\x03\x02\x02\x02\x02?\x03\x02\x02\x02\x02A\x03" + "\x02\x02\x02\x02C\x03\x02\x02\x02\x02E\x03\x02\x02\x02\x02G\x03\x02\x02" + "\x02\x02I\x03\x02\x02\x02\x02K\x03\x02\x02\x02\x02M\x03\x02\x02\x02\x02" + "O\x03\x02\x02\x02\x02Q\x03\x02\x02\x02\x02S\x03\x02\x02\x02\x02U\x03\x02" + "\x02\x02\x02W\x03\x02\x02\x02\x02Y\x03\x02\x02\x02\x02[\x03\x02\x02\x02" + "\x02]\x03\x02\x02\x02\x02_\x03\x02\x02\x02\x02a\x03\x02\x02\x02\x02c\x03" + "\x02\x02\x02\x02e\x03\x02\x02\x02\x02w\x03\x02\x02\x02\x02y\x03\x02\x02" + "\x02\x02{\x03\x02\x02\x02\x02}\x03\x02\x02\x02\x02\x7F\x03\x02\x02\x02" + "\x02\x81\x03\x02\x02\x02\x02\x83\x03\x02\x02\x02\x03\x85\x03\x02\x02\x02" + "\x05\x88\x03\x02\x02\x02\x07\x94\x03\x02\x02\x02\t\x9C\x03\x02\x02\x02" + "\v\xA5\x03\x02\x02\x02\r\xAC\x03\x02\x02\x02\x0F\xB1\x03\x02\x02\x02\x11" + "\xB3\x03\x02\x02\x02\x13\xB5\x03\x02\x02\x02\x15\xB9\x03\x02\x02\x02\x17" + "\xBB\x03\x02\x02\x02\x19\xBD\x03\x02\x02\x02\x1B\xC1\x03\x02\x02\x02\x1D" + "\xC3\x03\x02\x02\x02\x1F\xC6\x03\x02\x02\x02!\xC8\x03\x02\x02\x02#\xCB" + "\x03\x02\x02\x02%\xCE\x03\x02\x02\x02\'\xD1\x03\x02\x02\x02)\xD3\x03\x02" + "\x02\x02+\xD6\x03\x02\x02\x02-\xD8\x03\x02\x02\x02/\xDC\x03\x02\x02\x02" + "1\xDF\x03\x02\x02\x023\xE3\x03\x02\x02\x025\xE5\x03\x02\x02\x027\xE7\x03" + "\x02\x02\x029\xE9\x03\x02\x02\x02;\xEB\x03\x02\x02\x02=\xF2\x03\x02\x02" + "\x02?\xF8\x03\x02\x02\x02A\xFE\x03\x02\x02\x02C\u0100\x03\x02\x02\x02" + "E\u0102\x03\x02\x02\x02G\u0104\x03\x02\x02\x02I\u0106\x03\x02\x02\x02" + "K\u0108\x03\x02\x02\x02M\u010A\x03\x02\x02\x02O\u010C\x03\x02\x02\x02" + "Q\u010E\x03\x02\x02\x02S\u0111\x03\x02\x02\x02U\u0116\x03\x02\x02\x02" + "W\u011C\x03\x02\x02\x02Y\u0124\x03\x02\x02\x02[\u012A\x03\x02\x02\x02" + "]\u012F\x03\x02\x02\x02_\u0131\x03\x02\x02\x02a\u0135\x03\x02\x02\x02" + "c\u0137\x03\x02\x02\x02e\u013B\x03\x02\x02\x02g\u013F\x03\x02\x02\x02" + "i\u0141\x03\x02\x02\x02k\u0146\x03\x02\x02\x02m\u014C\x03\x02\x02\x02" + "o\u014F\x03\x02\x02\x02q\u0151\x03\x02\x02\x02s\u0155\x03\x02\x02\x02" + "u\u015E\x03\x02\x02\x02w\u0168\x03\x02\x02\x02y\u0171\x03\x02\x02\x02" + "{\u017B\x03\x02\x02\x02}\u018C\x03\x02\x02\x02\x7F\u0195\x03\x02\x02\x02" + "\x81\u0199\x03\x02\x02\x02\x83\u01A7\x03\x02\x02\x02\x85\x86\x057\x1C" + "\x02\x86\x87\x057\x1C\x02\x87\x04\x03\x02\x02\x02\x88\x89\x07i\x02\x02" + "\x89\x8A\x07g\x02\x02\x8A\x8B\x07v\x02\x02\x8B\x8C\x07R\x02\x02\x8C\x8D" + "\x07t\x02\x02\x8D\x8E\x07q\x02\x02\x8E\x8F\x07r\x02\x02\x8F\x90\x07g\x02" + "\x02\x90\x91\x07t\x02\x02\x91\x92\x07v\x02\x02\x92\x93\x07{\x02\x02\x93" + "\x06\x03\x02\x02\x02\x94\x95\x07f\x02\x02\x95\x96\x07g\x02\x02\x96\x97" + "\x07e\x02\x02\x97\x98\x07k\x02\x02\x98\x99\x07o\x02\x02\x99\x9A\x07c\x02" + "\x02\x9A\x9B\x07n\x02\x02\x9B\b\x03\x02\x02\x02\x9C\x9D\x07h\x02\x02\x9D" + "\x9E\x07t\x02\x02\x9E\x9F\x07c\x02\x02\x9F\xA0\x07e\x02\x02\xA0\xA1\x07" + "v\x02\x02\xA1\xA2\x07k\x02\x02\xA2\xA3\x07q\x02\x02\xA3\xA4\x07p\x02\x02" + "\xA4\n\x03\x02\x02\x02\xA5\xA6\x07u\x02\x02\xA6\xA7\x07v\x02\x02\xA7\xA8" + "\x07t\x02\x02\xA8\xA9\x07k\x02\x02\xA9\xAA\x07p\x02\x02\xAA\xAB\x07i\x02" + "\x02\xAB\f\x03\x02\x02\x02\xAC\xAD\x07f\x02\x02\xAD\xAE\x07c\x02\x02\xAE" + "\xAF\x07v\x02\x02\xAF\xB0\x07g\x02\x02\xB0\x0E\x03\x02\x02\x02\xB1\xB2" + "\x07\'\x02\x02\xB2\x10\x03\x02\x02\x02\xB3\xB4\x07,\x02\x02\xB4\x12\x03" + "\x02\x02\x02\xB5\xB6\x07\"\x02\x02\xB6\xB7\x071\x02\x02\xB7\xB8\x07\"" + "\x02\x02\xB8\x14\x03\x02\x02\x02\xB9\xBA\x07-\x02\x02\xBA\x16\x03\x02" + "\x02\x02\xBB\xBC\x07/\x02\x02\xBC\x18\x03\x02\x02\x02\xBD\xBE\x07?\x02" + "\x02\xBE\xBF\x07?\x02\x02\xBF\xC0\x07?\x02\x02\xC0\x1A\x03\x02\x02\x02" + "\xC1\xC2\x07@\x02\x02\xC2\x1C\x03\x02\x02\x02\xC3\xC4\x07@\x02\x02\xC4" + "\xC5\x07?\x02\x02\xC5\x1E\x03\x02\x02\x02\xC6\xC7\x07>\x02\x02\xC7 \x03" + "\x02\x02\x02\xC8\xC9\x07>\x02\x02\xC9\xCA\x07?\x02\x02\xCA\"\x03\x02\x02" + "\x02\xCB\xCC\x07?\x02\x02\xCC\xCD\x07?\x02\x02\xCD$\x03\x02\x02\x02\xCE" + "\xCF\x07#\x02\x02\xCF\xD0\x07?\x02\x02\xD0&\x03\x02\x02\x02\xD1\xD2\x07" + "?\x02\x02\xD2(\x03\x02\x02\x02\xD3\xD4\x07c\x02\x02\xD4\xD5\x07u\x02\x02" + "\xD5*\x03\x02\x02\x02\xD6\xD7\x07%\x02\x02\xD7,\x03\x02\x02\x02\xD8\xD9" + "\x07x\x02\x02\xD9\xDA\x07c\x02\x02\xDA\xDB\x07t\x02\x02\xDB.\x03\x02\x02" + "\x02\xDC\xDD\x07k\x02\x02\xDD\xDE\x07p\x02\x02\xDE0\x03\x02\x02\x02\xDF" + "\xE0\x07\"\x02\x02\xE0\xE1\x07<\x02\x02\xE1\xE2\x07\"\x02\x02\xE22\x03" + "\x02\x02\x02\xE3\xE4\x07<\x02\x02\xE44\x03\x02\x02\x02\xE5\xE6\x07.\x02" + "\x02\xE66\x03\x02\x02\x02\xE7\xE8\x070\x02\x02\xE88\x03\x02\x02\x02\xE9" + "\xEA\x07B\x02\x02\xEA:\x03\x02\x02\x02\xEB\xEC\x07&\x02\x02\xEC<\x03\x02" + "\x02\x02\xED\xEE\x07c\x02\x02\xEE\xEF\x07p\x02\x02\xEF\xF3\x07f\x02\x02" + "\xF0\xF1\x07(\x02\x02\xF1\xF3\x07(\x02\x02\xF2\xED\x03\x02\x02\x02\xF2" + "\xF0\x03\x02\x02\x02\xF3>\x03\x02\x02\x02\xF4\xF5\x07q\x02\x02\xF5\xF9" + "\x07t\x02\x02\xF6\xF7\x07~\x02\x02\xF7\xF9\x07~\x02\x02\xF8\xF4\x03\x02" + "\x02\x02\xF8\xF6\x03\x02\x02\x02\xF9@\x03\x02\x02\x02\xFA\xFB\x07p\x02" + "\x02\xFB\xFC\x07q\x02\x02\xFC\xFF\x07v\x02\x02\xFD\xFF\x07#\x02\x02\xFE" + "\xFA\x03\x02\x02\x02\xFE\xFD\x03\x02\x02\x02\xFFB\x03\x02\x02\x02\u0100" + "\u0101\x07*\x02\x02\u0101D\x03\x02\x02\x02\u0102\u0103\x07+\x02\x02\u0103" + "F\x03\x02\x02\x02\u0104\u0105\x07]\x02\x02\u0105H\x03\x02\x02\x02\u0106" + "\u0107\x07_\x02\x02\u0107J\x03\x02\x02\x02\u0108\u0109\x07}\x02\x02\u0109" + "L\x03\x02\x02\x02\u010A\u010B\x07\x7F\x02\x02\u010BN\x03\x02\x02\x02\u010C" + "\u010D\x071\x02\x02\u010DP\x03\x02\x02\x02\u010E\u010F\x07k\x02\x02\u010F" + "\u0110\x07h\x02\x02\u0110R\x03\x02\x02\x02\u0111\u0112\x07g\x02\x02\u0112" + "\u0113\x07n\x02\x02\u0113\u0114\x07u\x02\x02\u0114\u0115\x07g\x02\x02" + "\u0115T\x03\x02\x02\x02\u0116\u0117\x07G\x02\x02\u0117\u0118\x07t\x02" + "\x02\u0118\u0119\x07t\x02\x02\u0119\u011A\x07q\x02\x02\u011A\u011B\x07" + "t\x02\x02\u011BV\x03\x02\x02\x02\u011C\u011D\x07Y\x02\x02\u011D\u011E" + "\x07c\x02\x02\u011E\u011F\x07t\x02\x02\u011F\u0120\x07p\x02\x02\u0120" + "\u0121\x07k\x02\x02\u0121\u0122\x07p\x02\x02\u0122\u0123\x07i\x02\x02" + "\u0123X\x03\x02\x02\x02\u0124\u0125\x07e\x02\x02\u0125\u0126\x07j\x02" + "\x02\u0126\u0127\x07g\x02\x02\u0127\u0128\x07e\x02\x02\u0128\u0129\x07" + "m\x02\x02\u0129Z\x03\x02\x02\x02\u012A\u012B\x07y\x02\x02\u012B\u012C" + "\x07k\x02\x02\u012C\u012D\x07v\x02\x02\u012D\u012E\x07j\x02\x02\u012E" + "\\\x03\x02\x02\x02\u012F\u0130\x07=\x02\x02\u0130^\x03\x02\x02\x02\u0131" + "\u0132\x07A\x02\x02\u0132`\x03\x02\x02\x02\u0133\u0136\x05c2\x02\u0134" + "\u0136\x05e3\x02\u0135\u0133\x03\x02\x02\x02\u0135\u0134\x03\x02\x02\x02" + "\u0136b\x03\x02\x02\x02\u0137\u0138\x05g4\x02\u0138\u0139\x05k6\x02\u0139" + "\u013A\x05g4\x02\u013Ad\x03\x02\x02\x02\u013B\u013C\x05i5\x02\u013C\u013D" + "\x05m7\x02\u013D\u013E\x05i5\x02\u013Ef\x03\x02\x02\x02\u013F\u0140\x07" + ")\x02\x02\u0140h\x03\x02\x02\x02\u0141\u0142\x07$\x02\x02\u0142j\x03\x02" + "\x02\x02\u0143\u0145\n\x02\x02\x02\u0144\u0143\x03\x02\x02\x02\u0145\u0148" + "\x03\x02\x02\x02\u0146\u0144\x03\x02\x02\x02\u0146\u0147\x03\x02\x02\x02" + "\u0147l\x03\x02\x02\x02\u0148\u0146\x03\x02\x02\x02\u0149\u014B\n\x03" + "\x02\x02\u014A\u0149\x03\x02\x02\x02\u014B\u014E\x03\x02\x02\x02\u014C" + "\u014A\x03\x02\x02\x02\u014C\u014D\x03\x02\x02\x02\u014Dn\x03\x02\x02" + "\x02\u014E\u014C\x03\x02\x02\x02\u014F\u0150\x07b\x02\x02\u0150p\x03\x02" + "\x02\x02\u0151\u0152\x05o8\x02\u0152\u0153\x05o8\x02\u0153\u0154\x05o" + "8\x02\u0154r\x03\x02\x02\x02\u0155\u0159\t\x04\x02\x02\u0156\u0158\n\x05" + "\x02\x02\u0157\u0156\x03\x02\x02\x02\u0158\u015B\x03\x02\x02\x02\u0159" + "\u0157\x03\x02\x02\x02\u0159\u015A\x03\x02\x02\x02\u015A\u015C\x03\x02" + "\x02\x02\u015B\u0159\x03\x02\x02\x02\u015C\u015D\t\x05\x02\x02\u015Dt" + "\x03\x02\x02\x02\u015E\u0162\t\x06\x02\x02\u015F\u0161\n\x07\x02\x02\u0160" + "\u015F\x03\x02\x02\x02\u0161\u0164\x03\x02\x02\x02\u0162\u0160\x03\x02" + "\x02\x02\u0162\u0163\x03\x02\x02\x02\u0163\u0165\x03\x02\x02\x02\u0164" + "\u0162\x03\x02\x02\x02\u0165\u0166\t\x07\x02\x02\u0166v\x03\x02\x02\x02" + "\u0167\u0169\t\b\x02\x02\u0168\u0167\x03\x02\x02\x02\u0168\u0169\x03\x02" + "\x02\x02\u0169\u016A\x03\x02\x02\x02\u016A\u016E\t\t\x02\x02\u016B\u016D" + "\t\n\x02\x02\u016C\u016B\x03\x02\x02\x02\u016D\u0170\x03\x02\x02\x02\u016E" + "\u016C\x03\x02\x02\x02\u016E\u016F\x03\x02\x02\x02\u016Fx\x03\x02\x02" + "\x02\u0170\u016E\x03\x02\x02\x02\u0171\u0173\x05w<\x02\u0172\u0174\x05" + "s:\x02\u0173\u0172\x03\x02\x02\x02\u0173\u0174\x03\x02\x02\x02\u0174\u0176" + "\x03\x02\x02\x02\u0175\u0177\x05u;\x02\u0176\u0175\x03\x02\x02\x02\u0176" + "\u0177\x03\x02\x02\x02\u0177z\x03\x02\x02\x02\u0178\u017A\x05\x17\f\x02" + "\u0179\u0178\x03\x02\x02\x02\u017A\u017D\x03\x02\x02\x02\u017B\u0179\x03" + "\x02\x02\x02\u017B\u017C\x03\x02\x02\x02\u017C\u017F\x03\x02\x02\x02\u017D" + "\u017B\x03\x02\x02\x02\u017E\u0180\t\v\x02\x02\u017F\u017E\x03\x02\x02" + "\x02\u0180\u0181\x03\x02\x02\x02\u0181\u017F\x03\x02\x02\x02\u0181\u0182" + "\x03\x02\x02\x02\u0182\u0184\x03\x02\x02\x02\u0183\u0185\t\f\x02\x02\u0184" + "\u0183\x03\x02\x02\x02\u0184\u0185\x03\x02\x02\x02\u0185\u0189\x03\x02" + "\x02\x02\u0186\u0188\t\v\x02\x02\u0187\u0186\x03\x02\x02\x02\u0188\u018B" + "\x03\x02\x02\x02\u0189\u0187\x03\x02\x02\x02\u0189\u018A\x03\x02\x02\x02" + "\u018A|\x03\x02\x02\x02\u018B\u0189\x03\x02\x02\x02\u018C\u0190\x05q9" + "\x02\u018D\u018F\v\x02\x02\x02\u018E\u018D\x03\x02\x02\x02\u018F\u0192" + "\x03\x02\x02\x02\u0190\u0191\x03\x02\x02\x02\u0190\u018E\x03\x02\x02\x02" + "\u0191\u0193\x03\x02\x02\x02\u0192\u0190\x03\x02\x02\x02\u0193\u0194\x05" + "q9\x02\u0194~\x03\x02\x02\x02\u0195\u0196\t\r\x02\x02\u0196\u0197\x03" + "\x02\x02\x02\u0197\u0198\b@\x02\x02\u0198\x80\x03\x02\x02\x02\u0199\u019A" + "\x071\x02\x02\u019A\u019B\x07,\x02\x02\u019B\u019F\x03\x02\x02\x02\u019C" + "\u019E\v\x02\x02\x02\u019D\u019C\x03\x02\x02\x02\u019E\u01A1\x03\x02\x02" + "\x02\u019F\u01A0\x03\x02\x02\x02\u019F\u019D\x03\x02\x02\x02\u01A0\u01A2" + "\x03\x02\x02\x02\u01A1\u019F\x03\x02\x02\x02\u01A2\u01A3\x07,\x02\x02" + "\u01A3\u01A4\x071\x02\x02\u01A4\u01A5\x03\x02\x02\x02\u01A5\u01A6\bA\x02" + "\x02\u01A6\x82\x03\x02\x02\x02\u01A7\u01A8\x071\x02\x02\u01A8\u01A9\x07" + "1\x02\x02\u01A9\u01AD\x03\x02\x02\x02\u01AA\u01AC\n\x0E\x02\x02\u01AB" + "\u01AA\x03\x02\x02\x02\u01AC\u01AF\x03\x02\x02\x02\u01AD\u01AB\x03\x02" + "\x02\x02\u01AD\u01AE\x03\x02\x02\x02\u01AE\u01B0\x03\x02\x02\x02\u01AF" + "\u01AD\x03\x02\x02\x02\u01B0\u01B1\bB\x02\x02\u01B1\x84\x03\x02\x02\x02" + "\x16\x02\xF2\xF8\xFE\u0135\u0146\u014C\u0159\u0162\u0168\u016E\u0173\u0176" + "\u017B\u0181\u0184\u0189\u0190\u019F\u01AD\x03\b\x02\x02";
|
|
116163
116180
|
KCLangLexer.__ATN = void 0;
|
|
116164
116181
|
|
|
116165
116182
|
/***/ }),
|
|
@@ -116176,9 +116193,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
116176
116193
|
/* harmony export */ "KCLangParser": () => (/* binding */ KCLangParser),
|
|
116177
116194
|
/* harmony export */ "KclangContext": () => (/* binding */ KclangContext),
|
|
116178
116195
|
/* harmony export */ "GlobalDefinitionContext": () => (/* binding */ GlobalDefinitionContext),
|
|
116179
|
-
/* harmony export */ "StatementContext": () => (/* binding */ StatementContext),
|
|
116180
116196
|
/* harmony export */ "InBlockContext": () => (/* binding */ InBlockContext),
|
|
116181
116197
|
/* harmony export */ "InBlockItemContext": () => (/* binding */ InBlockItemContext),
|
|
116198
|
+
/* harmony export */ "StatementContext": () => (/* binding */ StatementContext),
|
|
116182
116199
|
/* harmony export */ "GlobalVariableContext": () => (/* binding */ GlobalVariableContext),
|
|
116183
116200
|
/* harmony export */ "PropertyVariableContext": () => (/* binding */ PropertyVariableContext),
|
|
116184
116201
|
/* harmony export */ "PropertyExpressionContext": () => (/* binding */ PropertyExpressionContext),
|
|
@@ -116186,21 +116203,21 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
116186
116203
|
/* harmony export */ "IfStatementContext": () => (/* binding */ IfStatementContext),
|
|
116187
116204
|
/* harmony export */ "IfPartContext": () => (/* binding */ IfPartContext),
|
|
116188
116205
|
/* harmony export */ "ElsePartContext": () => (/* binding */ ElsePartContext),
|
|
116189
|
-
/* harmony export */ "LabelContext": () => (/* binding */ LabelContext),
|
|
116190
116206
|
/* harmony export */ "BodyContext": () => (/* binding */ BodyContext),
|
|
116191
116207
|
/* harmony export */ "VarNameContext": () => (/* binding */ VarNameContext),
|
|
116192
116208
|
/* harmony export */ "CheckContext": () => (/* binding */ CheckContext),
|
|
116193
116209
|
/* harmony export */ "WithBlockContext": () => (/* binding */ WithBlockContext),
|
|
116194
116210
|
/* harmony export */ "FormulaContext": () => (/* binding */ FormulaContext),
|
|
116195
116211
|
/* harmony export */ "ExpressionContext": () => (/* binding */ ExpressionContext),
|
|
116212
|
+
/* harmony export */ "OneOfContext": () => (/* binding */ OneOfContext),
|
|
116196
116213
|
/* harmony export */ "CompositionContext": () => (/* binding */ CompositionContext),
|
|
116197
116214
|
/* harmony export */ "SummationContext": () => (/* binding */ SummationContext),
|
|
116198
116215
|
/* harmony export */ "ComparisonContext": () => (/* binding */ ComparisonContext),
|
|
116199
116216
|
/* harmony export */ "AndContext": () => (/* binding */ AndContext),
|
|
116200
116217
|
/* harmony export */ "OrContext": () => (/* binding */ OrContext),
|
|
116201
116218
|
/* harmony export */ "TernaryContext": () => (/* binding */ TernaryContext),
|
|
116202
|
-
/* harmony export */ "OneOfContext": () => (/* binding */ OneOfContext),
|
|
116203
116219
|
/* harmony export */ "UnaryContext": () => (/* binding */ UnaryContext),
|
|
116220
|
+
/* harmony export */ "LabelContext": () => (/* binding */ LabelContext),
|
|
116204
116221
|
/* harmony export */ "UnaryExpressionContext": () => (/* binding */ UnaryExpressionContext),
|
|
116205
116222
|
/* harmony export */ "ConstContext": () => (/* binding */ ConstContext),
|
|
116206
116223
|
/* harmony export */ "PathOrVarWithTypeContext": () => (/* binding */ PathOrVarWithTypeContext),
|
|
@@ -116398,43 +116415,44 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
116398
116415
|
} // @RuleVersion(0)
|
|
116399
116416
|
|
|
116400
116417
|
|
|
116401
|
-
|
|
116402
|
-
let _localctx = new
|
|
116418
|
+
inBlock() {
|
|
116419
|
+
let _localctx = new InBlockContext(this._ctx, this.state);
|
|
116403
116420
|
|
|
116404
|
-
this.enterRule(_localctx, 4, KCLangParser.
|
|
116421
|
+
this.enterRule(_localctx, 4, KCLangParser.RULE_inBlock);
|
|
116422
|
+
|
|
116423
|
+
let _la;
|
|
116405
116424
|
|
|
116406
116425
|
try {
|
|
116407
|
-
this.
|
|
116426
|
+
this.enterOuterAlt(_localctx, 1);
|
|
116427
|
+
{
|
|
116428
|
+
this.state = 91;
|
|
116429
|
+
this.match(KCLangParser.IN);
|
|
116430
|
+
this.state = 92;
|
|
116431
|
+
this.path();
|
|
116432
|
+
this.state = 93;
|
|
116433
|
+
this.match(KCLangParser.LBRACE);
|
|
116434
|
+
this.state = 97;
|
|
116408
116435
|
|
|
116409
|
-
|
|
116436
|
+
this._errHandler.sync(this);
|
|
116410
116437
|
|
|
116411
|
-
|
|
116412
|
-
case KCLangParser.CHECK:
|
|
116413
|
-
this.enterOuterAlt(_localctx, 1);
|
|
116414
|
-
{
|
|
116415
|
-
this.state = 91;
|
|
116416
|
-
this.check();
|
|
116417
|
-
}
|
|
116418
|
-
break;
|
|
116438
|
+
_la = this._input.LA(1);
|
|
116419
116439
|
|
|
116420
|
-
|
|
116421
|
-
this.enterOuterAlt(_localctx, 2);
|
|
116440
|
+
while ((_la - 22 & ~0x1F) === 0 && (1 << _la - 22 & (1 << KCLangParser.VAR - 22 | 1 << KCLangParser.IN - 22 | 1 << KCLangParser.IF - 22 | 1 << KCLangParser.CHECK - 22)) !== 0) {
|
|
116422
116441
|
{
|
|
116423
|
-
|
|
116424
|
-
|
|
116442
|
+
{
|
|
116443
|
+
this.state = 94;
|
|
116444
|
+
this.inBlockItem();
|
|
116445
|
+
}
|
|
116425
116446
|
}
|
|
116426
|
-
|
|
116447
|
+
this.state = 99;
|
|
116427
116448
|
|
|
116428
|
-
|
|
116429
|
-
this.enterOuterAlt(_localctx, 3);
|
|
116430
|
-
{
|
|
116431
|
-
this.state = 93;
|
|
116432
|
-
this.localVariable();
|
|
116433
|
-
}
|
|
116434
|
-
break;
|
|
116449
|
+
this._errHandler.sync(this);
|
|
116435
116450
|
|
|
116436
|
-
|
|
116437
|
-
|
|
116451
|
+
_la = this._input.LA(1);
|
|
116452
|
+
}
|
|
116453
|
+
|
|
116454
|
+
this.state = 100;
|
|
116455
|
+
this.match(KCLangParser.RBRACE);
|
|
116438
116456
|
}
|
|
116439
116457
|
} catch (re) {
|
|
116440
116458
|
if (re instanceof antlr4ts_RecognitionException__WEBPACK_IMPORTED_MODULE_7__.RecognitionException) {
|
|
@@ -116454,44 +116472,37 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
116454
116472
|
} // @RuleVersion(0)
|
|
116455
116473
|
|
|
116456
116474
|
|
|
116457
|
-
|
|
116458
|
-
let _localctx = new
|
|
116459
|
-
|
|
116460
|
-
this.enterRule(_localctx, 6, KCLangParser.RULE_inBlock);
|
|
116475
|
+
inBlockItem() {
|
|
116476
|
+
let _localctx = new InBlockItemContext(this._ctx, this.state);
|
|
116461
116477
|
|
|
116462
|
-
|
|
116478
|
+
this.enterRule(_localctx, 6, KCLangParser.RULE_inBlockItem);
|
|
116463
116479
|
|
|
116464
116480
|
try {
|
|
116465
|
-
this.
|
|
116466
|
-
{
|
|
116467
|
-
this.state = 96;
|
|
116468
|
-
this.match(KCLangParser.IN);
|
|
116469
|
-
this.state = 97;
|
|
116470
|
-
this.path();
|
|
116471
|
-
this.state = 98;
|
|
116472
|
-
this.match(KCLangParser.LBRACE);
|
|
116473
|
-
this.state = 102;
|
|
116481
|
+
this.state = 104;
|
|
116474
116482
|
|
|
116475
|
-
|
|
116476
|
-
|
|
116477
|
-
_la = this._input.LA(1);
|
|
116483
|
+
this._errHandler.sync(this);
|
|
116478
116484
|
|
|
116479
|
-
|
|
116485
|
+
switch (this._input.LA(1)) {
|
|
116486
|
+
case KCLangParser.IN:
|
|
116487
|
+
this.enterOuterAlt(_localctx, 1);
|
|
116480
116488
|
{
|
|
116481
|
-
|
|
116482
|
-
|
|
116483
|
-
this.inBlockItem();
|
|
116484
|
-
}
|
|
116489
|
+
this.state = 102;
|
|
116490
|
+
this.inBlock();
|
|
116485
116491
|
}
|
|
116486
|
-
|
|
116487
|
-
|
|
116488
|
-
this._errHandler.sync(this);
|
|
116492
|
+
break;
|
|
116489
116493
|
|
|
116490
|
-
|
|
116491
|
-
|
|
116494
|
+
case KCLangParser.VAR:
|
|
116495
|
+
case KCLangParser.IF:
|
|
116496
|
+
case KCLangParser.CHECK:
|
|
116497
|
+
this.enterOuterAlt(_localctx, 2);
|
|
116498
|
+
{
|
|
116499
|
+
this.state = 103;
|
|
116500
|
+
this.statement();
|
|
116501
|
+
}
|
|
116502
|
+
break;
|
|
116492
116503
|
|
|
116493
|
-
|
|
116494
|
-
|
|
116504
|
+
default:
|
|
116505
|
+
throw new antlr4ts_NoViableAltException__WEBPACK_IMPORTED_MODULE_3__.NoViableAltException(this);
|
|
116495
116506
|
}
|
|
116496
116507
|
} catch (re) {
|
|
116497
116508
|
if (re instanceof antlr4ts_RecognitionException__WEBPACK_IMPORTED_MODULE_7__.RecognitionException) {
|
|
@@ -116511,10 +116522,10 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
116511
116522
|
} // @RuleVersion(0)
|
|
116512
116523
|
|
|
116513
116524
|
|
|
116514
|
-
|
|
116515
|
-
let _localctx = new
|
|
116525
|
+
statement() {
|
|
116526
|
+
let _localctx = new StatementContext(this._ctx, this.state);
|
|
116516
116527
|
|
|
116517
|
-
this.enterRule(_localctx, 8, KCLangParser.
|
|
116528
|
+
this.enterRule(_localctx, 8, KCLangParser.RULE_statement);
|
|
116518
116529
|
|
|
116519
116530
|
try {
|
|
116520
116531
|
this.state = 109;
|
|
@@ -116522,21 +116533,27 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
116522
116533
|
this._errHandler.sync(this);
|
|
116523
116534
|
|
|
116524
116535
|
switch (this._input.LA(1)) {
|
|
116525
|
-
case KCLangParser.
|
|
116536
|
+
case KCLangParser.CHECK:
|
|
116526
116537
|
this.enterOuterAlt(_localctx, 1);
|
|
116527
116538
|
{
|
|
116528
|
-
this.state =
|
|
116529
|
-
this.
|
|
116539
|
+
this.state = 106;
|
|
116540
|
+
this.check();
|
|
116530
116541
|
}
|
|
116531
116542
|
break;
|
|
116532
116543
|
|
|
116533
|
-
case KCLangParser.VAR:
|
|
116534
116544
|
case KCLangParser.IF:
|
|
116535
|
-
case KCLangParser.CHECK:
|
|
116536
116545
|
this.enterOuterAlt(_localctx, 2);
|
|
116546
|
+
{
|
|
116547
|
+
this.state = 107;
|
|
116548
|
+
this.ifStatement();
|
|
116549
|
+
}
|
|
116550
|
+
break;
|
|
116551
|
+
|
|
116552
|
+
case KCLangParser.VAR:
|
|
116553
|
+
this.enterOuterAlt(_localctx, 3);
|
|
116537
116554
|
{
|
|
116538
116555
|
this.state = 108;
|
|
116539
|
-
this.
|
|
116556
|
+
this.localVariable();
|
|
116540
116557
|
}
|
|
116541
116558
|
break;
|
|
116542
116559
|
|
|
@@ -116830,66 +116847,17 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
116830
116847
|
} // @RuleVersion(0)
|
|
116831
116848
|
|
|
116832
116849
|
|
|
116833
|
-
label() {
|
|
116834
|
-
let _localctx = new LabelContext(this._ctx, this.state);
|
|
116835
|
-
|
|
116836
|
-
this.enterRule(_localctx, 24, KCLangParser.RULE_label);
|
|
116837
|
-
|
|
116838
|
-
try {
|
|
116839
|
-
this.state = 153;
|
|
116840
|
-
|
|
116841
|
-
this._errHandler.sync(this);
|
|
116842
|
-
|
|
116843
|
-
switch (this.interpreter.adaptivePredict(this._input, 7, this._ctx)) {
|
|
116844
|
-
case 1:
|
|
116845
|
-
this.enterOuterAlt(_localctx, 1);
|
|
116846
|
-
{
|
|
116847
|
-
this.state = 149;
|
|
116848
|
-
this.match(KCLangParser.NAME);
|
|
116849
|
-
this.state = 150;
|
|
116850
|
-
this.match(KCLangParser.COLON);
|
|
116851
|
-
}
|
|
116852
|
-
break;
|
|
116853
|
-
|
|
116854
|
-
case 2:
|
|
116855
|
-
this.enterOuterAlt(_localctx, 2);
|
|
116856
|
-
{
|
|
116857
|
-
this.state = 151;
|
|
116858
|
-
this.match(KCLangParser.NAME);
|
|
116859
|
-
this.state = 152;
|
|
116860
|
-
this.match(KCLangParser.HASH);
|
|
116861
|
-
}
|
|
116862
|
-
break;
|
|
116863
|
-
}
|
|
116864
|
-
} catch (re) {
|
|
116865
|
-
if (re instanceof antlr4ts_RecognitionException__WEBPACK_IMPORTED_MODULE_7__.RecognitionException) {
|
|
116866
|
-
_localctx.exception = re;
|
|
116867
|
-
|
|
116868
|
-
this._errHandler.reportError(this, re);
|
|
116869
|
-
|
|
116870
|
-
this._errHandler.recover(this, re);
|
|
116871
|
-
} else {
|
|
116872
|
-
throw re;
|
|
116873
|
-
}
|
|
116874
|
-
} finally {
|
|
116875
|
-
this.exitRule();
|
|
116876
|
-
}
|
|
116877
|
-
|
|
116878
|
-
return _localctx;
|
|
116879
|
-
} // @RuleVersion(0)
|
|
116880
|
-
|
|
116881
|
-
|
|
116882
116850
|
body() {
|
|
116883
116851
|
let _localctx = new BodyContext(this._ctx, this.state);
|
|
116884
116852
|
|
|
116885
|
-
this.enterRule(_localctx,
|
|
116853
|
+
this.enterRule(_localctx, 24, KCLangParser.RULE_body);
|
|
116886
116854
|
|
|
116887
116855
|
let _la;
|
|
116888
116856
|
|
|
116889
116857
|
try {
|
|
116890
116858
|
this.enterOuterAlt(_localctx, 1);
|
|
116891
116859
|
{
|
|
116892
|
-
this.state =
|
|
116860
|
+
this.state = 158;
|
|
116893
116861
|
|
|
116894
116862
|
this._errHandler.sync(this);
|
|
116895
116863
|
|
|
@@ -116897,29 +116865,29 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
116897
116865
|
case KCLangParser.LBRACE:
|
|
116898
116866
|
{
|
|
116899
116867
|
{
|
|
116900
|
-
this.state =
|
|
116868
|
+
this.state = 149;
|
|
116901
116869
|
this.match(KCLangParser.LBRACE);
|
|
116902
|
-
this.state =
|
|
116870
|
+
this.state = 153;
|
|
116903
116871
|
|
|
116904
116872
|
this._errHandler.sync(this);
|
|
116905
116873
|
|
|
116906
116874
|
_la = this._input.LA(1);
|
|
116907
116875
|
|
|
116908
|
-
while ((_la - 22 & ~
|
|
116876
|
+
while ((_la - 22 & ~0x1F) === 0 && (1 << _la - 22 & (1 << KCLangParser.VAR - 22 | 1 << KCLangParser.IF - 22 | 1 << KCLangParser.CHECK - 22)) !== 0) {
|
|
116909
116877
|
{
|
|
116910
116878
|
{
|
|
116911
|
-
this.state =
|
|
116879
|
+
this.state = 150;
|
|
116912
116880
|
this.statement();
|
|
116913
116881
|
}
|
|
116914
116882
|
}
|
|
116915
|
-
this.state =
|
|
116883
|
+
this.state = 155;
|
|
116916
116884
|
|
|
116917
116885
|
this._errHandler.sync(this);
|
|
116918
116886
|
|
|
116919
116887
|
_la = this._input.LA(1);
|
|
116920
116888
|
}
|
|
116921
116889
|
|
|
116922
|
-
this.state =
|
|
116890
|
+
this.state = 156;
|
|
116923
116891
|
this.match(KCLangParser.RBRACE);
|
|
116924
116892
|
}
|
|
116925
116893
|
}
|
|
@@ -116929,7 +116897,7 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
116929
116897
|
case KCLangParser.IF:
|
|
116930
116898
|
case KCLangParser.CHECK:
|
|
116931
116899
|
{
|
|
116932
|
-
this.state =
|
|
116900
|
+
this.state = 157;
|
|
116933
116901
|
this.statement();
|
|
116934
116902
|
}
|
|
116935
116903
|
break;
|
|
@@ -116959,12 +116927,12 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
116959
116927
|
varName() {
|
|
116960
116928
|
let _localctx = new VarNameContext(this._ctx, this.state);
|
|
116961
116929
|
|
|
116962
|
-
this.enterRule(_localctx,
|
|
116930
|
+
this.enterRule(_localctx, 26, KCLangParser.RULE_varName);
|
|
116963
116931
|
|
|
116964
116932
|
try {
|
|
116965
116933
|
this.enterOuterAlt(_localctx, 1);
|
|
116966
116934
|
{
|
|
116967
|
-
this.state =
|
|
116935
|
+
this.state = 160;
|
|
116968
116936
|
this.match(KCLangParser.NAME);
|
|
116969
116937
|
}
|
|
116970
116938
|
} catch (re) {
|
|
@@ -116988,36 +116956,36 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
116988
116956
|
check() {
|
|
116989
116957
|
let _localctx = new CheckContext(this._ctx, this.state);
|
|
116990
116958
|
|
|
116991
|
-
this.enterRule(_localctx,
|
|
116959
|
+
this.enterRule(_localctx, 28, KCLangParser.RULE_check);
|
|
116992
116960
|
|
|
116993
116961
|
let _la;
|
|
116994
116962
|
|
|
116995
116963
|
try {
|
|
116996
116964
|
this.enterOuterAlt(_localctx, 1);
|
|
116997
116965
|
{
|
|
116998
|
-
this.state =
|
|
116966
|
+
this.state = 162;
|
|
116999
116967
|
this.match(KCLangParser.CHECK);
|
|
117000
|
-
this.state =
|
|
116968
|
+
this.state = 165;
|
|
117001
116969
|
|
|
117002
116970
|
this._errHandler.sync(this);
|
|
117003
116971
|
|
|
117004
|
-
switch (this.interpreter.adaptivePredict(this._input,
|
|
116972
|
+
switch (this.interpreter.adaptivePredict(this._input, 9, this._ctx)) {
|
|
117005
116973
|
case 1:
|
|
117006
116974
|
{
|
|
117007
|
-
this.state =
|
|
116975
|
+
this.state = 163;
|
|
117008
116976
|
this.formula();
|
|
117009
116977
|
}
|
|
117010
116978
|
break;
|
|
117011
116979
|
|
|
117012
116980
|
case 2:
|
|
117013
116981
|
{
|
|
117014
|
-
this.state =
|
|
116982
|
+
this.state = 164;
|
|
117015
116983
|
this.expression(0);
|
|
117016
116984
|
}
|
|
117017
116985
|
break;
|
|
117018
116986
|
}
|
|
117019
116987
|
|
|
117020
|
-
this.state =
|
|
116988
|
+
this.state = 170;
|
|
117021
116989
|
|
|
117022
116990
|
this._errHandler.sync(this);
|
|
117023
116991
|
|
|
@@ -117026,18 +116994,18 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117026
116994
|
while (_la === KCLangParser.WITH) {
|
|
117027
116995
|
{
|
|
117028
116996
|
{
|
|
117029
|
-
this.state =
|
|
116997
|
+
this.state = 167;
|
|
117030
116998
|
this.withBlock();
|
|
117031
116999
|
}
|
|
117032
117000
|
}
|
|
117033
|
-
this.state =
|
|
117001
|
+
this.state = 172;
|
|
117034
117002
|
|
|
117035
117003
|
this._errHandler.sync(this);
|
|
117036
117004
|
|
|
117037
117005
|
_la = this._input.LA(1);
|
|
117038
117006
|
}
|
|
117039
117007
|
|
|
117040
|
-
this.state =
|
|
117008
|
+
this.state = 173;
|
|
117041
117009
|
this.match(KCLangParser.SEMICOLON);
|
|
117042
117010
|
}
|
|
117043
117011
|
} catch (re) {
|
|
@@ -117061,16 +117029,16 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117061
117029
|
withBlock() {
|
|
117062
117030
|
let _localctx = new WithBlockContext(this._ctx, this.state);
|
|
117063
117031
|
|
|
117064
|
-
this.enterRule(_localctx,
|
|
117032
|
+
this.enterRule(_localctx, 30, KCLangParser.RULE_withBlock);
|
|
117065
117033
|
|
|
117066
117034
|
try {
|
|
117067
117035
|
this.enterOuterAlt(_localctx, 1);
|
|
117068
117036
|
{
|
|
117069
|
-
this.state =
|
|
117037
|
+
this.state = 175;
|
|
117070
117038
|
this.match(KCLangParser.WITH);
|
|
117071
|
-
this.state =
|
|
117039
|
+
this.state = 176;
|
|
117072
117040
|
this.match(KCLangParser.NAME);
|
|
117073
|
-
this.state =
|
|
117041
|
+
this.state = 177;
|
|
117074
117042
|
this.match(KCLangParser.STRING);
|
|
117075
117043
|
}
|
|
117076
117044
|
} catch (re) {
|
|
@@ -117094,16 +117062,16 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117094
117062
|
formula() {
|
|
117095
117063
|
let _localctx = new FormulaContext(this._ctx, this.state);
|
|
117096
117064
|
|
|
117097
|
-
this.enterRule(_localctx,
|
|
117065
|
+
this.enterRule(_localctx, 32, KCLangParser.RULE_formula);
|
|
117098
117066
|
|
|
117099
117067
|
try {
|
|
117100
117068
|
this.enterOuterAlt(_localctx, 1);
|
|
117101
117069
|
{
|
|
117102
|
-
this.state =
|
|
117070
|
+
this.state = 179;
|
|
117103
117071
|
this.path();
|
|
117104
|
-
this.state =
|
|
117072
|
+
this.state = 180;
|
|
117105
117073
|
this.match(KCLangParser.TEQ);
|
|
117106
|
-
this.state =
|
|
117074
|
+
this.state = 181;
|
|
117107
117075
|
this.expression(0);
|
|
117108
117076
|
}
|
|
117109
117077
|
} catch (re) {
|
|
@@ -117136,15 +117104,15 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117136
117104
|
|
|
117137
117105
|
|
|
117138
117106
|
let _prevctx = _localctx;
|
|
117139
|
-
let _startState =
|
|
117140
|
-
this.enterRecursionRule(_localctx,
|
|
117107
|
+
let _startState = 34;
|
|
117108
|
+
this.enterRecursionRule(_localctx, 34, KCLangParser.RULE_expression, _p);
|
|
117141
117109
|
|
|
117142
117110
|
try {
|
|
117143
117111
|
let _alt;
|
|
117144
117112
|
|
|
117145
117113
|
this.enterOuterAlt(_localctx, 1);
|
|
117146
117114
|
{
|
|
117147
|
-
this.state =
|
|
117115
|
+
this.state = 196;
|
|
117148
117116
|
|
|
117149
117117
|
this._errHandler.sync(this);
|
|
117150
117118
|
|
|
@@ -117154,20 +117122,20 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117154
117122
|
_localctx = new TernaryContext(_localctx);
|
|
117155
117123
|
this._ctx = _localctx;
|
|
117156
117124
|
_prevctx = _localctx;
|
|
117157
|
-
this.state =
|
|
117125
|
+
this.state = 184;
|
|
117158
117126
|
this.match(KCLangParser.IF);
|
|
117159
|
-
this.state =
|
|
117127
|
+
this.state = 185;
|
|
117160
117128
|
this.match(KCLangParser.LPAREN);
|
|
117161
|
-
this.state =
|
|
117129
|
+
this.state = 186;
|
|
117162
117130
|
this.expression(0);
|
|
117163
|
-
this.state =
|
|
117131
|
+
this.state = 187;
|
|
117164
117132
|
this.match(KCLangParser.RPAREN);
|
|
117165
|
-
this.state =
|
|
117133
|
+
this.state = 188;
|
|
117166
117134
|
this.expression(0);
|
|
117167
|
-
this.state =
|
|
117135
|
+
this.state = 189;
|
|
117168
117136
|
this.match(KCLangParser.ELSE);
|
|
117169
|
-
this.state =
|
|
117170
|
-
this.expression(
|
|
117137
|
+
this.state = 190;
|
|
117138
|
+
this.expression(2);
|
|
117171
117139
|
}
|
|
117172
117140
|
break;
|
|
117173
117141
|
|
|
@@ -117187,20 +117155,20 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117187
117155
|
_localctx = new UnaryContext(_localctx);
|
|
117188
117156
|
this._ctx = _localctx;
|
|
117189
117157
|
_prevctx = _localctx;
|
|
117190
|
-
this.state =
|
|
117158
|
+
this.state = 193;
|
|
117191
117159
|
|
|
117192
117160
|
this._errHandler.sync(this);
|
|
117193
117161
|
|
|
117194
|
-
switch (this.interpreter.adaptivePredict(this._input,
|
|
117162
|
+
switch (this.interpreter.adaptivePredict(this._input, 11, this._ctx)) {
|
|
117195
117163
|
case 1:
|
|
117196
117164
|
{
|
|
117197
|
-
this.state =
|
|
117165
|
+
this.state = 192;
|
|
117198
117166
|
this.label();
|
|
117199
117167
|
}
|
|
117200
117168
|
break;
|
|
117201
117169
|
}
|
|
117202
117170
|
|
|
117203
|
-
this.state =
|
|
117171
|
+
this.state = 195;
|
|
117204
117172
|
this.unaryExpression();
|
|
117205
117173
|
}
|
|
117206
117174
|
break;
|
|
@@ -117210,11 +117178,11 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117210
117178
|
}
|
|
117211
117179
|
|
|
117212
117180
|
this._ctx._stop = this._input.tryLT(-1);
|
|
117213
|
-
this.state =
|
|
117181
|
+
this.state = 227;
|
|
117214
117182
|
|
|
117215
117183
|
this._errHandler.sync(this);
|
|
117216
117184
|
|
|
117217
|
-
_alt = this.interpreter.adaptivePredict(this._input,
|
|
117185
|
+
_alt = this.interpreter.adaptivePredict(this._input, 14, this._ctx);
|
|
117218
117186
|
|
|
117219
117187
|
while (_alt !== 2 && _alt !== antlr4ts_atn_ATN__WEBPACK_IMPORTED_MODULE_0__.ATN.INVALID_ALT_NUMBER) {
|
|
117220
117188
|
if (_alt === 1) {
|
|
@@ -117224,25 +117192,25 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117224
117192
|
|
|
117225
117193
|
_prevctx = _localctx;
|
|
117226
117194
|
{
|
|
117227
|
-
this.state =
|
|
117195
|
+
this.state = 225;
|
|
117228
117196
|
|
|
117229
117197
|
this._errHandler.sync(this);
|
|
117230
117198
|
|
|
117231
|
-
switch (this.interpreter.adaptivePredict(this._input,
|
|
117199
|
+
switch (this.interpreter.adaptivePredict(this._input, 13, this._ctx)) {
|
|
117232
117200
|
case 1:
|
|
117233
117201
|
{
|
|
117234
117202
|
_localctx = new CompositionContext(new ExpressionContext(_parentctx, _parentState));
|
|
117235
117203
|
this.pushNewRecursionContext(_localctx, _startState, KCLangParser.RULE_expression);
|
|
117236
|
-
this.state =
|
|
117204
|
+
this.state = 198;
|
|
117237
117205
|
|
|
117238
|
-
if (!this.precpred(this._ctx,
|
|
117239
|
-
throw this.createFailedPredicateException("this.precpred(this._ctx,
|
|
117206
|
+
if (!this.precpred(this._ctx, 8)) {
|
|
117207
|
+
throw this.createFailedPredicateException("this.precpred(this._ctx, 8)");
|
|
117240
117208
|
}
|
|
117241
117209
|
|
|
117242
|
-
this.state =
|
|
117210
|
+
this.state = 199;
|
|
117243
117211
|
this.compositionOperand();
|
|
117244
|
-
this.state =
|
|
117245
|
-
this.expression(
|
|
117212
|
+
this.state = 200;
|
|
117213
|
+
this.expression(9);
|
|
117246
117214
|
}
|
|
117247
117215
|
break;
|
|
117248
117216
|
|
|
@@ -117250,16 +117218,16 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117250
117218
|
{
|
|
117251
117219
|
_localctx = new SummationContext(new ExpressionContext(_parentctx, _parentState));
|
|
117252
117220
|
this.pushNewRecursionContext(_localctx, _startState, KCLangParser.RULE_expression);
|
|
117253
|
-
this.state =
|
|
117221
|
+
this.state = 202;
|
|
117254
117222
|
|
|
117255
|
-
if (!this.precpred(this._ctx,
|
|
117256
|
-
throw this.createFailedPredicateException("this.precpred(this._ctx,
|
|
117223
|
+
if (!this.precpred(this._ctx, 7)) {
|
|
117224
|
+
throw this.createFailedPredicateException("this.precpred(this._ctx, 7)");
|
|
117257
117225
|
}
|
|
117258
117226
|
|
|
117259
|
-
this.state =
|
|
117227
|
+
this.state = 203;
|
|
117260
117228
|
this.summationOperand();
|
|
117261
|
-
this.state =
|
|
117262
|
-
this.expression(
|
|
117229
|
+
this.state = 204;
|
|
117230
|
+
this.expression(8);
|
|
117263
117231
|
}
|
|
117264
117232
|
break;
|
|
117265
117233
|
|
|
@@ -117267,16 +117235,16 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117267
117235
|
{
|
|
117268
117236
|
_localctx = new ComparisonContext(new ExpressionContext(_parentctx, _parentState));
|
|
117269
117237
|
this.pushNewRecursionContext(_localctx, _startState, KCLangParser.RULE_expression);
|
|
117270
|
-
this.state =
|
|
117238
|
+
this.state = 206;
|
|
117271
117239
|
|
|
117272
|
-
if (!this.precpred(this._ctx,
|
|
117273
|
-
throw this.createFailedPredicateException("this.precpred(this._ctx,
|
|
117240
|
+
if (!this.precpred(this._ctx, 6)) {
|
|
117241
|
+
throw this.createFailedPredicateException("this.precpred(this._ctx, 6)");
|
|
117274
117242
|
}
|
|
117275
117243
|
|
|
117276
|
-
this.state =
|
|
117244
|
+
this.state = 207;
|
|
117277
117245
|
this.conditionalOperand();
|
|
117278
|
-
this.state =
|
|
117279
|
-
this.expression(
|
|
117246
|
+
this.state = 208;
|
|
117247
|
+
this.expression(7);
|
|
117280
117248
|
}
|
|
117281
117249
|
break;
|
|
117282
117250
|
|
|
@@ -117284,16 +117252,16 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117284
117252
|
{
|
|
117285
117253
|
_localctx = new AndContext(new ExpressionContext(_parentctx, _parentState));
|
|
117286
117254
|
this.pushNewRecursionContext(_localctx, _startState, KCLangParser.RULE_expression);
|
|
117287
|
-
this.state =
|
|
117255
|
+
this.state = 210;
|
|
117288
117256
|
|
|
117289
|
-
if (!this.precpred(this._ctx,
|
|
117290
|
-
throw this.createFailedPredicateException("this.precpred(this._ctx,
|
|
117257
|
+
if (!this.precpred(this._ctx, 5)) {
|
|
117258
|
+
throw this.createFailedPredicateException("this.precpred(this._ctx, 5)");
|
|
117291
117259
|
}
|
|
117292
117260
|
|
|
117293
|
-
this.state =
|
|
117261
|
+
this.state = 211;
|
|
117294
117262
|
this.match(KCLangParser.AND);
|
|
117295
|
-
this.state =
|
|
117296
|
-
this.expression(
|
|
117263
|
+
this.state = 212;
|
|
117264
|
+
this.expression(6);
|
|
117297
117265
|
}
|
|
117298
117266
|
break;
|
|
117299
117267
|
|
|
@@ -117301,16 +117269,16 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117301
117269
|
{
|
|
117302
117270
|
_localctx = new OrContext(new ExpressionContext(_parentctx, _parentState));
|
|
117303
117271
|
this.pushNewRecursionContext(_localctx, _startState, KCLangParser.RULE_expression);
|
|
117304
|
-
this.state =
|
|
117272
|
+
this.state = 213;
|
|
117305
117273
|
|
|
117306
|
-
if (!this.precpred(this._ctx,
|
|
117307
|
-
throw this.createFailedPredicateException("this.precpred(this._ctx,
|
|
117274
|
+
if (!this.precpred(this._ctx, 4)) {
|
|
117275
|
+
throw this.createFailedPredicateException("this.precpred(this._ctx, 4)");
|
|
117308
117276
|
}
|
|
117309
117277
|
|
|
117310
|
-
this.state =
|
|
117278
|
+
this.state = 214;
|
|
117311
117279
|
this.match(KCLangParser.OR);
|
|
117312
|
-
this.state =
|
|
117313
|
-
this.expression(
|
|
117280
|
+
this.state = 215;
|
|
117281
|
+
this.expression(5);
|
|
117314
117282
|
}
|
|
117315
117283
|
break;
|
|
117316
117284
|
|
|
@@ -117318,20 +117286,20 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117318
117286
|
{
|
|
117319
117287
|
_localctx = new TernaryContext(new ExpressionContext(_parentctx, _parentState));
|
|
117320
117288
|
this.pushNewRecursionContext(_localctx, _startState, KCLangParser.RULE_expression);
|
|
117321
|
-
this.state =
|
|
117289
|
+
this.state = 216;
|
|
117322
117290
|
|
|
117323
|
-
if (!this.precpred(this._ctx,
|
|
117324
|
-
throw this.createFailedPredicateException("this.precpred(this._ctx,
|
|
117291
|
+
if (!this.precpred(this._ctx, 3)) {
|
|
117292
|
+
throw this.createFailedPredicateException("this.precpred(this._ctx, 3)");
|
|
117325
117293
|
}
|
|
117326
117294
|
|
|
117327
|
-
this.state =
|
|
117295
|
+
this.state = 217;
|
|
117328
117296
|
this.match(KCLangParser.QUESTIONMARK);
|
|
117329
|
-
this.state =
|
|
117297
|
+
this.state = 218;
|
|
117330
117298
|
this.expression(0);
|
|
117331
|
-
this.state =
|
|
117299
|
+
this.state = 219;
|
|
117332
117300
|
this.match(KCLangParser.COLON1);
|
|
117333
|
-
this.state =
|
|
117334
|
-
this.expression(
|
|
117301
|
+
this.state = 220;
|
|
117302
|
+
this.expression(3);
|
|
117335
117303
|
}
|
|
117336
117304
|
break;
|
|
117337
117305
|
|
|
@@ -117339,15 +117307,15 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117339
117307
|
{
|
|
117340
117308
|
_localctx = new OneOfContext(new ExpressionContext(_parentctx, _parentState));
|
|
117341
117309
|
this.pushNewRecursionContext(_localctx, _startState, KCLangParser.RULE_expression);
|
|
117342
|
-
this.state =
|
|
117310
|
+
this.state = 222;
|
|
117343
117311
|
|
|
117344
|
-
if (!this.precpred(this._ctx,
|
|
117345
|
-
throw this.createFailedPredicateException("this.precpred(this._ctx,
|
|
117312
|
+
if (!this.precpred(this._ctx, 9)) {
|
|
117313
|
+
throw this.createFailedPredicateException("this.precpred(this._ctx, 9)");
|
|
117346
117314
|
}
|
|
117347
117315
|
|
|
117348
|
-
this.state =
|
|
117316
|
+
this.state = 223;
|
|
117349
117317
|
this.match(KCLangParser.IN);
|
|
117350
|
-
this.state =
|
|
117318
|
+
this.state = 224;
|
|
117351
117319
|
this.expressionSequence();
|
|
117352
117320
|
}
|
|
117353
117321
|
break;
|
|
@@ -117355,11 +117323,11 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117355
117323
|
}
|
|
117356
117324
|
}
|
|
117357
117325
|
|
|
117358
|
-
this.state =
|
|
117326
|
+
this.state = 229;
|
|
117359
117327
|
|
|
117360
117328
|
this._errHandler.sync(this);
|
|
117361
117329
|
|
|
117362
|
-
_alt = this.interpreter.adaptivePredict(this._input,
|
|
117330
|
+
_alt = this.interpreter.adaptivePredict(this._input, 14, this._ctx);
|
|
117363
117331
|
}
|
|
117364
117332
|
}
|
|
117365
117333
|
} catch (re) {
|
|
@@ -117380,6 +117348,55 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117380
117348
|
} // @RuleVersion(0)
|
|
117381
117349
|
|
|
117382
117350
|
|
|
117351
|
+
label() {
|
|
117352
|
+
let _localctx = new LabelContext(this._ctx, this.state);
|
|
117353
|
+
|
|
117354
|
+
this.enterRule(_localctx, 36, KCLangParser.RULE_label);
|
|
117355
|
+
|
|
117356
|
+
try {
|
|
117357
|
+
this.state = 234;
|
|
117358
|
+
|
|
117359
|
+
this._errHandler.sync(this);
|
|
117360
|
+
|
|
117361
|
+
switch (this.interpreter.adaptivePredict(this._input, 15, this._ctx)) {
|
|
117362
|
+
case 1:
|
|
117363
|
+
this.enterOuterAlt(_localctx, 1);
|
|
117364
|
+
{
|
|
117365
|
+
this.state = 230;
|
|
117366
|
+
this.match(KCLangParser.NAME);
|
|
117367
|
+
this.state = 231;
|
|
117368
|
+
this.match(KCLangParser.COLON);
|
|
117369
|
+
}
|
|
117370
|
+
break;
|
|
117371
|
+
|
|
117372
|
+
case 2:
|
|
117373
|
+
this.enterOuterAlt(_localctx, 2);
|
|
117374
|
+
{
|
|
117375
|
+
this.state = 232;
|
|
117376
|
+
this.match(KCLangParser.NAME);
|
|
117377
|
+
this.state = 233;
|
|
117378
|
+
this.match(KCLangParser.HASH);
|
|
117379
|
+
}
|
|
117380
|
+
break;
|
|
117381
|
+
}
|
|
117382
|
+
} catch (re) {
|
|
117383
|
+
if (re instanceof antlr4ts_RecognitionException__WEBPACK_IMPORTED_MODULE_7__.RecognitionException) {
|
|
117384
|
+
_localctx.exception = re;
|
|
117385
|
+
|
|
117386
|
+
this._errHandler.reportError(this, re);
|
|
117387
|
+
|
|
117388
|
+
this._errHandler.recover(this, re);
|
|
117389
|
+
} else {
|
|
117390
|
+
throw re;
|
|
117391
|
+
}
|
|
117392
|
+
} finally {
|
|
117393
|
+
this.exitRule();
|
|
117394
|
+
}
|
|
117395
|
+
|
|
117396
|
+
return _localctx;
|
|
117397
|
+
} // @RuleVersion(0)
|
|
117398
|
+
|
|
117399
|
+
|
|
117383
117400
|
unaryExpression() {
|
|
117384
117401
|
let _localctx = new UnaryExpressionContext(this._ctx, this.state);
|
|
117385
117402
|
|
|
@@ -117525,7 +117542,7 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117525
117542
|
|
|
117526
117543
|
_la = this._input.LA(1);
|
|
117527
117544
|
|
|
117528
|
-
if ((_la & ~
|
|
117545
|
+
if ((_la & ~0x1F) === 0 && (1 << _la & (1 << KCLangParser.GOUP | 1 << KCLangParser.PERCENT | 1 << KCLangParser.MIN | 1 << KCLangParser.DOT | 1 << KCLangParser.AT)) !== 0 || (_la - 32 & ~0x1F) === 0 && (1 << _la - 32 & (1 << KCLangParser.NOT - 32 | 1 << KCLangParser.LPAREN - 32 | 1 << KCLangParser.SLASH - 32 | 1 << KCLangParser.IF - 32 | 1 << KCLangParser.CONSTSTRINGWITHQUOTES - 32 | 1 << KCLangParser.NAME - 32 | 1 << KCLangParser.PATHTOKEN - 32 | 1 << KCLangParser.NUMBER - 32)) !== 0) {
|
|
117529
117546
|
{
|
|
117530
117547
|
this.state = 259;
|
|
117531
117548
|
this.expression(0);
|
|
@@ -117600,7 +117617,7 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117600
117617
|
|
|
117601
117618
|
_la = this._input.LA(1);
|
|
117602
117619
|
|
|
117603
|
-
if ((_la & ~
|
|
117620
|
+
if ((_la & ~0x1F) === 0 && (1 << _la & (1 << KCLangParser.GOUP | 1 << KCLangParser.PERCENT | 1 << KCLangParser.MIN | 1 << KCLangParser.DOT | 1 << KCLangParser.AT)) !== 0 || (_la - 32 & ~0x1F) === 0 && (1 << _la - 32 & (1 << KCLangParser.NOT - 32 | 1 << KCLangParser.LPAREN - 32 | 1 << KCLangParser.SLASH - 32 | 1 << KCLangParser.IF - 32 | 1 << KCLangParser.CONSTSTRINGWITHQUOTES - 32 | 1 << KCLangParser.NAME - 32 | 1 << KCLangParser.PATHTOKEN - 32 | 1 << KCLangParser.NUMBER - 32)) !== 0) {
|
|
117604
117621
|
{
|
|
117605
117622
|
this.state = 274;
|
|
117606
117623
|
this.argument();
|
|
@@ -117826,7 +117843,7 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
117826
117843
|
this.state = 300;
|
|
117827
117844
|
_la = this._input.LA(1);
|
|
117828
117845
|
|
|
117829
|
-
if (!((_la & ~
|
|
117846
|
+
if (!((_la & ~0x1F) === 0 && (1 << _la & (1 << KCLangParser.DECIMAL | 1 << KCLangParser.FRACTION | 1 << KCLangParser.STRINGTYPE | 1 << KCLangParser.DATE)) !== 0)) {
|
|
117830
117847
|
this._errHandler.recoverInline(this);
|
|
117831
117848
|
} else {
|
|
117832
117849
|
if (this._input.LA(1) === antlr4ts_Token__WEBPACK_IMPORTED_MODULE_8__.Token.EOF) {
|
|
@@ -118297,7 +118314,7 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
118297
118314
|
this.state = 345;
|
|
118298
118315
|
_la = this._input.LA(1);
|
|
118299
118316
|
|
|
118300
|
-
if (!((_la & ~
|
|
118317
|
+
if (!((_la & ~0x1F) === 0 && (1 << _la & (1 << KCLangParser.GT | 1 << KCLangParser.GE | 1 << KCLangParser.LT | 1 << KCLangParser.LE | 1 << KCLangParser.EQ | 1 << KCLangParser.NEQ)) !== 0)) {
|
|
118301
118318
|
this._errHandler.recoverInline(this);
|
|
118302
118319
|
} else {
|
|
118303
118320
|
if (this._input.LA(1) === antlr4ts_Token__WEBPACK_IMPORTED_MODULE_8__.Token.EOF) {
|
|
@@ -118414,7 +118431,7 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
118414
118431
|
|
|
118415
118432
|
sempred(_localctx, ruleIndex, predIndex) {
|
|
118416
118433
|
switch (ruleIndex) {
|
|
118417
|
-
case
|
|
118434
|
+
case 17:
|
|
118418
118435
|
return this.expression_sempred(_localctx, predIndex);
|
|
118419
118436
|
}
|
|
118420
118437
|
|
|
@@ -118424,25 +118441,25 @@ class KCLangParser extends antlr4ts_Parser__WEBPACK_IMPORTED_MODULE_4__.Parser {
|
|
|
118424
118441
|
expression_sempred(_localctx, predIndex) {
|
|
118425
118442
|
switch (predIndex) {
|
|
118426
118443
|
case 0:
|
|
118427
|
-
return this.precpred(this._ctx,
|
|
118444
|
+
return this.precpred(this._ctx, 8);
|
|
118428
118445
|
|
|
118429
118446
|
case 1:
|
|
118430
|
-
return this.precpred(this._ctx,
|
|
118447
|
+
return this.precpred(this._ctx, 7);
|
|
118431
118448
|
|
|
118432
118449
|
case 2:
|
|
118433
|
-
return this.precpred(this._ctx,
|
|
118450
|
+
return this.precpred(this._ctx, 6);
|
|
118434
118451
|
|
|
118435
118452
|
case 3:
|
|
118436
|
-
return this.precpred(this._ctx,
|
|
118453
|
+
return this.precpred(this._ctx, 5);
|
|
118437
118454
|
|
|
118438
118455
|
case 4:
|
|
118439
|
-
return this.precpred(this._ctx,
|
|
118456
|
+
return this.precpred(this._ctx, 4);
|
|
118440
118457
|
|
|
118441
118458
|
case 5:
|
|
118442
|
-
return this.precpred(this._ctx,
|
|
118459
|
+
return this.precpred(this._ctx, 3);
|
|
118443
118460
|
|
|
118444
118461
|
case 6:
|
|
118445
|
-
return this.precpred(this._ctx,
|
|
118462
|
+
return this.precpred(this._ctx, 9);
|
|
118446
118463
|
}
|
|
118447
118464
|
|
|
118448
118465
|
return true;
|
|
@@ -118516,9 +118533,9 @@ KCLangParser.BlockComment = 56;
|
|
|
118516
118533
|
KCLangParser.LineComment = 57;
|
|
118517
118534
|
KCLangParser.RULE_kclang = 0;
|
|
118518
118535
|
KCLangParser.RULE_globalDefinition = 1;
|
|
118519
|
-
KCLangParser.
|
|
118520
|
-
KCLangParser.
|
|
118521
|
-
KCLangParser.
|
|
118536
|
+
KCLangParser.RULE_inBlock = 2;
|
|
118537
|
+
KCLangParser.RULE_inBlockItem = 3;
|
|
118538
|
+
KCLangParser.RULE_statement = 4;
|
|
118522
118539
|
KCLangParser.RULE_globalVariable = 5;
|
|
118523
118540
|
KCLangParser.RULE_propertyVariable = 6;
|
|
118524
118541
|
KCLangParser.RULE_propertyExpression = 7;
|
|
@@ -118526,13 +118543,13 @@ KCLangParser.RULE_localVariable = 8;
|
|
|
118526
118543
|
KCLangParser.RULE_ifStatement = 9;
|
|
118527
118544
|
KCLangParser.RULE_ifPart = 10;
|
|
118528
118545
|
KCLangParser.RULE_elsePart = 11;
|
|
118529
|
-
KCLangParser.
|
|
118530
|
-
KCLangParser.
|
|
118531
|
-
KCLangParser.
|
|
118532
|
-
KCLangParser.
|
|
118533
|
-
KCLangParser.
|
|
118534
|
-
KCLangParser.
|
|
118535
|
-
KCLangParser.
|
|
118546
|
+
KCLangParser.RULE_body = 12;
|
|
118547
|
+
KCLangParser.RULE_varName = 13;
|
|
118548
|
+
KCLangParser.RULE_check = 14;
|
|
118549
|
+
KCLangParser.RULE_withBlock = 15;
|
|
118550
|
+
KCLangParser.RULE_formula = 16;
|
|
118551
|
+
KCLangParser.RULE_expression = 17;
|
|
118552
|
+
KCLangParser.RULE_label = 18;
|
|
118536
118553
|
KCLangParser.RULE_unaryExpression = 19;
|
|
118537
118554
|
KCLangParser.RULE_expressionSequence = 20;
|
|
118538
118555
|
KCLangParser.RULE_funcExpression = 21;
|
|
@@ -118553,11 +118570,11 @@ KCLangParser.RULE_pathToken = 35;
|
|
|
118553
118570
|
KCLangParser.RULE_conditionalOperand = 36;
|
|
118554
118571
|
KCLangParser.RULE_summationOperand = 37;
|
|
118555
118572
|
KCLangParser.RULE_compositionOperand = 38;
|
|
118556
|
-
KCLangParser.ruleNames = ["kclang", "globalDefinition", "
|
|
118573
|
+
KCLangParser.ruleNames = ["kclang", "globalDefinition", "inBlock", "inBlockItem", "statement", "globalVariable", "propertyVariable", "propertyExpression", "localVariable", "ifStatement", "ifPart", "elsePart", "body", "varName", "check", "withBlock", "formula", "expression", "label", "unaryExpression", "expressionSequence", "funcExpression", "argument", "pathOfVarExpression", "varExpression", "typeD", "type", "constExpression", "constString", "constDecimal", "pathOrVar", "path", "globalPath", "relativePath", "incompletePath", "pathToken", "conditionalOperand", "summationOperand", "compositionOperand"];
|
|
118557
118574
|
KCLangParser._LITERAL_NAMES = [undefined, undefined, "'getProperty'", "'decimal'", "'fraction'", "'string'", "'date'", "'%'", "'*'", "' / '", "'+'", "'-'", "'==='", "'>'", "'>='", "'<'", "'<='", "'=='", "'!='", "'='", "'as'", "'#'", "'var'", "'in'", "' : '", "':'", "','", "'.'", "'@'", "'$'", undefined, undefined, undefined, "'('", "')'", "'['", "']'", "'{'", "'}'", "'/'", "'if'", "'else'", "'Error'", "'Warning'", "'check'", "'with'", "';'", "'?'"];
|
|
118558
118575
|
KCLangParser._SYMBOLIC_NAMES = [undefined, "GOUP", "PROPERTIES", "DECIMAL", "FRACTION", "STRINGTYPE", "DATE", "PERCENT", "MUL", "DIV", "PLUS", "MIN", "TEQ", "GT", "GE", "LT", "LE", "EQ", "NEQ", "EQUAL", "AS", "HASH", "VAR", "IN", "COLON1", "COLON", "COMMA", "DOT", "AT", "DOLLAR", "AND", "OR", "NOT", "LPAREN", "RPAREN", "LBRACKET", "RBRACKET", "LBRACE", "RBRACE", "SLASH", "IF", "ELSE", "ERROR", "WARNING", "CHECK", "WITH", "SEMICOLON", "QUESTIONMARK", "CONSTSTRINGWITHQUOTES", "CONSTSTRINGWITHSINGLEQUOTES", "CONSTSTRINGWITHDOUBLEQUOTES", "NAME", "PATHTOKEN", "NUMBER", "STRING", "SPACE", "BlockComment", "LineComment"];
|
|
118559
118576
|
KCLangParser.VOCABULARY = new antlr4ts_VocabularyImpl__WEBPACK_IMPORTED_MODULE_9__.VocabularyImpl(KCLangParser._LITERAL_NAMES, KCLangParser._SYMBOLIC_NAMES, []);
|
|
118560
|
-
KCLangParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03;\u0162\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\v\t\v\x04\f\t\f\x04\r\t\r\x04" + "\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10\x04\x11\t\x11\x04\x12\t\x12\x04" + "\x13\t\x13\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17\t\x17\x04" + "\x18\t\x18\x04\x19\t\x19\x04\x1A\t\x1A\x04\x1B\t\x1B\x04\x1C\t\x1C\x04" + '\x1D\t\x1D\x04\x1E\t\x1E\x04\x1F\t\x1F\x04 \t \x04!\t!\x04"\t"\x04#' + "\t#\x04$\t$\x04%\t%\x04&\t&\x04'\t'\x04(\t(\x03\x02\x07\x02R\n\x02\f" + "\x02\x0E\x02U\v\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x05\x03\\" + "\n\x03\x03\x04\x03\x04\x03\x04\x05\x04a\n\x04\x03\x05\x03\x05\x03\x05" + "\x03\x05\x07\x05g\n\x05\f\x05\x0E\x05j\v\x05\x03\x05\x03\x05\x03\x06\x03" + "\x06\x05\x06p\n\x06\x03\x07\x03\x07\x03\x07\x03\x07\x03\x07\x03\x07\x03" + "\b\x03\b\x03\b\x03\b\x03\b\x03\b\x03\t\x03\t\x03\t\x03\t\x03\t\x05\t\x83" + "\n\t\x03\n\x03\n\x03\n\x03\n\x03\n\x03\n\x03\v\x03\v\x05\v\x8D\n\v\x03" + "\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\r\x03\r\x03\r\x03\x0E\x03\x0E\x03" + "\x0E\x03\x0E\x05\x0E\x9C\n\x0E\x03\x0F\x03\x0F\x07\x0F\xA0\n\x0F\f\x0F" + "\x0E\x0F\xA3\v\x0F\x03\x0F\x03\x0F\x05\x0F\xA7\n\x0F\x03\x10\x03\x10\x03" + "\x11\x03\x11\x03\x11\x05\x11\xAE\n\x11\x03\x11\x07\x11\xB1\n\x11\f\x11" + "\x0E\x11\xB4\v\x11\x03\x11\x03\x11\x03\x12\x03\x12\x03\x12\x03\x12\x03" + "\x13\x03\x13\x03\x13\x03\x13\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03" + "\x14\x03\x14\x03\x14\x03\x14\x03\x14\x05\x14\xCA\n\x14\x03\x14\x05\x14" + "\xCD\n\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03" + "\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03" + "\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03\x14\x03" + "\x14\x03\x14\x07\x14\xEA\n\x14\f\x14\x0E\x14\xED\v\x14\x03\x15\x03\x15" + "\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15" + "\x03\x15\x05\x15\xFB\n\x15\x03\x16\x03\x16\x03\x16\x03\x16\x07\x16\u0101" + "\n\x16\f\x16\x0E\x16\u0104\v\x16\x03\x16\x05\x16\u0107\n\x16\x03\x16\x03" + "\x16\x03\x17\x03\x17\x03\x17\x03\x17\x03\x17\x07\x17\u0110\n\x17\f\x17" + "\x0E\x17\u0113\v\x17\x03\x17\x05\x17\u0116\n\x17\x03\x17\x03\x17\x03\x18" + "\x03\x18\x03\x18\x03\x18\x05\x18\u011E\n\x18\x03\x19\x03\x19\x05\x19\u0122" + "\n\x19\x03\x1A\x03\x1A\x03\x1A\x05\x1A\u0127\n\x1A\x03\x1B\x03\x1B\x03" + "\x1B\x03\x1B\x05\x1B\u012D\n\x1B\x03\x1C\x03\x1C\x03\x1D\x03\x1D\x03\x1D" + "\x05\x1D\u0134\n\x1D\x05\x1D\u0136\n\x1D\x03\x1E\x03\x1E\x03\x1F\x03\x1F" + '\x03 \x03 \x03!\x03!\x03!\x05!\u0141\n!\x03"\x03"\x03"\x03#\x03#\x03' + "#\x07#\u0149\n#\f#\x0E#\u014C\v#\x03$\x03$\x05$\u0150\n$\x03$\x03$\x03" + "$\x03$\x05$\u0156\n$\x05$\u0158\n$\x03%\x03%\x03&\x03&\x03'\x03'\x03" + "(\x03(\x03(\x03\u014A\x02\x03&)\x02\x02\x04\x02\x06\x02\b\x02\n\x02\f" + "\x02\x0E\x02\x10\x02\x12\x02\x14\x02\x16\x02\x18\x02\x1A\x02\x1C\x02\x1E" + '\x02 \x02"\x02$\x02&\x02(\x02*\x02,\x02.\x020\x022\x024\x026\x028\x02' + ":\x02<\x02>\x02@\x02B\x02D\x02F\x02H\x02J\x02L\x02N\x02\x02\b\x03\x02" + "\x05\b\x03\x02\x1E\x1F\x05\x02\x03\x03\x1D\x1D56\x03\x02\x0F\x14\x03\x02" + "\f\r\x03\x02\n\v\x02\u0167\x02S\x03\x02\x02\x02\x04[\x03\x02\x02\x02\x06" + "`\x03\x02\x02\x02\bb\x03\x02\x02\x02\no\x03\x02\x02\x02\fq\x03\x02\x02" + "\x02\x0Ew\x03\x02\x02\x02\x10}\x03\x02\x02\x02\x12\x84\x03\x02\x02\x02" + "\x14\x8A\x03\x02\x02\x02\x16\x8E\x03\x02\x02\x02\x18\x94\x03\x02\x02\x02" + "\x1A\x9B\x03\x02\x02\x02\x1C\xA6\x03\x02\x02\x02\x1E\xA8\x03\x02\x02\x02" + ' \xAA\x03\x02\x02\x02"\xB7\x03\x02\x02\x02$\xBB\x03\x02\x02\x02&\xCC' + "\x03\x02\x02\x02(\xFA\x03\x02\x02\x02*\xFC\x03\x02\x02\x02,\u010A\x03" + "\x02\x02\x02.\u011D\x03\x02\x02\x020\u011F\x03\x02\x02\x022\u0123\x03" + "\x02\x02\x024\u012C\x03\x02\x02\x026\u012E\x03\x02\x02\x028\u0135\x03" + "\x02\x02\x02:\u0137\x03\x02\x02\x02<\u0139\x03\x02\x02\x02>\u013B\x03" + "\x02\x02\x02@\u0140\x03\x02\x02\x02B\u0142\x03\x02\x02\x02D\u0145\x03" + "\x02\x02\x02F\u0157\x03\x02\x02\x02H\u0159\x03\x02\x02\x02J\u015B\x03" + "\x02\x02\x02L\u015D\x03\x02\x02\x02N\u015F\x03\x02\x02\x02PR\x05\x04\x03" + "\x02QP\x03\x02\x02\x02RU\x03\x02\x02\x02SQ\x03\x02\x02\x02ST\x03\x02\x02" + "\x02TV\x03\x02\x02\x02US\x03\x02\x02\x02VW\x07\x02\x02\x03W\x03\x03\x02" + "\x02\x02X\\\x05\b\x05\x02Y\\\x05\f\x07\x02Z\\\x05\x0E\b\x02[X\x03\x02" + "\x02\x02[Y\x03\x02\x02\x02[Z\x03\x02\x02\x02\\\x05\x03\x02\x02\x02]a\x05" + " \x11\x02^a\x05\x14\v\x02_a\x05\x12\n\x02`]\x03\x02\x02\x02`^\x03\x02" + "\x02\x02`_\x03\x02\x02\x02a\x07\x03\x02\x02\x02bc\x07\x19\x02\x02cd\x05" + "@!\x02dh\x07'\x02\x02eg\x05\n\x06\x02fe\x03\x02\x02\x02gj\x03\x02\x02" + "\x02hf\x03\x02\x02\x02hi\x03\x02\x02\x02ik\x03\x02\x02\x02jh\x03\x02\x02" + "\x02kl\x07(\x02\x02l\t\x03\x02\x02\x02mp\x05\b\x05\x02np\x05\x06\x04\x02" + "om\x03\x02\x02\x02on\x03\x02\x02\x02p\v\x03\x02\x02\x02qr\x07\x18\x02" + "\x02rs\x05\x1E\x10\x02st\x07\x15\x02\x02tu\x05@!\x02uv\x070\x02\x02v\r" + "\x03\x02\x02\x02wx\x07\x18\x02\x02xy\x05\x1E\x10\x02yz\x07\x15\x02\x02" + "z{\x05\x10\t\x02{|\x070\x02\x02|\x0F\x03\x02\x02\x02}~\x07\x04\x02\x02" + "~\x7F\x07#\x02\x02\x7F\x80\x05:\x1E\x02\x80\x82\x07$\x02\x02\x81\x83\x05" + "4\x1B\x02\x82\x81\x03\x02\x02\x02\x82\x83\x03\x02\x02\x02\x83\x11\x03" + "\x02\x02\x02\x84\x85\x07\x18\x02\x02\x85\x86\x05\x1E\x10\x02\x86\x87\x07" + "\x15\x02\x02\x87\x88\x05&\x14\x02\x88\x89\x070\x02\x02\x89\x13\x03\x02" + "\x02\x02\x8A\x8C\x05\x16\f\x02\x8B\x8D\x05\x18\r\x02\x8C\x8B\x03\x02\x02" + "\x02\x8C\x8D\x03\x02\x02\x02\x8D\x15\x03\x02\x02\x02\x8E\x8F\x07*\x02" + "\x02\x8F\x90\x07#\x02\x02\x90\x91\x05&\x14\x02\x91\x92\x07$\x02\x02\x92" + "\x93\x05\x1C\x0F\x02\x93\x17\x03\x02\x02\x02\x94\x95\x07+\x02\x02\x95" + "\x96\x05\x1C\x0F\x02\x96\x19\x03\x02\x02\x02\x97\x98\x075\x02\x02\x98" + "\x9C\x07\x1B\x02\x02\x99\x9A\x075\x02\x02\x9A\x9C\x07\x17\x02\x02\x9B" + "\x97\x03\x02\x02\x02\x9B\x99\x03\x02\x02\x02\x9C\x1B\x03\x02\x02\x02\x9D" + "\xA1\x07'\x02\x02\x9E\xA0\x05\x06\x04\x02\x9F\x9E\x03\x02\x02\x02\xA0" + "\xA3\x03\x02\x02\x02\xA1\x9F\x03\x02\x02\x02\xA1\xA2\x03\x02\x02\x02\xA2" + "\xA4\x03\x02\x02\x02\xA3\xA1\x03\x02\x02\x02\xA4\xA7\x07(\x02\x02\xA5" + "\xA7\x05\x06\x04\x02\xA6\x9D\x03\x02\x02\x02\xA6\xA5\x03\x02\x02\x02\xA7" + "\x1D\x03\x02\x02\x02\xA8\xA9\x075\x02\x02\xA9\x1F\x03\x02\x02\x02\xAA" + "\xAD\x07.\x02\x02\xAB\xAE\x05$\x13\x02\xAC\xAE\x05&\x14\x02\xAD\xAB\x03" + "\x02\x02\x02\xAD\xAC\x03\x02\x02\x02\xAE\xB2\x03\x02\x02\x02\xAF\xB1\x05" + '"\x12\x02\xB0\xAF\x03\x02\x02\x02\xB1\xB4\x03\x02\x02\x02\xB2\xB0\x03' + "\x02\x02\x02\xB2\xB3\x03\x02\x02\x02\xB3\xB5\x03\x02\x02\x02\xB4\xB2\x03" + "\x02\x02\x02\xB5\xB6\x070\x02\x02\xB6!\x03\x02\x02\x02\xB7\xB8\x07/\x02" + "\x02\xB8\xB9\x075\x02\x02\xB9\xBA\x078\x02\x02\xBA#\x03\x02\x02\x02\xBB" + "\xBC\x05@!\x02\xBC\xBD\x07\x0E\x02\x02\xBD\xBE\x05&\x14\x02\xBE%\x03\x02" + "\x02\x02\xBF\xC0\b\x14\x01\x02\xC0\xC1\x07*\x02\x02\xC1\xC2\x07#\x02\x02" + "\xC2\xC3\x05&\x14\x02\xC3\xC4\x07$\x02\x02\xC4\xC5\x05&\x14\x02\xC5\xC6" + "\x07+\x02\x02\xC6\xC7\x05&\x14\x05\xC7\xCD\x03\x02\x02\x02\xC8\xCA\x05" + "\x1A\x0E\x02\xC9\xC8\x03\x02\x02\x02\xC9\xCA\x03\x02\x02\x02\xCA\xCB\x03" + "\x02\x02\x02\xCB\xCD\x05(\x15\x02\xCC\xBF\x03\x02\x02\x02\xCC\xC9\x03" + "\x02\x02\x02\xCD\xEB\x03\x02\x02\x02\xCE\xCF\f\v\x02\x02\xCF\xD0\x05N" + "(\x02\xD0\xD1\x05&\x14\f\xD1\xEA\x03\x02\x02\x02\xD2\xD3\f\n\x02\x02\xD3" + "\xD4\x05L'\x02\xD4\xD5\x05&\x14\v\xD5\xEA\x03\x02\x02\x02\xD6\xD7\f\t" + "\x02\x02\xD7\xD8\x05J&\x02\xD8\xD9\x05&\x14\n\xD9\xEA\x03\x02\x02\x02" + "\xDA\xDB\f\b\x02\x02\xDB\xDC\x07 \x02\x02\xDC\xEA\x05&\x14\t\xDD\xDE\f" + "\x07\x02\x02\xDE\xDF\x07!\x02\x02\xDF\xEA\x05&\x14\b\xE0\xE1\f\x06\x02" + "\x02\xE1\xE2\x071\x02\x02\xE2\xE3\x05&\x14\x02\xE3\xE4\x07\x1A\x02\x02" + "\xE4\xE5\x05&\x14\x06\xE5\xEA\x03\x02\x02\x02\xE6\xE7\f\x04\x02\x02\xE7" + "\xE8\x07\x19\x02\x02\xE8\xEA\x05*\x16\x02\xE9\xCE\x03\x02\x02\x02\xE9" + "\xD2\x03\x02\x02\x02\xE9\xD6\x03\x02\x02\x02\xE9\xDA\x03\x02\x02\x02\xE9" + "\xDD\x03\x02\x02\x02\xE9\xE0\x03\x02\x02\x02\xE9\xE6\x03\x02\x02\x02\xEA" + "\xED\x03\x02\x02\x02\xEB\xE9\x03\x02\x02\x02\xEB\xEC\x03\x02\x02\x02\xEC" + "'\x03\x02\x02\x02\xED\xEB\x03\x02\x02\x02\xEE\xFB\x058\x1D\x02\xEF\xFB" + "\x050\x19\x02\xF0\xFB\x052\x1A\x02\xF1\xF2\x07#\x02\x02\xF2\xF3\x05&\x14" + '\x02\xF3\xF4\x07$\x02\x02\xF4\xFB\x03\x02\x02\x02\xF5\xF6\x07"\x02\x02' + "\xF6\xFB\x05(\x15\x02\xF7\xFB\x05,\x17\x02\xF8\xF9\x07\r\x02\x02\xF9\xFB" + "\x05(\x15\x02\xFA\xEE\x03\x02\x02\x02\xFA\xEF\x03\x02\x02\x02\xFA\xF0" + "\x03\x02\x02\x02\xFA\xF1\x03\x02\x02\x02\xFA\xF5\x03\x02\x02\x02\xFA\xF7" + "\x03\x02\x02\x02\xFA\xF8\x03\x02\x02\x02\xFB)\x03\x02\x02\x02\xFC\u0102" + "\x07%\x02\x02\xFD\xFE\x05&\x14\x02\xFE\xFF\x07\x1C\x02\x02\xFF\u0101\x03" + "\x02\x02\x02\u0100\xFD\x03\x02\x02\x02\u0101\u0104\x03\x02\x02\x02\u0102" + "\u0100\x03\x02\x02\x02\u0102\u0103\x03\x02\x02\x02\u0103\u0106\x03\x02" + "\x02\x02\u0104\u0102\x03\x02\x02\x02\u0105\u0107\x05&\x14\x02\u0106\u0105" + "\x03\x02\x02\x02\u0106\u0107\x03\x02\x02\x02\u0107\u0108\x03\x02\x02\x02" + "\u0108\u0109\x07&\x02\x02\u0109+\x03\x02\x02\x02\u010A\u010B\x075\x02" + "\x02\u010B\u0111\x07#\x02\x02\u010C\u010D\x05.\x18\x02\u010D\u010E\x07" + "\x1C\x02\x02\u010E\u0110\x03\x02\x02\x02\u010F\u010C\x03\x02\x02\x02\u0110" + "\u0113\x03\x02\x02\x02\u0111\u010F\x03\x02\x02\x02\u0111\u0112\x03\x02" + "\x02\x02\u0112\u0115\x03\x02\x02\x02\u0113\u0111\x03\x02\x02\x02\u0114" + "\u0116\x05.\x18\x02\u0115\u0114\x03\x02\x02\x02\u0115\u0116\x03\x02\x02" + "\x02\u0116\u0117\x03\x02\x02\x02\u0117\u0118\x07$\x02\x02\u0118-\x03\x02" + "\x02\x02\u0119\u011A\x075\x02\x02\u011A\u011B\x07\x15\x02\x02\u011B\u011E" + "\x05&\x14\x02\u011C\u011E\x05&\x14\x02\u011D\u0119\x03\x02\x02\x02\u011D" + "\u011C\x03\x02\x02\x02\u011E/\x03\x02\x02\x02\u011F\u0121\x05> \x02\u0120" + "\u0122\x054\x1B\x02\u0121\u0120\x03\x02\x02\x02\u0121\u0122\x03\x02\x02" + "\x02\u01221\x03\x02\x02\x02\u0123\u0124\x07\t\x02\x02\u0124\u0126\x07" + "5\x02\x02\u0125\u0127\x054\x1B\x02\u0126\u0125\x03\x02\x02\x02\u0126\u0127" + "\x03\x02\x02\x02\u01273\x03\x02\x02\x02\u0128\u0129\x07\x1B\x02\x02\u0129" + "\u012D\x056\x1C\x02\u012A\u012B\x07\x16\x02\x02\u012B\u012D\x056\x1C\x02" + "\u012C\u0128\x03\x02\x02\x02\u012C\u012A\x03\x02\x02\x02\u012D5\x03\x02" + "\x02\x02\u012E\u012F\t\x02\x02\x02\u012F7\x03\x02\x02\x02\u0130\u0136" + "\x05<\x1F\x02\u0131\u0133\x05:\x1E\x02\u0132\u0134\x054\x1B\x02\u0133" + "\u0132\x03\x02\x02\x02\u0133\u0134\x03\x02\x02\x02\u0134\u0136\x03\x02" + "\x02\x02\u0135\u0130\x03\x02\x02\x02\u0135\u0131\x03\x02\x02\x02\u0136" + "9\x03\x02\x02\x02\u0137\u0138\x072\x02\x02\u0138;\x03\x02\x02\x02\u0139" + "\u013A\x077\x02\x02\u013A=\x03\x02\x02\x02\u013B\u013C\x05@!\x02\u013C" + '?\x03\x02\x02\x02\u013D\u0141\x05D#\x02\u013E\u0141\x05B"\x02\u013F\u0141' + "\x05F$\x02\u0140\u013D\x03\x02\x02\x02\u0140\u013E\x03\x02\x02\x02\u0140" + "\u013F\x03\x02\x02\x02\u0141A\x03\x02\x02\x02\u0142\u0143\x07)\x02\x02" + "\u0143\u0144\x05D#\x02\u0144C\x03\x02\x02\x02\u0145\u014A\x05H%\x02\u0146" + "\u0147\x07)\x02\x02\u0147\u0149\x05H%\x02\u0148\u0146\x03\x02\x02\x02" + "\u0149\u014C\x03\x02\x02\x02\u014A\u014B\x03\x02\x02\x02\u014A\u0148\x03" + "\x02\x02\x02\u014BE\x03\x02\x02\x02\u014C\u014A\x03\x02\x02\x02\u014D" + "\u0158\x07\x1E\x02\x02\u014E\u0150\x07)\x02\x02\u014F\u014E\x03\x02\x02" + "\x02\u014F\u0150\x03\x02\x02\x02\u0150\u0151\x03\x02\x02\x02\u0151\u0152" + "\x05D#\x02\u0152\u0153\x03\x02\x02\x02\u0153\u0155\x07)\x02\x02\u0154" + "\u0156\t\x03\x02\x02\u0155\u0154\x03\x02\x02\x02\u0155\u0156\x03\x02\x02" + "\x02\u0156\u0158\x03\x02\x02\x02\u0157\u014D\x03\x02\x02\x02\u0157\u014F" + "\x03\x02\x02\x02\u0158G\x03\x02\x02\x02\u0159\u015A\t\x04\x02\x02\u015A" + "I\x03\x02\x02\x02\u015B\u015C\t\x05\x02\x02\u015CK\x03\x02\x02\x02\u015D" + "\u015E\t\x06\x02\x02\u015EM\x03\x02\x02\x02\u015F\u0160\t\x07\x02\x02" + '\u0160O\x03\x02\x02\x02"S[`ho\x82\x8C\x9B\xA1\xA6\xAD\xB2\xC9\xCC\xE9' + "\xEB\xFA\u0102\u0106\u0111\u0115\u011D\u0121\u0126\u012C\u0133\u0135\u0140" + "\u014A\u014F\u0155\u0157";
|
|
118577
|
+
KCLangParser._serializedATN = "\x03\uC91D\uCABA\u058D\uAFBA\u4F53\u0607\uEA8B\uC241\x03;\u0162\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\v\t\v\x04\f\t\f\x04\r\t\r\x04" + "\x0E\t\x0E\x04\x0F\t\x0F\x04\x10\t\x10\x04\x11\t\x11\x04\x12\t\x12\x04" + "\x13\t\x13\x04\x14\t\x14\x04\x15\t\x15\x04\x16\t\x16\x04\x17\t\x17\x04" + "\x18\t\x18\x04\x19\t\x19\x04\x1A\t\x1A\x04\x1B\t\x1B\x04\x1C\t\x1C\x04" + "\x1D\t\x1D\x04\x1E\t\x1E\x04\x1F\t\x1F\x04 \t \x04!\t!\x04\"\t\"\x04#" + "\t#\x04$\t$\x04%\t%\x04&\t&\x04\'\t\'\x04(\t(\x03\x02\x07\x02R\n\x02\f" + "\x02\x0E\x02U\v\x02\x03\x02\x03\x02\x03\x03\x03\x03\x03\x03\x05\x03\\" + "\n\x03\x03\x04\x03\x04\x03\x04\x03\x04\x07\x04b\n\x04\f\x04\x0E\x04e\v" + "\x04\x03\x04\x03\x04\x03\x05\x03\x05\x05\x05k\n\x05\x03\x06\x03\x06\x03" + "\x06\x05\x06p\n\x06\x03\x07\x03\x07\x03\x07\x03\x07\x03\x07\x03\x07\x03" + "\b\x03\b\x03\b\x03\b\x03\b\x03\b\x03\t\x03\t\x03\t\x03\t\x03\t\x05\t\x83" + "\n\t\x03\n\x03\n\x03\n\x03\n\x03\n\x03\n\x03\v\x03\v\x05\v\x8D\n\v\x03" + "\f\x03\f\x03\f\x03\f\x03\f\x03\f\x03\r\x03\r\x03\r\x03\x0E\x03\x0E\x07" + "\x0E\x9A\n\x0E\f\x0E\x0E\x0E\x9D\v\x0E\x03\x0E\x03\x0E\x05\x0E\xA1\n\x0E" + "\x03\x0F\x03\x0F\x03\x10\x03\x10\x03\x10\x05\x10\xA8\n\x10\x03\x10\x07" + "\x10\xAB\n\x10\f\x10\x0E\x10\xAE\v\x10\x03\x10\x03\x10\x03\x11\x03\x11" + "\x03\x11\x03\x11\x03\x12\x03\x12\x03\x12\x03\x12\x03\x13\x03\x13\x03\x13" + "\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x05\x13\xC4\n" + "\x13\x03\x13\x05\x13\xC7\n\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13" + "\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13" + "\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13\x03\x13" + "\x03\x13\x03\x13\x03\x13\x03\x13\x07\x13\xE4\n\x13\f\x13\x0E\x13\xE7\v" + "\x13\x03\x14\x03\x14\x03\x14\x03\x14\x05\x14\xED\n\x14\x03\x15\x03\x15" + "\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15\x03\x15" + "\x03\x15\x05\x15\xFB\n\x15\x03\x16\x03\x16\x03\x16\x03\x16\x07\x16\u0101" + "\n\x16\f\x16\x0E\x16\u0104\v\x16\x03\x16\x05\x16\u0107\n\x16\x03\x16\x03" + "\x16\x03\x17\x03\x17\x03\x17\x03\x17\x03\x17\x07\x17\u0110\n\x17\f\x17" + "\x0E\x17\u0113\v\x17\x03\x17\x05\x17\u0116\n\x17\x03\x17\x03\x17\x03\x18" + "\x03\x18\x03\x18\x03\x18\x05\x18\u011E\n\x18\x03\x19\x03\x19\x05\x19\u0122" + "\n\x19\x03\x1A\x03\x1A\x03\x1A\x05\x1A\u0127\n\x1A\x03\x1B\x03\x1B\x03" + "\x1B\x03\x1B\x05\x1B\u012D\n\x1B\x03\x1C\x03\x1C\x03\x1D\x03\x1D\x03\x1D" + "\x05\x1D\u0134\n\x1D\x05\x1D\u0136\n\x1D\x03\x1E\x03\x1E\x03\x1F\x03\x1F" + "\x03 \x03 \x03!\x03!\x03!\x05!\u0141\n!\x03\"\x03\"\x03\"\x03#\x03#\x03" + "#\x07#\u0149\n#\f#\x0E#\u014C\v#\x03$\x03$\x05$\u0150\n$\x03$\x03$\x03" + "$\x03$\x05$\u0156\n$\x05$\u0158\n$\x03%\x03%\x03&\x03&\x03\'\x03\'\x03" + "(\x03(\x03(\x03\u014A\x02\x03$)\x02\x02\x04\x02\x06\x02\b\x02\n\x02\f" + "\x02\x0E\x02\x10\x02\x12\x02\x14\x02\x16\x02\x18\x02\x1A\x02\x1C\x02\x1E" + "\x02 \x02\"\x02$\x02&\x02(\x02*\x02,\x02.\x020\x022\x024\x026\x028\x02" + ":\x02<\x02>\x02@\x02B\x02D\x02F\x02H\x02J\x02L\x02N\x02\x02\b\x03\x02" + "\x05\b\x03\x02\x1E\x1F\x05\x02\x03\x03\x1D\x1D56\x03\x02\x0F\x14\x03\x02" + "\f\r\x03\x02\n\v\x02\u0167\x02S\x03\x02\x02\x02\x04[\x03\x02\x02\x02\x06" + "]\x03\x02\x02\x02\bj\x03\x02\x02\x02\no\x03\x02\x02\x02\fq\x03\x02\x02" + "\x02\x0Ew\x03\x02\x02\x02\x10}\x03\x02\x02\x02\x12\x84\x03\x02\x02\x02" + "\x14\x8A\x03\x02\x02\x02\x16\x8E\x03\x02\x02\x02\x18\x94\x03\x02\x02\x02" + "\x1A\xA0\x03\x02\x02\x02\x1C\xA2\x03\x02\x02\x02\x1E\xA4\x03\x02\x02\x02" + " \xB1\x03\x02\x02\x02\"\xB5\x03\x02\x02\x02$\xC6\x03\x02\x02\x02&\xEC" + "\x03\x02\x02\x02(\xFA\x03\x02\x02\x02*\xFC\x03\x02\x02\x02,\u010A\x03" + "\x02\x02\x02.\u011D\x03\x02\x02\x020\u011F\x03\x02\x02\x022\u0123\x03" + "\x02\x02\x024\u012C\x03\x02\x02\x026\u012E\x03\x02\x02\x028\u0135\x03" + "\x02\x02\x02:\u0137\x03\x02\x02\x02<\u0139\x03\x02\x02\x02>\u013B\x03" + "\x02\x02\x02@\u0140\x03\x02\x02\x02B\u0142\x03\x02\x02\x02D\u0145\x03" + "\x02\x02\x02F\u0157\x03\x02\x02\x02H\u0159\x03\x02\x02\x02J\u015B\x03" + "\x02\x02\x02L\u015D\x03\x02\x02\x02N\u015F\x03\x02\x02\x02PR\x05\x04\x03" + "\x02QP\x03\x02\x02\x02RU\x03\x02\x02\x02SQ\x03\x02\x02\x02ST\x03\x02\x02" + "\x02TV\x03\x02\x02\x02US\x03\x02\x02\x02VW\x07\x02\x02\x03W\x03\x03\x02" + "\x02\x02X\\\x05\x06\x04\x02Y\\\x05\f\x07\x02Z\\\x05\x0E\b\x02[X\x03\x02" + "\x02\x02[Y\x03\x02\x02\x02[Z\x03\x02\x02\x02\\\x05\x03\x02\x02\x02]^\x07" + "\x19\x02\x02^_\x05@!\x02_c\x07\'\x02\x02`b\x05\b\x05\x02a`\x03\x02\x02" + "\x02be\x03\x02\x02\x02ca\x03\x02\x02\x02cd\x03\x02\x02\x02df\x03\x02\x02" + "\x02ec\x03\x02\x02\x02fg\x07(\x02\x02g\x07\x03\x02\x02\x02hk\x05\x06\x04" + "\x02ik\x05\n\x06\x02jh\x03\x02\x02\x02ji\x03\x02\x02\x02k\t\x03\x02\x02" + "\x02lp\x05\x1E\x10\x02mp\x05\x14\v\x02np\x05\x12\n\x02ol\x03\x02\x02\x02" + "om\x03\x02\x02\x02on\x03\x02\x02\x02p\v\x03\x02\x02\x02qr\x07\x18\x02" + "\x02rs\x05\x1C\x0F\x02st\x07\x15\x02\x02tu\x05@!\x02uv\x070\x02\x02v\r" + "\x03\x02\x02\x02wx\x07\x18\x02\x02xy\x05\x1C\x0F\x02yz\x07\x15\x02\x02" + "z{\x05\x10\t\x02{|\x070\x02\x02|\x0F\x03\x02\x02\x02}~\x07\x04\x02\x02" + "~\x7F\x07#\x02\x02\x7F\x80\x05:\x1E\x02\x80\x82\x07$\x02\x02\x81\x83\x05" + "4\x1B\x02\x82\x81\x03\x02\x02\x02\x82\x83\x03\x02\x02\x02\x83\x11\x03" + "\x02\x02\x02\x84\x85\x07\x18\x02\x02\x85\x86\x05\x1C\x0F\x02\x86\x87\x07" + "\x15\x02\x02\x87\x88\x05$\x13\x02\x88\x89\x070\x02\x02\x89\x13\x03\x02" + "\x02\x02\x8A\x8C\x05\x16\f\x02\x8B\x8D\x05\x18\r\x02\x8C\x8B\x03\x02\x02" + "\x02\x8C\x8D\x03\x02\x02\x02\x8D\x15\x03\x02\x02\x02\x8E\x8F\x07*\x02" + "\x02\x8F\x90\x07#\x02\x02\x90\x91\x05$\x13\x02\x91\x92\x07$\x02\x02\x92" + "\x93\x05\x1A\x0E\x02\x93\x17\x03\x02\x02\x02\x94\x95\x07+\x02\x02\x95" + "\x96\x05\x1A\x0E\x02\x96\x19\x03\x02\x02\x02\x97\x9B\x07\'\x02\x02\x98" + "\x9A\x05\n\x06\x02\x99\x98\x03\x02\x02\x02\x9A\x9D\x03\x02\x02\x02\x9B" + "\x99\x03\x02\x02\x02\x9B\x9C\x03\x02\x02\x02\x9C\x9E\x03\x02\x02\x02\x9D" + "\x9B\x03\x02\x02\x02\x9E\xA1\x07(\x02\x02\x9F\xA1\x05\n\x06\x02\xA0\x97" + "\x03\x02\x02\x02\xA0\x9F\x03\x02\x02\x02\xA1\x1B\x03\x02\x02\x02\xA2\xA3" + "\x075\x02\x02\xA3\x1D\x03\x02\x02\x02\xA4\xA7\x07.\x02\x02\xA5\xA8\x05" + "\"\x12\x02\xA6\xA8\x05$\x13\x02\xA7\xA5\x03\x02\x02\x02\xA7\xA6\x03\x02" + "\x02\x02\xA8\xAC\x03\x02\x02\x02\xA9\xAB\x05 \x11\x02\xAA\xA9\x03\x02" + "\x02\x02\xAB\xAE\x03\x02\x02\x02\xAC\xAA\x03\x02\x02\x02\xAC\xAD\x03\x02" + "\x02\x02\xAD\xAF\x03\x02\x02\x02\xAE\xAC\x03\x02\x02\x02\xAF\xB0\x070" + "\x02\x02\xB0\x1F\x03\x02\x02\x02\xB1\xB2\x07/\x02\x02\xB2\xB3\x075\x02" + "\x02\xB3\xB4\x078\x02\x02\xB4!\x03\x02\x02\x02\xB5\xB6\x05@!\x02\xB6\xB7" + "\x07\x0E\x02\x02\xB7\xB8\x05$\x13\x02\xB8#\x03\x02\x02\x02\xB9\xBA\b\x13" + "\x01\x02\xBA\xBB\x07*\x02\x02\xBB\xBC\x07#\x02\x02\xBC\xBD\x05$\x13\x02" + "\xBD\xBE\x07$\x02\x02\xBE\xBF\x05$\x13\x02\xBF\xC0\x07+\x02\x02\xC0\xC1" + "\x05$\x13\x04\xC1\xC7\x03\x02\x02\x02\xC2\xC4\x05&\x14\x02\xC3\xC2\x03" + "\x02\x02\x02\xC3\xC4\x03\x02\x02\x02\xC4\xC5\x03\x02\x02\x02\xC5\xC7\x05" + "(\x15\x02\xC6\xB9\x03\x02\x02\x02\xC6\xC3\x03\x02\x02\x02\xC7\xE5\x03" + "\x02\x02\x02\xC8\xC9\f\n\x02\x02\xC9\xCA\x05N(\x02\xCA\xCB\x05$\x13\v" + "\xCB\xE4\x03\x02\x02\x02\xCC\xCD\f\t\x02\x02\xCD\xCE\x05L\'\x02\xCE\xCF" + "\x05$\x13\n\xCF\xE4\x03\x02\x02\x02\xD0\xD1\f\b\x02\x02\xD1\xD2\x05J&" + "\x02\xD2\xD3\x05$\x13\t\xD3\xE4\x03\x02\x02\x02\xD4\xD5\f\x07\x02\x02" + "\xD5\xD6\x07 \x02\x02\xD6\xE4\x05$\x13\b\xD7\xD8\f\x06\x02\x02\xD8\xD9" + "\x07!\x02\x02\xD9\xE4\x05$\x13\x07\xDA\xDB\f\x05\x02\x02\xDB\xDC\x071" + "\x02\x02\xDC\xDD\x05$\x13\x02\xDD\xDE\x07\x1A\x02\x02\xDE\xDF\x05$\x13" + "\x05\xDF\xE4\x03\x02\x02\x02\xE0\xE1\f\v\x02\x02\xE1\xE2\x07\x19\x02\x02" + "\xE2\xE4\x05*\x16\x02\xE3\xC8\x03\x02\x02\x02\xE3\xCC\x03\x02\x02\x02" + "\xE3\xD0\x03\x02\x02\x02\xE3\xD4\x03\x02\x02\x02\xE3\xD7\x03\x02\x02\x02" + "\xE3\xDA\x03\x02\x02\x02\xE3\xE0\x03\x02\x02\x02\xE4\xE7\x03\x02\x02\x02" + "\xE5\xE3\x03\x02\x02\x02\xE5\xE6\x03\x02\x02\x02\xE6%\x03\x02\x02\x02" + "\xE7\xE5\x03\x02\x02\x02\xE8\xE9\x075\x02\x02\xE9\xED\x07\x1B\x02\x02" + "\xEA\xEB\x075\x02\x02\xEB\xED\x07\x17\x02\x02\xEC\xE8\x03\x02\x02\x02" + "\xEC\xEA\x03\x02\x02\x02\xED\'\x03\x02\x02\x02\xEE\xFB\x058\x1D\x02\xEF" + "\xFB\x050\x19\x02\xF0\xFB\x052\x1A\x02\xF1\xF2\x07#\x02\x02\xF2\xF3\x05" + "$\x13\x02\xF3\xF4\x07$\x02\x02\xF4\xFB\x03\x02\x02\x02\xF5\xF6\x07\"\x02" + "\x02\xF6\xFB\x05(\x15\x02\xF7\xFB\x05,\x17\x02\xF8\xF9\x07\r\x02\x02\xF9" + "\xFB\x05(\x15\x02\xFA\xEE\x03\x02\x02\x02\xFA\xEF\x03\x02\x02\x02\xFA" + "\xF0\x03\x02\x02\x02\xFA\xF1\x03\x02\x02\x02\xFA\xF5\x03\x02\x02\x02\xFA" + "\xF7\x03\x02\x02\x02\xFA\xF8\x03\x02\x02\x02\xFB)\x03\x02\x02\x02\xFC" + "\u0102\x07%\x02\x02\xFD\xFE\x05$\x13\x02\xFE\xFF\x07\x1C\x02\x02\xFF\u0101" + "\x03\x02\x02\x02\u0100\xFD\x03\x02\x02\x02\u0101\u0104\x03\x02\x02\x02" + "\u0102\u0100\x03\x02\x02\x02\u0102\u0103\x03\x02\x02\x02\u0103\u0106\x03" + "\x02\x02\x02\u0104\u0102\x03\x02\x02\x02\u0105\u0107\x05$\x13\x02\u0106" + "\u0105\x03\x02\x02\x02\u0106\u0107\x03\x02\x02\x02\u0107\u0108\x03\x02" + "\x02\x02\u0108\u0109\x07&\x02\x02\u0109+\x03\x02\x02\x02\u010A\u010B\x07" + "5\x02\x02\u010B\u0111\x07#\x02\x02\u010C\u010D\x05.\x18\x02\u010D\u010E" + "\x07\x1C\x02\x02\u010E\u0110\x03\x02\x02\x02\u010F\u010C\x03\x02\x02\x02" + "\u0110\u0113\x03\x02\x02\x02\u0111\u010F\x03\x02\x02\x02\u0111\u0112\x03" + "\x02\x02\x02\u0112\u0115\x03\x02\x02\x02\u0113\u0111\x03\x02\x02\x02\u0114" + "\u0116\x05.\x18\x02\u0115\u0114\x03\x02\x02\x02\u0115\u0116\x03\x02\x02" + "\x02\u0116\u0117\x03\x02\x02\x02\u0117\u0118\x07$\x02\x02\u0118-\x03\x02" + "\x02\x02\u0119\u011A\x075\x02\x02\u011A\u011B\x07\x15\x02\x02\u011B\u011E" + "\x05$\x13\x02\u011C\u011E\x05$\x13\x02\u011D\u0119\x03\x02\x02\x02\u011D" + "\u011C\x03\x02\x02\x02\u011E/\x03\x02\x02\x02\u011F\u0121\x05> \x02\u0120" + "\u0122\x054\x1B\x02\u0121\u0120\x03\x02\x02\x02\u0121\u0122\x03\x02\x02" + "\x02\u01221\x03\x02\x02\x02\u0123\u0124\x07\t\x02\x02\u0124\u0126\x07" + "5\x02\x02\u0125\u0127\x054\x1B\x02\u0126\u0125\x03\x02\x02\x02\u0126\u0127" + "\x03\x02\x02\x02\u01273\x03\x02\x02\x02\u0128\u0129\x07\x1B\x02\x02\u0129" + "\u012D\x056\x1C\x02\u012A\u012B\x07\x16\x02\x02\u012B\u012D\x056\x1C\x02" + "\u012C\u0128\x03\x02\x02\x02\u012C\u012A\x03\x02\x02\x02\u012D5\x03\x02" + "\x02\x02\u012E\u012F\t\x02\x02\x02\u012F7\x03\x02\x02\x02\u0130\u0136" + "\x05<\x1F\x02\u0131\u0133\x05:\x1E\x02\u0132\u0134\x054\x1B\x02\u0133" + "\u0132\x03\x02\x02\x02\u0133\u0134\x03\x02\x02\x02\u0134\u0136\x03\x02" + "\x02\x02\u0135\u0130\x03\x02\x02\x02\u0135\u0131\x03\x02\x02\x02\u0136" + "9\x03\x02\x02\x02\u0137\u0138\x072\x02\x02\u0138;\x03\x02\x02\x02\u0139" + "\u013A\x077\x02\x02\u013A=\x03\x02\x02\x02\u013B\u013C\x05@!\x02\u013C" + "?\x03\x02\x02\x02\u013D\u0141\x05D#\x02\u013E\u0141\x05B\"\x02\u013F\u0141" + "\x05F$\x02\u0140\u013D\x03\x02\x02\x02\u0140\u013E\x03\x02\x02\x02\u0140" + "\u013F\x03\x02\x02\x02\u0141A\x03\x02\x02\x02\u0142\u0143\x07)\x02\x02" + "\u0143\u0144\x05D#\x02\u0144C\x03\x02\x02\x02\u0145\u014A\x05H%\x02\u0146" + "\u0147\x07)\x02\x02\u0147\u0149\x05H%\x02\u0148\u0146\x03\x02\x02\x02" + "\u0149\u014C\x03\x02\x02\x02\u014A\u014B\x03\x02\x02\x02\u014A\u0148\x03" + "\x02\x02\x02\u014BE\x03\x02\x02\x02\u014C\u014A\x03\x02\x02\x02\u014D" + "\u0158\x07\x1E\x02\x02\u014E\u0150\x07)\x02\x02\u014F\u014E\x03\x02\x02" + "\x02\u014F\u0150\x03\x02\x02\x02\u0150\u0151\x03\x02\x02\x02\u0151\u0152" + "\x05D#\x02\u0152\u0153\x03\x02\x02\x02\u0153\u0155\x07)\x02\x02\u0154" + "\u0156\t\x03\x02\x02\u0155\u0154\x03\x02\x02\x02\u0155\u0156\x03\x02\x02" + "\x02\u0156\u0158\x03\x02\x02\x02\u0157\u014D\x03\x02\x02\x02\u0157\u014F" + "\x03\x02\x02\x02\u0158G\x03\x02\x02\x02\u0159\u015A\t\x04\x02\x02\u015A" + "I\x03\x02\x02\x02\u015B\u015C\t\x05\x02\x02\u015CK\x03\x02\x02\x02\u015D" + "\u015E\t\x06\x02\x02\u015EM\x03\x02\x02\x02\u015F\u0160\t\x07\x02\x02" + "\u0160O\x03\x02\x02\x02\"S[cjo\x82\x8C\x9B\xA0\xA7\xAC\xC3\xC6\xE3\xE5" + "\xEC\xFA\u0102\u0106\u0111\u0115\u011D\u0121\u0126\u012C\u0133\u0135\u0140" + "\u014A\u014F\u0155\u0157";
|
|
118561
118578
|
KCLangParser.__ATN = void 0;
|
|
118562
118579
|
class KclangContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MODULE_5__.ParserRuleContext {
|
|
118563
118580
|
EOF() {
|
|
@@ -118651,17 +118668,29 @@ class GlobalDefinitionContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORT
|
|
|
118651
118668
|
}
|
|
118652
118669
|
|
|
118653
118670
|
}
|
|
118654
|
-
class
|
|
118655
|
-
|
|
118656
|
-
return this.
|
|
118671
|
+
class InBlockContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MODULE_5__.ParserRuleContext {
|
|
118672
|
+
IN() {
|
|
118673
|
+
return this.getToken(KCLangParser.IN, 0);
|
|
118657
118674
|
}
|
|
118658
118675
|
|
|
118659
|
-
|
|
118660
|
-
return this.
|
|
118676
|
+
path() {
|
|
118677
|
+
return this.getRuleContext(0, PathContext);
|
|
118661
118678
|
}
|
|
118662
118679
|
|
|
118663
|
-
|
|
118664
|
-
return this.
|
|
118680
|
+
LBRACE() {
|
|
118681
|
+
return this.getToken(KCLangParser.LBRACE, 0);
|
|
118682
|
+
}
|
|
118683
|
+
|
|
118684
|
+
RBRACE() {
|
|
118685
|
+
return this.getToken(KCLangParser.RBRACE, 0);
|
|
118686
|
+
}
|
|
118687
|
+
|
|
118688
|
+
inBlockItem(i) {
|
|
118689
|
+
if (i === undefined) {
|
|
118690
|
+
return this.getRuleContexts(InBlockItemContext);
|
|
118691
|
+
} else {
|
|
118692
|
+
return this.getRuleContext(i, InBlockItemContext);
|
|
118693
|
+
}
|
|
118665
118694
|
}
|
|
118666
118695
|
|
|
118667
118696
|
constructor(parent, invokingState) {
|
|
@@ -118670,56 +118699,40 @@ class StatementContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MODU
|
|
|
118670
118699
|
|
|
118671
118700
|
|
|
118672
118701
|
get ruleIndex() {
|
|
118673
|
-
return KCLangParser.
|
|
118702
|
+
return KCLangParser.RULE_inBlock;
|
|
118674
118703
|
} // @Override
|
|
118675
118704
|
|
|
118676
118705
|
|
|
118677
118706
|
enterRule(listener) {
|
|
118678
|
-
if (listener.
|
|
118679
|
-
listener.
|
|
118707
|
+
if (listener.enterInBlock) {
|
|
118708
|
+
listener.enterInBlock(this);
|
|
118680
118709
|
}
|
|
118681
118710
|
} // @Override
|
|
118682
118711
|
|
|
118683
118712
|
|
|
118684
118713
|
exitRule(listener) {
|
|
118685
|
-
if (listener.
|
|
118686
|
-
listener.
|
|
118714
|
+
if (listener.exitInBlock) {
|
|
118715
|
+
listener.exitInBlock(this);
|
|
118687
118716
|
}
|
|
118688
118717
|
} // @Override
|
|
118689
118718
|
|
|
118690
118719
|
|
|
118691
118720
|
accept(visitor) {
|
|
118692
|
-
if (visitor.
|
|
118693
|
-
return visitor.
|
|
118721
|
+
if (visitor.visitInBlock) {
|
|
118722
|
+
return visitor.visitInBlock(this);
|
|
118694
118723
|
} else {
|
|
118695
118724
|
return visitor.visitChildren(this);
|
|
118696
118725
|
}
|
|
118697
118726
|
}
|
|
118698
118727
|
|
|
118699
118728
|
}
|
|
118700
|
-
class
|
|
118701
|
-
|
|
118702
|
-
return this.
|
|
118703
|
-
}
|
|
118704
|
-
|
|
118705
|
-
path() {
|
|
118706
|
-
return this.getRuleContext(0, PathContext);
|
|
118707
|
-
}
|
|
118708
|
-
|
|
118709
|
-
LBRACE() {
|
|
118710
|
-
return this.getToken(KCLangParser.LBRACE, 0);
|
|
118711
|
-
}
|
|
118712
|
-
|
|
118713
|
-
RBRACE() {
|
|
118714
|
-
return this.getToken(KCLangParser.RBRACE, 0);
|
|
118729
|
+
class InBlockItemContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MODULE_5__.ParserRuleContext {
|
|
118730
|
+
inBlock() {
|
|
118731
|
+
return this.tryGetRuleContext(0, InBlockContext);
|
|
118715
118732
|
}
|
|
118716
118733
|
|
|
118717
|
-
|
|
118718
|
-
|
|
118719
|
-
return this.getRuleContexts(InBlockItemContext);
|
|
118720
|
-
} else {
|
|
118721
|
-
return this.getRuleContext(i, InBlockItemContext);
|
|
118722
|
-
}
|
|
118734
|
+
statement() {
|
|
118735
|
+
return this.tryGetRuleContext(0, StatementContext);
|
|
118723
118736
|
}
|
|
118724
118737
|
|
|
118725
118738
|
constructor(parent, invokingState) {
|
|
@@ -118728,40 +118741,44 @@ class InBlockContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MODULE
|
|
|
118728
118741
|
|
|
118729
118742
|
|
|
118730
118743
|
get ruleIndex() {
|
|
118731
|
-
return KCLangParser.
|
|
118744
|
+
return KCLangParser.RULE_inBlockItem;
|
|
118732
118745
|
} // @Override
|
|
118733
118746
|
|
|
118734
118747
|
|
|
118735
118748
|
enterRule(listener) {
|
|
118736
|
-
if (listener.
|
|
118737
|
-
listener.
|
|
118749
|
+
if (listener.enterInBlockItem) {
|
|
118750
|
+
listener.enterInBlockItem(this);
|
|
118738
118751
|
}
|
|
118739
118752
|
} // @Override
|
|
118740
118753
|
|
|
118741
118754
|
|
|
118742
118755
|
exitRule(listener) {
|
|
118743
|
-
if (listener.
|
|
118744
|
-
listener.
|
|
118756
|
+
if (listener.exitInBlockItem) {
|
|
118757
|
+
listener.exitInBlockItem(this);
|
|
118745
118758
|
}
|
|
118746
118759
|
} // @Override
|
|
118747
118760
|
|
|
118748
118761
|
|
|
118749
118762
|
accept(visitor) {
|
|
118750
|
-
if (visitor.
|
|
118751
|
-
return visitor.
|
|
118763
|
+
if (visitor.visitInBlockItem) {
|
|
118764
|
+
return visitor.visitInBlockItem(this);
|
|
118752
118765
|
} else {
|
|
118753
118766
|
return visitor.visitChildren(this);
|
|
118754
118767
|
}
|
|
118755
118768
|
}
|
|
118756
118769
|
|
|
118757
118770
|
}
|
|
118758
|
-
class
|
|
118759
|
-
|
|
118760
|
-
return this.tryGetRuleContext(0,
|
|
118771
|
+
class StatementContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MODULE_5__.ParserRuleContext {
|
|
118772
|
+
check() {
|
|
118773
|
+
return this.tryGetRuleContext(0, CheckContext);
|
|
118761
118774
|
}
|
|
118762
118775
|
|
|
118763
|
-
|
|
118764
|
-
return this.tryGetRuleContext(0,
|
|
118776
|
+
ifStatement() {
|
|
118777
|
+
return this.tryGetRuleContext(0, IfStatementContext);
|
|
118778
|
+
}
|
|
118779
|
+
|
|
118780
|
+
localVariable() {
|
|
118781
|
+
return this.tryGetRuleContext(0, LocalVariableContext);
|
|
118765
118782
|
}
|
|
118766
118783
|
|
|
118767
118784
|
constructor(parent, invokingState) {
|
|
@@ -118770,27 +118787,27 @@ class InBlockItemContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MO
|
|
|
118770
118787
|
|
|
118771
118788
|
|
|
118772
118789
|
get ruleIndex() {
|
|
118773
|
-
return KCLangParser.
|
|
118790
|
+
return KCLangParser.RULE_statement;
|
|
118774
118791
|
} // @Override
|
|
118775
118792
|
|
|
118776
118793
|
|
|
118777
118794
|
enterRule(listener) {
|
|
118778
|
-
if (listener.
|
|
118779
|
-
listener.
|
|
118795
|
+
if (listener.enterStatement) {
|
|
118796
|
+
listener.enterStatement(this);
|
|
118780
118797
|
}
|
|
118781
118798
|
} // @Override
|
|
118782
118799
|
|
|
118783
118800
|
|
|
118784
118801
|
exitRule(listener) {
|
|
118785
|
-
if (listener.
|
|
118786
|
-
listener.
|
|
118802
|
+
if (listener.exitStatement) {
|
|
118803
|
+
listener.exitStatement(this);
|
|
118787
118804
|
}
|
|
118788
118805
|
} // @Override
|
|
118789
118806
|
|
|
118790
118807
|
|
|
118791
118808
|
accept(visitor) {
|
|
118792
|
-
if (visitor.
|
|
118793
|
-
return visitor.
|
|
118809
|
+
if (visitor.visitStatement) {
|
|
118810
|
+
return visitor.visitStatement(this);
|
|
118794
118811
|
} else {
|
|
118795
118812
|
return visitor.visitChildren(this);
|
|
118796
118813
|
}
|
|
@@ -119150,52 +119167,6 @@ class ElsePartContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MODUL
|
|
|
119150
119167
|
}
|
|
119151
119168
|
}
|
|
119152
119169
|
|
|
119153
|
-
}
|
|
119154
|
-
class LabelContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MODULE_5__.ParserRuleContext {
|
|
119155
|
-
NAME() {
|
|
119156
|
-
return this.getToken(KCLangParser.NAME, 0);
|
|
119157
|
-
}
|
|
119158
|
-
|
|
119159
|
-
COLON() {
|
|
119160
|
-
return this.tryGetToken(KCLangParser.COLON, 0);
|
|
119161
|
-
}
|
|
119162
|
-
|
|
119163
|
-
HASH() {
|
|
119164
|
-
return this.tryGetToken(KCLangParser.HASH, 0);
|
|
119165
|
-
}
|
|
119166
|
-
|
|
119167
|
-
constructor(parent, invokingState) {
|
|
119168
|
-
super(parent, invokingState);
|
|
119169
|
-
} // @Override
|
|
119170
|
-
|
|
119171
|
-
|
|
119172
|
-
get ruleIndex() {
|
|
119173
|
-
return KCLangParser.RULE_label;
|
|
119174
|
-
} // @Override
|
|
119175
|
-
|
|
119176
|
-
|
|
119177
|
-
enterRule(listener) {
|
|
119178
|
-
if (listener.enterLabel) {
|
|
119179
|
-
listener.enterLabel(this);
|
|
119180
|
-
}
|
|
119181
|
-
} // @Override
|
|
119182
|
-
|
|
119183
|
-
|
|
119184
|
-
exitRule(listener) {
|
|
119185
|
-
if (listener.exitLabel) {
|
|
119186
|
-
listener.exitLabel(this);
|
|
119187
|
-
}
|
|
119188
|
-
} // @Override
|
|
119189
|
-
|
|
119190
|
-
|
|
119191
|
-
accept(visitor) {
|
|
119192
|
-
if (visitor.visitLabel) {
|
|
119193
|
-
return visitor.visitLabel(this);
|
|
119194
|
-
} else {
|
|
119195
|
-
return visitor.visitChildren(this);
|
|
119196
|
-
}
|
|
119197
|
-
}
|
|
119198
|
-
|
|
119199
119170
|
}
|
|
119200
119171
|
class BodyContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MODULE_5__.ParserRuleContext {
|
|
119201
119172
|
statement(i) {
|
|
@@ -119449,6 +119420,48 @@ class ExpressionContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MOD
|
|
|
119449
119420
|
super.copyFrom(ctx);
|
|
119450
119421
|
}
|
|
119451
119422
|
|
|
119423
|
+
}
|
|
119424
|
+
class OneOfContext extends ExpressionContext {
|
|
119425
|
+
expression() {
|
|
119426
|
+
return this.getRuleContext(0, ExpressionContext);
|
|
119427
|
+
}
|
|
119428
|
+
|
|
119429
|
+
IN() {
|
|
119430
|
+
return this.getToken(KCLangParser.IN, 0);
|
|
119431
|
+
}
|
|
119432
|
+
|
|
119433
|
+
expressionSequence() {
|
|
119434
|
+
return this.getRuleContext(0, ExpressionSequenceContext);
|
|
119435
|
+
}
|
|
119436
|
+
|
|
119437
|
+
constructor(ctx) {
|
|
119438
|
+
super(ctx.parent, ctx.invokingState);
|
|
119439
|
+
this.copyFrom(ctx);
|
|
119440
|
+
} // @Override
|
|
119441
|
+
|
|
119442
|
+
|
|
119443
|
+
enterRule(listener) {
|
|
119444
|
+
if (listener.enterOneOf) {
|
|
119445
|
+
listener.enterOneOf(this);
|
|
119446
|
+
}
|
|
119447
|
+
} // @Override
|
|
119448
|
+
|
|
119449
|
+
|
|
119450
|
+
exitRule(listener) {
|
|
119451
|
+
if (listener.exitOneOf) {
|
|
119452
|
+
listener.exitOneOf(this);
|
|
119453
|
+
}
|
|
119454
|
+
} // @Override
|
|
119455
|
+
|
|
119456
|
+
|
|
119457
|
+
accept(visitor) {
|
|
119458
|
+
if (visitor.visitOneOf) {
|
|
119459
|
+
return visitor.visitOneOf(this);
|
|
119460
|
+
} else {
|
|
119461
|
+
return visitor.visitChildren(this);
|
|
119462
|
+
}
|
|
119463
|
+
}
|
|
119464
|
+
|
|
119452
119465
|
}
|
|
119453
119466
|
class CompositionContext extends ExpressionContext {
|
|
119454
119467
|
expression(i) {
|
|
@@ -119722,17 +119735,13 @@ class TernaryContext extends ExpressionContext {
|
|
|
119722
119735
|
}
|
|
119723
119736
|
|
|
119724
119737
|
}
|
|
119725
|
-
class
|
|
119726
|
-
|
|
119727
|
-
return this.getRuleContext(0,
|
|
119728
|
-
}
|
|
119729
|
-
|
|
119730
|
-
IN() {
|
|
119731
|
-
return this.getToken(KCLangParser.IN, 0);
|
|
119738
|
+
class UnaryContext extends ExpressionContext {
|
|
119739
|
+
unaryExpression() {
|
|
119740
|
+
return this.getRuleContext(0, UnaryExpressionContext);
|
|
119732
119741
|
}
|
|
119733
119742
|
|
|
119734
|
-
|
|
119735
|
-
return this.
|
|
119743
|
+
label() {
|
|
119744
|
+
return this.tryGetRuleContext(0, LabelContext);
|
|
119736
119745
|
}
|
|
119737
119746
|
|
|
119738
119747
|
constructor(ctx) {
|
|
@@ -119742,60 +119751,68 @@ class OneOfContext extends ExpressionContext {
|
|
|
119742
119751
|
|
|
119743
119752
|
|
|
119744
119753
|
enterRule(listener) {
|
|
119745
|
-
if (listener.
|
|
119746
|
-
listener.
|
|
119754
|
+
if (listener.enterUnary) {
|
|
119755
|
+
listener.enterUnary(this);
|
|
119747
119756
|
}
|
|
119748
119757
|
} // @Override
|
|
119749
119758
|
|
|
119750
119759
|
|
|
119751
119760
|
exitRule(listener) {
|
|
119752
|
-
if (listener.
|
|
119753
|
-
listener.
|
|
119761
|
+
if (listener.exitUnary) {
|
|
119762
|
+
listener.exitUnary(this);
|
|
119754
119763
|
}
|
|
119755
119764
|
} // @Override
|
|
119756
119765
|
|
|
119757
119766
|
|
|
119758
119767
|
accept(visitor) {
|
|
119759
|
-
if (visitor.
|
|
119760
|
-
return visitor.
|
|
119768
|
+
if (visitor.visitUnary) {
|
|
119769
|
+
return visitor.visitUnary(this);
|
|
119761
119770
|
} else {
|
|
119762
119771
|
return visitor.visitChildren(this);
|
|
119763
119772
|
}
|
|
119764
119773
|
}
|
|
119765
119774
|
|
|
119766
119775
|
}
|
|
119767
|
-
class
|
|
119768
|
-
|
|
119769
|
-
return this.
|
|
119776
|
+
class LabelContext extends antlr4ts_ParserRuleContext__WEBPACK_IMPORTED_MODULE_5__.ParserRuleContext {
|
|
119777
|
+
NAME() {
|
|
119778
|
+
return this.getToken(KCLangParser.NAME, 0);
|
|
119770
119779
|
}
|
|
119771
119780
|
|
|
119772
|
-
|
|
119773
|
-
return this.
|
|
119781
|
+
COLON() {
|
|
119782
|
+
return this.tryGetToken(KCLangParser.COLON, 0);
|
|
119774
119783
|
}
|
|
119775
119784
|
|
|
119776
|
-
|
|
119777
|
-
|
|
119778
|
-
|
|
119785
|
+
HASH() {
|
|
119786
|
+
return this.tryGetToken(KCLangParser.HASH, 0);
|
|
119787
|
+
}
|
|
119788
|
+
|
|
119789
|
+
constructor(parent, invokingState) {
|
|
119790
|
+
super(parent, invokingState);
|
|
119791
|
+
} // @Override
|
|
119792
|
+
|
|
119793
|
+
|
|
119794
|
+
get ruleIndex() {
|
|
119795
|
+
return KCLangParser.RULE_label;
|
|
119779
119796
|
} // @Override
|
|
119780
119797
|
|
|
119781
119798
|
|
|
119782
119799
|
enterRule(listener) {
|
|
119783
|
-
if (listener.
|
|
119784
|
-
listener.
|
|
119800
|
+
if (listener.enterLabel) {
|
|
119801
|
+
listener.enterLabel(this);
|
|
119785
119802
|
}
|
|
119786
119803
|
} // @Override
|
|
119787
119804
|
|
|
119788
119805
|
|
|
119789
119806
|
exitRule(listener) {
|
|
119790
|
-
if (listener.
|
|
119791
|
-
listener.
|
|
119807
|
+
if (listener.exitLabel) {
|
|
119808
|
+
listener.exitLabel(this);
|
|
119792
119809
|
}
|
|
119793
119810
|
} // @Override
|
|
119794
119811
|
|
|
119795
119812
|
|
|
119796
119813
|
accept(visitor) {
|
|
119797
|
-
if (visitor.
|
|
119798
|
-
return visitor.
|
|
119814
|
+
if (visitor.visitLabel) {
|
|
119815
|
+
return visitor.visitLabel(this);
|
|
119799
119816
|
} else {
|
|
119800
119817
|
return visitor.visitChildren(this);
|
|
119801
119818
|
}
|
|
@@ -121120,6 +121137,10 @@ function traverseKCLangExpression(node, visitor) {
|
|
|
121120
121137
|
visitor.visitNewLineKCLangNode(node);
|
|
121121
121138
|
break;
|
|
121122
121139
|
|
|
121140
|
+
case "dateNow":
|
|
121141
|
+
visitor.visitDateNowKCLangNode(node);
|
|
121142
|
+
break;
|
|
121143
|
+
|
|
121123
121144
|
default:
|
|
121124
121145
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(node);
|
|
121125
121146
|
break;
|
|
@@ -121198,6 +121219,9 @@ class DefaultKCLangExpressionVisitor {
|
|
|
121198
121219
|
visitNewLineKCLangNode(node) {// default empty implementation
|
|
121199
121220
|
}
|
|
121200
121221
|
|
|
121222
|
+
visitDateNowKCLangNode(node) {// default empty implementation
|
|
121223
|
+
}
|
|
121224
|
+
|
|
121201
121225
|
}
|
|
121202
121226
|
|
|
121203
121227
|
/***/ }),
|
|
@@ -121559,6 +121583,9 @@ const getGenerateJsExpressionFunc = options => {
|
|
|
121559
121583
|
case "newline":
|
|
121560
121584
|
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_1__.NotImplementedError();
|
|
121561
121585
|
|
|
121586
|
+
case "dateNow":
|
|
121587
|
+
return `${utilsName}.dateNow()`;
|
|
121588
|
+
|
|
121562
121589
|
default:
|
|
121563
121590
|
(0,_Common_TypingUtils__WEBPACK_IMPORTED_MODULE_0__.ensureNever)(expression);
|
|
121564
121591
|
}
|
|
@@ -121682,6 +121709,9 @@ function generateKCXmlExpression(expression) {
|
|
|
121682
121709
|
case "substring":
|
|
121683
121710
|
return [expression.length != undefined ? `<m:substring start="${expression.start}" length="${expression.length}">` : `<m:substring start="${expression.start}">`, (0,_Common_IndentString__WEBPACK_IMPORTED_MODULE_2__.indent)(generateKCXmlExpression(expression.expression), 1), `</m:substring>`].join("\n");
|
|
121684
121711
|
|
|
121712
|
+
case "dateNow":
|
|
121713
|
+
return `<m:dateNow />`;
|
|
121714
|
+
|
|
121685
121715
|
case "newline":
|
|
121686
121716
|
return `<m:newline />`;
|
|
121687
121717
|
|
|
@@ -131772,6 +131802,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131772
131802
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
131773
131803
|
/* harmony export */ "FLangNode": () => (/* binding */ FLangNode),
|
|
131774
131804
|
/* harmony export */ "FLangExpression": () => (/* binding */ FLangExpression),
|
|
131805
|
+
/* harmony export */ "FLangDecimalExpression": () => (/* binding */ FLangDecimalExpression),
|
|
131775
131806
|
/* harmony export */ "ValueReferenceExpression": () => (/* binding */ ValueReferenceExpression),
|
|
131776
131807
|
/* harmony export */ "BinaryExpression": () => (/* binding */ BinaryExpression),
|
|
131777
131808
|
/* harmony export */ "BinaryBooleanExpression": () => (/* binding */ BinaryBooleanExpression),
|
|
@@ -131803,12 +131834,15 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131803
131834
|
/* harmony export */ "ConstExpression": () => (/* binding */ ConstExpression),
|
|
131804
131835
|
/* harmony export */ "StringLiteralExpression": () => (/* binding */ StringLiteralExpression),
|
|
131805
131836
|
/* harmony export */ "DecimalLiteralExpression": () => (/* binding */ DecimalLiteralExpression),
|
|
131837
|
+
/* harmony export */ "DictLiteralExpression": () => (/* binding */ DictLiteralExpression),
|
|
131806
131838
|
/* harmony export */ "BoolLiteralExpression": () => (/* binding */ BoolLiteralExpression),
|
|
131807
131839
|
/* harmony export */ "AbsExpression": () => (/* binding */ AbsExpression),
|
|
131808
131840
|
/* harmony export */ "LenExpression": () => (/* binding */ LenExpression),
|
|
131809
131841
|
/* harmony export */ "NumLenExpression": () => (/* binding */ NumLenExpression),
|
|
131810
131842
|
/* harmony export */ "FractionalLenExpression": () => (/* binding */ FractionalLenExpression),
|
|
131811
131843
|
/* harmony export */ "RoundExpression": () => (/* binding */ RoundExpression),
|
|
131844
|
+
/* harmony export */ "AddSumExpression": () => (/* binding */ AddSumExpression),
|
|
131845
|
+
/* harmony export */ "GetExpression": () => (/* binding */ GetExpression),
|
|
131812
131846
|
/* harmony export */ "IntegerLiteralExpression": () => (/* binding */ IntegerLiteralExpression),
|
|
131813
131847
|
/* harmony export */ "NullLiteralExpression": () => (/* binding */ NullLiteralExpression),
|
|
131814
131848
|
/* harmony export */ "ConditionalExpression": () => (/* binding */ ConditionalExpression),
|
|
@@ -131819,6 +131853,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
131819
131853
|
|
|
131820
131854
|
class FLangNode {}
|
|
131821
131855
|
class FLangExpression extends FLangNode {}
|
|
131856
|
+
class FLangDecimalExpression extends FLangExpression {}
|
|
131822
131857
|
|
|
131823
131858
|
function toFLangString(modelPath) {
|
|
131824
131859
|
return (modelPath.isAbsolute() ? "/" : "") + modelPath.getPathPartsAsArray().map(x => {
|
|
@@ -132007,6 +132042,7 @@ class BuildInTypeExpression extends TypeReferenceExpression {
|
|
|
132007
132042
|
}
|
|
132008
132043
|
BuildInTypeExpression.decimal = new BuildInTypeExpression("decimal");
|
|
132009
132044
|
BuildInTypeExpression.string = new BuildInTypeExpression("string");
|
|
132045
|
+
BuildInTypeExpression.dict = new BuildInTypeExpression("dict");
|
|
132010
132046
|
class ArgumentDeclarationExpression extends FLangExpression {
|
|
132011
132047
|
constructor(argumentName, typeExpression) {
|
|
132012
132048
|
super();
|
|
@@ -132116,7 +132152,7 @@ class StringLiteralExpression extends ConstExpression {
|
|
|
132116
132152
|
}
|
|
132117
132153
|
|
|
132118
132154
|
}
|
|
132119
|
-
class DecimalLiteralExpression extends
|
|
132155
|
+
class DecimalLiteralExpression extends FLangDecimalExpression {
|
|
132120
132156
|
constructor(value) {
|
|
132121
132157
|
super();
|
|
132122
132158
|
this.value = void 0;
|
|
@@ -132127,6 +132163,12 @@ class DecimalLiteralExpression extends ConstExpression {
|
|
|
132127
132163
|
return `decimal("${typeof this.value === "string" ? this.value : JSON.stringify(this.value)}")`;
|
|
132128
132164
|
}
|
|
132129
132165
|
|
|
132166
|
+
}
|
|
132167
|
+
class DictLiteralExpression extends FLangExpression {
|
|
132168
|
+
convertToString() {
|
|
132169
|
+
return `dict()`;
|
|
132170
|
+
}
|
|
132171
|
+
|
|
132130
132172
|
}
|
|
132131
132173
|
class BoolLiteralExpression extends ConstExpression {
|
|
132132
132174
|
constructor(value) {
|
|
@@ -132140,7 +132182,7 @@ class BoolLiteralExpression extends ConstExpression {
|
|
|
132140
132182
|
}
|
|
132141
132183
|
|
|
132142
132184
|
}
|
|
132143
|
-
class AbsExpression extends
|
|
132185
|
+
class AbsExpression extends FLangDecimalExpression {
|
|
132144
132186
|
constructor(expression) {
|
|
132145
132187
|
super();
|
|
132146
132188
|
this.expression = void 0;
|
|
@@ -132152,7 +132194,7 @@ class AbsExpression extends ConstExpression {
|
|
|
132152
132194
|
}
|
|
132153
132195
|
|
|
132154
132196
|
}
|
|
132155
|
-
class LenExpression extends
|
|
132197
|
+
class LenExpression extends FLangDecimalExpression {
|
|
132156
132198
|
constructor(expression) {
|
|
132157
132199
|
super();
|
|
132158
132200
|
this.expression = void 0;
|
|
@@ -132164,7 +132206,7 @@ class LenExpression extends FLangExpression {
|
|
|
132164
132206
|
}
|
|
132165
132207
|
|
|
132166
132208
|
}
|
|
132167
|
-
class NumLenExpression extends
|
|
132209
|
+
class NumLenExpression extends FLangDecimalExpression {
|
|
132168
132210
|
constructor(expression) {
|
|
132169
132211
|
super();
|
|
132170
132212
|
this.expression = void 0;
|
|
@@ -132176,7 +132218,7 @@ class NumLenExpression extends FLangExpression {
|
|
|
132176
132218
|
}
|
|
132177
132219
|
|
|
132178
132220
|
}
|
|
132179
|
-
class FractionalLenExpression extends
|
|
132221
|
+
class FractionalLenExpression extends FLangDecimalExpression {
|
|
132180
132222
|
constructor(expression) {
|
|
132181
132223
|
super();
|
|
132182
132224
|
this.expression = void 0;
|
|
@@ -132188,7 +132230,7 @@ class FractionalLenExpression extends FLangExpression {
|
|
|
132188
132230
|
}
|
|
132189
132231
|
|
|
132190
132232
|
}
|
|
132191
|
-
class RoundExpression extends
|
|
132233
|
+
class RoundExpression extends FLangDecimalExpression {
|
|
132192
132234
|
constructor(expression, fractionalDigits) {
|
|
132193
132235
|
super();
|
|
132194
132236
|
this.expression = void 0;
|
|
@@ -132202,6 +132244,41 @@ class RoundExpression extends ConstExpression {
|
|
|
132202
132244
|
return `round(${this.expression.convertToString()}, ${fractionalPart})`;
|
|
132203
132245
|
}
|
|
132204
132246
|
|
|
132247
|
+
}
|
|
132248
|
+
class AddSumExpression extends FLangExpression {
|
|
132249
|
+
constructor(argumentReference, key, value) {
|
|
132250
|
+
super();
|
|
132251
|
+
this.argumentReference = void 0;
|
|
132252
|
+
this.key = void 0;
|
|
132253
|
+
this.valuePath = void 0;
|
|
132254
|
+
this.key = key;
|
|
132255
|
+
this.valuePath = value;
|
|
132256
|
+
this.argumentReference = argumentReference;
|
|
132257
|
+
}
|
|
132258
|
+
|
|
132259
|
+
convertToString() {
|
|
132260
|
+
const dictName = this.argumentReference.convertToString();
|
|
132261
|
+
const key = this.key.convertToString();
|
|
132262
|
+
const value = this.valuePath.convertToString();
|
|
132263
|
+
return `addSum(${dictName}, ${key}, ${value})`;
|
|
132264
|
+
}
|
|
132265
|
+
|
|
132266
|
+
}
|
|
132267
|
+
class GetExpression extends FLangDecimalExpression {
|
|
132268
|
+
constructor(dictionaryExpression, key) {
|
|
132269
|
+
super();
|
|
132270
|
+
this.dictionaryExpression = void 0;
|
|
132271
|
+
this.key = void 0;
|
|
132272
|
+
this.key = key;
|
|
132273
|
+
this.dictionaryExpression = dictionaryExpression;
|
|
132274
|
+
}
|
|
132275
|
+
|
|
132276
|
+
convertToString() {
|
|
132277
|
+
const dict = this.dictionaryExpression.convertToString();
|
|
132278
|
+
const key = this.key.convertToString();
|
|
132279
|
+
return `get(${dict}, ${key})`;
|
|
132280
|
+
}
|
|
132281
|
+
|
|
132205
132282
|
}
|
|
132206
132283
|
class IntegerLiteralExpression extends ConstExpression {
|
|
132207
132284
|
constructor(value) {
|
|
@@ -132261,6 +132338,49 @@ class SetStatement extends FLangStatement {
|
|
|
132261
132338
|
|
|
132262
132339
|
/***/ }),
|
|
132263
132340
|
|
|
132341
|
+
/***/ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts":
|
|
132342
|
+
/*!***********************************************************************************!*\
|
|
132343
|
+
!*** ./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts ***!
|
|
132344
|
+
\***********************************************************************************/
|
|
132345
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
132346
|
+
|
|
132347
|
+
"use strict";
|
|
132348
|
+
__webpack_require__.r(__webpack_exports__);
|
|
132349
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
132350
|
+
/* harmony export */ "getFlatArgumentExpressions": () => (/* binding */ getFlatArgumentExpressions),
|
|
132351
|
+
/* harmony export */ "castOperandToStringIfNeed": () => (/* binding */ castOperandToStringIfNeed),
|
|
132352
|
+
/* harmony export */ "castOperandToBoolIfNeed": () => (/* binding */ castOperandToBoolIfNeed),
|
|
132353
|
+
/* harmony export */ "castOperandToDecimalIfNeed": () => (/* binding */ castOperandToDecimalIfNeed)
|
|
132354
|
+
/* harmony export */ });
|
|
132355
|
+
/* harmony import */ var _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula */ "./Generator/src/generators/AutoCalculationsGenerator/AutoCalculationsFromFormulas/KCXmlContract/Formula.ts");
|
|
132356
|
+
/* harmony import */ var _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
|
|
132357
|
+
|
|
132358
|
+
|
|
132359
|
+
function getFlatArgumentExpressions(expressions) {
|
|
132360
|
+
return expressions.reduce((acc, curr) => {
|
|
132361
|
+
if (curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaArgumentExpression) {
|
|
132362
|
+
return acc.concat(curr);
|
|
132363
|
+
}
|
|
132364
|
+
|
|
132365
|
+
if (curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaSumExpression || curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaDivisionExpression || curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_0__.FormulaMultiplyExpression) {
|
|
132366
|
+
return acc.concat(getFlatArgumentExpressions(curr.arguments));
|
|
132367
|
+
}
|
|
132368
|
+
|
|
132369
|
+
return acc;
|
|
132370
|
+
}, []);
|
|
132371
|
+
}
|
|
132372
|
+
function castOperandToStringIfNeed(operandExpression) {
|
|
132373
|
+
return operandExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.StringLiteralExpression || operandExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression && operandExpression.getTargetType() == "string" ? operandExpression : new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression(operandExpression, "string");
|
|
132374
|
+
}
|
|
132375
|
+
function castOperandToBoolIfNeed(operandExpression) {
|
|
132376
|
+
return operandExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.BoolLiteralExpression || operandExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression && operandExpression.getTargetType() == "bool" ? operandExpression : new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression(operandExpression, "bool");
|
|
132377
|
+
}
|
|
132378
|
+
function castOperandToDecimalIfNeed(operandExpression, defaultValue) {
|
|
132379
|
+
return operandExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.FLangDecimalExpression || operandExpression instanceof _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression && operandExpression.getTargetType() == "decimal" ? operandExpression : new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.CastExpression(operandExpression, "decimal", defaultValue != undefined ? new _FLangCodeDom__WEBPACK_IMPORTED_MODULE_1__.DecimalLiteralExpression(defaultValue) : undefined);
|
|
132380
|
+
}
|
|
132381
|
+
|
|
132382
|
+
/***/ }),
|
|
132383
|
+
|
|
132264
132384
|
/***/ "./Generator/src/generators/ServerSideFLangNormalization/FormulaOnlyNormalizationRuleGenerator.ts":
|
|
132265
132385
|
/*!********************************************************************************************************!*\
|
|
132266
132386
|
!*** ./Generator/src/generators/ServerSideFLangNormalization/FormulaOnlyNormalizationRuleGenerator.ts ***!
|
|
@@ -132339,6 +132459,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
132339
132459
|
/* harmony import */ var _Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! ../../../../Common/ModelPath/PathSplitHelper */ "./Common/ModelPath/PathSplitHelper.ts");
|
|
132340
132460
|
/* harmony import */ var _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ./FLang/FLangCodeDom */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FLangCodeDom.ts");
|
|
132341
132461
|
/* harmony import */ var _FLangValidationBuildContext__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ./FLangValidationBuildContext */ "./Generator/src/generators/ServerSideFLangNormalization/FLangValidationBuildContext.ts");
|
|
132462
|
+
/* harmony import */ var _FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ./FLang/FlangUtils */ "./Generator/src/generators/ServerSideFLangNormalization/FLang/FlangUtils.ts");
|
|
132463
|
+
|
|
132342
132464
|
|
|
132343
132465
|
|
|
132344
132466
|
|
|
@@ -132455,7 +132577,8 @@ class NormalizationRulesGenerator {
|
|
|
132455
132577
|
buildFormulaFlashRule(formula) {
|
|
132456
132578
|
const prefix = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createModelPath)(formula.match.replace(/\@/g, ""), true).normalize();
|
|
132457
132579
|
const target = (0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createModelPath)(formula.target.replace(/\@/g, ""), false);
|
|
132458
|
-
const fullTarget = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_6__.adjustPathMultiplicityComplex)(prefix.joinWith(target).normalize(), this.formSchemaRng, this.dataDeclarationHelper);
|
|
132580
|
+
const fullTarget = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_6__.adjustPathMultiplicityComplex)(prefix.joinWith(target).normalize(), this.formSchemaRng, this.dataDeclarationHelper); // const defaultValue = this.dataDeclarationHelper.getDefaultValue(fullTarget);
|
|
132581
|
+
|
|
132459
132582
|
const precalculationRules = [];
|
|
132460
132583
|
const isTargetAutoField = this.dataDeclarationHelper.isNodeHasAutoFlagEntry(fullTarget.toAbsolute());
|
|
132461
132584
|
const result = [];
|
|
@@ -132478,30 +132601,27 @@ class NormalizationRulesGenerator {
|
|
|
132478
132601
|
|
|
132479
132602
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaArgumentExpression || expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaMultySumExpression) {
|
|
132480
132603
|
return this.compiledArgumentExpression(prefix, target, expression, addPrecalculationRule);
|
|
132481
|
-
}
|
|
132482
|
-
// return this.compileConstExpression(expression);
|
|
132483
|
-
// }
|
|
132484
|
-
|
|
132604
|
+
}
|
|
132485
132605
|
|
|
132486
132606
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaAbsExpression) {
|
|
132487
|
-
return
|
|
132607
|
+
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.AbsExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.expression, prefix, target, addPrecalculationRule))));
|
|
132488
132608
|
}
|
|
132489
132609
|
|
|
132490
132610
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaXAbsExpression) {
|
|
132491
|
-
const expr =
|
|
132492
|
-
return
|
|
132611
|
+
const expr = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.expression, prefix, target, addPrecalculationRule));
|
|
132612
|
+
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.LtExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(expr), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(0)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(0), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.AbsExpression(expr)));
|
|
132493
132613
|
}
|
|
132494
132614
|
|
|
132495
132615
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaRoundExpression) {
|
|
132496
|
-
return
|
|
132616
|
+
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.RoundExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.expression, prefix, target, addPrecalculationRule)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.IntegerLiteralExpression(expression.fractionalDigits)));
|
|
132497
132617
|
}
|
|
132498
132618
|
|
|
132499
132619
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaChooseExpression) {
|
|
132500
|
-
return
|
|
132620
|
+
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ConditionalExpression(this.compileExpressionToFlashExpression(expression.ifNode.condition, prefix, target, addPrecalculationRule), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(this.compileExpressionToFlashExpression(expression.thenNode.expression, prefix, target, addPrecalculationRule)), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(this.compileExpressionToFlashExpression(expression.elseNode.expression, prefix, target, addPrecalculationRule))));
|
|
132501
132621
|
}
|
|
132502
132622
|
|
|
132503
132623
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaMultiplyExpression) {
|
|
132504
|
-
return
|
|
132624
|
+
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(this.compileMultiplyExpression(expression, prefix, target, addPrecalculationRule));
|
|
132505
132625
|
}
|
|
132506
132626
|
|
|
132507
132627
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaOrExpression) {
|
|
@@ -132534,40 +132654,42 @@ class NormalizationRulesGenerator {
|
|
|
132534
132654
|
}
|
|
132535
132655
|
|
|
132536
132656
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaMinusExpression) {
|
|
132537
|
-
return
|
|
132657
|
+
return (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.MinusUnaryExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.expression, prefix, target, addPrecalculationRule))));
|
|
132538
132658
|
}
|
|
132539
132659
|
|
|
132540
132660
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaGtExpression) {
|
|
132541
|
-
const left =
|
|
132542
|
-
const right =
|
|
132661
|
+
const left = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.arguments[0], prefix, target, addPrecalculationRule));
|
|
132662
|
+
const right = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.arguments[1], prefix, target, addPrecalculationRule));
|
|
132543
132663
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.GtExpression(left, right);
|
|
132544
132664
|
}
|
|
132545
132665
|
|
|
132546
132666
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaLtExpression) {
|
|
132547
|
-
const left =
|
|
132548
|
-
const right =
|
|
132667
|
+
const left = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.arguments[0], prefix, target, addPrecalculationRule));
|
|
132668
|
+
const right = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.arguments[1], prefix, target, addPrecalculationRule));
|
|
132549
132669
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.LtExpression(left, right);
|
|
132550
132670
|
}
|
|
132551
132671
|
|
|
132552
132672
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaGeExpression) {
|
|
132553
|
-
const left =
|
|
132554
|
-
const right =
|
|
132673
|
+
const left = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.arguments[0], prefix, target, addPrecalculationRule));
|
|
132674
|
+
const right = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.arguments[1], prefix, target, addPrecalculationRule));
|
|
132555
132675
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.GeExpression(left, right);
|
|
132556
132676
|
}
|
|
132557
132677
|
|
|
132558
132678
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaLeExpression) {
|
|
132559
|
-
const left =
|
|
132560
|
-
const right =
|
|
132679
|
+
const left = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.arguments[0], prefix, target, addPrecalculationRule));
|
|
132680
|
+
const right = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(expression.arguments[1], prefix, target, addPrecalculationRule));
|
|
132561
132681
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.LeExpression(left, right);
|
|
132562
132682
|
}
|
|
132563
132683
|
|
|
132564
132684
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaEqExpression) {
|
|
132565
|
-
const left =
|
|
132566
|
-
const right =
|
|
132685
|
+
const left = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(this.compileExpressionToFlashExpression(expression.arguments[0], prefix, target, addPrecalculationRule));
|
|
132686
|
+
const right = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(this.compileExpressionToFlashExpression(expression.arguments[1], prefix, target, addPrecalculationRule));
|
|
132567
132687
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.EqExpression(left, right);
|
|
132568
132688
|
}
|
|
132569
132689
|
|
|
132570
132690
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaExistsExpression) {
|
|
132691
|
+
// eslint-disable-next-line no-warning-comments
|
|
132692
|
+
// TODO: тут необходимо учесть, что exists может смотреть на множественность
|
|
132571
132693
|
const arg = this.compiledArgumentExpression(prefix, target, expression, addPrecalculationRule);
|
|
132572
132694
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NegateUnaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.OrBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.EqExpression(arg, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression("")), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.EqExpression(arg, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression())));
|
|
132573
132695
|
}
|
|
@@ -132588,7 +132710,7 @@ class NormalizationRulesGenerator {
|
|
|
132588
132710
|
}
|
|
132589
132711
|
|
|
132590
132712
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaLengthExpression) {
|
|
132591
|
-
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.LenExpression(
|
|
132713
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.LenExpression((0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(this.compileExpressionToFlashExpression(expression.argument, prefix, target, addPrecalculationRule)));
|
|
132592
132714
|
}
|
|
132593
132715
|
|
|
132594
132716
|
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaConcatExpression) {
|
|
@@ -132604,12 +132726,48 @@ class NormalizationRulesGenerator {
|
|
|
132604
132726
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression("\r\n");
|
|
132605
132727
|
}
|
|
132606
132728
|
|
|
132729
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaDateNowExpression) {
|
|
132730
|
+
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression(new Date().toLocaleString("en-GB").replace(",", ""));
|
|
132731
|
+
}
|
|
132732
|
+
|
|
132733
|
+
if (expression instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaGroupSumExpression) {
|
|
132734
|
+
return this.compileGroupSumExpression(prefix, target, expression, addPrecalculationRule);
|
|
132735
|
+
}
|
|
132736
|
+
|
|
132607
132737
|
throw new Error(`Unsupported type of node: ${expression.constructor.name}`);
|
|
132608
132738
|
}
|
|
132609
132739
|
|
|
132740
|
+
compileGroupSumExpression(prefix, target, expression, addPrecalculationRule) {
|
|
132741
|
+
const targetKeyPath = this.preparePathAndAdjustMultiplicity(prefix, expression.targetKeyPath);
|
|
132742
|
+
const sourceKeyPath = this.preparePathAndAdjustMultiplicity(prefix, expression.sourceKeyPath);
|
|
132743
|
+
const sourceValuePath = this.preparePathAndAdjustMultiplicity(prefix, expression.sourceValuePath);
|
|
132744
|
+
const iterationEntries = [...(0,_Common_IterableUtils__WEBPACK_IMPORTED_MODULE_0__.reverseArray)((0,_Common_ModelPath_BuildIterationSequence__WEBPACK_IMPORTED_MODULE_10__.buildIterationSequence)(sourceKeyPath))];
|
|
132745
|
+
const finalAnonymousFunction = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.AnonymousFunctionDeclarationExpression(_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.BuildInTypeExpression.dict, [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ArgumentDeclarationExpression("result", _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.BuildInTypeExpression.dict)], new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.AddSumExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ArgumentReferenceExpression("result"), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(sourceKeyPath.toCurrentIteration(), "value"), (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(sourceValuePath.toCurrentIteration(), "value"))));
|
|
132746
|
+
|
|
132747
|
+
const getWrapReduceFunction = innerReduceCall => new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.AnonymousFunctionDeclarationExpression(_FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.BuildInTypeExpression.dict, [new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ArgumentDeclarationExpression("result", _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.BuildInTypeExpression.dict)], innerReduceCall);
|
|
132748
|
+
|
|
132749
|
+
const createReduceExpression = (iterablePath, initialValue, innerReduce) => {
|
|
132750
|
+
const reduceBody = innerReduce != undefined ? getWrapReduceFunction(innerReduce) : finalAnonymousFunction;
|
|
132751
|
+
const reduceExpression = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ReduceCallExpression(iterablePath.toCurrentIteration(), reduceBody, initialValue);
|
|
132752
|
+
return reduceExpression;
|
|
132753
|
+
};
|
|
132754
|
+
|
|
132755
|
+
const reduceExpression = iterationEntries.reduce((prevReduceExpr, curr, index) => {
|
|
132756
|
+
const initialValue = index === iterationEntries.length - 1 ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DictLiteralExpression() : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ArgumentReferenceExpression("result");
|
|
132757
|
+
const reduceExpr = createReduceExpression(curr.iterable, initialValue, prevReduceExpr);
|
|
132758
|
+
return reduceExpr;
|
|
132759
|
+
}, undefined);
|
|
132760
|
+
|
|
132761
|
+
if (reduceExpression == undefined) {
|
|
132762
|
+
throw new _Common_Errors__WEBPACK_IMPORTED_MODULE_7__.NotSupportedError("Target and source must be in different collections! " + "\n" + `Target: ${target}` + "\n" + `SourceKey: ${sourceKeyPath}`);
|
|
132763
|
+
}
|
|
132764
|
+
|
|
132765
|
+
const finalValueExpression = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.GetExpression(reduceExpression, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(targetKeyPath.toCurrentIteration(), "value")));
|
|
132766
|
+
return finalValueExpression;
|
|
132767
|
+
}
|
|
132768
|
+
|
|
132610
132769
|
compiledArgumentExpression(prefix, target, expression, addPrecalculationRule, aggregationFunction = "Sum") {
|
|
132611
|
-
const
|
|
132612
|
-
const adjustedSelectPath = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_6__.adjustPathMultiplicityComplex)(selectPath.toAbsolute(), this.formSchemaRng, this.dataDeclarationHelper);
|
|
132770
|
+
const adjustedSelectPath = this.preparePathAndAdjustMultiplicity(prefix, expression.select);
|
|
132613
132771
|
const splitInfo = (0,_Common_ModelPath_PathSplitHelper__WEBPACK_IMPORTED_MODULE_12__.getMatchedAndDifferentModelPaths)(target, adjustedSelectPath);
|
|
132614
132772
|
const baseSelectPath = splitInfo.matchedPath;
|
|
132615
132773
|
|
|
@@ -132638,7 +132796,7 @@ class NormalizationRulesGenerator {
|
|
|
132638
132796
|
}
|
|
132639
132797
|
|
|
132640
132798
|
compileSumExpression(expression, prefix, target, addPrecalculationRule) {
|
|
132641
|
-
const args =
|
|
132799
|
+
const args = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.getFlatArgumentExpressions)(expression.arguments);
|
|
132642
132800
|
const conditionExpression = args.reduce((acc, curr) => {
|
|
132643
132801
|
const currExpr = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NotEqExpression(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression());
|
|
132644
132802
|
return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.OrBinaryExpression(acc, currExpr) : currExpr;
|
|
@@ -132646,7 +132804,7 @@ class NormalizationRulesGenerator {
|
|
|
132646
132804
|
|
|
132647
132805
|
if (conditionExpression == undefined) {
|
|
132648
132806
|
const result = expression.arguments.reduce((acc, curr) => {
|
|
132649
|
-
const currExpr =
|
|
132807
|
+
const currExpr = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule));
|
|
132650
132808
|
return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(acc, currExpr) : currExpr;
|
|
132651
132809
|
}, undefined);
|
|
132652
132810
|
|
|
@@ -132658,7 +132816,7 @@ class NormalizationRulesGenerator {
|
|
|
132658
132816
|
}
|
|
132659
132817
|
|
|
132660
132818
|
const trueResultExpression = expression.arguments.reduce((acc, curr) => {
|
|
132661
|
-
const currExpr =
|
|
132819
|
+
const currExpr = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule), 0);
|
|
132662
132820
|
return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(acc, currExpr) : currExpr;
|
|
132663
132821
|
}, undefined);
|
|
132664
132822
|
|
|
@@ -132672,7 +132830,7 @@ class NormalizationRulesGenerator {
|
|
|
132672
132830
|
|
|
132673
132831
|
compileConcatExpression(expression, prefix, target, addPrecalculationRule) {
|
|
132674
132832
|
const result = expression.arguments.reduce((acc, curr) => {
|
|
132675
|
-
const currExpr =
|
|
132833
|
+
const currExpr = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToStringIfNeed)(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule));
|
|
132676
132834
|
return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.SumBinaryExpression(acc, currExpr) : currExpr;
|
|
132677
132835
|
}, undefined);
|
|
132678
132836
|
|
|
@@ -132711,7 +132869,7 @@ class NormalizationRulesGenerator {
|
|
|
132711
132869
|
|
|
132712
132870
|
compileMultiplyExpression(expression, prefix, target, addPrecalculationRule) {
|
|
132713
132871
|
const result = expression.arguments.reduce((acc, curr) => {
|
|
132714
|
-
const expr =
|
|
132872
|
+
const expr = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule));
|
|
132715
132873
|
const currExpr = new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.EqExpression(expr, new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression()), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.IntegerLiteralExpression(0), expr);
|
|
132716
132874
|
return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.MultiplyBinaryExpression(acc, currExpr) : currExpr;
|
|
132717
132875
|
}, undefined);
|
|
@@ -132725,7 +132883,7 @@ class NormalizationRulesGenerator {
|
|
|
132725
132883
|
|
|
132726
132884
|
compileDivisionExpression(expression, prefix, target, addPrecalculationRule) {
|
|
132727
132885
|
const result = expression.arguments.reduce((acc, curr) => {
|
|
132728
|
-
const currExpr =
|
|
132886
|
+
const currExpr = (0,_FLang_FlangUtils__WEBPACK_IMPORTED_MODULE_15__.castOperandToDecimalIfNeed)(this.compileExpressionToFlashExpression(curr, prefix, target, addPrecalculationRule));
|
|
132729
132887
|
return acc != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DivisionBinaryExpression(acc, currExpr) : currExpr;
|
|
132730
132888
|
}, undefined);
|
|
132731
132889
|
|
|
@@ -132736,28 +132894,6 @@ class NormalizationRulesGenerator {
|
|
|
132736
132894
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(result, "string");
|
|
132737
132895
|
}
|
|
132738
132896
|
|
|
132739
|
-
getFlatArgumentExpressions(expressions) {
|
|
132740
|
-
return expressions.reduce((acc, curr) => {
|
|
132741
|
-
if (curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaArgumentExpression) {
|
|
132742
|
-
return acc.concat(curr);
|
|
132743
|
-
}
|
|
132744
|
-
|
|
132745
|
-
if (curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaSumExpression || curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaDivisionExpression || curr instanceof _AutoCalculationsGenerator_AutoCalculationsFromFormulas_KCXmlContract_Formula__WEBPACK_IMPORTED_MODULE_3__.FormulaMultiplyExpression) {
|
|
132746
|
-
return acc.concat(this.getFlatArgumentExpressions(curr.arguments));
|
|
132747
|
-
}
|
|
132748
|
-
|
|
132749
|
-
return acc;
|
|
132750
|
-
}, []);
|
|
132751
|
-
}
|
|
132752
|
-
|
|
132753
|
-
castOperandToStringIfNeed(operandExpression) {
|
|
132754
|
-
return operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression || operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression && operandExpression.getTargetType() == "string" ? operandExpression : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(operandExpression, "string");
|
|
132755
|
-
}
|
|
132756
|
-
|
|
132757
|
-
castOperandToDecimalIfNeed(operandExpression, defaultValue) {
|
|
132758
|
-
return operandExpression instanceof _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression ? operandExpression : new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.CastExpression(operandExpression, "decimal", defaultValue != undefined ? new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(defaultValue) : undefined);
|
|
132759
|
-
}
|
|
132760
|
-
|
|
132761
132897
|
*buildSugarValidationRules() {
|
|
132762
132898
|
const converter = new _markupGenerator_ElementProcessors_FormParts_Form_FormConverter__WEBPACK_IMPORTED_MODULE_2__.FormConverter(this.sugarRoot);
|
|
132763
132899
|
const context = new _FLangValidationBuildContext__WEBPACK_IMPORTED_MODULE_14__.FLangValidationBuildContext(this.typesRegistry, this.formSchemaRng, this.useSchemaValidations);
|
|
@@ -132850,6 +132986,11 @@ class NormalizationRulesGenerator {
|
|
|
132850
132986
|
return new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ConditionalExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.OrBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.IsEqualsBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(path, fieldName), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.StringLiteralExpression(`[]`)), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.IsEqualsBinaryExpression(new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.ValueReferenceExpression(path, fieldName), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.NullLiteralExpression())), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(0), new _FLang_FLangCodeDom__WEBPACK_IMPORTED_MODULE_13__.DecimalLiteralExpression(1));
|
|
132851
132987
|
}
|
|
132852
132988
|
|
|
132989
|
+
preparePathAndAdjustMultiplicity(prefix, path) {
|
|
132990
|
+
const resultPath = (0,_DataSchema_DataSchemaUtils__WEBPACK_IMPORTED_MODULE_6__.adjustPathMultiplicityComplex)(prefix.joinWith((0,_Common_ModelPath_ModelPath__WEBPACK_IMPORTED_MODULE_1__.createModelPath)(path.replace(/\@/g, ""), false)).normalize(), this.formSchemaRng, this.dataDeclarationHelper);
|
|
132991
|
+
return resultPath;
|
|
132992
|
+
}
|
|
132993
|
+
|
|
132853
132994
|
}
|
|
132854
132995
|
|
|
132855
132996
|
/***/ }),
|