What happens for def a = { 2 }, is it parsed as a closure or an array initializer?
On Tue, Jan 24, 2017 at 9:52 AM, Daniel Sun <realblue...@hotmail.com> wrote: > Hi Andres, > > Parrot can parse ` def a = {1, 2, 3}` properly, but it can not parse > `{1, 2, 3}`, which is not supported by Java too. > > This is the initial implementation :) > https://github.com/danielsun1106/groovy-parser/commit/ > 96e6c923a4d09d48448f8731a314c918ee6c0e7c > > > Cheers, > Daniel.Sun > > > > > -- > View this message in context: http://groovy.329449.n5. > nabble.com/About-array-initializer-of-Java-style-for- > Groovy-3-tp5737941p5737944.html > Sent from the Groovy Dev mailing list archive at Nabble.com. > -- Guillaume Laforge Apache Groovy committer & PMC Vice-President Developer Advocate @ Google Cloud Platform Blog: http://glaforge.appspot.com/ Social: @glaforge <http://twitter.com/glaforge> / Google+ <https://plus.google.com/u/0/114130972232398734985/posts>