Beispiel #1
0
N_NIMCALL(void, closebaselexer_181035)(tbaselexer181018* l) {
	nimfr("closeBaseLexer", "nimlexbase.nim")
	nimln(71, "nimlexbase.nim");
	dealloc_4645(((void*) ((*l).Buf)));
	nimln(72, "nimlexbase.nim");
	llstreamclose_179238((*l).Stream);
	popFrame();
}
Beispiel #2
0
N_NIMCALL(tllstream179204*, filtertmpl_223007)(tllstream179204* stdin_223009, NimStringDesc* filename, tnode191813* call) {
	tllstream179204* result;
	ttmplparser223017 p;
	nimfr("filterTmpl", "filter_tmpl.nim")
	result = 0;
	memset((void*)&p, 0, sizeof(p));
	nimln(207, "filter_tmpl.nim");
	p.Info = newlineinfo_167076(filename, 0, 0);
	nimln(208, "filter_tmpl.nim");
	p.Outp = llstreamopen_179218(((NimStringDesc*) &TMP2669));
	nimln(209, "filter_tmpl.nim");
	p.Inp = stdin_223009;
	nimln(210, "filter_tmpl.nim");
	p.Subschar = chararg_222014(call, ((NimStringDesc*) &TMP2684), 1, 36);
	nimln(211, "filter_tmpl.nim");
	p.Nimdirective = chararg_222014(call, ((NimStringDesc*) &TMP2685), 2, 35);
	nimln(212, "filter_tmpl.nim");
	p.Emit = strarg_222021(call, ((NimStringDesc*) &TMP2686), 3, ((NimStringDesc*) &TMP2687));
	nimln(213, "filter_tmpl.nim");
	p.Conc = strarg_222021(call, ((NimStringDesc*) &TMP2688), 4, ((NimStringDesc*) &TMP2689));
	nimln(214, "filter_tmpl.nim");
	p.Tostr = strarg_222021(call, ((NimStringDesc*) &TMP2690), 5, ((NimStringDesc*) &TMP2682));
	nimln(215, "filter_tmpl.nim");
	nimln(215, "filter_tmpl.nim");
	p.X = rawNewString(120);
	nimln(216, "filter_tmpl.nim");
	while (1) {
		NIM_BOOL LOC2;
		NI TMP2691;
		nimln(216, "filter_tmpl.nim");
		LOC2 = 0;
		LOC2 = llstreamreadline_179248(p.Inp, &p.X);
		if (!LOC2) goto LA1;
		nimln(217, "filter_tmpl.nim");
		nimln(217, "filter_tmpl.nim");
		TMP2691 = addInt(p.Info.Line, ((NI16) 1));
		if (TMP2691 < -32768 || TMP2691 > 32767) raiseOverflow();
		p.Info.Line = (NI16)(TMP2691);
		nimln(218, "filter_tmpl.nim");
		parseline_223177(&p);
	} LA1: ;
	nimln(219, "filter_tmpl.nim");
	newline_223040(&p);
	nimln(220, "filter_tmpl.nim");
	result = p.Outp;
	nimln(221, "filter_tmpl.nim");
	llstreamclose_179238(p.Inp);
	popFrame();
	return result;
}