I don't know how to put this into the right words, so let me give you an 
example:
    
    
    macro someTransformation(proc1: NimNode): NimNode =
      # create a "wrapper" proc for proc1
    
    proc someProc(a, b: float): float =
      result = a * 2 + a / b
    
    someTransformation(someProc) # this should create a new proc based off of 
someProc
    
    
    Run

Is this possible? AFAIK `someProc` will be passed as an `nnkIdent` to 
`someTransformation`, but I need to pass the AST of the proc itself. 

Reply via email to