Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C3A66200C08 for ; Thu, 26 Jan 2017 12:20:45 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id C24A3160B4C; Thu, 26 Jan 2017 11:20:45 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E7054160B40 for ; Thu, 26 Jan 2017 12:20:44 +0100 (CET) Received: (qmail 15072 invoked by uid 500); 26 Jan 2017 11:20:44 -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 15061 invoked by uid 99); 26 Jan 2017 11:20:43 -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; Thu, 26 Jan 2017 11:20:43 +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 5D87D1A03C9 for ; Thu, 26 Jan 2017 11:20:43 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 5.573 X-Spam-Level: ***** X-Spam-Status: No, score=5.573 tagged_above=-999 required=6.31 tests=[FORGED_HOTMAIL_RCVD2=1.187, HTML_MESSAGE=2, KAM_UNSUB1=0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_SOFTFAIL=0.972, URIBL_BLOCKED=0.001, URI_HEX=1.313] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id Jj1oCDBeIN3L for ; Thu, 26 Jan 2017 11:20:42 +0000 (UTC) Received: from mbob.nabble.com (mbob.nabble.com [162.253.133.15]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id BB8575F644 for ; Thu, 26 Jan 2017 11:20:41 +0000 (UTC) Received: from static.162.255.23.22.macminivault.com (unknown [162.255.23.22]) by mbob.nabble.com (Postfix) with ESMTP id E9C553B4B50E for ; Thu, 26 Jan 2017 03:02:08 -0800 (PST) Date: Thu, 26 Jan 2017 04:20:32 -0700 (MST) From: Daniel Sun To: dev@groovy.incubator.apache.org Message-ID: In-Reply-To: <6c44fa88-1ad2-5244-6add-111bde612cab@gmx.org> References: <1485363042746-5738035.post@n5.nabble.com> <5888FA6E.30204@gmx.org> <1426822655.1501632.1485425144062.JavaMail.zimbra@u-pem.fr> <6c44fa88-1ad2-5244-6add-111bde612cab@gmx.org> Subject: =?UTF-8?Q?=E7=AD=94=E5=A4=8D:_=E7=AD=94=E5=A4=8D:_About_the_"impli?= =?UTF-8?Q?es"_operator(GROOVY-2576)?= MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_42502_243666183.1485429632197" archived-at: Thu, 26 Jan 2017 11:20:46 -0000 ------=_Part_42502_243666183.1485429632197 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Jochen, We can enable or disable some rules in the antlr4 grammar, but no rule= s can be defined and enabled on the fly=E2=80=A6 as you know, the parser is= generated by antlr4. Cheers, Daniel.Sun =E5=8F=91=E4=BB=B6=E4=BA=BA: Jochen Theodorou [via Groovy] =E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2017=E5=B9=B41=E6=9C=8826=E6=97=A5 19= :07 =E6=94=B6=E4=BB=B6=E4=BA=BA: Daniel Sun =E4=B8=BB=E9=A2=98: Re: =E7=AD=94=E5=A4=8D: About the "implies" operator(GR= OOVY-2576) On 26.01.2017 11:13, Andres Almiray wrote: > Here's another idea: > > What if this new operator and other syntax changes were to be introduced > as parser/compiler plugins? compiler itself, sure we can do something here... but for the parser? Daniel, is it possible? I would be surprised if it is, but you never know ;= ) > This way the core syntax stays the same yet it may open the possibility > for certain groups to enhance the Groovy syntax according to their needs > without affecting everyone else. > > Don't how how feasible this is given that it requires changes to both > parser and compiler APIs. I have my doubts, since the parser is generated from a grammar bye Jochen ________________________________ If you reply to this email, your message will be added to the discussion be= low: http://groovy.329449.n5.nabble.com/About-the-implies-operator-GROOVY-2576-t= p5738035p5738119.html To unsubscribe from About the "implies" operator(GROOVY-2576), click here. NAML -- View this message in context: http://groovy.329449.n5.nabble.com/About-the-= implies-operator-GROOVY-2576-tp5738035p5738120.html Sent from the Groovy Dev mailing list archive at Nabble.com. ------=_Part_42502_243666183.1485429632197 Content-Type: text/html; charset=UTF8 Content-Transfer-Encoding: quoted-printable

Hi Jochen,

 

     We can= enable or disable some rules in the antlr4 grammar, but no rules can be de= fined and enabled on the fly=E2=80=A6 as you know, the parser is generated = by antlr4.

 

Cheers,

Daniel.Sun

 

=E5=8F=91=E4=BB= =B6=E4=BA=BA: [hidden e= mail]
=E5=8F=91=E9=80=81=E6=97=B6=E9=97=B4: 2017=E5=B9=B41= =E6=9C=8826=E6=97=A5 19:07=
=E6=94=B6=E4=BB=B6=E4=BA=BA: [hidden email]
=E4=B8=BB=E9=A2=98: Re: =E7=AD=94=E5=A4=8D: About the "= ;implies" operator(GROOVY-2576)

 



On 26.01.2017 11:13, Andres Almiray wrote:
> Here's another idea:
>
> What if this new operator and other syntax changes were to be introduc= ed
> as parser/compiler plugins?

compiler itself, sure we can do something here... but for the parser?
Daniel, is it possible? I would be surprised if it is, but you never know ;= )

> This way the core syntax stays the same yet it may open the possibilit= y
> for certain groups to enhance the Groovy syntax according to their nee= ds
> without affecting everyone else.
>
> Don't how how feasible this is given that it requires changes to both =
> parser and compiler APIs.

I have my doubts, since the parser is generated from a grammar

bye Jochen



To unsubscribe from About the "implies" operator(GROOVY-2576), click here.
NAML
=09 =09 =09

View this message in context: =E7=AD=94= =E5=A4=8D: =E7=AD=94=E5=A4=8D: About the "implies" operator(GROOV= Y-2576)
Sent from the Groovy Dev mailing list archive at Nabble.com.
------=_Part_42502_243666183.1485429632197--