Scriptol is a scripting language with
object-oriented, xml-oriented,
extensible, universal, uses C++, PHP
or Java APIs, and XUL for graphical
user interface.
A Scriptol file must have the ".sol" extension,
It is not fully on the go.
Here is basic skeleton:
int main()
... statements ...
return 0
main() ...starting the program
Scriptol code embedded inside html:
<?sol
...code...
?>
Features as http://www.scriptol.net/manual.html:
Scriptol may be defined as:
object-oriented.
- XML oriented (XML document may be a data-structure in source).
- universal: usable for scripting, dynamic web pages, building executables.
- natural: types of variables come from sciences and not from hardware: number, text, real...
- XML-like styled syntax.
- featuring new and very powerful control structures.
- list processing on arrays and dictionaries.
- PHP, C++ and Java compatible.
It is a clear language thanks to:
- a simple syntax.
- statements ended by end of lines.
- a same operator for ranges, slices, splices...
- a similar syntax for all structures.
Case-sensitivy:
- You cannot use any word both in lowercase and uppercase.
- Keyword must be lowercase.
- Identifiers are case-sensitive, but you can't redefine an identifier with different case.
Identifiers:
- size up to 255 chars or less according to the target language.
- lower or upper case.
- start with a letter, continue with letters, underscores or digits.
Numbers:
- int are signed 32 bits. (as "int" in C).
- naturals are 64 bits unsigned.
- reals, numbers are 64 bits floating-point. ("double" in C)
Cast:
- casting by use of methods.
Garbage-collector:
- automatical memory management, no need to allocate and free memory.
Object-oriented:
- primitives are objects and have methods.
- literals are objects and have methods.
- single-inheritance.
- overloading of methods (in Scriptol C++ only for now).
- constructors. No destructors.
XML oriented:
- XML documents may be included into Scriptol sources. XML is a data structure of the language.
- instances of XML documents.