Rename PNimrodNode to NimNode
This commit is contained in:
parent
8e651fa0d4
commit
fd4e629905
30 changed files with 508 additions and 518 deletions
|
|
@ -20,13 +20,13 @@ import strutils
|
|||
# This serves the same purpose as D's `alias` parameters for types, used heavily
|
||||
# in its popular `ranges` and `algorithm` modules.
|
||||
|
||||
var exprNodes {.compileTime.} = newSeq[PNimrodNode]()
|
||||
var exprNodes {.compileTime.} = newSeq[NimNode]()
|
||||
|
||||
proc refExpr(exprNode: PNimrodNode): string {.compileTime.} =
|
||||
proc refExpr(exprNode: NimNode): string {.compileTime.} =
|
||||
exprNodes.add exprNode.copy
|
||||
"expr" & $(exprNodes.len - 1)
|
||||
|
||||
proc derefExpr(exprRef: string): PNimrodNode {.compileTime.} =
|
||||
proc derefExpr(exprRef: string): NimNode {.compileTime.} =
|
||||
exprNodes[parseInt(exprRef[4 .. -1])]
|
||||
|
||||
#===============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue