summary refs log tree commit diff stats
path: root/compiler/renderer.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-22 17:32:38 +0100
committerAraq <rumpf_a@web.de>2014-01-22 17:32:38 +0100
commit37229df7fc044fe108d2f4d88f127141cabeb6a6 (patch)
tree2dd7dbacaa4afecdd9c6bde5180c43df24b0a914 /compiler/renderer.nim
parent85a5bfe60520a59ff9ce493dfa65bf9cbd86059e (diff)
downloadNim-37229df7fc044fe108d2f4d88f127141cabeb6a6.tar.gz
next steps for closure iterators
Diffstat (limited to 'compiler/renderer.nim')
-rw-r--r--compiler/renderer.nim5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler/renderer.nim b/compiler/renderer.nim
index b5e3c0e74..6588caa04 100644
--- a/compiler/renderer.nim
+++ b/compiler/renderer.nim
@@ -1251,6 +1251,11 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) =
     put(g, tkParLe, "(META|")
     gsub(g, n.sons[0])
     put(g, tkParRi, ")")
+  of nkGotoState, nkState:
+    var c: TContext
+    initContext c
+    putWithSpace g, tkSymbol, if n.kind == nkState: "state" else: "goto"
+    gsons(g, n, c)
   else: 
     #nkNone, nkExplicitTypeListCall: 
     internalError(n.info, "rnimsyn.gsub(" & $n.kind & ')')