Compound Types
Lists
Scriptol uses two types of dynamic list (the size of which may vary during
the processing):
- Arrays: there are lists of any kind of elements, with integer indices and
that can be accessed by their position inside the list.
- Dictionaries: there are associative lists, of any kind of elements, that
are indiced by texts.
All lists may be used as
- fifo (first input, first output) files,
- lifo (last input, first output) files,
- as indexed lists.
or as stacks.
Tuples
A tuple is not an object nor an expression, but a construct of the language.
A tuple is a list of variables separated by commas and not enclosed by anything.
A tuple of expressions may follow the return instruction. A tuple of variables
may be assigned a call of function providing the function returns a tuple,
with the same number of elements.
It may be assigned another tuple with same number of elements, or a single
expression that will be assigned each variable of the tuple.
Classes
Scriptol is object-oriented. It implements simple inheritance, static members, overriding of methods.
XML document
This is a data structure unique to Scriptol.