aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/examples/InfClass3.asn
diff options
context:
space:
mode:
authorErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
committerErlang/OTP <[email protected]>2009-11-20 14:54:40 +0000
commit84adefa331c4159d432d22840663c38f155cd4c1 (patch)
treebff9a9c66adda4df2106dfd0e5c053ab182a12bd /lib/asn1/examples/InfClass3.asn
downloadotp-84adefa331c4159d432d22840663c38f155cd4c1.tar.gz
otp-84adefa331c4159d432d22840663c38f155cd4c1.tar.bz2
otp-84adefa331c4159d432d22840663c38f155cd4c1.zip
The R13B03 release.OTP_R13B03
Diffstat (limited to 'lib/asn1/examples/InfClass3.asn')
-rw-r--r--lib/asn1/examples/InfClass3.asn36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/asn1/examples/InfClass3.asn b/lib/asn1/examples/InfClass3.asn
new file mode 100644
index 0000000000..6c1fd0f430
--- /dev/null
+++ b/lib/asn1/examples/InfClass3.asn
@@ -0,0 +1,36 @@
+InfClass3 DEFINITIONS ::=
+BEGIN
+
+FUNCTION ::= CLASS {
+ &ArgumentType,
+ &ResultType DEFAULT NULL,
+ &code INTEGER
+ }
+
+ObjSet1 FUNCTION ::= { ... }
+
+object1 FUNCTION ::= {
+ &ArgumentType INTEGER,
+ &ResultType INTEGER,
+ &code 3
+ }
+
+object2 FUNCTION ::= {
+ &ArgumentType INTEGER,
+ &ResultType INTEGER,
+ &code 2
+ }
+
+
+ObjSet2 FUNCTION ::= {
+ object1 | object2 }
+
+ParamType{FUNCTION:object} ::=SEQUENCE
+{
+ val1 INTEGER,
+ val2 object.&ArgumentType
+ }
+
+parTypVal{FUNCTION:object2} ParamType ::= {1,2}
+
+END