diff options
author | Araq <rumpf_a@web.de> | 2014-01-22 17:32:38 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2014-01-22 17:32:38 +0100 |
commit | 37229df7fc044fe108d2f4d88f127141cabeb6a6 (patch) | |
tree | 2dd7dbacaa4afecdd9c6bde5180c43df24b0a914 /compiler/renderer.nim | |
parent | 85a5bfe60520a59ff9ce493dfa65bf9cbd86059e (diff) | |
download | Nim-37229df7fc044fe108d2f4d88f127141cabeb6a6.tar.gz |
next steps for closure iterators
Diffstat (limited to 'compiler/renderer.nim')
-rw-r--r-- | compiler/renderer.nim | 5 |
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 & ')') |