Description
Subrange types define a contiguous subset of the values of an ordinal type. This ordinal type is known as the subrange type's host type and the values of a subrange type have the same type as its host type.
Example
Here are some examples of subrange types:
-100..+100
true..true
'a'..'z'
Syntax
The syntax for defining new subrange types is give below:
(NOTE: for clarity some parts of the syntax are omitted, see Irie Pascal Grammar for the full syntax):
subrange-type = constant '..' constant