yes I should have been more explicit. I am looking to transpile my nim code 
into other languages besides C*/Java. I would want to do it in a way which I 
can register my custom-backend-code-translator to compiler process instead of 
embedding my code into main nim-repo. Essentially, looking to get AST-tree 
after semantic-pass. Right now, it looks like main checks for compile flag and 
calls commandX2Y explicitly and that's a great way I can code up and experiment.

My assumption is, it's not doable from within the code - import user code and 
get it's AST - or at least I could not figure that out just yet. The only way I 
could figure out to get hands on user's code AST is via macros - which is 
great, but I need access to all it's imported code as well.

Above links does provide some alternative ways to think. Thanks

Reply via email to