|
Programming Languages
|
| Scripting language, syntax and structure from C, C++, Java, JavaScript. In classification, resides between Java and JavaScript. |
package tests; class tclass_base { var value; function tclass_base ...
| package tests; class tclass_base { var value; function tclass_base(v) { value = v; } function toString() { return string(value); } } class tclass: ... |
plain text version:tests.csp 1| package tests; 2| 3| class ...
| 1| package tests; 2| 3| class tclass_base 4| { 5| var value; 6| function tclass_base(v) { value = v; } 7| function toString() { return string(value); ... |
plain text version:threads.csp 1| package threads; 2| //| 3 ...
| 1| package threads; 2| //| 3| //| test of 11 threads running simultaneously 4| //| 10 of them will cause garbage collection at one time 5| //| and one will ... |
package threads; //| //| test of 11 threads running simultaneously ...
| package threads; //| //| test of 11 threads running simultaneously //| 10 of them will cause garbage collection at one time //| and one will run constantly, ... |
plain text version:hellouniverse.csp 1| package hellouniverse; 2 ...
| 1| package hellouniverse; 2| 3| class hello 4| { 5| var greeting; // instance-level variable aka field 6| static var said = 0; // class-level (static) ... |
package hellouniverse; class hello { var greeting; // instance ...
| package hellouniverse; class hello { var greeting; // instance-level variable aka field static var said = 0; // class-level (static) variable function hello ... |
| C-SMILE. Version:1.0. Runtime schema: compiler -> bytecode -> bytecode interpreter / VM. Syntax: similar to post-C family of languages (C++, Java, ... |
plain text version:helloworld.csp 1| package helloworld; 2| 3 ...
| plain text version:helloworld.csp. 1| package helloworld; 2| 3| function main() 4| { 5| out.printf("Hello world!"); 6| } |
package helloworld; function main() { out.printf("Hello world!"); }
| package helloworld; function main() { out.printf("Hello world!"); } |
Copyright © 2002-2006, websy.net All Rights Reserved.