(comb, end)
| 171 | poplex.lex = typecx.lex = valcx.lex = true; |
| 172 | |
| 173 | function commasep(comb, end) { |
| 174 | function more(type) { |
| 175 | if (type == ",") return cont(comb, more); |
| 176 | if (type == end) return cont(); |
| 177 | return cont(more); |
| 178 | } |
| 179 | return function(type) { |
| 180 | if (type == end) return cont(); |
| 181 | return pass(comb, more); |
| 182 | }; |
| 183 | } |
| 184 | |
| 185 | function stat_of(comb, tag) { |
| 186 | return cont(pushlex("stat", tag), comb, poplex, block); |