N_NIMCALL(Tsym191843*, getsyssym_238054)(NimStringDesc* name) { Tsym191843* result; Tident167021* LOC1; result = 0; LOC1 = 0; LOC1 = getident_167463(name); result = strtableget_199111((*systemmodule_238019).kindU.S3.tab, LOC1); { Tident167021* LOC6; if (!(result == NIM_NIL)) goto LA4; rawmessage_164970(((NU16) 64), name); LOC6 = 0; LOC6 = getident_167463(name); result = newsym_192655(((NU8) 0), LOC6, systemmodule_238019, (*systemmodule_238019).info); asgnRefNoCycle((void**) (&(*result).typ), newtype_194144(((NU8) 50), systemmodule_238019)); } LA4: ; { if (!((*result).kind == ((NU8) 23))) goto LA9; loadstub_235638(result); } LA9: ; { if (!((*result).kind == ((NU8) 25))) goto LA13; result = (*result).owner; } LA13: ; return result; }
N_NIMCALL(void, registerplugin_406124)(NimStringDesc* package, NimStringDesc* module, NimStringDesc* fn, Transformation406013 t) { PluginHEX3Aobjecttype406019* oldhead; PluginHEX3Aobjecttype406019* LOC1; oldhead = head_406089; LOC1 = 0; LOC1 = (PluginHEX3Aobjecttype406019*) newObj((&NTI406015), sizeof(PluginHEX3Aobjecttype406019)); asgnRefNoCycle((void**) (&(*LOC1).fn), getident_167463(fn)); asgnRefNoCycle((void**) (&(*LOC1).module), getident_167463(module)); asgnRefNoCycle((void**) (&(*LOC1).package), getident_167463(package)); (*LOC1).t = t; asgnRef((void**) (&(*LOC1).next), oldhead); asgnRef((void**) (&head_406089), LOC1); }
N_NIMCALL(Tsym191843*, getsysmagic_238155)(NimStringDesc* name, NU16 m) { Tsym191843* result; Tidentiter199141 ti; Tident167021* id; { result = 0; memset((void*)(&ti), 0, sizeof(ti)); id = getident_167463(name); result = initidentiter_199147((&ti), (*systemmodule_238019).kindU.S3.tab, id); { while (1) { if (!!((result == NIM_NIL))) goto LA2; { if (!((*result).kind == ((NU8) 23))) goto LA5; loadstub_235638(result); } LA5: ; { if (!((*result).magic == m)) goto LA9; goto BeforeRet; } LA9: ; result = nextidentiter_199156((&ti), (*systemmodule_238019).kindU.S3.tab); } LA2: ; } rawmessage_164970(((NU16) 64), name); result = newsym_192655(((NU8) 0), id, systemmodule_238019, (*systemmodule_238019).info); asgnRefNoCycle((void**) (&(*result).typ), newtype_194144(((NU8) 50), systemmodule_238019)); }BeforeRet: ; return result; }
N_NIMCALL(NU16, whichkeyword_172396)(NimStringDesc* id) { NU16 result; Tident167021* LOC1; result = 0; LOC1 = 0; LOC1 = getident_167463(id); result = whichkeyword_172386(LOC1); return result; }
N_NIMCALL(NIM_BOOL, identeq_167484)(Tident167021* id, NimStringDesc* name) { NIM_BOOL result; Tident167021* LOC1; result = 0; LOC1 = 0; LOC1 = getident_167463(name); result = ((*id).Sup.id == (*LOC1).Sup.id); return result; }
NIM_EXTERNC N_NOINLINE(void, compiler_identsInit)(void) { firstchariscs_167029 = NIM_TRUE; wordcounter_167244 = ((NI) 1); asgnRefNoCycle((void**) (&idanon_167495), getident_167463(((NimStringDesc*) &TMP438))); asgnRefNoCycle((void**) (&iddelegator_167550), getident_167463(((NimStringDesc*) &TMP439))); }
N_NIMCALL(void, parseassignment_186441)(Tlexer181185* L, Ttoken181181* tok) { Tlineinfo163338 info; NimStringDesc* s; NimStringDesc* val; NIM_BOOL percent; Tident167021* LOC22; { NIM_BOOL LOC3; Tident167021* LOC4; Tident167021* LOC6; LOC3 = 0; LOC4 = 0; LOC4 = getident_167463(((NimStringDesc*) &TMP1886)); LOC3 = ((*(*tok).ident).Sup.id == (*LOC4).Sup.id); if (LOC3) goto LA5; LOC6 = 0; LOC6 = getident_167463(((NimStringDesc*) &TMP1887)); LOC3 = ((*(*tok).ident).Sup.id == (*LOC6).Sup.id); LA5: ; if (!LOC3) goto LA7; conftok_186379(L, tok); } LA7: ; info = getlineinfo_181218((&(*L)), (&(*tok))); checksymbol_186410((&(*L)), (&(*tok))); s = toktostr_181323((&(*tok))); conftok_186379(L, tok); val = copyString(((NimStringDesc*) &TMP1888)); { while (1) { NimStringDesc* LOC11; if (!((*tok).toktype == ((NU8) 110))) goto LA10; s = addChar(s, 46); conftok_186379(L, tok); checksymbol_186410((&(*L)), (&(*tok))); LOC11 = 0; LOC11 = toktostr_181323((&(*tok))); s = resizeString(s, LOC11->Sup.len + 0); appendString(s, LOC11); conftok_186379(L, tok); } LA10: ; } { NimStringDesc* LOC16; if (!((*tok).toktype == ((NU8) 95))) goto LA14; conftok_186379(L, tok); checksymbol_186410((&(*L)), (&(*tok))); LOC16 = 0; LOC16 = toktostr_181323((&(*tok))); val = resizeString(val, LOC16->Sup.len + 0); appendString(val, LOC16); conftok_186379(L, tok); { if (!((*tok).toktype == ((NU8) 96))) goto LA19; conftok_186379(L, tok); } goto LA17; LA19: ; { lexmessage_181483((&(*L)), ((NU16) 23), ((NimStringDesc*) &TMP1889)); } LA17: ; val = addChar(val, 93); } LA14: ; LOC22 = 0; LOC22 = getident_167463(((NimStringDesc*) &TMP1890)); percent = ((*(*tok).ident).Sup.id == (*LOC22).Sup.id); { NIM_BOOL LOC25; NimStringDesc* LOC33; LOC25 = 0; LOC25 = ((*tok).toktype == ((NU8) 107) || (*tok).toktype == ((NU8) 109)); if (LOC25) goto LA26; LOC25 = percent; LA26: ; if (!LOC25) goto LA27; { if (!(((NI) 0) < (val ? val->Sup.len : 0))) goto LA31; val = addChar(val, 58); } LA31: ; conftok_186379(L, tok); checksymbol_186410((&(*L)), (&(*tok))); LOC33 = 0; LOC33 = toktostr_181323((&(*tok))); val = resizeString(val, LOC33->Sup.len + 0); appendString(val, LOC33); conftok_186379(L, tok); { while (1) { NIM_BOOL LOC36; Tident167021* LOC38; NimStringDesc* LOC39; LOC36 = 0; LOC36 = !(((*tok).ident == NIM_NIL)); if (!(LOC36)) goto LA37; LOC38 = 0; LOC38 = getident_167463(((NimStringDesc*) &TMP1891)); LOC36 = ((*(*tok).ident).Sup.id == (*LOC38).Sup.id); LA37: ; if (!LOC36) goto LA35; conftok_186379(L, tok); checksymbol_186410((&(*L)), (&(*tok))); LOC39 = 0; LOC39 = toktostr_181323((&(*tok))); val = resizeString(val, LOC39->Sup.len + 0); appendString(val, LOC39); conftok_186379(L, tok); } LA35: ; } } LA27: ; { NimStringDesc* LOC44; if (!percent) goto LA42; LOC44 = 0; LOC44 = nstFormat(val, gconfigvars_154231, 3); processswitch_176040(s, LOC44, ((NU8) 2), info); } goto LA40; LA42: ; { processswitch_176040(s, val, ((NU8) 2), info); } LA40: ; }
N_NIMCALL(void, parseassignment_186439)(Tlexer181185* L, Ttoken181181* tok) { Tlineinfo163338 info; NimStringDesc* s; NimStringDesc* val; NIM_BOOL percent; Tident167021* LOC22; nimfr("parseAssignment", "nimconf.nim") nimln(159, "nimconf.nim"); { NIM_BOOL LOC3; Tident167021* LOC4; Tident167021* LOC6; LOC3 = 0; LOC4 = 0; LOC4 = getident_167463(((NimStringDesc*) &TMP2490)); LOC3 = ((*(*tok).ident).Sup.id == (*LOC4).Sup.id); if (LOC3) goto LA5; LOC6 = 0; LOC6 = getident_167463(((NimStringDesc*) &TMP2491)); LOC3 = ((*(*tok).ident).Sup.id == (*LOC6).Sup.id); LA5: ; if (!LOC3) goto LA7; nimln(160, "nimconf.nim"); conftok_186377(L, tok); } LA7: ; nimln(161, "nimconf.nim"); info = getlineinfo_181218((&(*L)), (&(*tok))); nimln(162, "nimconf.nim"); checksymbol_186408((&(*L)), (&(*tok))); nimln(163, "nimconf.nim"); s = toktostr_181323((&(*tok))); nimln(164, "nimconf.nim"); conftok_186377(L, tok); nimln(165, "nimconf.nim"); val = copyString(((NimStringDesc*) &TMP2492)); { nimln(166, "nimconf.nim"); while (1) { NimStringDesc* LOC11; if (!((*tok).toktype == ((NU8) 110))) goto LA10; nimln(167, "nimconf.nim"); s = addChar(s, 46); nimln(168, "nimconf.nim"); conftok_186377(L, tok); nimln(169, "nimconf.nim"); checksymbol_186408((&(*L)), (&(*tok))); nimln(170, "nimconf.nim"); LOC11 = 0; LOC11 = toktostr_181323((&(*tok))); s = resizeString(s, LOC11->Sup.len + 0); appendString(s, LOC11); nimln(171, "nimconf.nim"); conftok_186377(L, tok); } LA10: ; } nimln(172, "nimconf.nim"); { NimStringDesc* LOC16; if (!((*tok).toktype == ((NU8) 95))) goto LA14; nimln(175, "nimconf.nim"); conftok_186377(L, tok); nimln(176, "nimconf.nim"); checksymbol_186408((&(*L)), (&(*tok))); nimln(177, "nimconf.nim"); LOC16 = 0; LOC16 = toktostr_181323((&(*tok))); val = resizeString(val, LOC16->Sup.len + 0); appendString(val, LOC16); nimln(178, "nimconf.nim"); conftok_186377(L, tok); nimln(179, "nimconf.nim"); { if (!((*tok).toktype == ((NU8) 96))) goto LA19; conftok_186377(L, tok); } goto LA17; LA19: ; { nimln(180, "nimconf.nim"); lexmessage_181483((&(*L)), ((NU16) 23), ((NimStringDesc*) &TMP2493)); } LA17: ; nimln(181, "nimconf.nim"); val = addChar(val, 93); } LA14: ; nimln(182, "nimconf.nim"); LOC22 = 0; LOC22 = getident_167463(((NimStringDesc*) &TMP2494)); percent = ((*(*tok).ident).Sup.id == (*LOC22).Sup.id); nimln(183, "nimconf.nim"); { NIM_BOOL LOC25; NimStringDesc* LOC33; LOC25 = 0; LOC25 = ((*tok).toktype == ((NU8) 107) || (*tok).toktype == ((NU8) 109)); if (LOC25) goto LA26; LOC25 = percent; LA26: ; if (!LOC25) goto LA27; nimln(184, "nimconf.nim"); { if (!(((NI) 0) < (val ? val->Sup.len : 0))) goto LA31; val = addChar(val, 58); } LA31: ; nimln(185, "nimconf.nim"); conftok_186377(L, tok); nimln(186, "nimconf.nim"); checksymbol_186408((&(*L)), (&(*tok))); nimln(187, "nimconf.nim"); LOC33 = 0; LOC33 = toktostr_181323((&(*tok))); val = resizeString(val, LOC33->Sup.len + 0); appendString(val, LOC33); nimln(188, "nimconf.nim"); conftok_186377(L, tok); { nimln(189, "nimconf.nim"); while (1) { NIM_BOOL LOC36; Tident167021* LOC38; NimStringDesc* LOC39; LOC36 = 0; LOC36 = !(((*tok).ident == NIM_NIL)); if (!(LOC36)) goto LA37; LOC38 = 0; LOC38 = getident_167463(((NimStringDesc*) &TMP2495)); LOC36 = ((*(*tok).ident).Sup.id == (*LOC38).Sup.id); LA37: ; if (!LOC36) goto LA35; nimln(190, "nimconf.nim"); conftok_186377(L, tok); nimln(191, "nimconf.nim"); checksymbol_186408((&(*L)), (&(*tok))); nimln(192, "nimconf.nim"); LOC39 = 0; LOC39 = toktostr_181323((&(*tok))); val = resizeString(val, LOC39->Sup.len + 0); appendString(val, LOC39); nimln(193, "nimconf.nim"); conftok_186377(L, tok); } LA35: ; } } LA27: ; nimln(194, "nimconf.nim"); { NimStringDesc* LOC44; if (!percent) goto LA42; nimln(195, "nimconf.nim"); LOC44 = 0; LOC44 = nstFormat(val, gconfigvars_154231, 3); processswitch_176040(s, LOC44, ((NU8) 2), info); } goto LA40; LA42: ; { nimln(198, "nimconf.nim"); processswitch_176040(s, val, ((NU8) 2), info); } LA40: ; popFrame(); }
N_NIMCALL(NimStringDesc*, getmodulename_251018)(Tnode191813* n) { NimStringDesc* result; { result = 0; switch ((*n).kind) { case ((NU8) 20): case ((NU8) 21): case ((NU8) 22): { result = nosunixToNativePath((*n).kindU.S3.strval, ((NimStringDesc*) &TMP3460)); } break; case ((NU8) 2): { result = copyString((*(*n).kindU.S5.ident).s); } break; case ((NU8) 3): { result = copyString((*(*(*n).kindU.S4.sym).name).s); } break; case ((NU8) 29): case ((NU8) 30): { NimStringDesc* LOC12; { NIM_BOOL LOC7; Tident167021* LOC9; LOC7 = 0; LOC7 = ((*(*n).kindU.S6.sons->data[((NI) 0)]).kind == ((NU8) 2)); if (!(LOC7)) goto LA8; LOC9 = 0; LOC9 = getident_167463(((NimStringDesc*) &TMP3461)); LOC7 = ((*(*(*n).kindU.S6.sons->data[((NI) 0)]).kindU.S5.ident).Sup.id == (*LOC9).Sup.id); LA8: ; if (!LOC7) goto LA10; (*n).kind = ((NU8) 78); asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 0)]), (*n).kindU.S6.sons->data[((NI) 1)]); asgnRefNoCycle((void**) (&(*n).kindU.S6.sons->data[((NI) 1)]), (*n).kindU.S6.sons->data[((NI) 2)]); (*n).kindU.S6.sons = (Tnodeseq191807*) setLengthSeq(&((*n).kindU.S6.sons)->Sup, sizeof(Tnode191813*), ((NI) 2)); result = getmodulename_251018((*n).kindU.S6.sons->data[((NI) 0)]); goto BeforeRet; } LA10: ; LOC12 = 0; LOC12 = rendertree_213058(n, 4); result = nsuReplaceStr(LOC12, ((NimStringDesc*) &TMP3462), ((NimStringDesc*) &TMP3460)); } break; case ((NU8) 45): { NimStringDesc* LOC14; LOC14 = 0; LOC14 = rendertree_213058(n, 4); result = nsuReplaceStr(LOC14, ((NimStringDesc*) &TMP3463), ((NimStringDesc*) &TMP3464)); } break; case ((NU8) 78): { result = getmodulename_251018((*n).kindU.S6.sons->data[((NI) 0)]); } break; default: { NimStringDesc* LOC17; NimStringDesc* LOC18; LOC17 = 0; LOC17 = rendertree_213058(n, 0); LOC18 = 0; LOC18 = nsuFormatSingleElem(((NimStringDesc*) &TMP3465), LOC17); localerror_165171((*n).info, ((NU16) 4), LOC18); result = copyString(((NimStringDesc*) &TMP3460)); } break; } }BeforeRet: ; return result; }