Return-Path: X-Original-To: apmail-groovy-dev-archive@minotaur.apache.org Delivered-To: apmail-groovy-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2C5BD19615 for ; Sun, 28 Feb 2016 13:00:08 +0000 (UTC) Received: (qmail 73869 invoked by uid 500); 28 Feb 2016 13:00:07 -0000 Delivered-To: apmail-groovy-dev-archive@groovy.apache.org Received: (qmail 73827 invoked by uid 500); 28 Feb 2016 13:00:07 -0000 Mailing-List: contact dev-help@groovy.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@groovy.apache.org Delivered-To: mailing list dev@groovy.apache.org Received: (qmail 73817 invoked by uid 99); 28 Feb 2016 13:00:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Feb 2016 13:00:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 39D2F1A03D0 for ; Sun, 28 Feb 2016 13:00:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 1.299 X-Spam-Level: * X-Spam-Status: No, score=1.299 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=selskabet-org.20150623.gappssmtp.com Received: from mx2-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Unp7_ARoGfJA for ; Sun, 28 Feb 2016 13:00:06 +0000 (UTC) Received: from mail-lb0-f172.google.com (mail-lb0-f172.google.com [209.85.217.172]) by mx2-lw-eu.apache.org (ASF Mail Server at mx2-lw-eu.apache.org) with ESMTPS id 8EFDF5FB0C for ; Sun, 28 Feb 2016 13:00:05 +0000 (UTC) Received: by mail-lb0-f172.google.com with SMTP id x1so66898310lbj.3 for ; Sun, 28 Feb 2016 05:00:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=selskabet-org.20150623.gappssmtp.com; s=20150623; h=from:message-id:mime-version:subject:date:references:to:in-reply-to; bh=vSYhGgMkKHLkZTF+V0rmp2sE3tjS4Iygl4BZZcBZqko=; b=vU4RVw8IDXZY3h3+f64iT4pKL5pmGl1eQCf5OsQIil9FCoOJO7hReEv/3QEKSkqNxA EHE1xo4QU98YxJlRULQgvM+CwB7EbT7QIDMAW9PunRYn0SwMaFtcJtzYneLcaFup6UFB 6tIv4Sr97kYbZcXj3t1hO8chcjcDtNVomdU1xAp5DhhT0KvBqGJBgz6Ae923wO0eG8O/ Gl8IRsgW6jAARL6PmsWx2DTfaM/kDxhfPm86WeQU7mvYgsAJqNTDwG1UioSbEvaxbziI apDnhZwZ95qzAgCgYGVEMBnATSAgAV2Ea+C1lyXyLsjZhwYsRaH1l21G/NwvfXyrXm8/ aSfQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:mime-version:subject:date :references:to:in-reply-to; bh=vSYhGgMkKHLkZTF+V0rmp2sE3tjS4Iygl4BZZcBZqko=; b=Ra4n1rY5O5KcQ4YfQZSHXAGT5qY0NgS7BowjgvkLvFH4S4kF2fuADSajSXPaHNkd9A REO0JSrJUzvN3WmLnGKQwI7+3p71dNw+wAnN4pIu31eeFhbdwL09a70Q1dkAgGH/VLhp 35yNJYxLNyzS5YMoAL6hoMoCnUuW0idlX2/u9ewfGYYir+QjHDeFzReiAUd7F1nSA3UM nskpJMYGaNjzXrQOBo/ocJiR1VZo7uB7FG9DaUKGbGygeWu3G1pLhkTG/MLhnsmwxr31 nBpHMPbU0Sx+q4ZNt9EAQjT1UrLM1z/CK+YbPJJmOmKd+gnzH/2HeSn1NwHAP/V1cHkq a6Jg== X-Gm-Message-State: AD7BkJLz6nzYov8GwgkqK6AKD+cCT9EAIaXGJrC7edDvnyF47tsRHkAyw7zxUl5o/gf+hw== X-Received: by 10.112.140.41 with SMTP id rd9mr3794160lbb.138.1456664405046; Sun, 28 Feb 2016 05:00:05 -0800 (PST) Received: from [192.168.0.95] (x1-6-20-4e-7f-5c-af-fa.cpe.webspeed.dk. [87.52.39.65]) by smtp.gmail.com with ESMTPSA id r200sm3204159lfr.47.2016.02.28.05.00.03 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 28 Feb 2016 05:00:04 -0800 (PST) From: =?utf-8?Q?Jesper_Steen_M=C3=B8ller?= Content-Type: multipart/alternative; boundary="Apple-Mail=_60B048D3-B176-4E17-A0F1-883717E0203B" Message-Id: <154D336C-145C-4C25-A373-FC6CC0E47CBA@selskabet.org> Mime-Version: 1.0 (Mac OS X Mail 9.2 \(3112\)) Subject: Re: More Antlr4-based Groovy parser status update Date: Sun, 28 Feb 2016 14:00:03 +0100 References: <29FC6596-94BC-4BE2-A9A9-2FA48680CC08@selskabet.org> To: dev@groovy.apache.org In-Reply-To: X-Mailer: Apple Mail (2.3112) --Apple-Mail=_60B048D3-B176-4E17-A0F1-883717E0203B Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Just a clarification: I wrote: > I=E2=80=99ve 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? >=20 By =E2=80=9Ccurrently=E2=80=9D, I mean in Groovy 2.x. In Groovy 2.x =E2=80= =9C- -1=E2=80=9D is illegal. In Java, it=E2=80=99s allowed - and equals = 1. I propose that the new grammar should allow this, too. Any objections? -Jesper= --Apple-Mail=_60B048D3-B176-4E17-A0F1-883717E0203B Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Just a clarification:

I wrote:
  • I=E2=80=99ve 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 =E2=80=9Ccurrently=E2=80=9D, I mean in Groovy = 2.x. In Groovy 2.x =E2=80=9C- -1=E2=80=9D is illegal. In Java, it=E2=80=99= s allowed - and equals 1. I propose that the new grammar should allow = this, too.
Any objections?

-Jesper
= --Apple-Mail=_60B048D3-B176-4E17-A0F1-883717E0203B--