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