I\'m generating C++ code, and it seems like it\'s going to get very messy, even my simple generating classes already have tons of special cases. Here is the code as it stan
I was also looking for something like this and found this question. I wasn't very satisfied with cog, so I ended up writing my own which is similar but adds some (imo) much needed features.