This is part 2 of an ongoing series of my efforts to learn the programming language Nim. I give you a quick overview on how to create a simple macro using pattern matching as well as pragmas and reflection functions.
The final code can be found here:
https://github.com/David-Kunz/nim-macros
Thanks goes to the developers of norm, from which I took inspiration:
https://github.com/moigagoo/norm