AND: not (AND not)* */
| 1119 | |
| 1120 | /* AND: not (AND not)* */ |
| 1121 | static cbm_expr_t *parse_and_expr(parser_t *p) { // NOLINT(misc-no-recursion) |
| 1122 | cbm_expr_t *left = parse_not_expr(p); |
| 1123 | if (!left) { |
| 1124 | return NULL; |
| 1125 | } |
| 1126 | while (check(p, TOK_AND)) { |
| 1127 | advance(p); |
| 1128 | cbm_expr_t *right = parse_not_expr(p); |
| 1129 | if (!right) { |
| 1130 | expr_free(left); |
| 1131 | return NULL; |
| 1132 | } |
| 1133 | left = expr_binary(EXPR_AND, left, right); |
| 1134 | } |
| 1135 | return left; |
| 1136 | } |
| 1137 | |
| 1138 | /* XOR: and (XOR and)* */ |
| 1139 | static cbm_expr_t *parse_xor_expr(parser_t *p) { // NOLINT(misc-no-recursion) |
no test coverage detected