ItemKey
public struct ItemKey<Param> : Hashable where Param : Hashable
An ItemKey
designates a part of the input that has been successfully parsed as a certain symbol with certain parameters.
Seealso
ConstructResult-
The symbol which has been parsed successfully.
Declaration
Swift
public let symbol: Symbol
-
The input parameter of the parsed symbol.
Declaration
Swift
public let inputParam: Param
-
The output parameter of the parsed symbol.
Declaration
Swift
public let outputParam: Param
-
The (inclusive) start position of the input range that has been parsed successfully.
Declaration
Swift
public let startPosition: Int
-
The (exclusive) end position of the input range that has been parsed successfully.
Declaration
Swift
public let endPosition: Int
-
Undocumented
Declaration
Swift
public init(symbol: Symbol, inputParam: Param, outputParam: Param, startPosition: Int, endPosition: Int)