next up previous contents
Next: All-quantified predicates Up: Predicates in rules Previous: Relation modifiers

Order indicators


\begin{verbsyntax}\onerule{OrderIndicator}{'first' \vert 'last' \vert 'next' \vert 'prev' \vert 'before' \vert 'after' \vert 'any'}
\end{verbsyntax}

If users specify predicates that refer to fields of list-functor type, special order indicators can be used to find out certain special elements of the list. The order indicators generate an access to specific list elements. There are the following types, exemplified by a relation Stmts, the statements of a block:

The variable Block must be defined earlier in the specification.

The distribution contains a demo file autotest/examples/test-list-add.ox for order indicators.


next up previous contents
Next: All-quantified predicates Up: Predicates in rules Previous: Relation modifiers
Uwe Assmann
1998-12-22