(type = "")
| 30 | } |
| 31 | |
| 32 | function* eat(type = "") { |
| 33 | |
| 34 | let token = yield * peek(); |
| 35 | |
| 36 | if (type && token.type !== type) |
| 37 | throw new SyntaxError("Expected " + type); |
| 38 | |
| 39 | current = null; |
| 40 | return token; |
| 41 | } |
| 42 | |
| 43 | function* parseAdd() { |
| 44 |
no test coverage detected