Tiscript
The tiscript programming language is an object-oriented programming language which extends JavaScript. It is notable both for its simplification of prototypes and the extension of classes as well as its use of either JSON or DyBASE for persistence. DyBASE for persistence closely resembles client-side persistent data (CSPD) in the Curl web-content language (not to be confused with cURL.)
Syntax
A simple tiscript using user-defined classes might be
class Message { function this( text ) { this._text = text; }, function say() { stdout.println( this.text ); } property text(v) { get { return this._text; } set { this._text = v; } } }
To create instance object of such a class you might do the following:
var msg = new Message("Hello World!"); msg.say(); // will print Hello World!
See also
External links
- TIScript home page
- tiscript at code.google
- comparison to JavaScript at codeproject.com
- DyBASE object oriented embedded database for languages with dynamic type checking (Rebol, python, TIScript)
|
If you like SEOmastering Site, you can support it by - BTC: bc1qppjcl3c2cyjazy6lepmrv3fh6ke9mxs7zpfky0 , TRC20 and more...