« Return to Thread: GEP-3 command expression DSL exension

Re: GEP-3 command expression DSL exension

by HamletDRC :: Rate this Message:

Reply to Author | View in Thread

>> Constraints: the evaluation must be easily explainable
>> ... I think that table shows enough to recognize the pattern.

I'm trying to think about how I would explain the table in words...

"In certain cases, you can remove commas from method invocation
expression lists. The method invocation will become a series of
chained invocations of expressions pairs where the odd numbered
expression is assumed to be a method and the even numbered parameters
are objects. This works if you have an odd number of expressions
unless the last expressions is a closure. Also, this works for an even
number of expressions only if the last expressions is a closure. "

There are a few details left out, but is that the gist of it?

I feel like I see the pattern from the example but don't quite know
how to explain it.

--
Hamlet D'Arcy
hamletdrc@...



On Tue, Jun 30, 2009 at 3:25 PM, Jochen Theodorou<blackdrag@...> wrote:

> Hi all,
>
> on
> http://docs.codehaus.org/display/GroovyJSR/GEP+3+-+Command+Expression+based+DSL
> you find a new GEP, to have better DSLs in Groovy. It is a very first draft,
> so don't expect too much. Of course suggestions are welcome!
>
> bye blackdrag
>
> --
> Jochen "blackdrag" Theodorou
> The Groovy Project Tech Lead (http://groovy.codehaus.org)
> http://blackdragsview.blogspot.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

 « Return to Thread: GEP-3 command expression DSL exension