groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <>
Subject 答复: 答复: About the "implies" operator(GROOVY-2576)
Date Thu, 26 Jan 2017 11:20:32 GMT
Hi Jochen,

     We can enable or disable some rules in the antlr4 grammar, but no rules can be defined
and enabled on the fly… as you know, the parser is generated by antlr4.


发件人: Jochen Theodorou [via Groovy]<>
发送时间: 2017年1月26日 19:07
收件人: Daniel Sun<>
主题: Re: 答复: 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 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 below:
To unsubscribe from About the "implies" operator(GROOVY-2576), click here<>.

View this message in context:
Sent from the Groovy Dev mailing list archive at
View raw message