1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
Prim DEFINITIONS IMPLICIT TAGS ::=
BEGIN
Bool ::= BOOLEAN
BoolCon ::= [20] BOOLEAN
BoolPri ::= [PRIVATE 21] BOOLEAN
BoolApp ::= [APPLICATION 22] BOOLEAN
BoolExpCon ::= [30] EXPLICIT BOOLEAN
BoolExpPri ::= [PRIVATE 31] EXPLICIT BOOLEAN
BoolExpApp ::= [APPLICATION 32] EXPLICIT BOOLEAN
Int ::= INTEGER
IntCon ::= [40] INTEGER
IntPri ::= [PRIVATE 41] INTEGER
IntApp ::= [APPLICATION 42] INTEGER
IntExpCon ::= [50] EXPLICIT INTEGER
IntExpPri ::= [PRIVATE 51] EXPLICIT INTEGER
IntExpApp ::= [APPLICATION 52] EXPLICIT INTEGER
IntEnum ::= INTEGER {first(1),last(31)}
Enum ::= ENUMERATED {monday(1),tuesday(2),wednesday(3),thursday(4),
friday(5),saturday(6),sunday(7)}
SingleEnumVal ::= ENUMERATED {true}
SingleEnumValExt ::= ENUMERATED {true, ...}
ObjId ::= OBJECT IDENTIFIER
RelOid ::= RELATIVE-OID
Null ::= NULL
-- Test that REAL numbers can co-exist with other data types.
App-X-Real ::= REAL (WITH COMPONENTS {
mantissa (-16777215..16777215),
base (2),
exponent (-125..128) } )
Seq ::= SEQUENCE {
n Null,
i1 INTEGER (0..63),
e1 SingleEnumVal,
i2 INTEGER (0..63),
e2 SingleEnumVal,
i3 INTEGER (0..63),
b Bool,
i4 INTEGER (0..63)
}
END
|