code: function(msg){
      var type = this.peek().type
        , val = undefined == this.peek().val
          ? ''
          : ' ' + this.peek().toString();
      if (val.trim() == type.trim()) val = '';
      throw new errors.ParseError(msg.replace('{peek}', '"' + type + val + '"'));
    }
docs: Throw an `Error` with the given `msg`.
  
  @param {String} msg
  @api private