The following table shows the set of simple types in GLIDER. Besides the simple Pascal types, GLIDER adds the CONT, RET and FREQ simple types.
REAL Real numbersThe user may also declare as new simple types:INTEGER Integer numbers
LONGINT Long integer numbers
BOOLEAN Logic values (TRUE or FALSE)
CHAR ASCII character set
WORD Non negative integers
BYTE Non negative integers in the range 0..255
STR80 ASCII character set
TEXT ASCII character set
CONT Continuous (for variables with derivatives in
differential equations). Must be used in VAR
only for a list of contiguous variables. See 4.7.
RET Retard. To be used in the RETARD procedure. Must be
used in VAR only. See 7.18.
FREQ For component type of arrays to be used as
multivariate frequency tables.
The syntax is:
<type identifier> = (<list of identifiers>);
Example:
Size = (Small, Medium, Large, Extralarge);
Medium
is then a constant of type Size. Order
relations hold, for instance, Small < Large
is true,
ord(Large)
has the value 3.
<type identifier> = <initial value> .. <final value>
Examples:
VAR CapLetter: 'A' .. 'Z'; LargeSizes: (Large .. ExtraLarge); TYPE Digits = 0 .. 9;