projects
/
asn2quickder
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Fix restricted integer type. Now works all the way through codegen.
[asn2quickder]
/
testdata
/
builtin_types.asn
1
TEST DEFINITIONS ::=
2
BEGIN
3
-- Simple scalar types
4
Bool ::= BOOLEAN
5
Null ::= NULL
6
Int ::= INTEGER
7
Real ::= REAL
8
9
RestrictedInteger ::= INTEGER {
10
v1(1),
11
v2(2)
12
}
13
14
-- Enumerated types
15
BitString ::= BIT STRING {
16
a(1),
17
b(2)
18
}
19
20
Enumerated ::= ENUMERATED {
21
a(1),
22
b(2),
23
c(3)
24
}
25
26
-- Constructed types
27
Choice ::= CHOICE {
28
a INTEGER,
29
b BOOLEAN
30
}
31
32
Sequence ::= SEQUENCE {
33
a INTEGER,
34
b BOOLEAN
35
}
36
37
Set ::= SET {
38
a INTEGER,
39
b BOOLEAN
40
}
41
42
-- Collection types
43
SequenceOf ::= SEQUENCE OF INTEGER
44
SetOf ::= SET OF INTEGER
45
END