~ubuntu-branches/ubuntu/dapper/asn1c/dapper

« back to all changes in this revision

Viewing changes to tests/70-xer-test-OK.asn1

  • Committer: Bazaar Package Importer
  • Author(s): W. Borgert
  • Date: 2005-05-28 12:36:42 UTC
  • Revision ID: james.westby@ubuntu.com-20050528123642-3h6kstws5u0xcovl
Tags: upstream-0.9.14
ImportĀ upstreamĀ versionĀ 0.9.14

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
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
-- .70
 
7
 
 
8
ModuleTestXERDecoding
 
9
        { iso org(3) dod(6) internet(1) private(4) enterprise(1)
 
10
                spelio(9363) software(1) asn1c(5) test(1) 70 }
 
11
        DEFINITIONS AUTOMATIC TAGS ::=
 
12
BEGIN
 
13
        /*
 
14
         * This module defines several types for the XER decoder testing
 
15
         * environment (defined elsewhere).
 
16
         */
 
17
 
 
18
        PDU ::= CHOICE {
 
19
                sequence                Sequence,
 
20
                set                     Set,
 
21
                setOf                   SetOf,
 
22
                sequenceOf              SequenceOf,
 
23
                extensibleSet           ExtensibleSet,
 
24
                extensibleSequence      ExtensibleSequence,
 
25
                setOfNULL               SetOfNULL,
 
26
                setOfEnums              SetOfEnums,
 
27
                seqOfZuka               SeqOfZuka,
 
28
                ...
 
29
        }
 
30
 
 
31
        Sequence ::= SEQUENCE {
 
32
                integer         INTEGER,
 
33
                sequence        Sequence   OPTIONAL,    -- backreference
 
34
                bits            BIT STRING OPTIONAL,
 
35
                string          UTF8String
 
36
        }
 
37
 
 
38
        Set ::= SET {
 
39
                roid            RELATIVE-OID,
 
40
                opaque          OCTET STRING    OPTIONAL
 
41
        }
 
42
 
 
43
        ExtensibleSet ::= SET {
 
44
                string  UTF8String OPTIONAL,
 
45
                ...,
 
46
                enum    ENUMERATED { b, a }
 
47
        }
 
48
 
 
49
        ExtensibleSequence ::= SEQUENCE {
 
50
                string  UTF8String OPTIONAL,
 
51
                ...,
 
52
                integer INTEGER OPTIONAL
 
53
        }
 
54
 
 
55
        SetOf ::= SET OF REAL
 
56
        SetOfNULL ::= SET OF NULL
 
57
        SetOfEnums ::= SET OF ENUMERATED { one, oneMore }
 
58
        SequenceOf ::= SEQUENCE OF id INTEGER { one(1), two(2) }
 
59
        SeqOfZuka ::= SEQUENCE OF zuka NULL
 
60
 
 
61
END