groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Theodorou <>
Subject Re: Groovy grammar ambiguity / question
Date Tue, 15 Mar 2016 17:07:25 GMT

On 15.03.2016 17:22, Jesper Steen Møller wrote:
> So, is the “command” syntax a special pseudo-expression, and if so,
> where is it allowed? Only by itself (“statement”), and as the RHS og
> assignments and initializers?

we couldn't do more because otherwise the grammar was slapping us left 
and right in the face ;)

> I’d like to know this as it could get real nasty, depending on the
> answer, since allowing it everywhere will introduce some ambiguities,
> which will require some tweaks to keep the “non-left-recursion
> refactored” grammar we have now.

essentially you gave the answer of why there are not more cases to allow 
this. The existing version already took us some effort to rule out the 

> Also, great news:
> Daniel Sun has started contributing fixes, submitting PR’s against the
> fork at - he’s quite
> productive, thanks!
> For coordination, I’ve started tracking some of the known “things to do”
> at

always welcome and good idea!

bye Jochen

View raw message