(s, f, p, w)
| 3478 | } |
| 3479 | |
| 3480 | function infix(s, f, p, w) { |
| 3481 | var x = symbol(s, p); |
| 3482 | reserveName(x); |
| 3483 | x.infix = true; |
| 3484 | x.led = function(left) { |
| 3485 | if (!w) { |
| 3486 | nobreaknonadjacent(state.tokens.prev, state.tokens.curr); |
| 3487 | } |
| 3488 | if (s === "in" && left.id === "!") { |
| 3489 | warning("W018", left, "!"); |
| 3490 | } |
| 3491 | if (typeof f === "function") { |
| 3492 | return f(left, this); |
| 3493 | } else { |
| 3494 | this.left = left; |
| 3495 | this.right = expression(p); |
| 3496 | return this; |
| 3497 | } |
| 3498 | }; |
| 3499 | return x; |
| 3500 | } |
| 3501 | |
| 3502 | |
| 3503 | function application(s) { |
no test coverage detected