@xomachine You're a boss

I put 
    
    
    static:
      var PbFieldInfo: NimNode
    

in the file, filled the var in one macro with it's passed code block, and
    
    
    echo treeRepr(PbFieldInfo)
    

in the other macro indeed prints out the AST of the codeblock that was given to 
the first macro. Amazing that we can wield such power at compile time haha 

Thanks for this insight, I completely forgot about the static keyword.

@andrea Yeah will do. It will take some time though, I'm mostly only working on 
it in my weekends. Progress can be seen on my GitHub 
[https://github.com/ivankoster/protobuf-nim](https://github.com/ivankoster/protobuf-nim)

Reply via email to