(s, f, p, w)
| 3336 | } |
| 3337 | |
| 3338 | function infix(s, f, p, w) { |
| 3339 | var x = symbol(s, p); |
| 3340 | reserveName(x); |
| 3341 | x.infix = true; |
| 3342 | x.led = function (left) { |
| 3343 | if (!w) { |
| 3344 | nobreaknonadjacent(state.tokens.prev, state.tokens.curr); |
| 3345 | } |
| 3346 | if (s === "in" && left.id === "!") { |
| 3347 | warning("W018", left, "!"); |
| 3348 | } |
| 3349 | if (typeof f === "function") { |
| 3350 | return f(left, this); |
| 3351 | } else { |
| 3352 | this.left = left; |
| 3353 | this.right = expression(p); |
| 3354 | return this; |
| 3355 | } |
| 3356 | }; |
| 3357 | return x; |
| 3358 | } |
| 3359 | |
| 3360 | |
| 3361 | function application(s) { |
no test coverage detected