Rice Lake iRite IDE User Manual
Page 20

IDENTIFIER
:
stored-option
constant-option
type
16
920i
Programming Reference
Figure 3-3. Identifier Syntax
type-declaration
variable-declaration
procedure-declaration
function-declaration
handler-declaration
optional-initial-value
;
Figure 3-4. Type Declaration Syntax
Enumeration Type Definitions
An enumeration type definition defines a finite ordered set of values. Each value, represented by an identifier,
must be unique within the scope in which the type definition appears.
'('
;
IDENTIFIER
|
;
Examples:
type StopLightColors is (Green, Yellow, Red);
type BatchStates is (NotStarted, OpenFeedGate, CloseGate, WaitforSS, PrintTicket, AllDone);
Record Type Definitions
A record type definition describes the structure and layout of a record type. Each field declaration describes a
named component of the record type. Each component name must be unique within the scope of the record; no
two components can have the same name. Enumeration, record and array type definitions are not allowed as the
type of a component: only previously defined user- or system-defined type names are allowed.
record
end record
;
|
;
IDENTIFIER ':'
;