-
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]