Re: [CONTRIBUTION]groovy-parser

2016-09-30 Thread Jochen Theodorou
On 30.09.2016 10:03, daniel_sun wrote: Hi Sergei, I tried to add the statement to expression as an alternative, the antlr4 failed to generate sources becuase of the error "error(119): GroovyParser.g4::: The following sets of rules are mutually left-recursive [statement, expression, statem

Re: [CONTRIBUTION]groovy-parser

2016-09-30 Thread daniel_sun
rrenty the expression is quite huge, which is a potential cause of performance issue. so if we try our best to treat statement as expression in the future, the performance will be impacted somehow. Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/CONTRIBUTION-gro

Re: [CONTRIBUTION]groovy-parser

2016-09-30 Thread daniel_sun
Hi Graeme, Thanks for your staring the project :) Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/CONTRIBUTION-groovy-parser-tp5735184p5735698.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: [CONTRIBUTION]groovy-parser

2016-09-30 Thread Sergei Egorov
will not grow forever and use the cache as far as it can. I find that about > 20% time saved after the work done. > > Cheers, > Daniel.Sun > > > > -- > View this message in context: > http://groovy.329449.n5.nabble.com/CONTRIBUTION-groovy-parser-tp5735184p5735695.html > Sent from the Groovy Dev mailing list archive at Nabble.com. >

Re: [CONTRIBUTION]groovy-parser

2016-09-30 Thread daniel_sun
es, lambda expression, do-while, indentical operation(===), etc. Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/CONTRIBUTION-groovy-parser-tp5735184p5735696.html Sent from the Groovy Dev mailing list archive at Nabble.com.

Re: [CONTRIBUTION]groovy-parser

2016-09-30 Thread daniel_sun
the memory will not grow forever and use the cache as far as it can. I find that about 20% time saved after the work done. Cheers, Daniel.Sun -- View this message in context: http://groovy.329449.n5.nabble.com/CONTRIBUTION-groovy-parser-tp5735184p5735695.html Sent from the Groovy Dev mailing

Re: [CONTRIBUTION]groovy-parser

2016-09-11 Thread Jochen Theodorou
something maybe of interest from the javaparser gitter channel today: ptitjes Some numbers that are not on the bar graphs: Parsing JavaParser 2.5.1 with ANTLR4's Java 1.7 grammar takes **~115ms** and with ANTLR4's Java 1.8 grammar takes **15s** !! I had a discussion with Terence Parr, and he

Re: [CONTRIBUTION]groovy-parser

2016-09-06 Thread Guillaume Laforge
Indeed great to have a little update on the progress! How is it possible to help? For example giving some new examples of code and see how they are parsed (if parsed successfully or not, etc)? Is the "fail" folder where we can contribute things that are not yet parsed but should work ultimately, or

Re: [CONTRIBUTION]groovy-parser

2016-09-06 Thread Graeme Rocher
Interesting project Daniel Sun, good luck with it and look forward to following your progress. Cheers On Sat, Sep 3, 2016 at 10:27 AM, 孙 岚 wrote: > Hi List, > > > The groovy-antlr4-grammar project is very hard to maintain and the > performance is terrible, so I am rewriting the > parser(ht

[CONTRIBUTION]groovy-parser

2016-09-03 Thread 孙 岚
Hi List, The groovy-antlr4-grammar project is very hard to maintain and the performance is terrible, so I am rewriting the parser(https://github.com/danielsun1106/groovy-parser), which is based on the Java grammar provided by the antlr offical and introduced some good idea from the old