blob: e1f1d0dc908fb887eb1c92fe26a19e18d2a718e0 [file] [log] [blame]
Lev Walkind357f3d2017-08-10 17:40:37 -07001
2-- OK: Everything is fine
3
4-- iso.org.dod.internet.private.enterprise (1.3.6.1.4.1)
5-- .spelio.software.asn1c.test (9363.1.5.1)
6-- .141
7
8ModuleComponentRelationConstraint
9 { iso org(3) dod(6) internet (1) private(4) enterprise(1)
10 spelio(9363) software(1) asn1c(5) test(1) 141 }
Lev Walkinf6853ce2017-08-11 00:50:27 -070011 DEFINITIONS AUTOMATIC TAGS ::=
Lev Walkind357f3d2017-08-10 17:40:37 -070012BEGIN
13
14 Frame ::= SEQUENCE {
15 ident FRAME-STRUCTURE.&id({FrameTypes}),
16 value FRAME-STRUCTURE.&Type({FrameTypes}{@.ident}),
17 ...
18 }
19
20 FRAME-STRUCTURE ::= CLASS {
21 &id ConstrainedInteger UNIQUE,
22 &Type
23 } WITH SYNTAX {&Type IDENTIFIED BY &id}
24
25 ConstrainedInteger ::= INTEGER (0..32767)
26
27 FrameTypes FRAME-STRUCTURE ::= {
28 { PrimitiveMessage IDENTIFIED BY primMessage } |
29 { ComplexMessage IDENTIFIED BY cplxMessage }
30 , ... }
31
32 PrimitiveMessage ::= SEQUENCE {}
33 ComplexMessage ::= SEQUENCE {}
34
35 primMessage INTEGER ::= 1
36 cplxMessage INTEGER ::= 2
37
38END