Thank you @Hlaaftana, not only for the snippet but also for mentioning codegenDecl which I was totally unaware of. I just looked it up on the docs and I think this may be what I'm looking for so I'm going to investigate this further, cheers.
- How can I generate highly-customized DSL from Nim? RedFred
- Re: How can I generate highly-customized DSL from Nim? amalek
- Re: How can I generate highly-customized DSL from Nim? Hlaaftana
- Re: How can I generate highly-customized DSL from N... RedFred
- Re: How can I generate highly-customized DSL fr... RedFred
