Contents

parse(_:)

Parses a value, using this strategy.

Declaration

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

Parameters

  • value:

    A value whose type matches the strategy’s Parseinput type.

Return Value

A parsed value of the type declared by ParseOutput.

Discussion

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