Pnuts
≈ 1 min read
Names in other languages
No names in other languages are held for this entry yet.
Article bodies are English and are not machine-translated. A name in another language is not a translation of the article.
Pnuts is a dynamic scripting language for the Java platform. It is designed to be used in a dual language system with the Java programming language. The goals of the Pnuts project are to provide a small, fast scripting language that has tight integration with the Java language. Pnuts uses syntax that is simple and friendly to Java developers, while also being very expressive.
Pnuts is a dynamic scripting language for the Java platform. It is designed to be used in a dual language system with the Java programming language. The goals of the Pnuts project are to provide a small, fast scripting language that has tight integration with the Java language. Pnuts uses syntax that is simple and friendly to Java developers, while also being very expressive. import java.util.ArrayList; import java.util.List; List countries = new ArrayList (); countries.add("Canada"); countries.add("Austria"); countries.add("Brazil"); Collections.sort(countries); for (String country : countries) System.out.println("Hello " + country); Alternatively, the expressiveness of Pnuts could be utilized: use("pnuts.lib") // Standard module that makes sort, println and other functions available. countries = ["Canada", "Austria", "Brazil"] sort(countries) for (country : countries) println("Hello " + country)
Text derived from https://en.wikipedia.org/w/index.php?oldid=956140378 under CC BY-SA 4.0; modifications have been made.