-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.ast
1 lines (1 loc) · 30.8 KB
/
test.ast
1
([(VarDef { is_extern: false, is_const: true, is_static: false, type_: Bool, name: (Identifier("verbose"), 27..34), value: Some((Literal(Bool(true)), 37..41)) }, 16..42), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("tick"), 97..101), value: Some((Literal(Int(0)), 104..105)) }, 93..106), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("cmdExecTick"), 159..170), value: Some((Neg((Literal(Int(1)), 174..175)), 173..175)) }, 155..176), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Str, name: (Identifier("cmdFunction"), 185..196), value: Some((Literal(Str("\"\"")), 199..201)) }, 178..202), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("paramCount"), 241..251), value: Some((Neg((Literal(Int(1)), 255..256)), 254..256)) }, 237..257), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("intParams"), 293..302), value: Some((Neg((Literal(Int(1)), 306..307)), 305..307)) }, 289..308), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("floatParams"), 380..391), value: Some((Neg((Literal(Int(1)), 395..396)), 394..396)) }, 376..397), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("boolParams"), 467..477), value: Some((Neg((Literal(Int(1)), 481..482)), 480..482)) }, 463..483), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("stringParams"), 554..566), value: Some((Neg((Literal(Int(1)), 570..571)), 569..571)) }, 550..572), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("vectorParams"), 641..653), value: Some((Neg((Literal(Int(1)), 657..658)), 656..658)) }, 637..659), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("paramNames"), 728..738), value: Some((Neg((Literal(Int(1)), 742..743)), 741..743)) }, 724..744), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("paramPos"), 784..792), value: Some((Neg((Literal(Int(1)), 796..797)), 795..797)) }, 780..798), (FnDef { is_mutable: false, return_type: Int, name: (Identifier("getInt"), 1103..1109), params: [Param { type_: Str, name: (Identifier("name"), 1117..1121), default: (Literal(Str("\"\"")), 1124..1126) }], body: (Block([(For { var: (VarAssign { name: (Identifier("i"), 1139..1140), value: (Literal(Int(0)), 1143..1144) }, 1139..1145), condition: (Lt((Identifier(Identifier("i")), 1139..1140), (Identifier(Identifier("paramCount")), 1148..1158)), 1139..1158), body: (Block([(IfElse { condition: (Eq((FnCall { name: (Identifier(Identifier("xsArrayGetString")), 1174..1190), args: [(Identifier(Identifier("paramNames")), 1191..1201), (Identifier(Identifier("i")), 1203..1204)] }, 1174..1205), (Identifier(Identifier("name")), 1209..1213)), 1174..1213), consequent: (Single((Return(Some((Paren((FnCall { name: (Identifier(Identifier("xsArrayGetInt")), 1236..1249), args: [(Identifier(Identifier("intParams")), 1250..1259), (FnCall { name: (Identifier(Identifier("xsArrayGetInt")), 1261..1274), args: [(Identifier(Identifier("paramPos")), 1275..1283), (Identifier(Identifier("i")), 1285..1286)] }, 1261..1287)] }, 1236..1288)), 1235..1289))), 1228..1290)), 1228..1290), alternate: None }, 1171..1290)]), 1160..1297) }, 1135..1297), (Return(Some((Paren((Neg((Literal(Int(1)), 1312..1313)), 1311..1313)), 1310..1314))), 1303..1315)]), 1128..1318) }, 1099..1318), (FnDef { is_mutable: false, return_type: Float, name: (Identifier("getFloat"), 1326..1334), params: [Param { type_: Str, name: (Identifier("name"), 1342..1346), default: (Literal(Str("\"\"")), 1349..1351) }], body: (Block([(For { var: (VarAssign { name: (Identifier("i"), 1364..1365), value: (Literal(Int(0)), 1368..1369) }, 1364..1370), condition: (Lt((Identifier(Identifier("i")), 1364..1365), (Identifier(Identifier("paramCount")), 1373..1383)), 1364..1383), body: (Block([(IfElse { condition: (Eq((FnCall { name: (Identifier(Identifier("xsArrayGetString")), 1399..1415), args: [(Identifier(Identifier("paramNames")), 1416..1426), (Identifier(Identifier("i")), 1428..1429)] }, 1399..1430), (Identifier(Identifier("name")), 1434..1438)), 1399..1438), consequent: (Single((Return(Some((Paren((FnCall { name: (Identifier(Identifier("xsArrayGetFloat")), 1461..1476), args: [(Identifier(Identifier("floatParams")), 1477..1488), (FnCall { name: (Identifier(Identifier("xsArrayGetInt")), 1490..1503), args: [(Identifier(Identifier("paramPos")), 1504..1512), (Identifier(Identifier("i")), 1514..1515)] }, 1490..1516)] }, 1461..1517)), 1460..1518))), 1453..1519)), 1453..1519), alternate: None }, 1396..1519)]), 1385..1526) }, 1360..1526), (Return(Some((Paren((Neg((Literal(Float(1.0)), 1541..1544)), 1540..1544)), 1539..1545))), 1532..1546)]), 1353..1549) }, 1320..1549), (FnDef { is_mutable: false, return_type: Bool, name: (Identifier("getBool"), 1556..1563), params: [Param { type_: Str, name: (Identifier("name"), 1571..1575), default: (Literal(Str("\"\"")), 1578..1580) }], body: (Block([(For { var: (VarAssign { name: (Identifier("i"), 1593..1594), value: (Literal(Int(0)), 1597..1598) }, 1593..1599), condition: (Lt((Identifier(Identifier("i")), 1593..1594), (Identifier(Identifier("paramCount")), 1602..1612)), 1593..1612), body: (Block([(IfElse { condition: (Eq((FnCall { name: (Identifier(Identifier("xsArrayGetString")), 1628..1644), args: [(Identifier(Identifier("paramNames")), 1645..1655), (Identifier(Identifier("i")), 1657..1658)] }, 1628..1659), (Identifier(Identifier("name")), 1663..1667)), 1628..1667), consequent: (Single((Return(Some((Paren((FnCall { name: (Identifier(Identifier("xsArrayGetBool")), 1690..1704), args: [(Identifier(Identifier("boolParams")), 1705..1715), (FnCall { name: (Identifier(Identifier("xsArrayGetInt")), 1717..1730), args: [(Identifier(Identifier("paramPos")), 1731..1739), (Identifier(Identifier("i")), 1741..1742)] }, 1717..1743)] }, 1690..1744)), 1689..1745))), 1682..1746)), 1682..1746), alternate: None }, 1625..1746)]), 1614..1753) }, 1589..1753), (Return(Some((Paren((Literal(Bool(false)), 1767..1772)), 1766..1773))), 1759..1774)]), 1582..1777) }, 1551..1777), (FnDef { is_mutable: false, return_type: Str, name: (Identifier("getString"), 1786..1795), params: [Param { type_: Str, name: (Identifier("name"), 1803..1807), default: (Literal(Str("\"\"")), 1810..1812) }], body: (Block([(For { var: (VarAssign { name: (Identifier("i"), 1825..1826), value: (Literal(Int(0)), 1829..1830) }, 1825..1831), condition: (Lt((Identifier(Identifier("i")), 1825..1826), (Identifier(Identifier("paramCount")), 1834..1844)), 1825..1844), body: (Block([(IfElse { condition: (Eq((FnCall { name: (Identifier(Identifier("xsArrayGetString")), 1860..1876), args: [(Identifier(Identifier("paramNames")), 1877..1887), (Identifier(Identifier("i")), 1889..1890)] }, 1860..1891), (Identifier(Identifier("name")), 1895..1899)), 1860..1899), consequent: (Single((Return(Some((Paren((FnCall { name: (Identifier(Identifier("xsArrayGetString")), 1922..1938), args: [(Identifier(Identifier("stringParams")), 1939..1951), (FnCall { name: (Identifier(Identifier("xsArrayGetInt")), 1953..1966), args: [(Identifier(Identifier("paramPos")), 1967..1975), (Identifier(Identifier("i")), 1977..1978)] }, 1953..1979)] }, 1922..1980)), 1921..1981))), 1914..1982)), 1914..1982), alternate: None }, 1857..1982)]), 1846..1989) }, 1821..1989), (Return(Some((Paren((Literal(Str("\"\"")), 2003..2005)), 2002..2006))), 1995..2007)]), 1814..2010) }, 1779..2010), (FnDef { is_mutable: false, return_type: Vec, name: (Identifier("getVector"), 2079..2088), params: [Param { type_: Str, name: (Identifier("name"), 2096..2100), default: (Literal(Str("\"\"")), 2103..2105) }], body: (Block([(For { var: (VarAssign { name: (Identifier("i"), 2118..2119), value: (Literal(Int(0)), 2122..2123) }, 2118..2124), condition: (Lt((Identifier(Identifier("i")), 2118..2119), (Identifier(Identifier("paramCount")), 2127..2137)), 2118..2137), body: (Block([(IfElse { condition: (Eq((FnCall { name: (Identifier(Identifier("xsArrayGetString")), 2153..2169), args: [(Identifier(Identifier("paramNames")), 2170..2180), (Identifier(Identifier("i")), 2182..2183)] }, 2153..2184), (Identifier(Identifier("name")), 2188..2192)), 2153..2192), consequent: (Single((Return(Some((Paren((FnCall { name: (Identifier(Identifier("xsArrayGetVector")), 2215..2231), args: [(Identifier(Identifier("vectorParams")), 2232..2244), (FnCall { name: (Identifier(Identifier("xsArrayGetInt")), 2246..2259), args: [(Identifier(Identifier("paramPos")), 2260..2268), (Identifier(Identifier("i")), 2270..2271)] }, 2246..2272)] }, 2215..2273)), 2214..2274))), 2207..2275)), 2207..2275), alternate: None }, 2150..2275)]), 2139..2282) }, 2114..2282), (Return(Some((Paren((Identifier(Identifier("cInvalidVector")), 2296..2310)), 2295..2311))), 2288..2312)]), 2107..2315) }, 2072..2315), (RuleDef { name: (Identifier("_ext_core__updateTick"), 2364..2385), rule_opts: [(Active, 2391..2397), (RunImmediately, 2403..2417), (MinInterval((3, 2435..2436)), 2423..2436), (MaxInterval((3, 2454..2455)), 2442..2455), (Priority((8, 2470..2471)), 2461..2471)], body: (Block([(IfElse { condition: (Identifier(Identifier("verbose")), 2483..2490), consequent: (Single((Discarded((FnCall { name: (Identifier(Identifier("xsChatData")), 2501..2511), args: [(Plus((Literal(Str("\">>> Tick: \"")), 2512..2524), (Identifier(Identifier("tick")), 2527..2531)), 2512..2531)] }, 2501..2532)), 2501..2533)), 2501..2533), alternate: None }, 2480..2533), (IfElse { condition: (Eq((Identifier(Identifier("tick")), 2545..2549), (Identifier(Identifier("cmdExecTick")), 2553..2564)), 2545..2564), consequent: (Block([(Discarded((FnCall { name: (Identifier(Identifier("xsAddRuntimeEvent")), 2577..2594), args: [(Literal(Str("\"Scenario Triggers\"")), 2595..2614), (Identifier(Identifier("cmdFunction")), 2616..2627), (Neg((Literal(Int(1)), 2630..2631)), 2629..2631)] }, 2577..2632)), 2577..2633), (Discarded((FnCall { name: (Identifier(Identifier("xsAddRuntimeEvent")), 2643..2660), args: [(Literal(Str("\"Random Map\"")), 2661..2673), (Identifier(Identifier("cmdFunction")), 2675..2686), (Neg((Literal(Int(1)), 2689..2690)), 2688..2690)] }, 2643..2691)), 2643..2692)]), 2566..2699), alternate: None }, 2541..2699), (VarAssign { name: (Identifier("tick"), 2707..2711), value: (Plus((Identifier(Identifier("tick")), 2714..2718), (Literal(Int(1)), 2721..2722)), 2714..2722) }, 2707..2723)]), 2473..2726) }, 2359..2726), (RuleDef { name: (Identifier("_ext_core__writeTickToFile"), 2849..2875), rule_opts: [(Active, 2881..2887), (RunImmediately, 2893..2907), (MinInterval((3, 2925..2926)), 2913..2926), (MaxInterval((3, 2944..2945)), 2932..2945), (Priority((10, 2960..2962)), 2951..2962)], body: (Block([(VarDef { is_extern: false, is_const: false, is_static: false, type_: Bool, name: (Identifier("createSuccess"), 2976..2989), value: Some((FnCall { name: (Identifier(Identifier("xsCreateFile")), 2992..3004), args: [(Literal(Bool(true)), 3005..3009)] }, 2992..3010)) }, 2971..3011), (IfElse { condition: (Identifier(Identifier("createSuccess")), 3021..3034), consequent: (Block([(Discarded((FnCall { name: (Identifier(Identifier("xsSetFilePosition")), 3047..3064), args: [(Literal(Int(0)), 3065..3066)] }, 3047..3067)), 3047..3068), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Bool, name: (Identifier("writeSuccess"), 3083..3095), value: Some((FnCall { name: (Identifier(Identifier("xsWriteInt")), 3098..3108), args: [(Identifier(Identifier("tick")), 3109..3113)] }, 3098..3114)) }, 3078..3115), (Discarded((FnCall { name: (Identifier(Identifier("xsCloseFile")), 3125..3136), args: [] }, 3125..3138)), 3125..3139)]), 3036..3146), alternate: None }, 3017..3146)]), 2964..3149) }, 2844..3149), (FnDef { is_mutable: false, return_type: Str, name: (Identifier("_ext_core__toStr"), 3160..3176), params: [Param { type_: Bool, name: (Identifier("boolean"), 3182..3189), default: (Literal(Bool(false)), 3192..3197) }], body: (Block([(IfElse { condition: (Identifier(Identifier("boolean")), 3209..3216), consequent: (Single((Return(Some((Paren((Literal(Str("\"true\"")), 3235..3241)), 3234..3242))), 3227..3243)), 3227..3243), alternate: None }, 3206..3243), (Return(Some((Paren((Literal(Str("\"false\"")), 3257..3264)), 3256..3265))), 3249..3266)]), 3199..3269) }, 3153..3269), (FnDef { is_mutable: false, return_type: Bool, name: (Identifier("_ext_core__toBool"), 3278..3295), params: [Param { type_: Int, name: (Identifier("integer"), 3300..3307), default: (Literal(Int(0)), 3310..3311) }], body: (Block([(IfElse { condition: (Eq((Identifier(Identifier("integer")), 3323..3330), (Literal(Int(0)), 3334..3335)), 3323..3335), consequent: (Single((Return(Some((Paren((Literal(Bool(false)), 3354..3359)), 3353..3360))), 3346..3361)), 3346..3361), alternate: None }, 3320..3361), (Return(Some((Paren((Literal(Bool(true)), 3375..3379)), 3374..3380))), 3367..3381)]), 3313..3384) }, 3273..3384), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Bool, name: (Identifier("success"), 3745..3752), value: Some((FnCall { name: (Identifier(Identifier("xsOpenFile")), 3755..3765), args: [(Literal(Str("\"xslc.commands\"")), 3766..3781)] }, 3755..3782)) }, 3740..3783), (IfElse { condition: (Eq((Identifier(Identifier("success")), 3793..3800), (Literal(Bool(false)), 3804..3809)), 3793..3809), consequent: (Block([(Discarded((FnCall { name: (Identifier(Identifier("xsCloseFile")), 3822..3833), args: [] }, 3822..3835)), 3822..3836), (Return(None), 3846..3853)]), 3811..3860), alternate: None }, 3789..3860), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("newCmdExecTick"), 3872..3886), value: Some((FnCall { name: (Identifier(Identifier("xsReadInt")), 3889..3898), args: [] }, 3889..3900)) }, 3868..3901), (IfElse { condition: (Or((Eq((Identifier(Identifier("newCmdExecTick")), 4132..4146), (Identifier(Identifier("cmdExecTick")), 4150..4161)), 4132..4161), (Gt((Identifier(Identifier("tick")), 4165..4169), (Identifier(Identifier("newCmdExecTick")), 4172..4186)), 4165..4186)), 4132..4186), consequent: (Block([(Discarded((FnCall { name: (Identifier(Identifier("xsCloseFile")), 4199..4210), args: [] }, 4199..4212)), 4199..4213), (Return(None), 4223..4230)]), 4188..4237), alternate: None }, 4128..4237), (VarAssign { name: (Identifier("cmdExecTick"), 4244..4255), value: (Identifier(Identifier("newCmdExecTick")), 4258..4272) }, 4244..4273), (VarAssign { name: (Identifier("cmdFunction"), 4318..4329), value: (FnCall { name: (Identifier(Identifier("xsReadString")), 4332..4344), args: [] }, 4332..4346) }, 4318..4347), (VarAssign { name: (Identifier("paramCount"), 4352..4362), value: (FnCall { name: (Identifier(Identifier("xsReadInt")), 4365..4374), args: [] }, 4365..4376) }, 4352..4377), (IfElse { condition: (Identifier(Identifier("verbose")), 4388..4395), consequent: (Block([(Discarded((FnCall { name: (Identifier(Identifier("xsChatData")), 4408..4418), args: [(Literal(Str("\">>> Command Received\"")), 4419..4441)] }, 4408..4442)), 4408..4443), (Discarded((FnCall { name: (Identifier(Identifier("xsChatData")), 4453..4463), args: [(Plus((Literal(Str("\">>> Tick: \"")), 4464..4476), (Identifier(Identifier("cmdExecTick")), 4477..4488)), 4464..4488)] }, 4453..4489)), 4453..4490), (Discarded((FnCall { name: (Identifier(Identifier("xsChatData")), 4500..4510), args: [(Plus((Literal(Str("\">>> Function: \"")), 4511..4527), (Identifier(Identifier("cmdFunction")), 4528..4539)), 4511..4539)] }, 4500..4540)), 4500..4541), (Discarded((FnCall { name: (Identifier(Identifier("xsChatData")), 4551..4561), args: [(Plus((Literal(Str("\">>> # Params: \"")), 4562..4578), (Identifier(Identifier("paramCount")), 4579..4589)), 4562..4589)] }, 4551..4590)), 4551..4591)]), 4397..4598), alternate: None }, 4385..4598), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeInt")), 4610..4626), args: [(Identifier(Identifier("intParams")), 4627..4636), (Literal(Int(0)), 4638..4639)] }, 4610..4640)), 4610..4641), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeFloat")), 4647..4665), args: [(Identifier(Identifier("floatParams")), 4666..4677), (Literal(Int(0)), 4679..4680)] }, 4647..4681)), 4647..4682), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeBool")), 4688..4705), args: [(Identifier(Identifier("boolParams")), 4706..4716), (Literal(Int(0)), 4718..4719)] }, 4688..4720)), 4688..4721), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeString")), 4727..4746), args: [(Identifier(Identifier("stringParams")), 4747..4759), (Literal(Int(0)), 4761..4762)] }, 4727..4763)), 4727..4764), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeVector")), 4770..4789), args: [(Identifier(Identifier("vectorParams")), 4790..4802), (Literal(Int(0)), 4804..4805)] }, 4770..4806)), 4770..4807), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeString")), 4835..4854), args: [(Identifier(Identifier("paramNames")), 4855..4865), (Identifier(Identifier("paramCount")), 4867..4877)] }, 4835..4878)), 4835..4879), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeInt")), 4885..4901), args: [(Identifier(Identifier("paramPos")), 4902..4910), (Identifier(Identifier("paramCount")), 4912..4922)] }, 4885..4923)), 4885..4924), (VarAssign { name: (Identifier("i"), 4936..4937), value: (Literal(Int(0)), 4940..4941) }, 4936..4942), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Str, name: (Identifier("log"), 4975..4978), value: Some((Literal(Str("\">>> \"")), 4981..4987)) }, 4968..4988), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Str, name: (Identifier("name"), 5005..5009), value: Some((FnCall { name: (Identifier(Identifier("xsReadString")), 5012..5024), args: [] }, 5012..5026)) }, 4998..5027), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("type"), 5041..5045), value: Some((FnCall { name: (Identifier(Identifier("xsReadInt")), 5048..5057), args: [] }, 5048..5059)) }, 5037..5060), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("sizeInt"), 5410..5417), value: Some((FnCall { name: (Identifier(Identifier("xsArrayGetSize")), 5420..5434), args: [(Identifier(Identifier("intParams")), 5435..5444)] }, 5420..5445)) }, 5406..5446), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeInt")), 5464..5480), args: [(Identifier(Identifier("intParams")), 5481..5490), (Plus((Identifier(Identifier("sizeInt")), 5492..5499), (Literal(Int(1)), 5500..5501)), 5492..5501)] }, 5464..5502)), 5464..5503), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("valueInt"), 5543..5551), value: Some((FnCall { name: (Identifier(Identifier("xsReadInt")), 5554..5563), args: [] }, 5554..5565)) }, 5539..5566), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetInt")), 5584..5597), args: [(Identifier(Identifier("intParams")), 5598..5607), (Identifier(Identifier("sizeInt")), 5609..5616), (Identifier(Identifier("valueInt")), 5618..5626)] }, 5584..5627)), 5584..5628), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetInt")), 5648..5661), args: [(Identifier(Identifier("paramPos")), 5662..5670), (Identifier(Identifier("i")), 5672..5673), (Identifier(Identifier("sizeInt")), 5675..5682)] }, 5648..5683)), 5648..5684), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetString")), 5702..5718), args: [(Identifier(Identifier("paramNames")), 5719..5729), (Identifier(Identifier("i")), 5731..5732), (Identifier(Identifier("name")), 5734..5738)] }, 5702..5739)), 5702..5740), (VarAssign { name: (Identifier("log"), 5776..5779), value: (Plus((Plus((Plus((Plus((Plus((Identifier(Identifier("log")), 5782..5785), (Literal(Str("\"int \"")), 5788..5794)), 5782..5794), (Identifier(Identifier("name")), 5795..5799)), 5782..5799), (Literal(Str("\" = \"")), 5800..5805)), 5782..5805), (Identifier(Identifier("valueInt")), 5806..5814)), 5782..5814), (Literal(Str("\";\"")), 5815..5818)), 5782..5818) }, 5776..5819), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("sizeFloat"), 5880..5889), value: Some((FnCall { name: (Identifier(Identifier("xsArrayGetSize")), 5892..5906), args: [(Identifier(Identifier("floatParams")), 5907..5918)] }, 5892..5919)) }, 5876..5920), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeFloat")), 5938..5956), args: [(Identifier(Identifier("floatParams")), 5957..5968), (Plus((Identifier(Identifier("sizeFloat")), 5970..5979), (Literal(Int(1)), 5980..5981)), 5970..5981)] }, 5938..5982)), 5938..5983), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Float, name: (Identifier("valueFloat"), 6025..6035), value: Some((FnCall { name: (Identifier(Identifier("xsReadFloat")), 6038..6049), args: [] }, 6038..6051)) }, 6019..6052), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetFloat")), 6070..6085), args: [(Identifier(Identifier("floatParams")), 6086..6097), (Identifier(Identifier("sizeFloat")), 6099..6108), (Identifier(Identifier("valueFloat")), 6110..6120)] }, 6070..6121)), 6070..6122), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetInt")), 6142..6155), args: [(Identifier(Identifier("paramPos")), 6156..6164), (Identifier(Identifier("i")), 6166..6167), (Identifier(Identifier("sizeFloat")), 6169..6178)] }, 6142..6179)), 6142..6180), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetString")), 6198..6214), args: [(Identifier(Identifier("paramNames")), 6215..6225), (Identifier(Identifier("i")), 6227..6228), (Identifier(Identifier("name")), 6230..6234)] }, 6198..6235)), 6198..6236), (VarAssign { name: (Identifier("log"), 6272..6275), value: (Plus((Plus((Plus((Plus((Plus((Identifier(Identifier("log")), 6278..6281), (Literal(Str("\"float \"")), 6284..6292)), 6278..6292), (Identifier(Identifier("name")), 6293..6297)), 6278..6297), (Literal(Str("\" = \"")), 6298..6303)), 6278..6303), (Identifier(Identifier("valueFloat")), 6304..6314)), 6278..6314), (Literal(Str("\";\"")), 6315..6318)), 6278..6318) }, 6272..6319), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("sizeBool"), 6380..6388), value: Some((FnCall { name: (Identifier(Identifier("xsArrayGetSize")), 6391..6405), args: [(Identifier(Identifier("boolParams")), 6406..6416)] }, 6391..6417)) }, 6376..6418), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeInt")), 6436..6452), args: [(Identifier(Identifier("boolParams")), 6453..6463), (Plus((Identifier(Identifier("sizeBool")), 6465..6473), (Literal(Int(1)), 6474..6475)), 6465..6475)] }, 6436..6476)), 6436..6477), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Bool, name: (Identifier("valueBool"), 6518..6527), value: Some((FnCall { name: (Identifier(Identifier("_ext_core__toBool")), 6530..6547), args: [(FnCall { name: (Identifier(Identifier("xsReadInt")), 6548..6557), args: [] }, 6548..6559)] }, 6530..6560)) }, 6513..6561), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetBool")), 6579..6593), args: [(Identifier(Identifier("boolParams")), 6594..6604), (Identifier(Identifier("sizeBool")), 6606..6614), (Identifier(Identifier("valueBool")), 6616..6625)] }, 6579..6626)), 6579..6627), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetInt")), 6647..6660), args: [(Identifier(Identifier("paramPos")), 6661..6669), (Identifier(Identifier("i")), 6671..6672), (Identifier(Identifier("sizeBool")), 6674..6682)] }, 6647..6683)), 6647..6684), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetString")), 6702..6718), args: [(Identifier(Identifier("paramNames")), 6719..6729), (Identifier(Identifier("i")), 6731..6732), (Identifier(Identifier("name")), 6734..6738)] }, 6702..6739)), 6702..6740), (VarAssign { name: (Identifier("log"), 6776..6779), value: (Plus((Plus((Plus((Plus((Plus((Identifier(Identifier("log")), 6782..6785), (Literal(Str("\"bool \"")), 6788..6795)), 6782..6795), (Identifier(Identifier("name")), 6796..6800)), 6782..6800), (Literal(Str("\" = \"")), 6801..6806)), 6782..6806), (FnCall { name: (Identifier(Identifier("_ext_core__toStr")), 6807..6823), args: [(Identifier(Identifier("valueBool")), 6824..6833)] }, 6807..6834)), 6782..6834), (Literal(Str("\";\"")), 6835..6838)), 6782..6838) }, 6776..6839), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("sizeString"), 6900..6910), value: Some((FnCall { name: (Identifier(Identifier("xsArrayGetSize")), 6913..6927), args: [(Identifier(Identifier("stringParams")), 6928..6940)] }, 6913..6941)) }, 6896..6942), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeString")), 6960..6979), args: [(Identifier(Identifier("stringParams")), 6980..6992), (Plus((Identifier(Identifier("sizeString")), 6994..7004), (Literal(Int(1)), 7005..7006)), 6994..7006)] }, 6960..7007)), 6960..7008), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Str, name: (Identifier("valueString"), 7051..7062), value: Some((FnCall { name: (Identifier(Identifier("xsReadString")), 7065..7077), args: [] }, 7065..7079)) }, 7044..7080), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetString")), 7098..7114), args: [(Identifier(Identifier("stringParams")), 7115..7127), (Identifier(Identifier("sizeString")), 7129..7139), (Identifier(Identifier("valueString")), 7141..7152)] }, 7098..7153)), 7098..7154), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetInt")), 7190..7203), args: [(Identifier(Identifier("paramPos")), 7204..7212), (Identifier(Identifier("i")), 7214..7215), (Identifier(Identifier("sizeString")), 7217..7227)] }, 7190..7228)), 7190..7229), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetString")), 7247..7263), args: [(Identifier(Identifier("paramNames")), 7264..7274), (Identifier(Identifier("i")), 7276..7277), (Identifier(Identifier("name")), 7279..7283)] }, 7247..7284)), 7247..7285), (VarAssign { name: (Identifier("log"), 7321..7324), value: (Plus((Plus((Plus((Plus((Plus((Identifier(Identifier("log")), 7327..7330), (Literal(Str("\"string \"")), 7333..7342)), 7327..7342), (Identifier(Identifier("name")), 7343..7347)), 7327..7347), (Literal(Str("\" = \"")), 7348..7353)), 7327..7353), (Identifier(Identifier("valueString")), 7354..7365)), 7327..7365), (Literal(Str("\";\"")), 7366..7369)), 7327..7369) }, 7321..7370), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Int, name: (Identifier("sizeVector"), 7431..7441), value: Some((FnCall { name: (Identifier(Identifier("xsArrayGetSize")), 7444..7458), args: [(Identifier(Identifier("vectorParams")), 7459..7471)] }, 7444..7472)) }, 7427..7473), (Discarded((FnCall { name: (Identifier(Identifier("xsArrayResizeVector")), 7491..7510), args: [(Identifier(Identifier("vectorParams")), 7511..7523), (Plus((Identifier(Identifier("sizeVector")), 7525..7535), (Literal(Int(1)), 7536..7537)), 7525..7537)] }, 7491..7538)), 7491..7539), (VarDef { is_extern: false, is_const: false, is_static: false, type_: Vec, name: (Identifier("valueVector"), 7586..7597), value: Some((FnCall { name: (Identifier(Identifier("xsReadVector")), 7600..7612), args: [] }, 7600..7614)) }, 7579..7615), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetVector")), 7633..7649), args: [(Identifier(Identifier("vectorParams")), 7650..7662), (Identifier(Identifier("sizeVector")), 7664..7674), (Identifier(Identifier("valueVector")), 7676..7687)] }, 7633..7688)), 7633..7689), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetInt")), 7709..7722), args: [(Identifier(Identifier("paramPos")), 7723..7731), (Identifier(Identifier("i")), 7733..7734), (Identifier(Identifier("sizeVector")), 7736..7746)] }, 7709..7747)), 7709..7748), (Discarded((FnCall { name: (Identifier(Identifier("xsArraySetString")), 7766..7782), args: [(Identifier(Identifier("paramNames")), 7783..7793), (Identifier(Identifier("i")), 7795..7796), (Identifier(Identifier("name")), 7798..7802)] }, 7766..7803)), 7766..7804), (VarAssign { name: (Identifier("log"), 7824..7827), value: (Plus((Plus((Plus((Plus((Plus((Identifier(Identifier("log")), 7830..7833), (Literal(Str("\"vector \"")), 7836..7845)), 7830..7845), (Identifier(Identifier("name")), 7846..7850)), 7830..7850), (Literal(Str("\" = vector\"")), 7851..7862)), 7830..7862), (Identifier(Identifier("valueVector")), 7863..7874)), 7830..7874), (Literal(Str("\";\"")), 7875..7878)), 7830..7878) }, 7824..7879), (IfElse { condition: (Identifier(Identifier("verbose")), 7918..7925), consequent: (Single((Discarded((FnCall { name: (Identifier(Identifier("xsChatData")), 7940..7950), args: [(Identifier(Identifier("log")), 7951..7954)] }, 7940..7955)), 7940..7956)), 7940..7956), alternate: None }, 7915..7956), (Discarded((FnCall { name: (Identifier(Identifier("xsCloseFile")), 7971..7982), args: [] }, 7971..7984)), 7971..7985), (RuleDef { name: (Identifier("_ext_core__main"), 8023..8038), rule_opts: [(Active, 8044..8050), (RunImmediately, 8056..8070), (HighFrequency, 8076..8089), (Priority((1000, 8104..8108)), 8095..8108)], body: (Block([(VarAssign { name: (Identifier("intParams"), 8117..8126), value: (FnCall { name: (Identifier(Identifier("xsArrayCreateInt")), 8129..8145), args: [(Literal(Int(0)), 8146..8147), (Literal(Int(0)), 8149..8150), (Literal(Str("\"intParams\"")), 8152..8163)] }, 8129..8164) }, 8117..8165), (VarAssign { name: (Identifier("floatParams"), 8171..8182), value: (FnCall { name: (Identifier(Identifier("xsArrayCreateFloat")), 8185..8203), args: [(Literal(Int(0)), 8204..8205), (Literal(Int(0)), 8207..8208), (Literal(Str("\"floatParams\"")), 8210..8223)] }, 8185..8224) }, 8171..8225), (VarAssign { name: (Identifier("boolParams"), 8231..8241), value: (FnCall { name: (Identifier(Identifier("xsArrayCreateBool")), 8244..8261), args: [(Literal(Int(0)), 8262..8263), (Literal(Bool(false)), 8265..8270), (Literal(Str("\"boolParams\"")), 8272..8284)] }, 8244..8285) }, 8231..8286), (VarAssign { name: (Identifier("stringParams"), 8292..8304), value: (FnCall { name: (Identifier(Identifier("xsArrayCreateString")), 8307..8326), args: [(Literal(Int(0)), 8327..8328), (Literal(Str("\"\"")), 8330..8332), (Literal(Str("\"stringParams\"")), 8334..8348)] }, 8307..8349) }, 8292..8350), (VarAssign { name: (Identifier("vectorParams"), 8356..8368), value: (FnCall { name: (Identifier(Identifier("xsArrayCreateVector")), 8371..8390), args: [(Literal(Int(0)), 8391..8392), (Identifier(Identifier("cInvalidVector")), 8394..8408), (Literal(Str("\"vectorParams\"")), 8410..8424)] }, 8371..8425) }, 8356..8426), (VarAssign { name: (Identifier("paramPos"), 8432..8440), value: (FnCall { name: (Identifier(Identifier("xsArrayCreateInt")), 8443..8459), args: [(Literal(Int(0)), 8460..8461), (Literal(Int(0)), 8463..8464), (Literal(Str("\"paramPos\"")), 8466..8476)] }, 8443..8477) }, 8432..8478), (VarAssign { name: (Identifier("paramNames"), 8484..8494), value: (FnCall { name: (Identifier(Identifier("xsArrayCreateString")), 8497..8516), args: [(Literal(Int(0)), 8517..8518), (Literal(Str("\"\"")), 8520..8522), (Literal(Str("\"paramNames\"")), 8524..8536)] }, 8497..8537) }, 8484..8538), (Discarded((FnCall { name: (Identifier(Identifier("xsDisableSelf")), 8544..8557), args: [] }, 8544..8559)), 8544..8560)]), 8110..8563) }, 8018..8563)], 0..8563)