(wanted)
| 319 | poplex.lex = true; |
| 320 | |
| 321 | function expect(wanted) { |
| 322 | function exp(type) { |
| 323 | if (type == wanted) return cont(); |
| 324 | else if (wanted == ";") return pass(); |
| 325 | else return cont(exp); |
| 326 | }; |
| 327 | return exp; |
| 328 | } |
| 329 | |
| 330 | function statement(type, value) { |
| 331 | if (type == "var") return cont(pushlex("vardef", value.length), vardef, expect(";"), poplex); |
no outgoing calls
no test coverage detected