A statement is one of three kinds:
The language has the following assignment operators:
simple assignment |
= |
multiply and assign |
*= |
divide and assign |
/= |
calculate modulo and assign |
%= |
add and assign |
+= |
subtract and assign |
-= |
bitshift left and assign |
<<= |
bitshift right and assign |
>>= |
bitwise AND and assign |
&= |
bitwise XOR and assign |
^= |
bitwise OR and assign |
|= |
An event is raised by using the keyword
raise
, followed by the event name, e. g.
raise incoming_call
. If the event is an interface event, the name of the interface must be prepended, using dot notation.
Example:
interface intrfc:
out event ev
Usage in the statechart:
always / raise intrfc.ev
See also sections "Declaring events" and "Raising and processing an event".
An operation is called similarly to other programming languages using the operation name and passing actual parameter values in parenthesis and separated by comma. The parameters can be expressions. The parenthesis can be omitted when no parameters are passed. Please see section "Operations" for an example.