asn1tools
asn1tools copied to clipboard
ParseError when compile the ASN1 schema file
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!