1
Enum DEFINITIONS IMPLICIT TAGS ::=
6
-- Use an enumerated type to model the values of a variable
7
-- with three or more states.
8
-- Assign values starting with zero if their only
9
-- constraint is distinctness.
12
DayOfTheWeek ::= ENUMERATED {sunday(0), monday(1), tuesday(2),
13
wednesday(3), thursday(4), friday(5), saturday(6)}
15
firstDay DayOfTheWeek ::= sunday
18
-- Use an enumerated type to model the values of a variable that
19
-- has just two states now,
20
-- but that may have additional states in a future version of the protocol.
23
MaritalStatus ::= ENUMERATED {single(0), married(1)}
27
MaritalStatus2 ::= ENUMERATED {single(0), married(1), widowed(2)}
30
E1 ::= ENUMERATED {blue,green,yellow}
32
E2 ::= ENUMERATED {monday(0),thuesday(1),wednesday(2),thursday(3),friday(4)}
34
E3 ::= ENUMERATED {monday,thuesday(0)}
37
e1 ENUMERATED {hej,hopp},
38
e2 [2] EXPLICIT ENUMERATED {san,sa}
42
--enumWrongVal E3 ::= sunday