<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: 15.0.0 -",
    "macOS: 12.0.0 -",
    "tvOS: 15.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 8.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/ParseStrategy/parse(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "s:10Foundation13ParseStrategyP5parsey0B6OutputQz0B5InputQzKF"
  },
  "title" : "parse(_:)"
}
-->

# parse(_:)

Parses a value, using this strategy.

```
func parse(_ value: Self.ParseInput) throws -> Self.ParseOutput
```

## Parameters

`value`

A value whose type matches the strategy’s [`ParseInput`](/documentation/Foundation/ParseStrategy/ParseInput) type.

## Return Value

A parsed value of the type declared by [`ParseOutput`](/documentation/Foundation/ParseStrategy/ParseOutput).

## Discussion

This method throws an error if the parse strategy can’t parse `value`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)