TAL Reference Manual

TAL Reference Manual526371-001
4-1
4 Expressions
This section describes the syntax for:
Arithmetic and conditional expressions
Special expressions (assignment, CASE, IF, group comparison)
Bit operations (extraction and shift)
Section 5, “Using Expressions,” in the
TAL Programmer’s Guide describes:
Assigning conditional expressions
Dereferencing simple variables (formerly called temporary pointers)
About Expressions
An expression is a sequence of operands and operators that, when evaluated,
produces a single value. Operands in an expression include variables, constants, and
function identifiers. Operators in an expression perform arithmetic or conditional
operations on the operands.
Expressions, for example, can appear in:
LITERAL declarations
Variable initializations and assignments
Array and structure bounds
Indexes to variables
Conditional program execution
Parameters to procedures or subprocedures
The compiler at times requires arithmetic or conditional expressions. Where indicated
in this manual, specify one of the following kinds of expressions: