diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-10-03 21:11:41 +0300 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-10-04 15:37:26 +0300 |
commit | d9d82fb0af8688e7c847bb7b0c3b2e38f7c8a735 (patch) | |
tree | 2e547df69eead6665ca4127f63872f0bbd67f275 /compiler/renderer.nim | |
parent | a6d5707faff21722f22f91c56704c44fc03d47f6 (diff) | |
download | Nim-d9d82fb0af8688e7c847bb7b0c3b2e38f7c8a735.tar.gz |
syntax compatibility between do blocks and stmt blocks
See the section `do notation` in the manual for more info. * nkMacroStmt has been removed Macro statements are now mapped to regular nkCall nodes. The support for additional clauses (such as else, except, of, etc) have been restored - they will now appear as additional arguments for the nkCall node (as nkElse, nkExcept, etc nodes) * fixed some regressions in the `is` operator and semCompiles
Diffstat (limited to 'compiler/renderer.nim')
-rwxr-xr-x | compiler/renderer.nim | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/compiler/renderer.nim b/compiler/renderer.nim index 5199e234d..de642eccb 100755 --- a/compiler/renderer.nim +++ b/compiler/renderer.nim @@ -1051,7 +1051,6 @@ proc gsub(g: var TSrcGen, n: PNode, c: TContext) = of nkWhileStmt: gwhile(g, n) of nkPragmaBlock: gpragmaBlock(g, n) of nkCaseStmt, nkRecCase: gcase(g, n) - of nkMacroStmt: gmacro(g, n) of nkTryStmt: gtry(g, n) of nkForStmt, nkParForStmt: gfor(g, n) of nkBlockStmt, nkBlockExpr: gblock(g, n) |