(type, val)
| 747 | }; |
| 748 | |
| 749 | function expect_token(type, val) { |
| 750 | if (is(type, val)) { |
| 751 | return next(); |
| 752 | } |
| 753 | token_error(S.token, "Unexpected token " + S.token.type + ", expected " + type); |
| 754 | }; |
| 755 | |
| 756 | function expect(punc) { return expect_token("punc", punc); }; |
| 757 |
no test coverage detected