Lines Matching refs:alternative
27 where the first alternative should be used for numbers having a non-zero
31 succeeds the whole alternative fails.
34 the first alternative. We need to add some additional rules allowing to make the
35 first alternative fail. So, if the first alternative fails the second one will
36 be chosen instead. The decision about whether to choose the first alternative
49 fail. This is exactly what we need, forcing the second alternative to be chosen
173 happens for instance in alternative generators, where some of the alternatives
174 need to extract only part of the overall attribute passed to the alternative
189 complex number is equal to zero or not. The first alternative is executed if the
190 imaginary part is not zero, the second alternative otherwise. This time we make
193 Here is the first alternative again for your reference:
199 /fails/, making the whole first alternative fail otherwise. Second, the
206 the `!double_(0.0)`, the overall first alternative will be chosen only if
210 Now, the second alternative has to emit the real part of the complex
213 alternative is `tuple<double, double, double>`, we need to skip the first and
262 still utilize a very similar scheme. We have an alternative providing the
265 the required alternative by comparing the imaginary part to zero in the grammar
271 is `true`, proceed as specified, else select the next alternative'. The next
272 alternative now accounts for the boolean element as well, but is otherwise
285 second alternative to be 'shorter' than the first one. It consumes only
290 Note, we could have written the alternative as