groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jesper Steen Møller <jes...@selskabet.org>
Subject Re: More Antlr4-based Groovy parser status update
Date Sun, 28 Feb 2016 13:00:03 GMT
Just a clarification:

I wrote:
> I’ve discovered a small issue with unary syntax. Currently, nested unary expressions
are not supported without parenthesis: Try e.g. - -1 or + -1. Is this intentional, or just
an artifact of the precedence-refactored Java grammar?
> 

By “currently”, I mean in Groovy 2.x. In Groovy 2.x “- -1” is illegal. In Java, it’s
allowed - and equals 1. I propose that the new grammar should allow this, too.
Any objections?

-Jesper
Mime
View raw message