There's no easy answer, but you can do it yourself without a huge amount of work. Check out this blog post [on writing nim macros](https://flenniken.net/blog/nim-macros/) and use the dumpAstGen macro to show you how to make what you want. Happy learning!
- macros to generate class tbutton
- Re: macros to generate class ggibson
