| 233 | } |
| 234 | |
| 235 | struct parser_node* parser_newcmpchain (struct parser_node* nl, enum parser_f2_t cmp, |
| 236 | struct parser_node* nr) |
| 237 | { |
| 238 | /* If left side is already a comparison, this extends the chain */ |
| 239 | if (amrex::parser_is_comparison(nl)) { |
| 240 | return amrex::parser_newf2(amrex::PARSER_CMP_CHAIN, nl, |
| 241 | amrex::parser_newf2(cmp, |
| 242 | amrex::parser_get_rightmost_operand(nl), |
| 243 | nr)); |
| 244 | } else { |
| 245 | return amrex::parser_newf2(cmp, nl, nr); // Initial comparison |
| 246 | } |
| 247 | } |
| 248 | |
| 249 | /*******************************************************************/ |
| 250 |
no test coverage detected