* xmlXPathCompAndExpr: * @ctxt: the XPath Parser context * * [22] AndExpr ::= EqualityExpr * | AndExpr 'and' EqualityExpr * * Compile an AND expression. * */
| 9883 | * |
| 9884 | */ |
| 9885 | static void |
| 9886 | xmlXPathCompAndExpr(xmlXPathParserContextPtr ctxt) { |
| 9887 | xmlXPathCompEqualityExpr(ctxt); |
| 9888 | CHECK_ERROR; |
| 9889 | SKIP_BLANKS; |
| 9890 | while ((CUR == 'a') && (NXT(1) == 'n') && (NXT(2) == 'd')) { |
| 9891 | int op1 = ctxt->comp->last; |
| 9892 | SKIP(3); |
| 9893 | SKIP_BLANKS; |
| 9894 | xmlXPathCompEqualityExpr(ctxt); |
| 9895 | CHECK_ERROR; |
| 9896 | PUSH_BINARY_EXPR(XPATH_OP_AND, op1, ctxt->comp->last, 0, 0); |
| 9897 | SKIP_BLANKS; |
| 9898 | } |
| 9899 | } |
| 9900 | |
| 9901 | /** |
| 9902 | * xmlXPathCompileExpr: |
no test coverage detected