Scriptol

Scriptol is an object oriented programming language which makes use of XML as an internal data structure. Scriptol is designed to be easy to learn and for use in creating general-purpose scripts, dynamic webpages and standalone graphical applications. It is compatible with Xul and GTK.

The simpler scripts look as:

print "Hello World!"

Xml document are loaded of defined inside Scriptol source, and then, instances may be created. The original document or the instance are used to store and deliver data. Unlike classes, the xml structure may be changed at runtime.

Xml is expressed in light form in the source:

 xml demo
   element
     subelement1
       "data1"
     /
     subelement2 attrib = "value" 
        "data2"
     / 
   /element     
 /xml


Creating an instance:
demo demoinstance


Scriptol is also a powerful classical procedural language. The if control structure is extended in a such manner:

if x
= 10 : print "equal 10"
< 5 :  print "less than 5"
> 1000: print "more than 1000"
else
  print "other range"
/if


Site of the language and the interpreter: http://www.scriptol.net

Site of free compilers: http://www.scriptol.com

last edited (January 13, 2006) by scriptolphp

Back to the page