(wanted)
| 353 | poplex.lex = true; |
| 354 | |
| 355 | function expect(wanted) { |
| 356 | function exp(type) { |
| 357 | if (type == wanted) return cont(); |
| 358 | else if (wanted == ";" || type == "}" || type == ")" || type == "]") return pass(); |
| 359 | else return cont(exp); |
| 360 | }; |
| 361 | return exp; |
| 362 | } |
| 363 | |
| 364 | function statement(type, value) { |
| 365 | if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex); |
no outgoing calls
no test coverage detected