groovy-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Sun <realblue...@hotmail.com>
Subject 答复: Array initializer of Java style for Groovy 3
Date Tue, 24 Jan 2017 12:20:22 GMT
Thanks ??

发件人: Cédric Champeau [via Groovy]<mailto:ml-node+s329449n5737956h94@n5.nabble.com>
发送时间: 2017年1月24日 20:18
收件人: Daniel Sun<mailto:realbluesun@hotmail.com>
主题: Re: Array initializer of Java style for Groovy 3

Great work!

2017-01-24 13:12 GMT+01:00 Daniel Sun <[hidden email]</user/SendEmail.jtp?type=node&node=5737956&i=0>>:
Hi all,

      The new parser Parrot support array initializer of Java style, e.g.
new int[] {1, 2, 3}, new int[][]{new int[]{1, 1.plus(1)}, new int[]
{2.plus(1), 4}}, new String[] {'hello', 'world'}

      More examples can be found at
https://github.com/danielsun1106/groovy-parser/blob/master/src/test/resources/core/Array_01x.groovy

       If you want to give it a try, follow the steps to launch groovy
console to run your code:

$ git clone https://github.com/danielsun1106/groovy-parser.git
$ cd groovy-parser
$ ./gradlew groovyConsole


Cheers,
Daniel.Sun



--
View this message in context: http://groovy.329449.n5.nabble.com/Array-initializer-of-Java-style-for-Groovy-3-tp5737955.html
Sent from the Groovy Dev mailing list archive at Nabble.com.



________________________________
If you reply to this email, your message will be added to the discussion below:
http://groovy.329449.n5.nabble.com/Array-initializer-of-Java-style-for-Groovy-3-tp5737955p5737956.html
To unsubscribe from Array initializer of Java style for Groovy 3, click here<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=5737955&code=cmVhbGJsdWVzdW5AaG90bWFpbC5jb218NTczNzk1NXwxMTQ2MjE4MjI1>.
NAML<http://groovy.329449.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




--
View this message in context: http://groovy.329449.n5.nabble.com/Array-initializer-of-Java-style-for-Groovy-3-tp5737955p5737957.html
Sent from the Groovy Dev mailing list archive at Nabble.com.
Mime
View raw message