accept(type) {
    if (type == this.peek().type) {
      return this.next();
    }
  }
Accept the given token `type`, and return it,
otherwise return `undefined`.

@param {String} type
@return {Token}
@api private