-
Enables adopters to define their own source type e.g.
String
,[UInt8]
, etc.Declaration
Swift
associatedtype sourceType
-
Enables adopters to define their own input source type e.g.
String
,[UInt8]
, etc.Declaration
Swift
associatedtype initSourceType
-
The raw source to parse
Declaration
Swift
var source: sourceType { get set }
-
Initializer accepting source
Declaration
Swift
init(source: initSourceType)
-
Parse the source
Declaration
Swift
mutating func parse() -> [Line]