Share

The ASN.1 Compiler

Subscribe

Parse failure.

  1. 2009-10-12 06:53:10 UTC

    Hi, all,

    I'm tring to parse a ranap.asn and got the following parse errors: ASN.1 grammar parse error near line 1002 (token "id-Cause"): parse error, unexpected TOK_identifier, expecting '}' Cannot parse "ranap.asn"

    And the lines around 1002 are : Iu-ReleaseCommandIEs RANAP-PROTOCOL-IES ::= { { ID id-Cause CRITICALITY ignore TYPE Cause PRESENCE mandatory }, ... }

    Can sombody tell me why this happens? Does this mean this syntax is not supported?

    Thanks very much.

  2. 2009-10-13 19:36:21 UTC

    asn1c currently cannot handle inline type definitions. Here is a blurp from a previous reply that I gave. You can also find another example of this when I replied to andymart:

    I think asn1c is incorrect here. You are using inlined typing for the object set. If you did something like:

    myType S1AP-PROTOCOL-IES ::= { ID id-SAEBearerInformationListItem CRITICALITY ignore TYPE SAEBearerInformationListItem PRESENCE mandatory }

    SAEBearerInformationListIEs S1AP-PROTOCOL-IES ::= { myType, ... }

  3. 2009-10-14 00:45:14 UTC

    Thans for your reply. Is there any method to work around this problem such as modify the asn.1 file to some equivalent syntax?

  4. 2009-10-14 12:41:53 UTC

    Yes, that's what I was saying...

    For example, Instead of

    SAEBearerInformationListIEs S1AP-PROTOCOL-IES = {{ ID id-SAEBearerInformationListItem CRITICALITY ignore TYPE SAEBearerInformationListItem PRESENCE mandatory }}

    you have:

    myType S1AP-PROTOCOL-IES ::= { ID id-SAEBearerInformationListItem CRITICALITY ignore TYPE SAEBearerInformationListItem PRESENCE mandatory }

    SAEBearerInformationListIEs S1AP-PROTOCOL-IES ::= { myType}

< Previous | 1 | Next >

Add a Reply

This forum does not allow anonymous participation.

Log in to add a reply. Not registered? Create an account to participate and receive email updates when replies are posted to this topic.