function eat(type) {
    if (tokType === type) {
      next();
      return true;
    }
    return false;
  }
Predicate that tests whether the next token is of the given
type, and if yes, consumes it as a side effect.
@param {!Object} type
@returns {boolean}