clean separation of PNimrodNode and tyExpr

This commit is contained in:
Araq 2012-03-16 19:33:24 +01:00
commit be1154106a
7 changed files with 32 additions and 22 deletions

View file

@ -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