Next: Declarative Statements, Previous: Events, Up: Interfaces [Contents][Index]
The behavior section of an interface defines the protocol of the
interface. The protocol prescribes the causal relation between events
and state. The behavior is akin to a state machine.
behavior ::= "behavior" "{" behavior-statement* "}"
behavior-statement
::= type | variable | function | declarative-statement