vlm / asn1c

The ASN.1 Compiler
http://lionet.info/asn1c/
BSD 2-Clause "Simplified" License
1.03k stars 551 forks source link

Syntax error: token "WITH" #497

Open EvgeniiMikheenko opened 4 months ago

EvgeniiMikheenko commented 4 months ago

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?

v0-e commented 4 months ago

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