(type)
| 358 | |
| 359 | function expect(wanted) { |
| 360 | function exp(type) { |
| 361 | if (type == wanted) return cont(); |
| 362 | else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass(); |
| 363 | else return cont(exp); |
| 364 | }; |
| 365 | return exp; |
| 366 | } |
| 367 |