- create_case(selector, cases, default=None)#
Return the expression tree for the case operator.
- Parameters:
- selector
EX
Expression tree corresponding to the selector.
- cases
List
[Tuple
[EX
,EX
]] Pattern/values expression trees.
- default: EX, default:None
Default value.
- selector
- Returns:
ET
Notes
This is an interface change with respect to the SCADE Creation Library. The pairs βpatternβ/βvalueβ are now embedded in a list of tuples, and the default value is optional.