(wanted)
| 201 | poplex.lex = true; |
| 202 | |
| 203 | function expect(wanted) { |
| 204 | return function expecting(type) { |
| 205 | if (type == wanted) return cont(); |
| 206 | else if (wanted == ";") return pass(); |
| 207 | else return cont(arguments.callee); |
| 208 | }; |
| 209 | } |
| 210 | |
| 211 | function statement(type) { |
| 212 | if (type == "var") return cont(pushlex("vardef"), vardef1, expect(";"), poplex); |
no test coverage detected