Thanks all - looks like there are a few implementations I can look at.

My aim is to initially generate Java code, and later on implement byte
code generation.

The initial problem is how to load classes referred to in the source
code, i.e., how to handle imports. Do I need to use something like ASM
to locate and load references to classes, or is it possible to use a
custom class loader to do this? What is the general approach followed
by other implementations?

Many thanks for your input.

Regards
Dibyendu

On Sep 6, 10:48 am, Rémi Forax <[email protected]> wrote:
>   Le 06/09/2010 09:03, Patrick Wright a crit :
>
> > I found the implementations of Talc (http://code.google.com/p/talc/)
> > and Pnuts (https://pnuts.dev.java.net/) fairly small and easy to
> > follow. I wouldn't call them toy languages or toy implementations but
> > the code is not overwhelming, I think.
>
> > Patrick
>
> Pseudo (for pseudo code)http://code.google.com/p/pseudo-language/
> It uses Tatoo as parser generator and javac as generator (instead of ASM),
> It builds javac Tree and let javac backend generates the bytecode :)
>
> R mi

-- 
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