title: What are some techniques for code generation?
body: <p>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 stands now: <a href="http://github.com/alex/alex-s-language/tree/local%2Fcpp-generation/alexs_lang/cpp" rel="nofollow noreferrer">http://github.com/alex/alex-s-language/tree/local%2Fcpp-generation/alexs_lang/cpp</a> .</p>