Seems pretty straightforward. I want to load my own file that's not necessarily exactly Nim syntax yet, and produce something Nim can understand from it. But parseStmt(readFile("some_model.dat")) in a macro just fails, saying "lib/system/sysio.nim(196, 5) Error: cannot 'importc' variable at compile time". If the compiler can't import procedures from C, then how does it read the source files?
Alternatively, can I make a program to generate nim code during runtime? I don't think there's a sensible way to do that. The nim compiler can't interpret a dumped AST, can it?