asn1c icon indicating copy to clipboard operation
asn1c copied to clipboard

Syntax error: token "WITH"

Open EvgeniiMikheenko opened this issue 10 months ago • 1 comments

Hello, trying to build c header by OER asn with latest asn1c version and get the error:

ASN.1 grammar parse error near ../asn/pki-v2.2.1/sec/EtsiTs103097ExtensionModule.asn:11 (token "WITH"): syntax error, unexpected TOK_WITH, expecting ';' Cannot parse "../asn/pki-v2.2.1/sec/EtsiTs103097ExtensionModule.asn"

Asn file: https://forge.etsi.org/rep/ITS/asn1/sec_ts103097/-/blob/release2/EtsiTs103097ExtensionModule.asn

Which version should I use to compile?

Upd: Get some clash issues

FATAL: ASN.1 expression "EXT-TYPE" at line 22 of module EtsiTs103097ExtensionModule clashes with expression "EXT-TYPE" at line 1402 of module Ieee1609Dot2BaseTypes (ieee_1609.2.1/ieee1609dot2/Ieee1609Dot2BaseTypes.asn). Rename or remove either instance to resolve the conflict in sec/EtsiTs103097ExtensionModule.asn

https://forge.etsi.org/rep/ITS/asn1/ieee1609.2/-/blob/ieee/Ieee1609Dot2BaseTypes.asn and https://forge.etsi.org/rep/ITS/asn1/sec_ts103097/-/blob/release2/EtsiTs103097ExtensionModule.asn

Are there any ways to resolve such compilation conflicts?

EvgeniiMikheenko avatar Apr 16 '24 11:04 EvgeniiMikheenko

I recommend you trying out this more active fork. It has support for WITH SUCCESSORS and WITH DESCENDANTS.

v0-e avatar Apr 18 '24 10:04 v0-e