ASN.1 types with a hyphen in the name are not supported
Steps to reproduce:
- Create an ASN.1 type with a hyphen in the name, like My-Type ::= INTEGER(0..100)
- Use the ASN.1 type as an interface parameter in a function
- Try to edit the function or build the system
What happens:
- When trying to edit the function, a window pops up and closes very fast
- When trying to build the system, the following error is reported:
InterfaceView.aadl:11:37: parsing Parameter, token ';' is expected, found token '-'
InterfaceView.aadl:10:01: parsing Features, list is empty
InterfaceView.aadl:43:38: parsing Package_Specification, Empty packages are not allowed
InterfaceView.aadl:58:39: parsing Parameter, token ';' is expected, found token '-'
InterfaceView.aadl:57:01: parsing Features, list is empty
InterfaceView.aadl:72:37: parsing Parameter, token ';' is expected, found token '-'
InterfaceView.aadl:71:01: parsing Features, list is empty
InterfaceView.aadl:114:37: parsing Package_Specification, Empty packages are not allowed
InterfaceView.aadl:128:39: parsing Parameter, token ';' is expected, found token '-'
InterfaceView.aadl:127:01: parsing Features, list is empty
InterfaceView.aadl:161:43: parsing Package_Specification, Empty packages are not allowed
What should happen:
- Valid ASN.1 type names should be allowed for use (proper translation to AADL compliant names should be provided)
- When trying to edit a function, an appropriate editor should be launched, unless there are other issues. If the editor cannot be launched, a clear, readable error message should be presented to the user.
- When trying to build the system, the system should build, unless there are other issues.
Edited by Maxime Perrotin