---
title: "parse(_:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/parsestrategy/parse(_:)"
---

# parse(_:)

Parses a value, using this strategy.

## Declaration

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

## Parameters

- `value`: A value whose type matches the strategy’s doc://com.apple.foundation/documentation/Foundation/ParseStrategy/ParseInput type.

## Return Value

Return Value A parsed value of the type declared by ParseOutput.

## Discussion

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