Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax error: token "WITH" #497

Open
EvgeniiMikheenko opened this issue Apr 16, 2024 · 1 comment
Open

Syntax error: token "WITH" #497

EvgeniiMikheenko opened this issue Apr 16, 2024 · 1 comment

Comments

@EvgeniiMikheenko
Copy link

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
Copy link

v0-e commented Apr 18, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants