On Tue, Feb 24, 2009 at 6:31 PM, Matt Fowles <[email protected]> wrote:

> Given that you are generating code, do you generate java directly or
> generate an AST?

>From an AST, I suppose is the right answer.  But it's a Lisp-family
language, so the surface syntax is already a tree -- I just keep
transforming the tree until its semantics are those of Java.

> If you generate an AST, do you unparse that into java and run javac on it or
> do you generate bytecode directly from it?

I generate Java from it.  Javac is certainly appropriate, though one
could use gcj or janino, too.  (No generics in the generated code.)

> If you generate bytecode directly from it, what library or libraries do you
> use?

N/A

-- 
GMail doesn't have rotating .sigs, but you can see mine at
http://www.ccil.org/~cowan/signatures

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JVM 
Languages" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/jvm-languages?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to