WrapInContext
struct WrapInContext<Base> : Combinator where Base : Combinator, Base.Context == ParserState
A combinator that updates the parsing contexts.
-
Declaration
Swift
typealias Context = ParserState -
Declaration
Swift
typealias Element = Base.Element -
The context in which
baseshould be applied.Declaration
Swift
let context: ParserState.Context -
The underlying combinator.
Declaration
Swift
public let base: Base -
Declaration
Swift
func parse(_ state: inout ParserState) throws -> Element?
View on GitHub