aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/test/asn1_SUITE_data/Prim.asn1
blob: 17a5d3490ace5ee3b70eac3b3b21f24e70b7c2af (plain) (blame)
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
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)}

  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) } )

END