| 485 | |
| 486 | |
| 487 | static te_expr *expr(state *s) { |
| 488 | /* <expr> = <term> {("+" | "-") <term>} */ |
| 489 | te_expr *ret = term(s); |
| 490 | |
| 491 | while (s->type == TOK_INFIX && (s->function == add || s->function == sub)) { |
| 492 | te_fun2 t = s->function; |
| 493 | next_token(s); |
| 494 | ret = NEW_EXPR(TE_FUNCTION2 | TE_FLAG_PURE, ret, term(s)); |
| 495 | ret->function = t; |
| 496 | } |
| 497 | |
| 498 | return ret; |
| 499 | } |
| 500 | |
| 501 | |
| 502 | static te_expr *list(state *s) { |
no test coverage detected