TAL Reference Summary
Expressions
TAL Reference Summary
096256 Tandem Computers Incorporated 15
Expressions The following syntax diagrams describe:
Arithmetic expressions
Conditional expressions
Assignment expressions
CASE expressions
IF expressions
Group comparison expressions
Bit extractions
Bit shifts
Arithmetic Expressions An arithmetic expression is a sequence of operands and arithmetic operators that
computes a single numeric value of a specific data type.
+
-
operand
operand
arithmetic-operator
010
operand
Variable The identifier of a simple variable, array element, pointer,
structure data item, or equivalenced variable, with or
without @ or an index
Constant A character string or numeric constant
LITERAL The identifier of a named constant
Function invocation The invocation of a procedure that returns a value
(expression) Any expression, enclosed in parentheses
Code space item The identifier of a procedure, subprocedure, or label
prefixed with @ or a read-only array optionally prefixed
with @, with or without an index
arithmetic-operator
Signed arithmetic operator: +, –, *, /
Unsigned arithmetic operator: '+', '–', '*', '/', '\'
Logical operator: LOR, LAND, XOR