Method reference for Groovy 3

2016-10-25 Thread Daniel.Sun
Hi all, The brand new parser can support method reference and constructor reference now. The implementation of backend is based on the discussion of GROOVY-7772 . Here are some example code of method reference for Groovy: impor

Re: Method reference for Groovy 3

2016-10-25 Thread Jochen Theodorou
great stuff On 25.10.2016 18:25, Daniel.Sun wrote: Hi all, The brand new parser can support method reference and constructor reference now. The implementation of backend is based on the discussion of GROOVY-7772 . Here are s

making parser modules for antlr2 and antlr4

2016-10-25 Thread Jochen Theodorou
Hi, I am looking a bit into the usage of our old parser and keeping in mind the new parser we want to eventually make the default. But one problem I talked about in the past already is the direct usage of antlr2 types in something else than the parser itself. Moving the current parser into a

Re: making parser modules for antlr2 and antlr4

2016-10-25 Thread John Wagenleitner
On Tue, Oct 25, 2016 at 1:53 PM, Jochen Theodorou wrote: > Hi, > > I am looking a bit into the usage of our old parser and keeping in mind > the new parser we want to eventually make the default. > > But one problem I talked about in the past already is the direct usage of > antlr2 types in somet

Re: making parser modules for antlr2 and antlr4

2016-10-25 Thread Jochen Theodorou
On 25.10.2016 23:36, John Wagenleitner wrote: [...] Could the existing "org.codehaus.groovy.syntax.TokenMismatchException" cover the cases for "NoViableAltException" and "MismatchedTokenException" (or maybe all cases since the focus is on finding unexpected EOF)? yes, just found that presumably

Re: Method reference for Groovy 3

2016-10-25 Thread Paul King
nice! On Wed, Oct 26, 2016 at 6:29 AM, Jochen Theodorou wrote: > great stuff > > > On 25.10.2016 18:25, Daniel.Sun wrote: >> >> Hi all, >> >> The brand new parser can support method reference and constructor >> reference now. The implementation of backend is based on the discussion of >>

Re: Method reference for Groovy 3

2016-10-25 Thread Daniel.Sun
Thanks :-) 在 "paulk_asert [via Groovy]" ,2016年10月26日 上午7:35写道: nice! On Wed, Oct 26, 2016 at 6:29 AM, Jochen Theodorou <[hidden email]> wrote: > great stuff > > > On 25.10.2016 18:25, Daniel.Sun wrote: >> >> Hi all, >> >> The brand new parser can support method reference and construc

[PROPOSAL]Refine the implementation of LRUCache

2016-10-25 Thread 孙 岚
Hi all, I found the LRUCache that Groovy is using is not efficient enough because it is based on Collections.synchronizeMap, the LRUCache is used by some important classes(e.g. ProxyGenerator, Closure), so it can impact the performance somehow. I propose to replace the implem