code: function expect(value) {
    var token = lex();
    if (token.type !== TokenPunctuator || token.value !== value) {
      throwUnexpected(token);
    }
  }
docs: Expect the next token to match the specified punctuator. If not, an exception will be thrown.