翻訳と辞書
Words near each other
・ PNS Zulfiquar (251)
・ PNSC
・ PNT
・ PNT Singing Idol
・ PNTC Colleges
・ PNTL
・ PNTM
・ PNU
・ PNU-120,596
・ PNU-142633
・ PNU-181731
・ PNU-22394
・ PNU-282,987
・ PNU-99,194
・ Pnuma Trio
Pnuts
・ PNV
・ PNW
・ PNW Wrestling Extravaganza
・ PNX
・ PNY
・ PNY Technologies
・ Pnyx
・ Pnětluky
・ Po
・ Po (clothing)
・ Po (Kung Fu Panda)
・ Po (lateral thinking)
・ Po (river)
・ Po Aung


Dictionary Lists
翻訳と辞書 辞書検索 [ 開発暫定版 ]
スポンサード リンク

Pnuts : ウィキペディア英語版
Pnuts

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.
== Relationship to Java ==

Because Java and Pnuts share the same type system, Java code can easily invoke or define Pnuts functions. Likewise, Pnuts code can easily manipulate Java objects. Pnuts code can even define Java classes. Because Pnuts compiles to Java byte codes, these classes can be used by Java just like any other class. A class written in Pnuts can even later be replaced by a class written in Java with no other code changes.
Pnuts syntax can look very similar to Java. The following is a code sample written in Java that is also a valid Pnuts script:

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 = ("Austria", "Brazil" )
sort(countries)
for (country : countries) println("Hello " + country)


抄文引用元・出典: フリー百科事典『 ウィキペディア(Wikipedia)
ウィキペディアで「Pnuts」の詳細全文を読む



スポンサード リンク
翻訳と辞書 : 翻訳のためのインターネットリソース

Copyright(C) kotoba.ne.jp 1997-2016. All Rights Reserved.