-
Notifications
You must be signed in to change notification settings - Fork 40
Require DP constants and enums in dictionary #729
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
base: main
Are you sure you want to change the base?
Conversation
/** The set of type symbols used by the dictionary */ | ||
dictionaryTypeSymbolSet: Set[Symbol] = Set() | ||
/** The set of alias type symbols used by the dictionary */ | ||
dictionaryAliasSymbolSet: Set[Symbol] = Set(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should call this TypeSymbolSet instead of AliasSymbolSet. The type definitions happen to be aliases, but other type definitions are possible, and we may want to add them later.
"FwOpcodeType", | ||
"FwP 8000 acketDescriptorType", | ||
"FwTlmPacketizeIdType" | ||
val impliedAliasTypeUses = List( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should call this impliedTypeUses.
) | ||
}) | ||
a <- checkIntegerType(a.dictionaryAliasSymbolSet, "this F Prime framework type must be an alias of an integer type") | ||
a <- checkIntegerType(a.dictionaryConstantSymbolSet, "this F Prime framework type must be a constant with a value of integer type") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
a <- checkIntegerType(a.dictionaryConstantSymbolSet, "this F Prime framework type must be a constant with a value of integer type") | |
a <- checkIntegerType(a.dictionaryConstantSymbolSet, "this F Prime constant must have an integer type") |
Require that the following types are defined and output them to the dictionary:
Aliases
Enums
Constants
Closes #719.
Spec updates are done in nasa/fprime#3692.