Previous topic |
Next topic |
Contents |
Contact z/OS |
Library |
PDF
Rules for coding expressions HLASM Language Reference SC26-4940-06 |
|
The rules for coding an absolute or relocatable expression are:
Figure 1. Definitions
of absolute and relocatable expressions
┌───────────┐ │ │ │Absolute │ │Expression │ │ │ └─────┬─────┘ │ V Can be any of ├─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────┬─────────────┐ │ │ │ │ │ │ │ │ │ V V V V V V V V V ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │ Rel. Exp. │ │ Absolute │ │ Abs. Exp. │ │ Abs. Exp. │ │ Abs. Exp. │ │ Abs. Exp. │ │(Abs. Exp.)│ │ +Abs. Exp.│ │ -Abs. Exp.│ │ - │ │ Term │ │ + │ │ - │ │ * │ │ / │ │ │ │ ∧ │ │ ∧ │ │ Rel. Exp. │ │ │ │ Abs. Exp. │ │ Abs. Exp. │ │ Abs. Exp. │ │ Abs. Exp. │ │ │ │ │ │ │ │ │ └─────┬─────┘ └─────┬─────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘ └─┼─────────┘ └─┼─────────┘ │ │ └──────┬──────┘ │ V Can be any of │ │ ├─────────────┬─────────────┬─────────────┬─────────────┐ unary operators │ │ │ │ │ │ │ V V V V V │ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ │ │Absolute │ │ Self- │ │ Symbol │ │ Symbol │ │ Symbol │ │ │Valued │ │ Defining │ │ Length │ │ Integer │ │ Scale │ │ │Ordinary │ │ Term │ │ Attribute │ │ Attribute │ │ Attribute │ │ │Symbol │ │ │ │ │ │ │ │ │ │ └───────────┘ └───────────┘ └───────────┘ └───────────┘ └───────────┘ │ V ┌─────┴─────┐ │ │ │Relocatable│ │Expression │ │ │ └─────┬─────┘ │ V Can be any of ├─────────────┬─────────────┬─────────────┬─────────────┬─────────────┐ │ │ │ │ │ │ V V V V V V ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ ┌─────┴─────┐ Operators Allowed │ │ │ │ │ │ │ │ │ │ │ │ │Relocatable│ │ Rel. Exp. │ │ Rel. Exp. │ │(Rel. Exp.)│ │+Rel. Exp. │ │-Rel. Exp. │ Unary: + Positive │Term │ │ + │ │ - │ │ │ │∧ │ │∧ │ - Negative │ │ │ Abs. Exp. │ │ Abs. Exp. │ │ │ ││ │ ││ │ └─────┬─────┘ └───────────┘ └───────────┘ └───────────┘ └┼──────────┘ └┼──────────┘ Binary: + Addition │ │ │ - Subtraction │ └──────┬──────┘ * Multiplication V Can be any of │ / Division ├─────────────┐ unary operators │ │ V V ┌─────┴─────┐ ┌─────┴─────┐ │Relocatable│ │ Location │ Rel. Exp. = Relocatable Expression │Valued │ │ Counter │ Abs. Exp. = Absolute Expression │Ordinary │ │ Reference │ │Symbol │ │ │ └───────────┘ └───────────┘ |
Copyright IBM Corporation 1990, 2014
|