An ASN.1 file that I am working with defines the type "INTEGER8 ::= INTEGER (-128..127)". When this type us used, the parser (in function _parse_type_native) finds the native type "INTEGER" and then chokes on the "8" that is still left in the parser's input stream ("remaining textual definition, 8").
The issue is the definition of SYNT_RE_TYPE in utils.py, which needs to be adjusted so that the native type name also can not be followed by a digit for matching.
An ASN.1 file that I am working with defines the type "INTEGER8 ::= INTEGER (-128..127)". When this type us used, the parser (in function _parse_type_native) finds the native type "INTEGER" and then chokes on the "8" that is still left in the parser's input stream ("remaining textual definition, 8").
The issue is the definition of SYNT_RE_TYPE in utils.py, which needs to be adjusted so that the native type name also can not be followed by a digit for matching.
Minimal example: test.txt Patch for pycrate/pycrate_asn1c/utils.py utils.py.diff.txt