Instructions
172Compiler
© 2013 Conrad Electronic
Identifier
Identifier are the names of Functions or Variables.
Valid characters are letters (A-Z,a-z), numbers (0-9) and the low dash ('_')
An identifier always starts with a letter
Upper and lower case writings are differentiated
Reserved Words are not allowed as identifier
The length of identifiers is unlimited
Arithmetic Expressions
An arithmetic expression is a quantity of values connected by Operators. In this case quantities can
either be Figures, Variables and Functions.
A simple example:
2 + 3
Here the numerical values 2 and 3 are connected by the Operator "+". An arithmetic value again rep-
resents a value. In this case the value is 5.
Further examples:
a - 3
b + f(5)
2 + 3 * 6
Following the rule "Dot before Line" here 3 times 6 is calculated first and then 2 is added. This prior-
ity is in case of operators called precedence. A list of priorities can be found in the Precedence
Table.
Comparisons too are arithmetic expressions. The comparison operators return a truth value of
"1" or "0", depening on whether the comparison was true or not. The expression "3 < 5" yields the
value "1" (true).
Constant Expressions
An expression or portions of an expression can be constant. Portions of an expression can already
be calculated during Compiler runtime.
So e. g. the expression
12 + 123 - 15
is combined by the Compiler to
120.