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

ParseError when compile the ASN1 schema file #176

Open
CAJCAJ opened this issue Feb 13, 2024 · 0 comments
Open

ParseError when compile the ASN1 schema file #176

CAJCAJ opened this issue Feb 13, 2024 · 0 comments

Comments

@CAJCAJ
Copy link

CAJCAJ commented Feb 13, 2024

I encounter an issue:
asn1tools.parser.ParseError: Invalid ASN.1 syntax at line 4843, column 31: 'Reg-AdvisorySpeed DSRC>!<.REG-EXT-ID-AND-TYPE ::= { ... }': Expected ::=.

This line in my file is:
Reg-AdvisorySpeed DSRC.REG-EXT-ID-AND-TYPE ::= { ... }

I believe the issue is when I called the DSRC, which is another module in the same file, like this:

DSRC DEFINITIONS AUTOMATIC TAGS::=
BEGIN
REG-EXT-ID-AND-TYPE ::= CLASS {
&id RegionId UNIQUE,
&Type
} WITH SYNTAX {&Type IDENTIFIED BY &id}
END

Why it just cannot track the module name?

Actually it is a published standard asn1 file from SAE J2735 (https://www.sae.org/standards/content/j2735asn_201603/) if you are interested in looking into it.

Thanks!

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

1 participant