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