(what, end)
| 261 | if (atomicTypes.hasOwnProperty(type)) return cont(expect(":"), expression); |
| 262 | } |
| 263 | function commasep(what, end) { |
| 264 | function proceed(type) { |
| 265 | if (type == ",") return cont(what, proceed); |
| 266 | if (type == end) return cont(); |
| 267 | return cont(expect(end)); |
| 268 | } |
| 269 | return function commaSeparated(type) { |
| 270 | if (type == end) return cont(); |
| 271 | else return pass(what, proceed); |
| 272 | }; |
| 273 | } |
| 274 | function block(type) { |
| 275 | if (type == "}") return cont(); |
| 276 | return pass(statement, block); |
no test coverage detected