Scripts, scriptets, etc...

Scriptol is an universal programming system, that can produce dynamic web pages, scripts, applications and scriptets.

Script

A script is a batch file, a list of commands. It may hold functions or not, and any Scriptol data structure.
This is a one-file program. Other files may be included into a script, but these file can't be scripts, they can hold functions and data, not commands.

Sample of script print "Hello"
Displays: > Hello

Application

An application is a source or a set of sources that hold a main() function and other functions, classes, etc...
Inside an application, only one main() function must exist, and it is the starting point of the program, all other functions are called directly or indirectly from the main function.

Sample of application int main()
   print
"Hello"
return 0
Displays: > Hello

Web page (Scriptol PHP only)

A dynamic web page is an html file that holds embedded scriptol code.
The compiler converts the code into PHP, il will be processed server-side, providing the server supports PHP.

Sample of code embedded into a web page:

<html>
  <head>  </head>
<body>

<?sol
print
"Hello"
?>

</body>
</html>

Scriptet

A scriptet is a program that can be run standalone, or integrated into another program.
The structure of a scriptet is that of an application. No special command or directive is required. The compiler, when it encounters a scriptet included into another program, ignores the main() function of the scriptet.
Some dependancy rules have to be applied: functions of two scriptets can't call one the other.