Technical data
Compiler Directives
2-15
–expr Unary minus negates the expression. The
argument must be numeric.
+
expr No effect; the operand must be numeric.
~
expr Bitwise negation of the operand. The
argument must be integral.
expr* expr Multiply the two expressions together; the
operands must be numeric.
expr/ expr Divide the two expressions; the operands
must be numeric.
expr% expr Take the integer modulo of the expressions;
the operands must be integral.
expr+ expr Works on numeric types, strings, vectors,
matrices, and records as follows:
Numeric Types - Add the two expressions
together; the operands must be numeric.
Strings - The strings are concatenated.
Vectors - If the first argument is a vector and
the second is a scalar, it adds the scalar to the
vector.
Matrices - If the first argument is a matrix
and the second is a vector of the same
column-width as the matrix, it adds the
vector as another row in the matrix.
Records - If the first argument is a record, it
adds the second argument as a parameter
identifier (with its current value).
Table 2-3: Target Language Expressions (Continued)
Expression Definition