Ejemplo n.º 1
0
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: ;
}
Ejemplo n.º 2
0
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();
}