Basic elements
Expressions
Section titled “Expressions”Expressions return values after they have been calculated. They are composed of operators and operands. An operand can be a variable, a constant or a function call. Operators connect the operands.
b + a;(a + b - c) * SIN(a);COS(b) * COS(a);Assignments
Section titled “Assignments”Assignments consist of a variable to which the result of a calculation or expression is assigned using the assignment operator.
Var1 := Var2 * 15; (* Var1 <- (Var2 * 15) *)Bitwise access
Section titled “Bitwise access”For bitwise assignment the variable can be completed via ”.” and bit number.
Var1 := Var2.1;Documentation comments
Section titled “Documentation comments”(* Single line comment *)
(* Multiple line comment*)
// Another// Way// Of// CommentingOperators priorities
Section titled “Operators priorities”| Operator | Syntax | Priority |
|---|---|---|
| Brackets | () | Highest priority |
| Function call | Call(argument) | |
| Exponent | ** | |
| Negation | NOT | |
| Multiplication, Division, Modulo Division | *, /, MOD | |
| Addition, subtraction | +, - | |
| Compare | <, >, <=, >= | |
| Equality, inequality | =, <> | |
| Boolean AND | AND | |
| Boolean XOR | XOR | |
| Boolean OR | OR | Lowest priority |