(wanted)
| 357 | poplex.lex = true; |
| 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 | |
| 368 | function statement(type, value) { |
| 369 | if (type == "var") return cont(pushlex("vardef", value), vardef, expect(";"), poplex); |
no outgoing calls
no test coverage detected