Groovy AST not taking?

View: New views
3 Messages — Rating Filter:   Alert me  
< Prev | 1 - 2 | Next >

Re: Groovy AST not taking?

by HamletDRC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>> Pretty much any of it.  What the compilation order is, and why people
>> would pick different stages.
>> Since there are apparently added difficulties at certain stages, what
>> those difficulties are and how
>> to work with/around them would be great.  How to decide between doing a
>> local and global transform.

I too have wanted more documentation on the CompilerPhase. As more
people ask questions and get answers (like this thread is doing), we
should try to collect the feedback and move it to a wiki page/blog
post.


>>   A couple examples of standard use cases.

There is a JIRA open to add examples to groovy, so this will happen in
the next few weeks. I think giving people a small base of working code
and an Ant script is a good start.

--
Hamlet D'Arcy
hamletdrc@...



On Mon, Jun 29, 2009 at 3:44 PM, Peter Niederwieser<pniederw@...> wrote:

>
>
> Robert Fischer wrote:
>>
>> Pretty much any of it.  What the compilation order is, and why people
>> would pick different stages.
>> Since there are apparently added difficulties at certain stages, what
>> those difficulties are and how
>> to work with/around them would be great.  How to decide between doing a
>> local and global transform.
>>   A couple examples of standard use cases.
>>
>
> More documentation would certainly help. But I think we have covered most if
> not all of the points you are raising in this thread. For "standard" use
> cases see the built-in transformations. Also Guillaume's "What's new in
> Groovy 1.6" article is helpful.
>
>
> Robert Fischer wrote:
>>
>> As for error handling -- again, pretty much any of it.  A compiler flag to
>> signal what transforms
>> are being applied would be a good start.  I would add more, but apparently
>> I can't even get the ASTs
>> to take in Grails (see grails-user for more on that).  The reasonable
>> error handling/verification
>> comment came in part because it's increasingly clear that I'll need to get
>> into the IDE slog if I'm
>> going to continue to do AST development, which is too bad -- I've enjoyed
>> being able to do
>> development with 2 GB of ancient RAM and have it still be snappy.
>>
>
> The compiler does provide information if it encounters a problem with a
> transform (e.g. it complains if you try to run a local transform in phase
> conversion). Your problem seems to be that there is something wrong with
> your build, and therefore the compiler doesn't even know about your
> transform. How should it then provide diagnostic information? Or maybe it's
> a problem with Grails. Why not try with plain Groovy first?
>
> Cheers,
> Peter
> --
> View this message in context: http://www.nabble.com/Groovy-AST-not-taking--tp24233563p24261524.html
> Sent from the groovy - user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


--
Hamlet D'Arcy

Re: Groovy AST not taking?

by Guillaume Laforge-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, Jun 30, 2009 at 04:10, Hamlet D'Arcy<hamletdrc@...> wrote:
> [...]
> I too have wanted more documentation on the CompilerPhase. As more
> people ask questions and get answers (like this thread is doing), we
> should try to collect the feedback and move it to a wiki page/blog
> post.

+1 :-)

>>>   A couple examples of standard use cases.
>
> There is a JIRA open to add examples to groovy, so this will happen in
> the next few weeks. I think giving people a small base of working code
> and an Ant script is a good start.

+1 too.

--
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Groovy AST not taking?

by HamletDRC :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

>>
>> There is a JIRA open to add examples to groovy, so this will happen in
>> the next few weeks. I think giving people a small base of working code
>> and an Ant script is a good start.
>
> +1 too.
>

I thought there was already a JIRA on this, but I guess I was wrong. I
opened a new one: http://jira.codehaus.org/browse/GROOVY-3601

I checked in the examples that are referenced in the wiki page.
Feedback welcome:
http://svn.codehaus.org/groovy/trunk/groovy/groovy-core/src/examples/transforms/

--
Hamlet D'Arcy
hamletdrc@...

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


--
Hamlet D'Arcy
< Prev | 1 - 2 | Next >