PatternBody
public struct PatternBody<E> where E : Evaluator
It’s a data transfer object passed in the Pattern
matcher block
-
The key-value pairs of the
Variable
instances found along the wayDeclaration
Swift
public var variables: [String : Any]
-
The evaluator instance to help parsing the content
Declaration
Swift
public var interpreter: E
-
The context if the matcher block needs any contextual information
Declaration
Swift
public var context: Context