Subrange types


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.


Here are some examples of subrange types:



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