(type)
| 457 | } |
| 458 | function commasep(what, end) { |
| 459 | function proceed(type) { |
| 460 | if (type == ",") { |
| 461 | var lex = cx.state.lexical; |
| 462 | if (lex.info == "call") lex.pos = (lex.pos || 0) + 1; |
| 463 | return cont(what, proceed); |
| 464 | } |
| 465 | if (type == end) return cont(); |
| 466 | return cont(expect(end)); |
| 467 | } |
| 468 | return function(type) { |
| 469 | if (type == end) return cont(); |
| 470 | return pass(what, proceed); |