Basic blocks of Swan to combine
flows.
An expression (expr) is built from valid identifiers representing flows,
constant, sensor and combine pre-defined operators and more complex operators. The
following sections list the operators, each of them having its own reference card
explaining how to use it in an expression.
Combinational Operations
Binary Arithmetic | +, -,*, /,mod |
Unary arithmetic | - |
Numeric cast | :> |
Boolean | and, or, xor,not |
Relational | <>,=, <, <=,>, >= |
Bitwise | land, lor, lxor, lnot, lsl, lsr |
Selection | if/then/else, case |