Re: [abc-dev] Question about Program.generateIntertypeDecls()

From: Mohamed ElBendary <mohamed.elbendary_at_gmail.com>
Date: Wed, 29 Oct 2008 18:11:04 -0500

Thanks, Eric, that's exactly what I was looking for.

Mohamed

On Wed, Oct 29, 2008 at 1:54 PM, Eric Bodden <eric.bodden_at_mail.mcgill.ca>wrote:

> Hi.
>
> The file you want to look at is:
>
> abc/JastAddExtensions/IntertypeDeclarations/IntertypeDecls.jrag
>
> lines 20 and following:
>
> // generate code for inter-type declarations
> public void Program.generateIntertypeDecls() {
> for(Iterator iter = compilationUnitIterator(); iter.hasNext(); ) {
> CompilationUnit cu = (CompilationUnit)iter.next();
> if(cu.weavable())
> cu.generateIntertypeDecls();
> }
> }
>
> Hope that helps,
> Eric
>
> 2008/10/29 Mohamed ElBendary <mohamed.elbendary_at_gmail.com>:
> > Hello abc-dev,
> >
> > I'm trying to extend abc.ja.CopmileSequence. I would like to do some
> > processing before and possibly after Program.generateIntertypeDecls() but
> > before Program.transformation(). However, I couldn't find the JastAdd
> aspect
> > or other code for the implementation of generateIntertypeDecls(). Is this
> an
> > extension to the JastAdd node creation API? I need to look at the
> > implementation because I may need to refine it to accommodate the phases
> > before/after it in the compilation sequence. Thanks a bunch!
> >
> >
> > Mohamed
> >
> > --
> > ________________________________
> > Mohamed ElBendary, PhD. Candidate
> > Computer Science Department
> > University of Wisconsin-Milwaukee
> > ________________________________
> >
>
>
>
> --
> Eric Bodden
> Sable Research Group, McGill University, Montréal, Canada
> Got an interesting job offer? http://www.bodden.de/hire-me/
>
>
Received on Wed Oct 29 2008 - 23:11:08 GMT

This archive was generated by hypermail 2.2.0 : Fri Oct 31 2008 - 23:50:11 GMT