Re: Code generation architecture question

2008-11-14 Thread Aaron Brady
On Nov 13, 7:16 pm, Alex_Gaynor [EMAIL PROTECTED] wrote: I'm trying to figure out what the best architecture for doing code generation would be.  I have a set of ASTs that define a program, so what should I do to for code generation.  As I see it the 2 choices are to have the ASTs have a

Re: Code generation architecture question

2008-11-14 Thread Alex_Gaynor
On Nov 14, 3:04 am, Aaron Brady [EMAIL PROTECTED] wrote: On Nov 13, 7:16 pm, Alex_Gaynor [EMAIL PROTECTED] wrote: I'm trying to figure out what the best architecture for doing code generation would be.  I have a set of ASTs that define a program, so what should I do to for code generation.

Code generation architecture question

2008-11-13 Thread Alex_Gaynor
I'm trying to figure out what the best architecture for doing code generation would be. I have a set of ASTs that define a program, so what should I do to for code generation. As I see it the 2 choices are to have the ASTs have a generate code method that returns the correct code for themselves,