Go to the first, previous, next, last section, table of contents.


6.1.5 LSL Operator Terms

The next higher precedence are LSL operators. See section 4.10.5 LSL Operators for the syntax of lsl-op. These can be used either as prefix, infix, or postfix operators. The prefix operators are right associative, the postfix and infix operators are left associative.

lsl-op-term ::= lsl-op [ lsl-op ] ... secondary
        | secondary [ lsl-op secondary ] ...
        | secondary lsl-op [ lsl-op ] ...

The meaning and sort of an lsl-op are determined by the trait in which it is defined.

For example, -i is an example of the use of a prefix operator (-). An example with two prefix operators is - *p, note that the space is needed to separate the - from the *, otherwise Larch/C++ interprets this as the use of a single prefix operator -*. An example with a postfix operator is angle \negated \sine. An example with an infix operator is s \U s2 \U s3.


Go to the first, previous, next, last section, table of contents.