AND: not (AND not)* */
| 1280 | |
| 1281 | /* AND: not (AND not)* */ |
| 1282 | static cbm_expr_t *parse_and_expr(parser_t *p) { // NOLINT(misc-no-recursion) |
| 1283 | cbm_expr_t *first = parse_not_expr(p); |
| 1284 | if (!first || !check(p, TOK_AND)) { |
| 1285 | return first; |
| 1286 | } |
| 1287 | cbm_expr_t *head = expr_binary(EXPR_AND, first, NULL); |
| 1288 | cbm_expr_t *tail = head; |
| 1289 | while (match(p, TOK_AND)) { |
| 1290 | cbm_expr_t *next = parse_not_expr(p); |
| 1291 | if (!next) { |
| 1292 | expr_free(head); |
| 1293 | return NULL; |
| 1294 | } |
| 1295 | expr_chain_link(&tail, EXPR_AND, next, check(p, TOK_AND)); |
| 1296 | } |
| 1297 | return head; |
| 1298 | } |
| 1299 | |
| 1300 | /* XOR: and (XOR and)* */ |
| 1301 | static cbm_expr_t *parse_xor_expr(parser_t *p) { // NOLINT(misc-no-recursion) |
no test coverage detected