In RoBOTL, wherever a numeric or boolean value is needed, it can be any one of the following types of expressions.
A parenthetical subexpression is an expression surrounded by '(' and ')' characters that must be completely evaluated before its value can be used in the larger expression. Parenthesis are often used to group together expressions using operators of lower precedence so that they are evaluated first. For example, Multiplication has higher precedence than addition, so 5+7*4 would be 33, not 48. In order for the addition to be evaluated before the multiplication, it would have to be moved into a parenthetical subexpression. Thus (5+7)*4 or 4*(5+7) would both be 48.
No expression may have a numeric value less than -32768 or greater than 32767. This includes any intermediate subexpressions that are evaluated as a part of a larger expression. In addition, the specific application of the expression may impose more stringent limits on its allowable values. For example, an expression used as an X or Y coordinate cannot be less than zero.
You can also go:
Created on 16 June 1995
Last revised 20 August 1996