code: func (p *parser) err(e error) Error {
  	// convert the error to include the parser position
  	return NewError(e, p.Position())
  }
docs: // err returns an Error for the error e, capturing the current parser Position.