@kidandcat, I discovered the nim compiler api which seems perfect for my use.
[https://forum.nim-lang.org/t/5994](https://forum.nim-lang.org/t/5994) Also, the example you provided just calls out the nim compiler without returning any exported proc inside it. (Because it's runtime) Is there any particular reason why I shouldn't use the nim compiler API? Any cons?
