summary refs log tree commit diff stats
path: root/lib
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2012-03-16 19:33:24 +0100
committerAraq <rumpf_a@web.de>2012-03-16 19:33:24 +0100
commitbe1154106a81207dfaf383afc25bfa0e2efb90c7 (patch)
tree981fc574252d4b7dde5f8884b7376497ccb8fde3 /lib
parent4da067691eb61554515197fa79392b1509c2e566 (diff)
downloadNim-be1154106a81207dfaf383afc25bfa0e2efb90c7.tar.gz
clean separation of PNimrodNode and tyExpr
Diffstat (limited to 'lib')
-rwxr-xr-xlib/core/macros.nim4
-rwxr-xr-xlib/system.nim5
2 files changed, 5 insertions, 4 deletions
diff --git a/lib/core/macros.nim b/lib/core/macros.nim
index b6b9174cd..1fb012a28 100755
--- a/lib/core/macros.nim
+++ b/lib/core/macros.nim
@@ -87,10 +87,6 @@ type
     ## represents a Nimrod *symbol* in the compiler; a *symbol* is a looked-up

     ## *ident*.

   

-  TNimrodNode {.final.} = object

-  PNimrodNode* {.magic: "PNimrodNode".} = ref TNimrodNode

-    ## represents a Nimrod AST node. Macros operate on this type.

-

 const

   nnkLiterals* = {nnkCharLit..nnkNilLit}

   nnkCallKinds* = {nnkCall, nnkInfix, nnkPrefix, nnkPostfix, nnkCommand,

diff --git a/lib/system.nim b/lib/system.nim
index c92c86443..2644d6fbb 100755
--- a/lib/system.nim
+++ b/lib/system.nim
@@ -2220,6 +2220,11 @@ proc shallow*(s: var string) {.noSideEffect, inline.} =
 #    const res = e
 #    res
 
+type
+  TNimrodNode {.final.} = object
+  PNimrodNode* {.magic: "PNimrodNode".} = ref TNimrodNode
+    ## represents a Nimrod AST node. Macros operate on this type.
+
 template eval*(blk: stmt): stmt =
   ## executes a block of code at compile time just as if it was a macro
   ## optonally, the block can return an AST tree that will replace the