asn1c icon indicating copy to clipboard operation
asn1c copied to clipboard

Cannot Handle Extension Group In 36331-g30.asn1

Open CousinArthur opened this issue 4 years ago • 1 comments

When trying to parse 36331-g30.asn1 using the following command line parameters: asn1c -pdu=auto -fcompound-names 36331-g30.asn1

I get this error: ASN.1 grammar parse error near 36331-g30.asn1:2886 (token "[["): syntax error, unexpected TOK_VBracketLeft Cannot parse "36331-g30.asn1"

The same parsing error is mentioned in 348 and 317. I've tried both the velichkov_s1ap_plus_option_group branch from brchiu's fork and mouse07410's fork, as have been recommended previously. On mouse07410's fork I still get the parsing error without generating any files. On brchiu's fork, the files are generated but then when I try to use them to generate a library for my own application, I get the same parsing error there as well.

Edit: A difference in the .asn1 file definition structure in the newer versions might be that the extension addition groups that fail to parse are now within a CHOICE statement. They were perhaps not within a CHOICE statement in the versions that brchiu and mouse07410 previously implemented on their forks.

Thank you!

CousinArthur avatar Feb 22 '21 16:02 CousinArthur