aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/examples/InfClass3.asn
diff options
context:
space:
mode:
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