asn1c icon indicating copy to clipboard operation
asn1c copied to clipboard

ASN.1 from 3GPP 38.331 Rel.16 standards don't compile

Open jbipre2 opened this issue 4 years ago • 1 comments

Good day to you all,

Parsing ASN.1 specs extracted from 3GPP 38.331 release 16 standards always throw this error (at different lines in different versions of the spec):

ASN.1 grammar parse error near 38331-g31-asn1.txt:6545 (token "[["): syntax error, unexpected TOK_VBracketLeft

The identical ASN.1 spec. compiled successfully in https://asn1.io/asn1playground/ However, asn1c does compile 3GPP 38.331 release 15 ASN.1 specs. without this error. Any hints on how to fix this issue?

All the best James

38331-g31-asn1.txt asn1playground.txt

jbipre2 avatar Feb 11 '21 10:02 jbipre2

the current version of ref 16 seems to be 38331-gf1 (3gpp/latest/Rel-16/38_series/) Today I could compile

  • 38331-fo1
  • 38331-gf1
  • 38331-h70 (Refs 15-17) with mouse07410's version: https://github.com/mouse07410/asn1c

Ref 18 (i00) raises syntax errors though:

ASN.1 grammar parse error near 38331-i00.asn1:4887 (token "}"): syntax error
Cannot parse "38331-i00.asn1"

fabpiaf avatar Mar 28 '24 10:03 fabpiaf