Skip to content

Instantly share code, notes, and snippets.

@ilovezfs
Last active March 15, 2016 19:27
Show Gist options
  • Save ilovezfs/68a5546967626d4e85d0 to your computer and use it in GitHub Desktop.
Save ilovezfs/68a5546967626d4e85d0 to your computer and use it in GitHub Desktop.
nim changes 0.13.0
From 83d0443f07317c9484a38cb8e83497c2b4009006 Mon Sep 17 00:00:00 2001
From: ilovezfs <ilovezfs@icloud.com>
Date: Tue, 15 Mar 2016 12:26:27 -0700
Subject: [PATCH] changed
---
.DS_Store | Bin 0 -> 8196 bytes
c_code/1_1/compiler_commands.c | 2 +-
c_code/1_2/compiler_commands.c | 2 +-
c_code/2_1/compiler_commands.c | 2 +-
c_code/2_10/compiler_commands.c | 2 +-
c_code/2_2/compiler_commands.c | 2 +-
c_code/2_3/compiler_commands.c | 2 +-
c_code/2_4/compiler_commands.c | 2 +-
c_code/2_5/compiler_commands.c | 2 +-
c_code/2_6/compiler_commands.c | 2 +-
c_code/2_7/compiler_commands.c | 2 +-
c_code/2_8/compiler_commands.c | 2 +-
c_code/2_9/compiler_commands.c | 2 +-
c_code/3_1/compiler_commands.c | 2 +-
c_code/3_2/compiler_commands.c | 2 +-
c_code/3_3/compiler_commands.c | 2 +-
c_code/4_1/compiler_commands.c | 2 +-
c_code/4_2/compiler_commands.c | 2 +-
c_code/4_5/compiler_commands.c | 2 +-
c_code/5_1/compiler_commands.c | 2 +-
c_code/5_2/compiler_commands.c | 2 +-
c_code/6_1/compiler_commands.c | 2 +-
c_code/6_2/compiler_commands.c | 2 +-
c_code/7_1/compiler_commands.c | 2 +-
c_code/7_2/compiler_commands.c | 2 +-
c_code/8_1/compiler_commands.c | 2 +-
c_code/8_2/compiler_commands.c | 2 +-
compiler/.DS_Store | Bin 0 -> 14340 bytes
compiler/installer.ini | 2 +-
compiler/plugins/itersgen.nim | 51 ++++++++++++++++++++++++++++++++++++++++
30 files changed, 78 insertions(+), 27 deletions(-)
create mode 100644 .DS_Store
create mode 100644 compiler/.DS_Store
create mode 100644 compiler/plugins/itersgen.nim
diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..22356f14b07bc63a217f7b8a62954cea9e94afdf
GIT binary patch
literal 8196
zcmeHMO>f*p7=9<46mL>er%6f(Ag$O7s8N+lp^yXWb{jqdLJ8R@O-S0sUQc$dI-Zs7
zd{IT(GY7;Gapa@$6F6}}<-~y_aOs632PC9QJ%wjxyov2y#0e3p9?A1gW}aup?=zlv
zb|yr`s=LlrqA4OW@JMTpAnTK4yL@`mKwL8o%fKh9QAC0Q;)`AnI<LqT$Q8&H$Q8&H
z$Q3vX3SiHc$@qtTU$^FYu0XE96RCiV4<$U(R$|-HR)r2^>IeWkh-#Hk#yLQ7O0liP
zwxg}0qECH#U@?`&M+~OvXfH`PY$diGZ8e>krW1=tX7LGysnNkJDLAo;wt1c_kSoxu
zfIPbw=?X32>|Rfv-$ldrgpF1#sDV3JPzT2<sV)j+lS}@hmqgK<XnQGvDgw0&oJS5u
zu*sq*!}uw~Fj9<=T4_96$>2v4_-i!Re-!phhINh_@U?-P3P;{lBz=&crhG6IZim{+
z4^BY_|GUKFVaLbF<wc3?H-WeJ!*;CXW4rCSVKh7YD;p>b4xM|-C=Mfy4x3}6w`(o2
zUyH10H>_I0ruxfuxE+_5t*F&4uL|Lvlr4MB<@<GW;->H;%k_DXpl;oAeMjt9#jfv!
zTQ%L^E!T-!b#rn#;CrAhTRvZNL)UgaH##gL8O6Feb?@HQ*}0k0Yp)*7lu(?XpDA6N
zpFKJ<|1yl{UVi1qdmHVekH7fxtFP~W^X(50l<UOe*i7U4@00w;e!{qoy;vCbeOH)=
zrg<vO$oZ#7FPLK&$HykdCMPdFGd20_^z`#}bKJHXcbkE9>Zb5SQ1y2Cy4w(b&Hae4
zNBkg?g}Qk$gInRwoztq-!!|GzrxmKNw*t=n&1T>_OWWHakJc0Ajk<XuYy`sdmPP1B
zuJAXuLd@D?#CI0`ZGjP`pi6Dp6t3|ggze$1Z&*QK`AuFuyzN;w_m=#sh$68gk+L^9
z5>Jg9yVkZEuHP(Q|5M9Zt}J&8^1DMasjLe`<;tf&tFmFTRbTkLSS(lGjav=6OgHEq
zEb<oZ(<k&f-KX#90sTgQ&?7d;F0mKcWj4oNXV=-=?0vSvR@nyofNg62KzDXu=#Hi>
zb6|Tu`@LG=d%|y`P4eWD6Xer2mQgdkgjCr0ED<)$7#rat(NzmvUn+)J-Vq)24I)YY
zh~l^D5Nw~C{aGrMBw6QWFi?yTqgV)99+<r$NCuN6uK=E)M%pJ8Mv^E4eIKA#85lg2
z!wg=AktBWyZ=w~;Af;N&NT@aZ@9#_qvnkF<52uf=QlS*fpu5sjd_7m7t4lj+A7q$K
z;S2B-^Or`ctt9#W1~jqIGgsdRw8`M1Osdymd=(rF2Rz<?Zk0v{35|v@qtG0AR!yl)
z7AfGRmqjWylE?zq5YKw2G)ST_t!FnC^s7zD^Zy%&Bl$hR*`2HW&2k0)D+So#LT#an
z-n%<|b|87yF5&qQk4zHR(N<BAspB~8AgX2i$v+HHF2!|~*mkr<3)25_5r892zW=NJ
Uu=_hF-~aXTP5x4NGWP$!0p}gTs{jB1
literal 0
HcmV?d00001
diff --git a/c_code/1_1/compiler_commands.c b/c_code/1_1/compiler_commands.c
index 5ab58d9..c5a5f50 100644
--- a/c_code/1_1/compiler_commands.c
+++ b/c_code/1_1/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_164639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_196518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_163286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP800, "", 0);
-STRING_LITERAL(TMP1667, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\015\012Copyright (c) 20"
+STRING_LITERAL(TMP1667, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\015\012Copyright (c) 20"
"06-2015 by Andreas Rumpf\015\012", 89);
STRING_LITERAL(TMP1668, "0.13.0", 6);
extern NIM_CONST TY170069 Os_170055;
diff --git a/c_code/1_2/compiler_commands.c b/c_code/1_2/compiler_commands.c
index a65b11a..a1b17a2 100644
--- a/c_code/1_2/compiler_commands.c
+++ b/c_code/1_2/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_164639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_196518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_163286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP800, "", 0);
-STRING_LITERAL(TMP1667, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\015\012Copyright (c) 20"
+STRING_LITERAL(TMP1667, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\015\012Copyright (c) 20"
"06-2015 by Andreas Rumpf\015\012", 89);
STRING_LITERAL(TMP1668, "0.13.0", 6);
extern NIM_CONST TY170069 Os_170055;
diff --git a/c_code/2_1/compiler_commands.c b/c_code/2_1/compiler_commands.c
index 09369cc..8094e24 100644
--- a/c_code/2_1/compiler_commands.c
+++ b/c_code/2_1/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_162639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_195518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_161286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP792, "", 0);
-STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1660, "0.13.0", 6);
extern NIM_CONST TY168069 Os_168055;
diff --git a/c_code/2_10/compiler_commands.c b/c_code/2_10/compiler_commands.c
index de18011..699a795 100644
--- a/c_code/2_10/compiler_commands.c
+++ b/c_code/2_10/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_162639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_195518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_161286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP792, "", 0);
-STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1660, "0.13.0", 6);
extern NIM_CONST TY168069 Os_168055;
diff --git a/c_code/2_2/compiler_commands.c b/c_code/2_2/compiler_commands.c
index de101a3..a76b3f7 100644
--- a/c_code/2_2/compiler_commands.c
+++ b/c_code/2_2/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_162639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_195518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_161286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP792, "", 0);
-STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1660, "0.13.0", 6);
extern NIM_CONST TY168069 Os_168055;
diff --git a/c_code/2_3/compiler_commands.c b/c_code/2_3/compiler_commands.c
index de18011..699a795 100644
--- a/c_code/2_3/compiler_commands.c
+++ b/c_code/2_3/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_162639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_195518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_161286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP792, "", 0);
-STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1660, "0.13.0", 6);
extern NIM_CONST TY168069 Os_168055;
diff --git a/c_code/2_4/compiler_commands.c b/c_code/2_4/compiler_commands.c
index b0be5b8..adc785e 100644
--- a/c_code/2_4/compiler_commands.c
+++ b/c_code/2_4/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_162639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_195518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_161286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP792, "", 0);
-STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1660, "0.13.0", 6);
extern NIM_CONST TY168069 Os_168055;
diff --git a/c_code/2_5/compiler_commands.c b/c_code/2_5/compiler_commands.c
index b0be5b8..adc785e 100644
--- a/c_code/2_5/compiler_commands.c
+++ b/c_code/2_5/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_162639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_195518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_161286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP792, "", 0);
-STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1660, "0.13.0", 6);
extern NIM_CONST TY168069 Os_168055;
diff --git a/c_code/2_6/compiler_commands.c b/c_code/2_6/compiler_commands.c
index b0be5b8..adc785e 100644
--- a/c_code/2_6/compiler_commands.c
+++ b/c_code/2_6/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_162639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_195518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_161286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP792, "", 0);
-STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1660, "0.13.0", 6);
extern NIM_CONST TY168069 Os_168055;
diff --git a/c_code/2_7/compiler_commands.c b/c_code/2_7/compiler_commands.c
index b0be5b8..adc785e 100644
--- a/c_code/2_7/compiler_commands.c
+++ b/c_code/2_7/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_162639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_195518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_161286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP792, "", 0);
-STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1660, "0.13.0", 6);
extern NIM_CONST TY168069 Os_168055;
diff --git a/c_code/2_8/compiler_commands.c b/c_code/2_8/compiler_commands.c
index b0be5b8..adc785e 100644
--- a/c_code/2_8/compiler_commands.c
+++ b/c_code/2_8/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_162639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_195518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_161286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP792, "", 0);
-STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1660, "0.13.0", 6);
extern NIM_CONST TY168069 Os_168055;
diff --git a/c_code/2_9/compiler_commands.c b/c_code/2_9/compiler_commands.c
index de18011..699a795 100644
--- a/c_code/2_9/compiler_commands.c
+++ b/c_code/2_9/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_162639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_195518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_161286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP792, "", 0);
-STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1659, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1660, "0.13.0", 6);
extern NIM_CONST TY168069 Os_168055;
diff --git a/c_code/3_1/compiler_commands.c b/c_code/3_1/compiler_commands.c
index 0175f44..76cd29c 100644
--- a/c_code/3_1/compiler_commands.c
+++ b/c_code/3_1/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_160639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_193518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_159286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1653, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1653, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1654, "0.13.0", 6);
extern NIM_CONST TY166069 Os_166055;
diff --git a/c_code/3_2/compiler_commands.c b/c_code/3_2/compiler_commands.c
index c9db3e7..98f85bf 100644
--- a/c_code/3_2/compiler_commands.c
+++ b/c_code/3_2/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_160639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_193518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_159286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1653, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1653, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1654, "0.13.0", 6);
extern NIM_CONST TY166069 Os_166055;
diff --git a/c_code/3_3/compiler_commands.c b/c_code/3_3/compiler_commands.c
index 740fbb6..0a9e1b2 100644
--- a/c_code/3_3/compiler_commands.c
+++ b/c_code/3_3/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_160639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_193518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_159286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1653, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1653, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1654, "0.13.0", 6);
extern NIM_CONST TY166069 Os_166055;
diff --git a/c_code/4_1/compiler_commands.c b/c_code/4_1/compiler_commands.c
index 64c0b18..bb21827 100644
--- a/c_code/4_1/compiler_commands.c
+++ b/c_code/4_1/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_161639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_194518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_160286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1658, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1658, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1659, "0.13.0", 6);
extern NIM_CONST TY167069 Os_167055;
diff --git a/c_code/4_2/compiler_commands.c b/c_code/4_2/compiler_commands.c
index e8ab827..45e5fa7 100644
--- a/c_code/4_2/compiler_commands.c
+++ b/c_code/4_2/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_161639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_194518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_160286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1658, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1658, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1659, "0.13.0", 6);
extern NIM_CONST TY167069 Os_167055;
diff --git a/c_code/4_5/compiler_commands.c b/c_code/4_5/compiler_commands.c
index 6b00c0c..1d6168f 100644
--- a/c_code/4_5/compiler_commands.c
+++ b/c_code/4_5/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_161639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_194518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_160286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1658, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1658, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1659, "0.13.0", 6);
extern NIM_CONST TY167069 Os_167055;
diff --git a/c_code/5_1/compiler_commands.c b/c_code/5_1/compiler_commands.c
index e365811..fa08dde 100644
--- a/c_code/5_1/compiler_commands.c
+++ b/c_code/5_1/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_161639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_194518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_160286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1658, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1658, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1659, "0.13.0", 6);
extern NIM_CONST TY167069 Os_167055;
diff --git a/c_code/5_2/compiler_commands.c b/c_code/5_2/compiler_commands.c
index 35f6aff..1c3c617 100644
--- a/c_code/5_2/compiler_commands.c
+++ b/c_code/5_2/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_161639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_194518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_160286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1658, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1658, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1659, "0.13.0", 6);
extern NIM_CONST TY167069 Os_167055;
diff --git a/c_code/6_1/compiler_commands.c b/c_code/6_1/compiler_commands.c
index 729b681..e9d8310 100644
--- a/c_code/6_1/compiler_commands.c
+++ b/c_code/6_1/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_161639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_194518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_160286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1658, "0.13.0", 6);
extern NIM_CONST TY167069 Os_167055;
diff --git a/c_code/6_2/compiler_commands.c b/c_code/6_2/compiler_commands.c
index 04515d7..604a1cb 100644
--- a/c_code/6_2/compiler_commands.c
+++ b/c_code/6_2/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_161639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_194518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_160286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1658, "0.13.0", 6);
extern NIM_CONST TY167069 Os_167055;
diff --git a/c_code/7_1/compiler_commands.c b/c_code/7_1/compiler_commands.c
index 729b681..e9d8310 100644
--- a/c_code/7_1/compiler_commands.c
+++ b/c_code/7_1/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_161639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_194518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_160286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1658, "0.13.0", 6);
extern NIM_CONST TY167069 Os_167055;
diff --git a/c_code/7_2/compiler_commands.c b/c_code/7_2/compiler_commands.c
index 04515d7..604a1cb 100644
--- a/c_code/7_2/compiler_commands.c
+++ b/c_code/7_2/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_161639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_194518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_160286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1658, "0.13.0", 6);
extern NIM_CONST TY167069 Os_167055;
diff --git a/c_code/8_1/compiler_commands.c b/c_code/8_1/compiler_commands.c
index 6369dff..e64870c 100644
--- a/c_code/8_1/compiler_commands.c
+++ b/c_code/8_1/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_161639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_194518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_160286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1658, "0.13.0", 6);
extern NIM_CONST TY167069 Os_167055;
diff --git a/c_code/8_2/compiler_commands.c b/c_code/8_2/compiler_commands.c
index 421bc36..1906c3f 100644
--- a/c_code/8_2/compiler_commands.c
+++ b/c_code/8_2/compiler_commands.c
@@ -336,7 +336,7 @@ N_NIMCALL(void, incldynliboverride_161639)(NimStringDesc* lib);
N_NIMCALL(NU8, nametocc_194518)(NimStringDesc* name);
N_NIMCALL(void, setconfigvar_160286)(NimStringDesc* key, NimStringDesc* val);
STRING_LITERAL(TMP790, "", 0);
-STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-18) [$2: $3]\012Copyright (c) 200"
+STRING_LITERAL(TMP1657, "Nim Compiler Version $1 (2016-01-19) [$2: $3]\012Copyright (c) 200"
"6-2015 by Andreas Rumpf\012", 87);
STRING_LITERAL(TMP1658, "0.13.0", 6);
extern NIM_CONST TY167069 Os_167055;
diff --git a/compiler/.DS_Store b/compiler/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..26bb07001e2e33d1c54fbbdd08baa7f967b008b6
GIT binary patch
literal 14340
zcmeI3&vF|@5XNU6$A7d^Y;)qMBd1izDK}iHgn}zvI02F@$pYC@$&zDp@`>URc!WFx
zM~)nLfII*P9)TNtU(c@TmZn#PqNswJb**N-p5OG$H$Brc6D5RDJYSu?AHtIm!U1lk
z$8CIk8$y?<y7+hA8`lH8DR3`v<M}v*i!ch4aP#qWHrU9$`C<pJ$nWCb3zr}j-=EI<
zc#lGhPf+~p-{lH{3Et-`E07h)3S<Sc0$G8-rvPIwu7fhB`7<k!703$QE5P}oi<{|b
zmEOfvrVe~?3D3WC2`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al 0
HcmV?d00001
diff --git a/compiler/installer.ini b/compiler/installer.ini
index 0ec6e52..95c07e0 100644
--- a/compiler/installer.ini
+++ b/compiler/installer.ini
@@ -73,7 +73,7 @@ Files: "compiler/nimfix/*.cfg"
Files: "compiler/nimsuggest/*.nim"
Files: "compiler/nimsuggest/*.cfg"
Files: "compiler/plugins/locals/*.nim"
-Files: "compiler/plugins/active.nim"
+Files: "compiler/plugins/*.nim"
Files: "tools/*.nim"
Files: "tools/*.cfg"
Files: "tools/*.tmpl"
diff --git a/compiler/plugins/itersgen.nim b/compiler/plugins/itersgen.nim
new file mode 100644
index 0000000..f44735b
--- /dev/null
+++ b/compiler/plugins/itersgen.nim
@@ -0,0 +1,51 @@
+#
+#
+# The Nim Compiler
+# (c) Copyright 2015 Andreas Rumpf
+#
+# See the file "copying.txt", included in this
+# distribution, for details about the copyright.
+#
+
+## Plugin to transform an inline iterator into a data structure.
+
+import compiler/pluginsupport, compiler/ast, compiler/astalgo,
+ compiler/magicsys, compiler/lookups, compiler/semdata,
+ compiler/lambdalifting, compiler/rodread, compiler/msgs
+
+
+proc iterToProcImpl(c: PContext, n: PNode): PNode =
+ result = newNodeI(nkStmtList, n.info)
+ let iter = n[1]
+ if iter.kind != nkSym or iter.sym.kind != skIterator:
+ localError(iter.info, "first argument needs to be an iterator")
+ return
+ if n[2].typ.isNil:
+ localError(n[2].info, "second argument needs to be a type")
+ return
+ if n[3].kind != nkIdent:
+ localError(n[3].info, "third argument needs to be an identifier")
+ return
+
+ let t = n[2].typ.skipTypes({tyTypeDesc, tyGenericInst})
+ if t.kind notin {tyRef, tyPtr} or t.lastSon.kind != tyObject:
+ localError(n[2].info,
+ "type must be a non-generic ref|ptr to object with state field")
+ return
+ let body = liftIterToProc(iter.sym, iter.sym.getBody, t)
+
+ let prc = newSym(skProc, n[3].ident, iter.sym.owner, iter.sym.info)
+ prc.typ = copyType(iter.sym.typ, prc, false)
+ excl prc.typ.flags, tfCapturesEnv
+ prc.typ.n.add newSymNode(getEnvParam(iter.sym))
+ prc.typ.rawAddSon t
+ let orig = iter.sym.ast
+ prc.ast = newProcNode(nkProcDef, n.info,
+ name = newSymNode(prc),
+ params = orig[paramsPos],
+ pragmas = orig[pragmasPos],
+ body = body)
+ prc.ast.add iter.sym.ast.sons[resultPos]
+ addInterfaceDecl(c, prc)
+
+registerPlugin("stdlib", "system", "iterToProc", iterToProcImpl)
--
2.7.3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment