Closed FredLien closed 5 years ago
Sorry, I find it's duplicate with "Single value constraint handled as a list #14." Please ignore above information. Thanks.
I think below are some statements of ASN.1 the current version do not handle - So a user need to replicate the IMPORT by copy and paste. IMPORTS abc-xyz FROM Top-Component and
Network-Device ::= SEQUENCE {
port-num INTEGER (0 .. 255 | 10000 ), <------------- this case
port-lane INTEGER ( 0 | 1 | 2 | 4 ),
port-speed INTEGER ( 0 | 1000 | 10000 | 250000 ),
...
}
at times there spec which do this, but the patch does not seem to work on it.
This is now fixed on master.
Hi,
I have recently used asn1ate to translate ASN.1 file to python code. The case of following cannot correctly generate code. I paste the patch code to solve this. FYI
ASN.1
Regards, FredLien