1966 |
.sp |
.sp |
1967 |
If the condition is satisfied, the yes-pattern is used; otherwise the |
If the condition is satisfied, the yes-pattern is used; otherwise the |
1968 |
no-pattern (if present) is used. If there are more than two alternatives in the |
no-pattern (if present) is used. If there are more than two alternatives in the |
1969 |
subpattern, a compile-time error occurs. |
subpattern, a compile-time error occurs. Each of the two alternatives may |
1970 |
|
itself contain nested subpatterns of any form, including conditional |
1971 |
|
subpatterns; the restriction to two alternatives applies only at the level of |
1972 |
|
the condition. This pattern fragment is an example where the alternatives are |
1973 |
|
complex: |
1974 |
|
.sp |
1975 |
|
(?(1) (A|B|C) | (D | (?(2)E|F) | E) ) |
1976 |
|
.sp |
1977 |
.P |
.P |
1978 |
There are four kinds of condition: references to subpatterns, references to |
There are four kinds of condition: references to subpatterns, references to |
1979 |
recursion, a pseudo-condition called DEFINE, and assertions. |
recursion, a pseudo-condition called DEFINE, and assertions. |