Hi,
    I had tried the following piece of code in OSS compiler to find that it does not accept the same as a valid ASN.1 spec. I wanted to understand if there is something wrong about this ASN.1 spec. Pls find the ASN.1 file used for the above purpose attached. The problem is that when the _expression_ bitString-params.&Type is used explicitly within a class definition (as in line no 22), the compiler reports that "expecting OPTIONAL, DEFAULT, ',', '}', or a Type but found valuereference or identifier". But when the same is put as a type reference or a parameterized type (as in the use of TypeOf in line 23) the compiler reports no such error. In line 23 there is another strange behaviour that the ValueSet given as the DEFAULT value is for some reason treated as a choice value. At the closing braces of this value set the compiler reports - "permature termination of CHOICE value". Kindly advise, as to whether the usage of the notations (TypeFromObject and ValueFromObject) are in accordance with the ASN.1 language standards. Thanking you.
 
Yours Sincerely
Ramaswamy

"Any intelligent fool can make things bigger, more complex, and more violent. It takes a touch of genius -- and a lot of courage -- to move in the opposite direction." - Albert Einstein

Attachment: test5.asn
Description: Binary data

Reply via email to