(wanted)
| 340 | poplex.lex = true; |
| 341 | |
| 342 | function expect(wanted) { |
| 343 | function exp(type) { |
| 344 | if (type == wanted) return cont(); |
| 345 | else if (wanted == ";") return pass(); |
| 346 | else return cont(exp); |
| 347 | }; |
| 348 | return exp; |
| 349 | } |
| 350 | |
| 351 | function statement(type, value) { |
| 352 | if (type == "var") return cont(pushlex("vardef", value.length), vardef, expect(";"), poplex); |
no outgoing calls
no test coverage detected