Description of the Scriptol programming language
Scriptol is a modern programming language, designed to be simple and
easy to learn, allowing new users ready to program in some hours. The
programming time is largely decreased.
Free scriptol interpreter and compilers are currently available for Windows and Unix.
Features of Scriptol
Scriptol is :
- Objectively modern: it has been designed according to seven rules for simplicity and, safety, and doesn't carry ancient obsolete syntax.
- Object-oriented, even simple scalar as "int", or literal as "123", have methods.
- Goal oriented: Set a goal and the processing to achieve it, and the maximum time allowed.
- XML oriented. XML may be embedded in Scriptol source code: it is compiled to an associative array (multi-levels). Associative arrays may be directly loaded and saved in XML files.
- Reactive programming oriented. Define results like in a spreadsheet, cells are replaced by variables.
- Typed: the compiler can check for content and type of variables, that is not possible with usually untyped scripting languages.
- Natural: types are not based on computer's hardware but on human's
concepts or mathematical sets: these are text, number,
integer, real, etc...
- Powerful and safe: new control structures has been introduced with
- composite if, that is both an if statement and a switch case with any kind of values.
- while let, that protects from infinite loop.
- for .. in array, or for .. in a..b, the simplest way to express ranges.
- Simple: no symbols as -> or ::, just a dot in any case.
Adding 1 to x is just written: x + 1, and not x += 1.
No memory management required, executables have a garbage collector.
Why use Scriptol?
- Embedding natural and safe code inside HTML pages.
- Writing easily and quickly scripts, thanks to its high-level syntax.
- Prototyping, test quickly your program with the interpreter before to build a native executable.
- Building applications and Web applications: Scriptol may be integrated into rapid application development tools and can use cross-platform GUI libraries such as GTK, HTML 5.
- Processing XML documents such as makefile or configuration files.
- Program the intelligence of robots and simulations thanks to its high levels features such as goals, reactive formulas.
How to use Scriptol
You may open the console and type solj or solp or solc to view the options.
Using scriptol in a console
You can also configure a code editor to launch scriptol programs.
Innovations of Scriptol replicated in other languages
Many features of Scriptol has been taken over by newer languages, which so helped to improve programming.
- A global variable name can not be reused in a local block in Scriptol. Dart (2011) triggers a warning in this case.
- Joint use of dynamic and statically typed variable. Now also in Dart, TypeScript, Julia and all new languages.
- switch case using different kings of tests. This is reflected in Go.
- The removal of parenthsesis around conditions with if or for, is taken over by Go.
- Unlike Python, which represents an interval by ":", scriptol uses the classic typography: "..".
This is now the case for all new languages, for example, Rust writes for i in 0.. n exactly like Scriptol.
- The Scala language integrates XML in the source like scriptol.
The Scriptol to PHP and Scriptol to C++ compilers are under the Mozilla
The interpreter and compilers provided on scriptol.com and scriptol.fr are free even for building commercial programs. Anyone may write a compiler for the langage.
The creator of Scriptol
Denis G. Sureau.