create_case(selector, cases, default=None)#

Return the expression tree for the case operator.

Parameters:
selectorEX

Expression tree corresponding to the selector.

casesList[Tuple[EX, EX]]

Pattern/values expression trees.

default: EX, default:None

Default value.

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.