I need to find a db block in a module and copy it entirely to a new file.

So, I basically need a way to pass a module's code to a macro where I'll 
iterate over its nodes to find the necessary one.

So far, I haven't found a way do so. Naïve attempts like this one don't work, 
since I'm getting the tree of the include statement and not the included module:
    
    
    dumpTree:
      include anothermodule.nim
    
    
    Run

Of course, I could always treat the module as a text file and just look for 
patterns, but this looks like a poor solution. There must be a better way.

Reply via email to