<< Prev | - Up - | Next >> |
Oz supports infix and prefix notation for very common procedures (see Section 3.5 of ``The Oz Notation'').
In the following table, we give the prefix and infix notations and the corresponding expansions. The operators are grouped together according to their precedence. Members of the same group have the same precedence, groups further up have lower precedence than groups further down. ``Having higher precedence'' means ``binding tighter''; e. g., the term X.Y + Z
is equal to (X.Y) + Z
. Ambiguities within each group are resolved by the associativity given before each group (e. g., X - Y + Z
is equivalent to (X - Y) + Z
).
Infix | Normal |
---|---|
right-associative | |
|
|
right-associative | |
|
|
|
|
non-associative | |
|
|
|
|
|
|
|
|
|
|
|
|
left-associative | |
|
|
|
|
left-associative | |
|
|
|
|
|
|
|
|
left-associative | |
|
|
prefix | |
|
|
left-associative | |
|
|
infix | |
|
|
|
|
<< Prev | - Up - | Next >> |