Expressions
Expressions consist of one or more terms (literal strings, symbols, function calls, or subexpressions) interspersed with zero or more operators that denote operations to be carried out on terms.
A subexpression is a term in an expression bracketed in a left and a right parenthesis.
- Literal Strings (delimited by quotation marks), which are constants.
- Symbols (no quotation marks), which are translated to uppercase. A symbol that does not begin with a digit or a period might be the name of a variable; in this case the value of that variable is used. Otherwise a symbol is treated as a constant string. A symbol can also be compound.
- Function calls (see Functions), which are of the form:
All data is in the form of typeless
character strings (because the data is not of a
particular declared type, such as Binary, Hexadecimal, or Array). Therefore, when an expression is
evaluated, the result is a character string. Terms and results (except arithmetic and logical
expressions) can be the null string (a string of length 0). REXX
imposes no restriction on the maximum length of results. However, there is a 16MB limitation on the
amount of a single storage request available to the language processor. See the note in REXX General Concepts for more information.
