function expect(type) {
    if (tokType === type) {
      next();
    } else {
      unexpected();
    }
  }
Expect a token of a given type.  If found, consume it, otherwise,
raise an unexpected token error.

@param {!Object} type